Skip to content

Commit

Permalink
fix(router): rename management_url to management_u_r_l in the apple p…
Browse files Browse the repository at this point in the history
…ay session resposne
  • Loading branch information
ShankarSinghC committed Dec 26, 2024
1 parent b6249f2 commit 93a3c7b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions api-reference-v2/openapi_spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -3438,7 +3438,7 @@
"required": [
"payment_description",
"regular_billing",
"management_url"
"management_u_r_l"
],
"properties": {
"payment_description": {
Expand All @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions api-reference/openapi_spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -6050,7 +6050,7 @@
"required": [
"payment_description",
"regular_billing",
"management_url"
"management_u_r_l"
],
"properties": {
"payment_description": {
Expand All @@ -6065,7 +6065,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"
Expand Down
2 changes: 1 addition & 1 deletion crates/api_models/src/payments.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
2 changes: 1 addition & 1 deletion crates/router/src/core/payments/transformers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
}
}
Expand Down

0 comments on commit 93a3c7b

Please sign in to comment.