Skip to content

Commit 5b230a0

Browse files
Update OpenAPI specification
1 parent c4298ff commit 5b230a0

File tree

6 files changed

+322
-247
lines changed

6 files changed

+322
-247
lines changed

openapi/spec3.beta.sdk.json

Lines changed: 57 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -133097,64 +133097,74 @@
133097133097
"type": "array"
133098133098
},
133099133099
"mandate_data": {
133100-
"description": "This hash contains details about the Mandate to create. This parameter can only be used with [`confirm=true`](https://stripe.com/docs/api/setup_intents/create#create_setup_intent-confirm).",
133101-
"properties": {
133102-
"customer_acceptance": {
133103-
"description": "This hash contains details about the customer acceptance of the Mandate.",
133100+
"anyOf": [
133101+
{
133104133102
"properties": {
133105-
"accepted_at": {
133106-
"description": "The time at which the customer accepted the Mandate.",
133107-
"format": "unix-time",
133108-
"type": "integer"
133109-
},
133110-
"offline": {
133111-
"description": "If this is a Mandate accepted offline, this hash contains details about the offline acceptance.",
133112-
"properties": {},
133113-
"title": "offline_param",
133114-
"type": "object"
133115-
},
133116-
"online": {
133117-
"description": "If this is a Mandate accepted online, this hash contains details about the online acceptance.",
133103+
"customer_acceptance": {
133104+
"description": "This hash contains details about the customer acceptance of the Mandate.",
133118133105
"properties": {
133119-
"ip_address": {
133120-
"description": "The IP address from which the Mandate was accepted by the customer.",
133121-
"type": "string"
133106+
"accepted_at": {
133107+
"description": "The time at which the customer accepted the Mandate.",
133108+
"format": "unix-time",
133109+
"type": "integer"
133122133110
},
133123-
"user_agent": {
133124-
"description": "The user agent of the browser from which the Mandate was accepted by the customer.",
133111+
"offline": {
133112+
"description": "If this is a Mandate accepted offline, this hash contains details about the offline acceptance.",
133113+
"properties": {},
133114+
"title": "offline_param",
133115+
"type": "object"
133116+
},
133117+
"online": {
133118+
"description": "If this is a Mandate accepted online, this hash contains details about the online acceptance.",
133119+
"properties": {
133120+
"ip_address": {
133121+
"description": "The IP address from which the Mandate was accepted by the customer.",
133122+
"type": "string"
133123+
},
133124+
"user_agent": {
133125+
"description": "The user agent of the browser from which the Mandate was accepted by the customer.",
133126+
"maxLength": 5000,
133127+
"type": "string"
133128+
}
133129+
},
133130+
"required": [
133131+
"ip_address",
133132+
"user_agent"
133133+
],
133134+
"title": "online_param",
133135+
"type": "object"
133136+
},
133137+
"type": {
133138+
"description": "The type of customer acceptance information included with the Mandate. One of `online` or `offline`.",
133139+
"enum": [
133140+
"offline",
133141+
"online"
133142+
],
133125133143
"maxLength": 5000,
133126133144
"type": "string"
133127133145
}
133128133146
},
133129133147
"required": [
133130-
"ip_address",
133131-
"user_agent"
133148+
"type"
133132133149
],
133133-
"title": "online_param",
133150+
"title": "customer_acceptance_param",
133134133151
"type": "object"
133135-
},
133136-
"type": {
133137-
"description": "The type of customer acceptance information included with the Mandate. One of `online` or `offline`.",
133138-
"enum": [
133139-
"offline",
133140-
"online"
133141-
],
133142-
"maxLength": 5000,
133143-
"type": "string"
133144133152
}
133145133153
},
133146133154
"required": [
133147-
"type"
133155+
"customer_acceptance"
133148133156
],
133149-
"title": "customer_acceptance_param",
133157+
"title": "secret_key_param",
133150133158
"type": "object"
133159+
},
133160+
{
133161+
"enum": [
133162+
""
133163+
],
133164+
"type": "string"
133151133165
}
133152-
},
133153-
"required": [
133154-
"customer_acceptance"
133155133166
],
133156-
"title": "secret_key_param",
133157-
"type": "object"
133167+
"description": "This hash contains details about the Mandate to create. This parameter can only be used with [`confirm=true`](https://stripe.com/docs/api/setup_intents/create#create_setup_intent-confirm)."
133158133168
},
133159133169
"metadata": {
133160133170
"additionalProperties": {
@@ -135575,6 +135585,12 @@
135575135585
"title": "secret_key_param",
135576135586
"type": "object"
135577135587
},
135588+
{
135589+
"enum": [
135590+
""
135591+
],
135592+
"type": "string"
135593+
},
135578135594
{
135579135595
"properties": {
135580135596
"customer_acceptance": {

openapi/spec3.beta.sdk.yaml

Lines changed: 59 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -125451,65 +125451,72 @@ paths:
125451125451
type: string
125452125452
type: array
125453125453
mandate_data:
125454-
description: >-
125455-
This hash contains details about the Mandate to create. This
125456-
parameter can only be used with
125457-
[`confirm=true`](https://stripe.com/docs/api/setup_intents/create#create_setup_intent-confirm).
125458-
properties:
125459-
customer_acceptance:
125460-
description: >-
125461-
This hash contains details about the customer acceptance
125462-
of the Mandate.
125463-
properties:
125464-
accepted_at:
125465-
description: The time at which the customer accepted the Mandate.
125466-
format: unix-time
125467-
type: integer
125468-
offline:
125469-
description: >-
125470-
If this is a Mandate accepted offline, this hash
125471-
contains details about the offline acceptance.
125472-
properties: {}
125473-
title: offline_param
125474-
type: object
125475-
online:
125454+
anyOf:
125455+
- properties:
125456+
customer_acceptance:
125476125457
description: >-
125477-
If this is a Mandate accepted online, this hash
125478-
contains details about the online acceptance.
125458+
This hash contains details about the customer
125459+
acceptance of the Mandate.
125479125460
properties:
125480-
ip_address:
125461+
accepted_at:
125481125462
description: >-
125482-
The IP address from which the Mandate was
125483-
accepted by the customer.
125484-
type: string
125485-
user_agent:
125463+
The time at which the customer accepted the
125464+
Mandate.
125465+
format: unix-time
125466+
type: integer
125467+
offline:
125486125468
description: >-
125487-
The user agent of the browser from which the
125488-
Mandate was accepted by the customer.
125469+
If this is a Mandate accepted offline, this hash
125470+
contains details about the offline acceptance.
125471+
properties: {}
125472+
title: offline_param
125473+
type: object
125474+
online:
125475+
description: >-
125476+
If this is a Mandate accepted online, this hash
125477+
contains details about the online acceptance.
125478+
properties:
125479+
ip_address:
125480+
description: >-
125481+
The IP address from which the Mandate was
125482+
accepted by the customer.
125483+
type: string
125484+
user_agent:
125485+
description: >-
125486+
The user agent of the browser from which the
125487+
Mandate was accepted by the customer.
125488+
maxLength: 5000
125489+
type: string
125490+
required:
125491+
- ip_address
125492+
- user_agent
125493+
title: online_param
125494+
type: object
125495+
type:
125496+
description: >-
125497+
The type of customer acceptance information
125498+
included with the Mandate. One of `online` or
125499+
`offline`.
125500+
enum:
125501+
- offline
125502+
- online
125489125503
maxLength: 5000
125490125504
type: string
125491125505
required:
125492-
- ip_address
125493-
- user_agent
125494-
title: online_param
125506+
- type
125507+
title: customer_acceptance_param
125495125508
type: object
125496-
type:
125497-
description: >-
125498-
The type of customer acceptance information included
125499-
with the Mandate. One of `online` or `offline`.
125500-
enum:
125501-
- offline
125502-
- online
125503-
maxLength: 5000
125504-
type: string
125505125509
required:
125506-
- type
125507-
title: customer_acceptance_param
125510+
- customer_acceptance
125511+
title: secret_key_param
125508125512
type: object
125509-
required:
125510-
- customer_acceptance
125511-
title: secret_key_param
125512-
type: object
125513+
- enum:
125514+
- ''
125515+
type: string
125516+
description: >-
125517+
This hash contains details about the Mandate to create. This
125518+
parameter can only be used with
125519+
[`confirm=true`](https://stripe.com/docs/api/setup_intents/create#create_setup_intent-confirm).
125513125520
metadata:
125514125521
additionalProperties:
125515125522
type: string
@@ -127944,6 +127951,9 @@ paths:
127944127951
- customer_acceptance
127945127952
title: secret_key_param
127946127953
type: object
127954+
- enum:
127955+
- ''
127956+
type: string
127947127957
- properties:
127948127958
customer_acceptance:
127949127959
description: >-

openapi/spec3.json

Lines changed: 50 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -105587,57 +105587,67 @@
105587105587
"type": "array"
105588105588
},
105589105589
"mandate_data": {
105590-
"description": "This hash contains details about the Mandate to create. This parameter can only be used with [`confirm=true`](https://stripe.com/docs/api/setup_intents/create#create_setup_intent-confirm).",
105591-
"properties": {
105592-
"customer_acceptance": {
105590+
"anyOf": [
105591+
{
105593105592
"properties": {
105594-
"accepted_at": {
105595-
"format": "unix-time",
105596-
"type": "integer"
105597-
},
105598-
"offline": {
105599-
"properties": {},
105600-
"title": "offline_param",
105601-
"type": "object"
105602-
},
105603-
"online": {
105593+
"customer_acceptance": {
105604105594
"properties": {
105605-
"ip_address": {
105606-
"type": "string"
105595+
"accepted_at": {
105596+
"format": "unix-time",
105597+
"type": "integer"
105607105598
},
105608-
"user_agent": {
105599+
"offline": {
105600+
"properties": {},
105601+
"title": "offline_param",
105602+
"type": "object"
105603+
},
105604+
"online": {
105605+
"properties": {
105606+
"ip_address": {
105607+
"type": "string"
105608+
},
105609+
"user_agent": {
105610+
"maxLength": 5000,
105611+
"type": "string"
105612+
}
105613+
},
105614+
"required": [
105615+
"ip_address",
105616+
"user_agent"
105617+
],
105618+
"title": "online_param",
105619+
"type": "object"
105620+
},
105621+
"type": {
105622+
"enum": [
105623+
"offline",
105624+
"online"
105625+
],
105609105626
"maxLength": 5000,
105610105627
"type": "string"
105611105628
}
105612105629
},
105613105630
"required": [
105614-
"ip_address",
105615-
"user_agent"
105631+
"type"
105616105632
],
105617-
"title": "online_param",
105633+
"title": "customer_acceptance_param",
105618105634
"type": "object"
105619-
},
105620-
"type": {
105621-
"enum": [
105622-
"offline",
105623-
"online"
105624-
],
105625-
"maxLength": 5000,
105626-
"type": "string"
105627105635
}
105628105636
},
105629105637
"required": [
105630-
"type"
105638+
"customer_acceptance"
105631105639
],
105632-
"title": "customer_acceptance_param",
105640+
"title": "secret_key_param",
105633105641
"type": "object"
105642+
},
105643+
{
105644+
"enum": [
105645+
""
105646+
],
105647+
"type": "string"
105634105648
}
105635-
},
105636-
"required": [
105637-
"customer_acceptance"
105638105649
],
105639-
"title": "secret_key_param",
105640-
"type": "object"
105650+
"description": "This hash contains details about the Mandate to create. This parameter can only be used with [`confirm=true`](https://stripe.com/docs/api/setup_intents/create#create_setup_intent-confirm)."
105641105651
},
105642105652
"metadata": {
105643105653
"additionalProperties": {
@@ -107730,6 +107740,12 @@
107730107740
"title": "secret_key_param",
107731107741
"type": "object"
107732107742
},
107743+
{
107744+
"enum": [
107745+
""
107746+
],
107747+
"type": "string"
107748+
},
107733107749
{
107734107750
"properties": {
107735107751
"customer_acceptance": {

0 commit comments

Comments
 (0)