OPS-356: Remove inv adj (#26)

* removed

* bumped to valitydev/damsel@c32f50f and valitydev/limiter-proto@e045813
This commit is contained in:
Артем 2023-09-04 15:33:15 +03:00 committed by GitHub
parent 6c3bfe319e
commit e9e5e630d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 11 deletions

View File

@ -12,7 +12,6 @@
-type operation() ::
invoice
| invoice_adjustment
| invoice_payment
| invoice_payment_adjustment
| invoice_payment_refund
@ -67,12 +66,6 @@ get_value(ValueName, _Operation, _Context) ->
}
}).
-define(INVOICE_ADJUSTMENT(V), #context_payproc_Context{
invoice = #context_payproc_Invoice{
adjustment = V = #domain_InvoiceAdjustment{}
}
}).
-define(INVOICE_PAYMENT(V), #context_payproc_Context{
invoice = #context_payproc_Invoice{
payment = #context_payproc_InvoicePayment{payment = V = #domain_InvoicePayment{}}
@ -115,8 +108,6 @@ get_shop_id(_) ->
get_created_at(invoice, ?INVOICE(Invoice)) ->
{ok, Invoice#domain_Invoice.created_at};
get_created_at(invoice_adjustment, ?INVOICE_ADJUSTMENT(Adjustment)) ->
{ok, Adjustment#domain_InvoiceAdjustment.created_at};
get_created_at(invoice_payment, ?INVOICE_PAYMENT(Payment)) ->
{ok, Payment#domain_InvoicePayment.created_at};
get_created_at(invoice_payment_adjustment, ?INVOICE_PAYMENT_ADJUSTMENT(Adjustment)) ->

View File

@ -9,7 +9,7 @@
{<<"cowlib">>,{pkg,<<"cowlib">>,<<"2.11.0">>},2},
{<<"damsel">>,
{git,"https://github.com/valitydev/damsel.git",
{ref,"52dbefd54fd68d0c04f8ded5734b27635e939c60"}},
{ref,"c32f50f875bd1c58957e507420a23f7d2fac3ecb"}},
0},
{<<"dmt_client">>,
{git,"https://github.com/valitydev/dmt_client.git",
@ -33,7 +33,7 @@
{<<"jsx">>,{pkg,<<"jsx">>,<<"3.1.0">>},1},
{<<"limiter_proto">>,
{git,"https://github.com/valitydev/limiter-proto.git",
{ref,"bbd2c0dce044dd5b4e424fc8e38a0023a1685a22"}},
{ref,"e045813d32e67432e5592d582e59e45df05da647"}},
0},
{<<"machinery">>,
{git,"https://github.com/valitydev/machinery-erlang.git",