chore: markAsAuthorized and payment collection tests (#2620)

* chore: markAsAuthorized and payment collection tests
This commit is contained in:
Carlos R. L. Rodrigues
2022-11-18 11:23:35 -03:00
committed by GitHub
parent a77780671a
commit 01a879ac94
8 changed files with 802 additions and 0 deletions
@@ -12,6 +12,10 @@ export const simplePaymentCollectionFactory = async (
const defaultData = {
currency_code: data.currency_code ?? "usd",
type: data.type ?? "order_edit",
status: data.status ?? "not_paid",
amount: data.amount ?? 1000,
created_by: data.created_by ?? "admin_user",
}
if (!data.region && !data.region_id) {