From cb12e3da1cc836a5ba8a98b998ba4ba7e47818af Mon Sep 17 00:00:00 2001 From: Shankar Singh C <83439957+ShankarSinghC@users.noreply.github.com> Date: Fri, 27 Dec 2024 11:49:55 +0530 Subject: [PATCH] fix(router): rename `management_url` to `management_u_r_l` in the apple pay session response (#6945) --- api-reference-v2/openapi_spec.json | 4 ++-- api-reference/openapi_spec.json | 4 ++-- crates/api_models/src/payments.rs | 2 +- crates/router/src/core/payments/transformers.rs | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/api-reference-v2/openapi_spec.json b/api-reference-v2/openapi_spec.json index 636723d808a..f1caede89cc 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 186aa6dc9c3..df7e96431db 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 a1718944095..816c085b8fa 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, /// 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 e532abaa7ea..79bcfb6a497 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, } } }