mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-01 11:06:50 +08:00
fix(connector): [Airwallex] Fix refunds (#1468)
Co-authored-by: SamraatBansal <samraatbansal7@gmail.com>
This commit is contained in:
@ -427,6 +427,7 @@ impl<F> TryFrom<&types::RefundsRouterData<F>> for AirwallexRefundRequest {
|
|||||||
// Type definition for Refund Response
|
// Type definition for Refund Response
|
||||||
#[allow(dead_code)]
|
#[allow(dead_code)]
|
||||||
#[derive(Debug, Serialize, Default, Deserialize, Clone)]
|
#[derive(Debug, Serialize, Default, Deserialize, Clone)]
|
||||||
|
#[serde(rename_all = "SCREAMING_SNAKE_CASE")]
|
||||||
pub enum RefundStatus {
|
pub enum RefundStatus {
|
||||||
Succeeded,
|
Succeeded,
|
||||||
Failed,
|
Failed,
|
||||||
@ -448,7 +449,7 @@ impl From<RefundStatus> for enums::RefundStatus {
|
|||||||
#[derive(Default, Debug, Clone, Serialize, Deserialize)]
|
#[derive(Default, Debug, Clone, Serialize, Deserialize)]
|
||||||
pub struct RefundResponse {
|
pub struct RefundResponse {
|
||||||
//A unique number that tags a credit or debit card transaction when it goes from the merchant's bank through to the cardholder's bank.
|
//A unique number that tags a credit or debit card transaction when it goes from the merchant's bank through to the cardholder's bank.
|
||||||
acquirer_reference_number: String,
|
acquirer_reference_number: Option<String>,
|
||||||
amount: f32,
|
amount: f32,
|
||||||
//Unique identifier for the Refund
|
//Unique identifier for the Refund
|
||||||
id: String,
|
id: String,
|
||||||
|
|||||||
Reference in New Issue
Block a user