mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 04:04:43 +08:00
refactor(business_profile): add collect_shipping_details_from_wallet_connector in the business profile response (#4892)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -936,7 +936,7 @@ pub struct BusinessProfileCreate {
|
|||||||
/// Whether to use the billing details passed when creating the intent as payment method billing
|
/// Whether to use the billing details passed when creating the intent as payment method billing
|
||||||
pub use_billing_as_payment_method_billing: Option<bool>,
|
pub use_billing_as_payment_method_billing: Option<bool>,
|
||||||
|
|
||||||
/// A boolean value to indicate if cusomter shipping details needs to be sent for wallets payments
|
/// A boolean value to indicate if customer shipping details needs to be sent for wallets payments
|
||||||
pub collect_shipping_details_from_wallet_connector: Option<bool>,
|
pub collect_shipping_details_from_wallet_connector: Option<bool>,
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1013,6 +1013,9 @@ pub struct BusinessProfileResponse {
|
|||||||
|
|
||||||
/// Merchant's config to support extended card info feature
|
/// Merchant's config to support extended card info feature
|
||||||
pub extended_card_info_config: Option<ExtendedCardInfoConfig>,
|
pub extended_card_info_config: Option<ExtendedCardInfoConfig>,
|
||||||
|
|
||||||
|
/// A boolean value to indicate if customer shipping details needs to be sent for wallets payments
|
||||||
|
pub collect_shipping_details_from_wallet_connector: Option<bool>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone, Debug, Deserialize, ToSchema, Serialize)]
|
#[derive(Clone, Debug, Deserialize, ToSchema, Serialize)]
|
||||||
@ -1081,7 +1084,7 @@ pub struct BusinessProfileUpdate {
|
|||||||
// Whether to use the billing details passed when creating the intent as payment method billing
|
// Whether to use the billing details passed when creating the intent as payment method billing
|
||||||
pub use_billing_as_payment_method_billing: Option<bool>,
|
pub use_billing_as_payment_method_billing: Option<bool>,
|
||||||
|
|
||||||
/// A boolean value to indicate if cusomter shipping details needs to be sent for wallets payments
|
/// A boolean value to indicate if customer shipping details needs to be sent for wallets payments
|
||||||
pub collect_shipping_details_from_wallet_connector: Option<bool>,
|
pub collect_shipping_details_from_wallet_connector: Option<bool>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -85,6 +85,8 @@ impl ForeignTryFrom<storage::business_profile::BusinessProfile> for BusinessProf
|
|||||||
.extended_card_info_config
|
.extended_card_info_config
|
||||||
.map(|config| config.expose().parse_value("ExtendedCardInfoConfig"))
|
.map(|config| config.expose().parse_value("ExtendedCardInfoConfig"))
|
||||||
.transpose()?,
|
.transpose()?,
|
||||||
|
collect_shipping_details_from_wallet_connector: item
|
||||||
|
.collect_shipping_details_from_wallet_connector,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -6824,7 +6824,7 @@
|
|||||||
},
|
},
|
||||||
"collect_shipping_details_from_wallet_connector": {
|
"collect_shipping_details_from_wallet_connector": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"description": "A boolean value to indicate if cusomter shipping details needs to be sent for wallets payments",
|
"description": "A boolean value to indicate if customer shipping details needs to be sent for wallets payments",
|
||||||
"nullable": true
|
"nullable": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -6957,6 +6957,11 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"nullable": true
|
"nullable": true
|
||||||
|
},
|
||||||
|
"collect_shipping_details_from_wallet_connector": {
|
||||||
|
"type": "boolean",
|
||||||
|
"description": "A boolean value to indicate if customer shipping details needs to be sent for wallets payments",
|
||||||
|
"nullable": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user