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 StripeSplitPayments (#12411)

awasthi219683189a5cba
diff --git a/api-reference/v1/openapi_spec_v1.json b/api-reference/v1/openapi_spec_v1.json
index aba1ad6ca5..2d54b9a678 100644
--- a/api-reference/v1/openapi_spec_v1.json
+++ b/api-reference/v1/openapi_spec_v1.json
@@ -41587,8 +41587,7 @@
"example": "acct_1234567890",
"nullable": true
}
- },
- "additionalProperties": false
+ }
},
"StripeSplitRefundRequest": {
"type": "object",
diff --git a/api-reference/v2/openapi_spec_v2.json b/api-reference/v2/openapi_spec_v2.json
index f2c2268317..61144bdcaa 100644
--- a/api-reference/v2/openapi_spec_v2.json
+++ b/api-reference/v2/openapi_spec_v2.json
@@ -30981,8 +30981,7 @@
"example": "acct_1234567890",
"nullable": true
}
- },
- "additionalProperties": false
+ }
},
"StripeSplitRefundRequest": {
"type": "object",
diff --git a/crates/common_types/src/payments.rs b/crates/common_types/src/payments.rs
index f5e726a9ea..29527cdee9 100644
--- a/crates/common_types/src/payments.rs
+++ b/crates/common_types/src/payments.rs
@@ -75,7 +75,6 @@ impl_to_sql_from_sql_json!(SplitPaymentsRequest);
SmithyModel,
)]
#[diesel(sql_type = Jsonb)]
-#[serde(deny_unknown_fields)]
#[smithy(namespace = "com.hyperswitch.smithy.types")]
/// Fee information for Split Payments to be charged on the payment being collected for Stripe
pub struct StripeSplitPaymentRequest {