Skip to content

Commit

Permalink
Update OpenAPI specification
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Aug 21, 2023
1 parent c4298ff commit 5b230a0
Show file tree
Hide file tree
Showing 6 changed files with 322 additions and 247 deletions.
98 changes: 57 additions & 41 deletions openapi/spec3.beta.sdk.json
Original file line number Diff line number Diff line change
Expand Up @@ -133097,64 +133097,74 @@
"type": "array"
},
"mandate_data": {
"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).",
"properties": {
"customer_acceptance": {
"description": "This hash contains details about the customer acceptance of the Mandate.",
"anyOf": [
{
"properties": {
"accepted_at": {
"description": "The time at which the customer accepted the Mandate.",
"format": "unix-time",
"type": "integer"
},
"offline": {
"description": "If this is a Mandate accepted offline, this hash contains details about the offline acceptance.",
"properties": {},
"title": "offline_param",
"type": "object"
},
"online": {
"description": "If this is a Mandate accepted online, this hash contains details about the online acceptance.",
"customer_acceptance": {
"description": "This hash contains details about the customer acceptance of the Mandate.",
"properties": {
"ip_address": {
"description": "The IP address from which the Mandate was accepted by the customer.",
"type": "string"
"accepted_at": {
"description": "The time at which the customer accepted the Mandate.",
"format": "unix-time",
"type": "integer"
},
"user_agent": {
"description": "The user agent of the browser from which the Mandate was accepted by the customer.",
"offline": {
"description": "If this is a Mandate accepted offline, this hash contains details about the offline acceptance.",
"properties": {},
"title": "offline_param",
"type": "object"
},
"online": {
"description": "If this is a Mandate accepted online, this hash contains details about the online acceptance.",
"properties": {
"ip_address": {
"description": "The IP address from which the Mandate was accepted by the customer.",
"type": "string"
},
"user_agent": {
"description": "The user agent of the browser from which the Mandate was accepted by the customer.",
"maxLength": 5000,
"type": "string"
}
},
"required": [
"ip_address",
"user_agent"
],
"title": "online_param",
"type": "object"
},
"type": {
"description": "The type of customer acceptance information included with the Mandate. One of `online` or `offline`.",
"enum": [
"offline",
"online"
],
"maxLength": 5000,
"type": "string"
}
},
"required": [
"ip_address",
"user_agent"
"type"
],
"title": "online_param",
"title": "customer_acceptance_param",
"type": "object"
},
"type": {
"description": "The type of customer acceptance information included with the Mandate. One of `online` or `offline`.",
"enum": [
"offline",
"online"
],
"maxLength": 5000,
"type": "string"
}
},
"required": [
"type"
"customer_acceptance"
],
"title": "customer_acceptance_param",
"title": "secret_key_param",
"type": "object"
},
{
"enum": [
""
],
"type": "string"
}
},
"required": [
"customer_acceptance"
],
"title": "secret_key_param",
"type": "object"
"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)."
},
"metadata": {
"additionalProperties": {
Expand Down Expand Up @@ -135575,6 +135585,12 @@
"title": "secret_key_param",
"type": "object"
},
{
"enum": [
""
],
"type": "string"
},
{
"properties": {
"customer_acceptance": {
Expand Down
108 changes: 59 additions & 49 deletions openapi/spec3.beta.sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125451,65 +125451,72 @@ paths:
type: string
type: array
mandate_data:
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).
properties:
customer_acceptance:
description: >-
This hash contains details about the customer acceptance
of the Mandate.
properties:
accepted_at:
description: The time at which the customer accepted the Mandate.
format: unix-time
type: integer
offline:
description: >-
If this is a Mandate accepted offline, this hash
contains details about the offline acceptance.
properties: {}
title: offline_param
type: object
online:
anyOf:
- properties:
customer_acceptance:
description: >-
If this is a Mandate accepted online, this hash
contains details about the online acceptance.
This hash contains details about the customer
acceptance of the Mandate.
properties:
ip_address:
accepted_at:
description: >-
The IP address from which the Mandate was
accepted by the customer.
type: string
user_agent:
The time at which the customer accepted the
Mandate.
format: unix-time
type: integer
offline:
description: >-
The user agent of the browser from which the
Mandate was accepted by the customer.
If this is a Mandate accepted offline, this hash
contains details about the offline acceptance.
properties: {}
title: offline_param
type: object
online:
description: >-
If this is a Mandate accepted online, this hash
contains details about the online acceptance.
properties:
ip_address:
description: >-
The IP address from which the Mandate was
accepted by the customer.
type: string
user_agent:
description: >-
The user agent of the browser from which the
Mandate was accepted by the customer.
maxLength: 5000
type: string
required:
- ip_address
- user_agent
title: online_param
type: object
type:
description: >-
The type of customer acceptance information
included with the Mandate. One of `online` or
`offline`.
enum:
- offline
- online
maxLength: 5000
type: string
required:
- ip_address
- user_agent
title: online_param
- type
title: customer_acceptance_param
type: object
type:
description: >-
The type of customer acceptance information included
with the Mandate. One of `online` or `offline`.
enum:
- offline
- online
maxLength: 5000
type: string
required:
- type
title: customer_acceptance_param
- customer_acceptance
title: secret_key_param
type: object
required:
- customer_acceptance
title: secret_key_param
type: object
- enum:
- ''
type: string
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).
metadata:
additionalProperties:
type: string
Expand Down Expand Up @@ -127944,6 +127951,9 @@ paths:
- customer_acceptance
title: secret_key_param
type: object
- enum:
- ''
type: string
- properties:
customer_acceptance:
description: >-
Expand Down
84 changes: 50 additions & 34 deletions openapi/spec3.json
Original file line number Diff line number Diff line change
Expand Up @@ -105587,57 +105587,67 @@
"type": "array"
},
"mandate_data": {
"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).",
"properties": {
"customer_acceptance": {
"anyOf": [
{
"properties": {
"accepted_at": {
"format": "unix-time",
"type": "integer"
},
"offline": {
"properties": {},
"title": "offline_param",
"type": "object"
},
"online": {
"customer_acceptance": {
"properties": {
"ip_address": {
"type": "string"
"accepted_at": {
"format": "unix-time",
"type": "integer"
},
"user_agent": {
"offline": {
"properties": {},
"title": "offline_param",
"type": "object"
},
"online": {
"properties": {
"ip_address": {
"type": "string"
},
"user_agent": {
"maxLength": 5000,
"type": "string"
}
},
"required": [
"ip_address",
"user_agent"
],
"title": "online_param",
"type": "object"
},
"type": {
"enum": [
"offline",
"online"
],
"maxLength": 5000,
"type": "string"
}
},
"required": [
"ip_address",
"user_agent"
"type"
],
"title": "online_param",
"title": "customer_acceptance_param",
"type": "object"
},
"type": {
"enum": [
"offline",
"online"
],
"maxLength": 5000,
"type": "string"
}
},
"required": [
"type"
"customer_acceptance"
],
"title": "customer_acceptance_param",
"title": "secret_key_param",
"type": "object"
},
{
"enum": [
""
],
"type": "string"
}
},
"required": [
"customer_acceptance"
],
"title": "secret_key_param",
"type": "object"
"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)."
},
"metadata": {
"additionalProperties": {
Expand Down Expand Up @@ -107730,6 +107740,12 @@
"title": "secret_key_param",
"type": "object"
},
{
"enum": [
""
],
"type": "string"
},
{
"properties": {
"customer_acceptance": {
Expand Down
Loading

0 comments on commit 5b230a0

Please sign in to comment.