mirror of
https://github.com/valitydev/limiter.git
synced 2024-11-06 00:55:22 +00:00
format
This commit is contained in:
parent
74a6367fd6
commit
5a86c525be
@ -80,12 +80,13 @@
|
||||
}.
|
||||
|
||||
-type op_behaviour() :: #{operation_type() := addition | subtraction}.
|
||||
-type operation_type() :: invoice
|
||||
| invoice_adjustment
|
||||
| invoice_payment
|
||||
| invoice_payment_adjustment
|
||||
| invoice_payment_refund
|
||||
| invoice_payment_chargeback.
|
||||
-type operation_type() ::
|
||||
invoice
|
||||
| invoice_adjustment
|
||||
| invoice_payment
|
||||
| invoice_payment_adjustment
|
||||
| invoice_payment_refund
|
||||
| invoice_payment_chargeback.
|
||||
|
||||
-type lim_id() :: lim_limiter_thrift:'LimitID'().
|
||||
-type lim_change() :: lim_limiter_thrift:'LimitChange'().
|
||||
|
@ -8,7 +8,6 @@
|
||||
currency = #limiter_base_CurrencyRef{symbolic_code = <<"RUB">>}
|
||||
}).
|
||||
|
||||
|
||||
-define(ctx_invoice_payment(Cost, CaptureCost), ?ctx_invoice_payment(undefined, undefined, Cost, CaptureCost)).
|
||||
|
||||
-define(ctx_invoice_payment(OwnerID, ShopID, Cost, CaptureCost), #limiter_context_LimitContext{
|
||||
@ -39,7 +38,6 @@
|
||||
effective_refund = #limiter_context_InvoicePaymentRefund{
|
||||
cost = RefundCost,
|
||||
created_at = <<"2000-01-01T00:00:00Z">>
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user