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
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
fix: add `reference` in `sepa_bank_instructions` (#6215)
Suman Maji036a2d505613
diff --git a/api-reference-v2/openapi_spec.json b/api-reference-v2/openapi_spec.jsonindex f6f7408e3d..f96ca1dc59 100644--- a/api-reference-v2/openapi_spec.json+++ b/api-reference-v2/openapi_spec.json@@ -19214,7 +19214,8 @@"account_holder_name","bic","country",- "iban"+ "iban",+ "reference"],"properties": {"account_holder_name": {@@ -19231,6 +19232,10 @@"iban": {"type": "string","example": "123456789"+ },+ "reference": {+ "type": "string",+ "example": "U2PVVSEV4V9Y"}}},diff --git a/api-reference/openapi_spec.json b/api-reference/openapi_spec.jsonindex d245600b81..613eff4b2a 100644--- a/api-reference/openapi_spec.json+++ b/api-reference/openapi_spec.json@@ -22986,7 +22986,8 @@"account_holder_name","bic","country",- "iban"+ "iban",+ "reference"],"properties": {"account_holder_name": {@@ -23003,6 +23004,10 @@"iban": {"type": "string","example": "123456789"+ },+ "reference": {+ "type": "string",+ "example": "U2PVVSEV4V9Y"}}},diff --git a/crates/api_models/src/payments.rs b/crates/api_models/src/payments.rsindex 99e2a16975..584f81992b 100644--- a/crates/api_models/src/payments.rs+++ b/crates/api_models/src/payments.rs@@ -3800,6 +3800,8 @@ pub struct SepaBankTransferInstructions {pub country: String,#[schema(value_type = String, example = "123456789")]pub iban: Secret<String>,+ #[schema(value_type = String, example = "U2PVVSEV4V9Y")]+ pub reference: Secret<String>,}#[derive(Clone, Debug, Eq, PartialEq, serde::Deserialize, serde::Serialize, ToSchema)]diff --git a/crates/router/src/connector/stripe/transformers.rs b/crates/router/src/connector/stripe/transformers.rsindex 4f76acc002..3513dead92 100644--- a/crates/router/src/connector/stripe/transformers.rs+++ b/crates/router/src/connector/stripe/transformers.rs@@ -2509,7 +2509,16 @@ pub fn get_connector_metadata(let (sepa_bank_instructions, bacs_bank_instructions) =bank_instructions.map_or((None, None), |financial_address| {(- financial_address.iban.to_owned(),+ financial_address+ .iban+ .to_owned()+ .map(|sepa_financial_details| SepaFinancialDetails {+ account_holder_name: sepa_financial_details.account_holder_name,+ bic: sepa_financial_details.bic,+ country: sepa_financial_details.country,+ iban: sepa_financial_details.iban,+ reference: response.reference.to_owned(),+ }),financial_address.sort_code.to_owned(),)});@@ -2914,6 +2923,7 @@ pub struct SepaFinancialDetails {pub bic: Secret<String>,pub country: Secret<String>,pub iban: Secret<String>,+ pub reference: Option<String>,}#[derive(Clone, Debug, Eq, PartialEq, Deserialize, Serialize)]