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: remove skip_serializing_if for connector_customer_id in PaymentsResponse (#12582)

Vani Guptabffef4970ea8
diff --git a/api-reference/v1/openapi_spec_v1.json b/api-reference/v1/openapi_spec_v1.json
index d7267ebbcf..32e22aa51a 100644
--- a/api-reference/v1/openapi_spec_v1.json
+++ b/api-reference/v1/openapi_spec_v1.json
@@ -32194,7 +32194,8 @@
"sender_payment_instrument_id": {
"type": "string",
"description": "A connector-specific identifier representing the stored payment instrument",
- "nullable": true
+ "nullable": true,
+ "maxLength": 255
}
}
},
@@ -33895,7 +33896,8 @@
"sender_payment_instrument_id": {
"type": "string",
"description": "A connector-specific identifier representing the stored payment instrument",
- "nullable": true
+ "nullable": true,
+ "maxLength": 255
}
}
},
diff --git a/crates/api_models/src/payments.rs b/crates/api_models/src/payments.rs
index ad82f87d7d..4a51a240c9 100644
--- a/crates/api_models/src/payments.rs
+++ b/crates/api_models/src/payments.rs
@@ -7166,7 +7166,6 @@ pub struct PaymentsResponse {
/// A unique identifier for a customer provided by the connector.
#[schema(value_type = Option<String>, example = "cus_Rnm2pDKGyQi506")]
- #[serde(skip_serializing_if = "Option::is_none")]
#[smithy(value_type = "Option<String>")]
pub connector_customer_id: Option<String>,
@@ -7653,6 +7652,11 @@ pub struct PaymentsResponse {
pub installment_data: Option<common_types::payments::InstallmentData>,
/// A connector-specific identifier representing the stored payment instrument
+ #[schema(
+ value_type = Option<String>,
+ max_length = 255
+ )]
+ #[smithy(value_type = "Option<String>")]
pub sender_payment_instrument_id: Option<String>,
}