Skip to content

Commit

Permalink
OpenAPI Update (#355)
Browse files Browse the repository at this point in the history
Update OpenAPI for a6996afeb20d2af898ccc8afd68c80631ddf6a40

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
  • Loading branch information
stripe-openapi[bot] authored Aug 23, 2022
1 parent 4430981 commit 428521a
Showing 1 changed file with 116 additions and 4 deletions.
120 changes: 116 additions & 4 deletions openapi/spec3.json
Original file line number Diff line number Diff line change
Expand Up @@ -18218,6 +18218,15 @@
"description": "Customer billing details associated with the order.",
"nullable": true
},
"client_permissions": {
"anyOf": [
{
"$ref": "#/components/schemas/orders_v2_resource_client_permissions"
}
],
"description": "The fields on the Order that can be updated from the client",
"nullable": true
},
"client_secret": {
"description": "The client secret of this Order. Used for client-side retrieval using a publishable key. \n\nThe client secret can be used to complete a payment for an Order from your frontend. It should not be stored, logged, embedded in URLs, or exposed to anyone other than the customer. Make sure that you have TLS enabled on any page that includes the client secret. \n\nRefer to our docs for [creating and processing an order](https://stripe.com/docs/orders-beta/create-and-process) to learn about how client_secret should be handled.",
"maxLength": 5000,
Expand Down Expand Up @@ -18415,6 +18424,7 @@
"application",
"automatic_tax",
"billing_details",
"client_permissions",
"customer",
"discounts",
"line_items",
Expand Down Expand Up @@ -18568,6 +18578,43 @@

]
},
"orders_v2_resource_client_permissions": {
"description": "",
"properties": {
"billing_details": {
"description": "Allows or disallows billing details to be set on an Order with a publishable key and Order client_secret",
"enum": [
"allow",
"disallow"
],
"nullable": true,
"type": "string"
},
"promotion_codes": {
"description": "Allows or disallows promotion codes to be set on an Order with a publishable key and Order client_secret",
"enum": [
"allow",
"disallow"
],
"nullable": true,
"type": "string"
},
"shipping_details": {
"description": "Allows or disallows shipping details to be set on an Order with a publishable key and Order client_secret",
"enum": [
"allow",
"disallow"
],
"nullable": true,
"type": "string"
}
},
"title": "OrdersV2ResourceClientPermissions",
"type": "object",
"x-expandableFields": [

]
},
"orders_v2_resource_payment": {
"description": "",
"properties": {
Expand Down Expand Up @@ -19202,7 +19249,8 @@
"enum": [
"us_bank_account"
],
"type": "string"
"type": "string",
"x-stripeBypassValidation": true
},
"us_bank_account": {
"$ref": "#/components/schemas/outbound_transfers_payment_method_details_us_bank_account"
Expand Down Expand Up @@ -36192,6 +36240,7 @@
"description": "Represents a reader action to process a setup intent",
"properties": {
"generated_card": {
"description": "ID of a card PaymentMethod generated from the card_present PaymentMethod that may be attached to a Customer for future transactions. Only present if it was possible to generate a card PaymentMethod.",
"maxLength": 5000,
"type": "string"
},
Expand Down Expand Up @@ -37916,6 +37965,7 @@
"destination_payment_method": {
"description": "The PaymentMethod used as the payment instrument for an OutboundTransfer.",
"maxLength": 5000,
"nullable": true,
"type": "string"
},
"destination_payment_method_details": {
Expand Down Expand Up @@ -38014,7 +38064,6 @@
"cancelable",
"created",
"currency",
"destination_payment_method",
"destination_payment_method_details",
"expected_arrival_date",
"financial_account",
Expand Down Expand Up @@ -86363,6 +86412,10 @@
"explode": true,
"style": "deepObject"
},
"client_permissions": {
"explode": true,
"style": "deepObject"
},
"discounts": {
"explode": true,
"style": "deepObject"
Expand Down Expand Up @@ -86470,6 +86523,34 @@
],
"description": "Billing details for the customer. If a customer is provided, this will be automatically populated with values from that customer if override values are not provided."
},
"client_permissions": {
"description": "The fields on the order that are allowed to be updated from your frontend application with a publishable key and order client secret.",
"properties": {
"billing_details": {
"enum": [
"allow",
"disallow"
],
"type": "string"
},
"promotion_codes": {
"enum": [
"allow",
"disallow"
],
"type": "string"
},
"shipping_details": {
"enum": [
"allow",
"disallow"
],
"type": "string"
}
},
"title": "client_permissions",
"type": "object"
},
"currency": {
"description": "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).",
"type": "string"
Expand Down Expand Up @@ -87652,6 +87733,10 @@
"explode": true,
"style": "deepObject"
},
"client_permissions": {
"explode": true,
"style": "deepObject"
},
"discounts": {
"explode": true,
"style": "deepObject"
Expand Down Expand Up @@ -87759,6 +87844,34 @@
],
"description": "Billing details for the customer. If a customer is provided, this will be automatically populated with values from that customer if override values are not provided."
},
"client_permissions": {
"description": "The fields on the order that are allowed to be updated from your frontend application with a publishable key and order client secret.",
"properties": {
"billing_details": {
"enum": [
"allow",
"disallow"
],
"type": "string"
},
"promotion_codes": {
"enum": [
"allow",
"disallow"
],
"type": "string"
},
"shipping_details": {
"enum": [
"allow",
"disallow"
],
"type": "string"
}
},
"title": "client_permissions",
"type": "object"
},
"currency": {
"description": "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).",
"type": "string"
Expand Down Expand Up @@ -121968,7 +122081,7 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/customer_balance_transaction"
"$ref": "#/components/schemas/customer_cash_balance_transaction"
}
}
},
Expand Down Expand Up @@ -129200,7 +129313,6 @@
"required": [
"amount",
"currency",
"destination_payment_method",
"financial_account"
],
"type": "object"
Expand Down

0 comments on commit 428521a

Please sign in to comment.