Skip to content

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

fix(router): rename `management_url` to `management_u_r_l` in the apple pay session response (#6945)

Shankar Singh Ccb12e3da1cc8
diff --git a/api-reference-v2/openapi_spec.json b/api-reference-v2/openapi_spec.json
index 636723d808..f1caede89c 100644
--- a/api-reference-v2/openapi_spec.json
+++ b/api-reference-v2/openapi_spec.json
@@ -3438,7 +3438,7 @@
"required": [
"payment_description",
"regular_billing",
- "management_url"
+ "management_u_r_l"
],
"properties": {
"payment_description": {
@@ -3453,7 +3453,7 @@
"description": "A localized billing agreement that the payment sheet displays to the user before the user authorizes the payment",
"nullable": true
},
- "management_url": {
+ "management_u_r_l": {
"type": "string",
"description": "A URL to a web page where the user can update or delete the payment method for the recurring payment",
"example": "https://hyperswitch.io"
diff --git a/api-reference/openapi_spec.json b/api-reference/openapi_spec.json
index 186aa6dc9c..df7e96431d 100644
--- a/api-reference/openapi_spec.json
+++ b/api-reference/openapi_spec.json
@@ -6052,7 +6052,7 @@
"required": [
"payment_description",
"regular_billing",
- "management_url"
+ "management_u_r_l"
],
"properties": {
"payment_description": {
@@ -6067,7 +6067,7 @@
"description": "A localized billing agreement that the payment sheet displays to the user before the user authorizes the payment",
"nullable": true
},
- "management_url": {
+ "management_u_r_l": {
"type": "string",
"description": "A URL to a web page where the user can update or delete the payment method for the recurring payment",
"example": "https://hyperswitch.io"
diff --git a/crates/api_models/src/payments.rs b/crates/api_models/src/payments.rs
index a171894409..816c085b8f 100644
--- a/crates/api_models/src/payments.rs
+++ b/crates/api_models/src/payments.rs
@@ -6295,7 +6295,7 @@ pub struct ApplePayRecurringPaymentRequest {
pub billing_agreement: Option<String>,
/// A URL to a web page where the user can update or delete the payment method for the recurring payment
#[schema(value_type = String, example = "https://hyperswitch.io")]
- pub management_url: common_utils::types::Url,
+ pub management_u_r_l: common_utils::types::Url,
}
#[derive(Debug, Clone, Eq, PartialEq, serde::Deserialize, serde::Serialize, ToSchema)]
diff --git a/crates/router/src/core/payments/transformers.rs b/crates/router/src/core/payments/transformers.rs
index e532abaa7e..79bcfb6a49 100644
--- a/crates/router/src/core/payments/transformers.rs
+++ b/crates/router/src/core/payments/transformers.rs
@@ -3480,7 +3480,7 @@ impl
.recurring_payment_interval_count,
},
billing_agreement: apple_pay_recurring_details.billing_agreement,
- management_url: apple_pay_recurring_details.management_url,
+ management_u_r_l: apple_pay_recurring_details.management_url,
}
}
}