Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenAPI Update #662

Merged
merged 1 commit into from
Feb 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 77 additions & 1 deletion embedded/openapi/spec3.beta.sdk.json
Original file line number Diff line number Diff line change
Expand Up @@ -5492,6 +5492,9 @@
"nullable": true,
"type": "string"
},
"networks": {
"$ref": "#/components/schemas/token_card_networks"
},
"object": {
"description": "String representing the object's type. Objects of the same type share the same value.",
"enum": [
Expand Down Expand Up @@ -5539,7 +5542,8 @@
"type": "object",
"x-expandableFields": [
"account",
"customer"
"customer",
"networks"
],
"x-resourceId": "card",
"x-stripeOperations": [
Expand Down Expand Up @@ -37473,6 +37477,12 @@
"nullable": true,
"type": "string"
},
"display_brand": {
"description": "The brand to use when displaying the card, this accounts for customer's brand choice on dual-branded cards. Can be `american_express`, `cartes_bancaires`, `diners_club`, `discover`, `eftpos_australia`, `interac`, `jcb`, `mastercard`, `union_pay`, `visa`, or `other` and may contain more values in the future.",
"maxLength": 5000,
"nullable": true,
"type": "string"
},
"exp_month": {
"description": "Two-digit number representing the card's expiration month.",
"type": "integer"
Expand Down Expand Up @@ -63622,6 +63632,23 @@
"in_package": ""
}
},
"token_card_networks": {
"description": "",
"properties": {
"preferred": {
"description": "The preferred network for co-branded cards. Can be `cartes_bancaires`, `mastercard`, `visa` or `invalid_preference` if requested network is not valid for the card.",
"maxLength": 5000,
"nullable": true,
"type": "string"
}
},
"required": [
"preferred"
],
"title": "token_card_networks",
"type": "object",
"x-expandableFields": []
},
"topup": {
"description": "To top up your Stripe balance, you create a top-up object. You can retrieve\nindividual top-ups, as well as list all top-ups. Top-ups are identified by a\nunique, random ID.\n\nRelated guide: [Topping up your platform account](https://stripe.com/docs/connect/top-ups)",
"properties": {
Expand Down Expand Up @@ -147473,6 +147500,22 @@
"description": "Four-digit number representing the card's expiration year.",
"type": "integer"
},
"networks": {
"description": "Contains information about card networks used to process the payment.",
"properties": {
"preferred": {
"description": "The customer's preferred card network for co-branded cards. Supports `cartes_bancaires`, `mastercard`, or `visa`. Selection of a network that does not apply to the card will be stored as `invalid_preference` on the card.",
"enum": [
"cartes_bancaires",
"mastercard",
"visa"
],
"type": "string"
}
},
"title": "networks_params",
"type": "object"
},
"number": {
"description": "The card number, as a string without any separators.",
"maxLength": 5000,
Expand Down Expand Up @@ -148204,6 +148247,23 @@
"exp_year": {
"description": "Four-digit number representing the card's expiration year.",
"type": "integer"
},
"networks": {
"description": "Contains information about card networks used to process the payment.",
"properties": {
"preferred": {
"description": "The customer's preferred card network for co-branded cards. Supports `cartes_bancaires`, `mastercard`, or `visa`. Selection of a network that does not apply to the card will be stored as `invalid_preference` on the card.",
"enum": [
"",
"cartes_bancaires",
"mastercard",
"visa"
],
"type": "string"
}
},
"title": "networks_update_api_param",
"type": "object"
}
},
"title": "update_api_param",
Expand Down Expand Up @@ -189861,6 +189921,22 @@
"maxLength": 5000,
"type": "string"
},
"networks": {
"description": "Contains information about card networks used to process the payment.",
"properties": {
"preferred": {
"description": "The customer's preferred card network for co-branded cards. Supports `cartes_bancaires`, `mastercard`, or `visa`. Selection of a network that does not apply to the card will be stored as `invalid_preference` on the card.",
"enum": [
"cartes_bancaires",
"mastercard",
"visa"
],
"type": "string"
}
},
"title": "networks_param_specs",
"type": "object"
},
"number": {
"description": "The card number, as a string without any separators.",
"maxLength": 5000,
Expand Down
69 changes: 68 additions & 1 deletion embedded/openapi/spec3.json
Original file line number Diff line number Diff line change
Expand Up @@ -3574,6 +3574,9 @@
"nullable": true,
"type": "string"
},
"networks": {
"$ref": "#/components/schemas/token_card_networks"
},
"object": {
"description": "String representing the object's type. Objects of the same type share the same value.",
"enum": [
Expand Down Expand Up @@ -3607,7 +3610,8 @@
"type": "object",
"x-expandableFields": [
"account",
"customer"
"customer",
"networks"
],
"x-resourceId": "card"
},
Expand Down Expand Up @@ -25211,6 +25215,12 @@
"nullable": true,
"type": "string"
},
"display_brand": {
"description": "The brand to use when displaying the card, this accounts for customer's brand choice on dual-branded cards. Can be `american_express`, `cartes_bancaires`, `diners_club`, `discover`, `eftpos_australia`, `interac`, `jcb`, `mastercard`, `union_pay`, `visa`, or `other` and may contain more values in the future.",
"maxLength": 5000,
"nullable": true,
"type": "string"
},
"exp_month": {
"description": "Two-digit number representing the card's expiration month.",
"type": "integer"
Expand Down Expand Up @@ -43190,6 +43200,20 @@
],
"x-resourceId": "token"
},
"token_card_networks": {
"description": "",
"properties": {
"preferred": {
"description": "The preferred network for co-branded cards. Can be `cartes_bancaires`, `mastercard`, `visa` or `invalid_preference` if requested network is not valid for the card.",
"maxLength": 5000,
"nullable": true,
"type": "string"
}
},
"title": "token_card_networks",
"type": "object",
"x-expandableFields": []
},
"topup": {
"description": "To top up your Stripe balance, you create a top-up object. You can retrieve\nindividual top-ups, as well as list all top-ups. Top-ups are identified by a\nunique, random ID.\n\nRelated guide: [Topping up your platform account](https://stripe.com/docs/connect/top-ups)",
"properties": {
Expand Down Expand Up @@ -107192,6 +107216,20 @@
"exp_year": {
"type": "integer"
},
"networks": {
"properties": {
"preferred": {
"enum": [
"cartes_bancaires",
"mastercard",
"visa"
],
"type": "string"
}
},
"title": "networks_params",
"type": "object"
},
"number": {
"maxLength": 5000,
"type": "string"
Expand Down Expand Up @@ -107878,6 +107916,21 @@
},
"exp_year": {
"type": "integer"
},
"networks": {
"properties": {
"preferred": {
"enum": [
"",
"cartes_bancaires",
"mastercard",
"visa"
],
"type": "string"
}
},
"title": "networks_update_api_param",
"type": "object"
}
},
"title": "update_api_param",
Expand Down Expand Up @@ -139959,6 +140012,20 @@
"maxLength": 5000,
"type": "string"
},
"networks": {
"properties": {
"preferred": {
"enum": [
"cartes_bancaires",
"mastercard",
"visa"
],
"type": "string"
}
},
"title": "networks_param_specs",
"type": "object"
},
"number": {
"maxLength": 5000,
"type": "string"
Expand Down
Loading