Skip to content

Commit

Permalink
OpenAPI Update (#662)
Browse files Browse the repository at this point in the history
Update OpenAPI for 847167e6b23f44ad90c3c59bbad382b04e930c83

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
  • Loading branch information
stripe-openapi[bot] committed Feb 13, 2024
1 parent 1558ca0 commit 89d3cd3
Show file tree
Hide file tree
Showing 2 changed files with 145 additions and 2 deletions.
78 changes: 77 additions & 1 deletion embedded/openapi/spec3.beta.sdk.json
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
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

0 comments on commit 89d3cd3

Please sign in to comment.