mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-01 11:06:50 +08:00
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:
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user