|
128 | 128 | -export([accept_payment_chargeback_twice/1]). |
129 | 129 | -export([accept_payment_chargeback_new_body/1]). |
130 | 130 | -export([accept_payment_chargeback_new_levy/1]). |
131 | | --export([reopen_accepted_payment_chargeback_fails/1]). |
132 | 131 | -export([reopen_payment_chargeback_inconsistent/1]). |
133 | 132 | -export([reopen_payment_chargeback_exceeded/1]). |
134 | 133 | -export([reopen_payment_chargeback_cancel/1]). |
@@ -389,7 +388,6 @@ groups() -> |
389 | 388 | accept_payment_chargeback_twice, |
390 | 389 | accept_payment_chargeback_new_body, |
391 | 390 | accept_payment_chargeback_new_levy, |
392 | | - reopen_accepted_payment_chargeback_fails, |
393 | 391 | reopen_payment_chargeback_inconsistent, |
394 | 392 | reopen_payment_chargeback_exceeded, |
395 | 393 | reopen_payment_chargeback_cancel, |
@@ -4064,30 +4062,6 @@ accept_payment_chargeback_new_levy(C) -> |
4064 | 4062 | ?assertEqual(Paid - Cost - NewLevyAmount, maps:get(min_available_amount, Settlement1)), |
4065 | 4063 | ?assertEqual(Paid - Cost - NewLevyAmount, maps:get(max_available_amount, Settlement1)). |
4066 | 4064 |
|
4067 | | --spec reopen_accepted_payment_chargeback_fails(config()) -> _ | no_return(). |
4068 | | -reopen_accepted_payment_chargeback_fails(C) -> |
4069 | | - Client = cfg(client, C), |
4070 | | - Cost = 42000, |
4071 | | - LevyAmount = 5000, |
4072 | | - Levy = ?cash(LevyAmount, <<"RUB">>), |
4073 | | - CBParams = make_chargeback_params(Levy), |
4074 | | - {IID, PID, _SID, CB} = start_chargeback(C, Cost, CBParams, make_payment_params(?pmt_sys(<<"visa-ref">>))), |
4075 | | - CBID = CB#domain_InvoicePaymentChargeback.id, |
4076 | | - [ |
4077 | | - ?payment_ev(PID, ?chargeback_ev(CBID, ?chargeback_created(CB))), |
4078 | | - ?payment_ev(PID, ?chargeback_ev(CBID, ?chargeback_cash_flow_changed(_))) |
4079 | | - ] = next_changes(IID, 2, Client), |
4080 | | - AcceptParams = make_chargeback_accept_params(), |
4081 | | - ok = hg_client_invoicing:accept_chargeback(IID, PID, CBID, AcceptParams, Client), |
4082 | | - [ |
4083 | | - ?payment_ev(PID, ?chargeback_ev(CBID, ?chargeback_target_status_changed(?chargeback_status_accepted()))), |
4084 | | - ?payment_ev(PID, ?chargeback_ev(CBID, ?chargeback_status_changed(?chargeback_status_accepted()))), |
4085 | | - ?payment_ev(PID, ?payment_status_changed(?charged_back())) |
4086 | | - ] = next_changes(IID, 3, Client), |
4087 | | - ReopenParams = make_chargeback_reopen_params(Levy), |
4088 | | - Error = hg_client_invoicing:reopen_chargeback(IID, PID, CBID, ReopenParams, Client), |
4089 | | - ?assertMatch(?invalid_chargeback_status(_), Error). |
4090 | | - |
4091 | 4065 | -spec reopen_payment_chargeback_inconsistent(config()) -> _ | no_return(). |
4092 | 4066 | reopen_payment_chargeback_inconsistent(C) -> |
4093 | 4067 | Client = cfg(client, C), |
|
0 commit comments