mirror of
https://github.com/valitydev/limiter.git
synced 2024-11-06 00:55:22 +00:00
repro
This commit is contained in:
parent
e852d53380
commit
3f8b243967
@ -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{
|
||||
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user