This commit is contained in:
Артем 2022-06-16 11:56:41 +03:00
parent e852d53380
commit 3f8b243967
2 changed files with 5 additions and 5 deletions

View File

@ -124,11 +124,11 @@
-define(payproc_op_invoice, {invoice, #limiter_context_payproc_OperationInvoice{}}).
-define(payproc_op_invoice_payment, {invoice_payment, #limiter_context_payproc_OperationInvoicePayment{}}).
-define(payproc_bank_card(),
?payproc_bank_card(?string, 2, 2022)
-define(payproc_bank_card,
?payproc_bank_card(?string, {2, 2022})
).
-define(payproc_bank_card(Token, Month, Year), #domain_BankCard{
-define(payproc_bank_card(Token, {Month, Year}), #domain_BankCard{
token = Token,
bin = ?string,
last_digits = ?string,
@ -147,7 +147,7 @@
}).
-define(payproc_invoice_payment(Cost, CaptureCost),
?payproc_invoice_payment(Cost, CaptureCost, {bank_card, ?payproc_bank_card()})
?payproc_invoice_payment(Cost, CaptureCost, {bank_card, ?payproc_bank_card})
).
-define(payproc_invoice_payment(Cost, CaptureCost, PaymentTool), #domain_InvoicePayment{

View File

@ -523,7 +523,7 @@ payproc_commit_with_payment_tool_scope_ok(C) ->
?payproc_invoice_payment(
?cash(10),
?cash(10),
{bank_card, ?payproc_bank_card()}
{bank_card, ?payproc_bank_card}
)
),
Context1 = ?payproc_ctx_invoice_payment(