refactor(RouterData): move amount information inside request in RouterData (#36)

Co-authored-by: Sanchith Hegde <22217505+SanchithHegde@users.noreply.github.com>
This commit is contained in:
Nishant Joshi
2022-12-01 13:58:26 +05:30
committed by GitHub
parent b2e45e614c
commit e45e33c897
12 changed files with 36 additions and 33 deletions

View File

@ -70,8 +70,6 @@ pub async fn construct_refund_router_data<'a, F>(
connector: merchant_connector_account.connector_name,
payment_id: payment_attempt.payment_id.clone(),
status,
amount,
currency,
payment_method: payment_method_type,
connector_auth_type: auth_type,
description: None,
@ -87,6 +85,8 @@ pub async fn construct_refund_router_data<'a, F>(
payment_method_data,
connector_transaction_id: refund.transaction_id.clone(),
refund_amount: refund.refund_amount,
currency,
amount,
},
response: Ok(types::RefundsResponseData {