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(split_payments): remove deny_unknown_fields from StripeChargeResponseData (#12516)

Malay Awasthi76be6ad2cafb
diff --git a/api-reference/v1/openapi_spec_v1.json b/api-reference/v1/openapi_spec_v1.json
index a9a46d09a3..0eededc5c1 100644
--- a/api-reference/v1/openapi_spec_v1.json
+++ b/api-reference/v1/openapi_spec_v1.json
@@ -41573,8 +41573,7 @@
"example": "acct_1234567890",
"nullable": true
}
- },
- "additionalProperties": false
+ }
},
"StripeChargeType": {
"type": "string",
diff --git a/api-reference/v2/openapi_spec_v2.json b/api-reference/v2/openapi_spec_v2.json
index 9f9ad8d372..4792f9b6ad 100644
--- a/api-reference/v2/openapi_spec_v2.json
+++ b/api-reference/v2/openapi_spec_v2.json
@@ -30966,8 +30966,7 @@
"example": "acct_1234567890",
"nullable": true
}
- },
- "additionalProperties": false
+ }
},
"StripeChargeType": {
"type": "string",
diff --git a/crates/common_types/src/payments.rs b/crates/common_types/src/payments.rs
index 29527cdee9..abf84b358d 100644
--- a/crates/common_types/src/payments.rs
+++ b/crates/common_types/src/payments.rs
@@ -355,7 +355,6 @@ pub type DecisionManagerResponse = DecisionManagerRecord;
SmithyModel,
)]
#[diesel(sql_type = Jsonb)]
-#[serde(deny_unknown_fields)]
#[smithy(namespace = "com.hyperswitch.smithy.types")]
pub struct StripeChargeResponseData {
/// Identifier for charge created for the payment