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:
DEEPANSHU BANSAL
2025-03-05 16:30:28 +05:30
committed by GitHub
parent 38bb7676be
commit 00d69bd924
16 changed files with 229 additions and 11 deletions

View File

@ -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>,