Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
refactor(business_profile): add `collect_shipping_details_from_wallet_connector` in the business profile response (#4892)
Shankar Singh C377d6eacd308
diff --git a/crates/api_models/src/admin.rs b/crates/api_models/src/admin.rsindex dc64947bf0..58cb6fbf3e 100644--- a/crates/api_models/src/admin.rs+++ b/crates/api_models/src/admin.rs@@ -936,7 +936,7 @@ pub struct BusinessProfileCreate {/// Whether to use the billing details passed when creating the intent as payment method billingpub 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 paymentspub collect_shipping_details_from_wallet_connector: Option<bool>,}@@ -1013,6 +1013,9 @@ pub struct BusinessProfileResponse {/// Merchant's config to support extended card info featurepub 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)]@@ -1081,7 +1084,7 @@ pub struct BusinessProfileUpdate {// Whether to use the billing details passed when creating the intent as payment method billingpub 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 paymentspub collect_shipping_details_from_wallet_connector: Option<bool>,}diff --git a/crates/router/src/types/api/admin.rs b/crates/router/src/types/api/admin.rsindex 20083afb1c..b79819ed63 100644--- a/crates/router/src/types/api/admin.rs+++ b/crates/router/src/types/api/admin.rs@@ -85,6 +85,8 @@ impl ForeignTryFrom<storage::business_profile::BusinessProfile> for BusinessProf.extended_card_info_config.map(|config| config.expose().parse_value("ExtendedCardInfoConfig")).transpose()?,+ collect_shipping_details_from_wallet_connector: item+ .collect_shipping_details_from_wallet_connector,})}}diff --git a/openapi/openapi_spec.json b/openapi/openapi_spec.jsonindex 76cbda10a1..a12df1d916 100644--- a/openapi/openapi_spec.json+++ b/openapi/openapi_spec.json@@ -6824,7 +6824,7 @@},"collect_shipping_details_from_wallet_connector": {"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}},@@ -6957,6 +6957,11 @@}],"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}}},