@@ -291,7 +291,7 @@ do_create(Opts, CreateParams = ?chargeback_params(Levy, Body, _Reason)) ->
291291 ShopConfigRef = get_invoice_shop_config_ref (Invoice ),
292292 ShopObj = {_ , Shop } = hg_party :get_shop (ShopConfigRef , PartyConfigRef , Revision ),
293293 VS = collect_validation_varset (PartyConfigRef , ShopObj , Payment , Body ),
294- PaymentsTerms = hg_routing : get_payment_terms (Route , VS , Revision ),
294+ PaymentsTerms = hg_party : get_route_payment_terms (Route , VS , Revision ),
295295 ProviderTerms = get_provider_chargeback_terms (PaymentsTerms , Payment ),
296296 ServiceTerms = get_merchant_chargeback_terms (Party , Shop , VS , Revision , CreatedAt ),
297297 _ = validate_currency (Body , Payment ),
@@ -427,7 +427,7 @@ build_chargeback_final_cash_flow(State, Opts) ->
427427 ShopObj = {_ , Shop } = hg_party :get_shop (ShopConfigRef , PartyConfigRef , Revision ),
428428 VS = collect_validation_varset (PartyConfigRef , ShopObj , Payment , Body ),
429429 ServiceTerms = get_merchant_chargeback_terms (Party , Shop , VS , Revision , CreatedAt ),
430- PaymentsTerms = hg_routing : get_payment_terms (Route , VS , Revision ),
430+ PaymentsTerms = hg_party : get_route_payment_terms (Route , VS , Revision ),
431431 ProviderTerms = get_provider_chargeback_terms (PaymentsTerms , Payment ),
432432 ServiceCashFlow = get_chargeback_service_cash_flow (ServiceTerms ),
433433 ProviderCashFlow = get_chargeback_provider_cash_flow (ProviderTerms ),
0 commit comments