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(core): Address Deserialization issue (#8980)

awasthi21f76c6a7839cc
diff --git a/api-reference/v1/openapi_spec_v1.json b/api-reference/v1/openapi_spec_v1.json
index 73f3ab9be3..27750c56ce 100644
--- a/api-reference/v1/openapi_spec_v1.json
+++ b/api-reference/v1/openapi_spec_v1.json
@@ -7248,8 +7248,7 @@
"type": "string",
"nullable": true
}
- },
- "additionalProperties": false
+ }
},
"AddressDetails": {
"type": "object",
@@ -7325,8 +7324,7 @@
"nullable": true,
"maxLength": 50
}
- },
- "additionalProperties": false
+ }
},
"AdyenConnectorMetadata": {
"type": "object",
diff --git a/api-reference/v2/openapi_spec_v2.json b/api-reference/v2/openapi_spec_v2.json
index 02dbdddf4a..e9bd39ac6e 100644
--- a/api-reference/v2/openapi_spec_v2.json
+++ b/api-reference/v2/openapi_spec_v2.json
@@ -4058,8 +4058,7 @@
"type": "string",
"nullable": true
}
- },
- "additionalProperties": false
+ }
},
"AddressDetails": {
"type": "object",
@@ -4135,8 +4134,7 @@
"nullable": true,
"maxLength": 50
}
- },
- "additionalProperties": false
+ }
},
"AdyenConnectorMetadata": {
"type": "object",
diff --git a/crates/api_models/src/payments.rs b/crates/api_models/src/payments.rs
index 91886de239..723fbae3ff 100644
--- a/crates/api_models/src/payments.rs
+++ b/crates/api_models/src/payments.rs
@@ -4473,7 +4473,7 @@ impl Default for PaymentIdType {
}
#[derive(Default, Clone, Debug, Eq, PartialEq, ToSchema, serde::Deserialize, serde::Serialize)]
-#[serde(deny_unknown_fields)]
+// #[serde(deny_unknown_fields)]
pub struct Address {
/// Provide the address details
pub address: Option<AddressDetails>,
@@ -4504,7 +4504,7 @@ impl Address {
// used by customers also, could be moved outside
/// Address details
#[derive(Clone, Default, Debug, Eq, serde::Deserialize, serde::Serialize, PartialEq, ToSchema)]
-#[serde(deny_unknown_fields)]
+// #[serde(deny_unknown_fields)]
pub struct AddressDetails {
/// The city, district, suburb, town, or village of the address.
#[schema(max_length = 50, example = "New York")]