mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 04:04:55 +08:00
fix(connector): [Braintree] Consume merchant_account_id and merchant_config_currency in payment requests (#7408)
Co-authored-by: Debarshi Gupta <debarshi.gupta@Debarshi-Gupta-CM92YWDXFD.local>
This commit is contained in:
@ -6566,6 +6566,7 @@ pub struct ConnectorMetadata {
|
||||
pub apple_pay: Option<ApplepayConnectorMetadataRequest>,
|
||||
pub airwallex: Option<AirwallexData>,
|
||||
pub noon: Option<NoonData>,
|
||||
pub braintree: Option<BraintreeData>,
|
||||
}
|
||||
|
||||
impl ConnectorMetadata {
|
||||
@ -6606,6 +6607,16 @@ pub struct NoonData {
|
||||
pub order_category: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize, ToSchema)]
|
||||
pub struct BraintreeData {
|
||||
/// Information about the merchant_account_id that merchant wants to specify at connector level.
|
||||
#[schema(value_type = String)]
|
||||
pub merchant_account_id: Option<Secret<String>>,
|
||||
/// Information about the merchant_config_currency that merchant wants to specify at connector level.
|
||||
#[schema(value_type = String)]
|
||||
pub merchant_config_currency: Option<api_enums::Currency>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize, ToSchema)]
|
||||
pub struct ApplepayConnectorMetadataRequest {
|
||||
pub session_token_data: Option<SessionTokenInfo>,
|
||||
|
||||
Reference in New Issue
Block a user