mirror of
https://github.com/valitydev/hellgate.git
synced 2024-11-06 02:45:20 +00:00
ED-43: Добавить поддержку RBS (#546)
* updated rebar.lock * updated rebar.lock; removed legacy_domain_revision * +scenario mandatory Co-authored-by: dinama <dinama@users.noreply.github.com>
This commit is contained in:
parent
75ed95a9bc
commit
1964ed27e6
@ -1419,20 +1419,7 @@ get_refund_cashflow_plan(RefundSt) ->
|
||||
-spec create_adjustment(hg_datetime:timestamp(), adjustment_params(), st(), opts()) -> {adjustment(), result()}.
|
||||
create_adjustment(Timestamp, Params, St, Opts) ->
|
||||
_ = assert_no_adjustment_pending(St),
|
||||
case Params#payproc_InvoicePaymentAdjustmentParams.legacy_domain_revision of
|
||||
undefined ->
|
||||
create_adjustment_with_scenario(Timestamp, Params, St, Opts);
|
||||
% FIXME: remove this check when new control center will be deployed
|
||||
DomainRevision ->
|
||||
create_cash_flow_adjustment(Timestamp, Params, DomainRevision, St, Opts)
|
||||
end.
|
||||
|
||||
-spec create_adjustment_with_scenario(hg_datetime:timestamp(), adjustment_params(), st(), opts()) ->
|
||||
{adjustment(), result()}.
|
||||
create_adjustment_with_scenario(Timestamp, Params, St, Opts) ->
|
||||
case Params#payproc_InvoicePaymentAdjustmentParams.scenario of
|
||||
undefined ->
|
||||
create_cash_flow_adjustment(Timestamp, Params, undefined, St, Opts);
|
||||
{cash_flow, #domain_InvoicePaymentAdjustmentCashFlow{domain_revision = DomainRevision}} ->
|
||||
create_cash_flow_adjustment(Timestamp, Params, DomainRevision, St, Opts);
|
||||
{status_change, Change} ->
|
||||
|
@ -5115,8 +5115,11 @@ make_adjustment_params(Reason) ->
|
||||
|
||||
make_adjustment_params(Reason, Revision) ->
|
||||
#payproc_InvoicePaymentAdjustmentParams{
|
||||
legacy_domain_revision = Revision,
|
||||
reason = Reason
|
||||
reason = Reason,
|
||||
scenario =
|
||||
{cash_flow, #domain_InvoicePaymentAdjustmentCashFlow{
|
||||
domain_revision = Revision
|
||||
}}
|
||||
}.
|
||||
|
||||
make_status_adjustment_params(Status) ->
|
||||
|
@ -11,7 +11,7 @@
|
||||
{<<"cowlib">>,{pkg,<<"cowlib">>,<<"2.9.1">>},2},
|
||||
{<<"damsel">>,
|
||||
{git,"https://github.com/rbkmoney/damsel.git",
|
||||
{ref,"a7840116be6ec29604352e1bc761481aabdcd9ba"}},
|
||||
{ref,"7a9d7a67d0194ecdb1cc0f9b390015352ac42271"}},
|
||||
0},
|
||||
{<<"dmt_client">>,
|
||||
{git,"https://github.com/rbkmoney/dmt_client.git",
|
||||
|
Loading…
Reference in New Issue
Block a user