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(openapi): add missing value_type for funding_source in AdditionalCardInfo (#14059)
Ayush Anandf7be99efc10b
diff --git a/api-reference/v2/openapi_spec_v2.json b/api-reference/v2/openapi_spec_v2.jsonindex f4a89ddcd7..ef4935ef98 100644--- a/api-reference/v2/openapi_spec_v2.json+++ b/api-reference/v2/openapi_spec_v2.json@@ -5589,6 +5589,27 @@"description": "Card type, can be either `credit` or `debit`","nullable": true},+ "card_subtype": {+ "type": "string",+ "description": "The product the card is issued under, e.g. `CLASSIC` or `ELECTRON`.\nFree form, as the value comes straight from the BIN record.",+ "nullable": true+ },+ "card_segment_type": {+ "allOf": [+ {+ "$ref": "#/components/schemas/CardSegmentType"+ }+ ],+ "nullable": true+ },+ "funding_source": {+ "allOf": [+ {+ "$ref": "#/components/schemas/FundingSource"+ }+ ],+ "nullable": true+ },"card_issuing_country": {"type": "string","nullable": truediff --git a/crates/api_models/src/payments.rs b/crates/api_models/src/payments.rsindex ea3024b2e1..c70b2a3475 100644--- a/crates/api_models/src/payments.rs+++ b/crates/api_models/src/payments.rs@@ -4213,6 +4213,7 @@ pub struct AdditionalCardInfo {/// How the card is funded, as recorded against its BIN. More granular than/// `card_type`, which collapses deferred debit and charge cards.+ #[schema(value_type = Option<FundingSource>, example = "CREDIT")]pub funding_source: Option<api_enums::FundingSource>,pub card_issuing_country: Option<String>,