From 835d97a387a306e011d83789cc343ce87e78effa Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Sun, 20 Aug 2023 04:48:53 +0000 Subject: [PATCH] Update OpenAPI specification --- openapi/spec3.beta.sdk.json | 98 ++++++++++++++++++-------------- openapi/spec3.beta.sdk.yaml | 108 ++++++++++++++++++++---------------- openapi/spec3.json | 84 ++++++++++++++++------------ openapi/spec3.sdk.json | 98 ++++++++++++++++++-------------- openapi/spec3.sdk.yaml | 108 ++++++++++++++++++++---------------- openapi/spec3.yaml | 73 +++++++++++++----------- 6 files changed, 322 insertions(+), 247 deletions(-) diff --git a/openapi/spec3.beta.sdk.json b/openapi/spec3.beta.sdk.json index ffe85e1d..fa7f07fc 100644 --- a/openapi/spec3.beta.sdk.json +++ b/openapi/spec3.beta.sdk.json @@ -103826,64 +103826,74 @@ "type": "string" }, "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/payment_intents/create#create_payment_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/payment_intents/create#create_payment_intent-confirm)." }, "metadata": { "additionalProperties": { @@ -110700,6 +110710,12 @@ "title": "secret_key_param", "type": "object" }, + { + "enum": [ + "" + ], + "type": "string" + }, { "properties": { "customer_acceptance": { diff --git a/openapi/spec3.beta.sdk.yaml b/openapi/spec3.beta.sdk.yaml index 154f0515..e6d741c7 100644 --- a/openapi/spec3.beta.sdk.yaml +++ b/openapi/spec3.beta.sdk.yaml @@ -95547,65 +95547,72 @@ paths: maxLength: 5000 type: string 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/payment_intents/create#create_payment_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/payment_intents/create#create_payment_intent-confirm). metadata: additionalProperties: type: string @@ -103976,6 +103983,9 @@ paths: - customer_acceptance title: secret_key_param type: object + - enum: + - '' + type: string - properties: customer_acceptance: description: >- diff --git a/openapi/spec3.json b/openapi/spec3.json index da43539e..1b4450c7 100644 --- a/openapi/spec3.json +++ b/openapi/spec3.json @@ -85743,57 +85743,67 @@ "type": "string" }, "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/payment_intents/create#create_payment_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/payment_intents/create#create_payment_intent-confirm)." }, "metadata": { "additionalProperties": { @@ -90670,6 +90680,12 @@ "title": "secret_key_param", "type": "object" }, + { + "enum": [ + "" + ], + "type": "string" + }, { "properties": { "customer_acceptance": { diff --git a/openapi/spec3.sdk.json b/openapi/spec3.sdk.json index 37f35e96..2c749cf9 100644 --- a/openapi/spec3.sdk.json +++ b/openapi/spec3.sdk.json @@ -87810,64 +87810,74 @@ "type": "string" }, "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/payment_intents/create#create_payment_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/payment_intents/create#create_payment_intent-confirm)." }, "metadata": { "additionalProperties": { @@ -93210,6 +93220,12 @@ "title": "secret_key_param", "type": "object" }, + { + "enum": [ + "" + ], + "type": "string" + }, { "properties": { "customer_acceptance": { diff --git a/openapi/spec3.sdk.yaml b/openapi/spec3.sdk.yaml index b164f57b..69d8c4e1 100644 --- a/openapi/spec3.sdk.yaml +++ b/openapi/spec3.sdk.yaml @@ -80491,65 +80491,72 @@ paths: maxLength: 5000 type: string 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/payment_intents/create#create_payment_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/payment_intents/create#create_payment_intent-confirm). metadata: additionalProperties: type: string @@ -87515,6 +87522,9 @@ paths: - customer_acceptance title: secret_key_param type: object + - enum: + - '' + type: string - properties: customer_acceptance: description: >- diff --git a/openapi/spec3.yaml b/openapi/spec3.yaml index 11681256..544fce3f 100644 --- a/openapi/spec3.yaml +++ b/openapi/spec3.yaml @@ -74503,46 +74503,50 @@ paths: maxLength: 5000 type: string 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/payment_intents/create#create_payment_intent-confirm). - properties: - customer_acceptance: - properties: - accepted_at: - format: unix-time - type: integer - offline: - properties: {} - title: offline_param - type: object - online: + anyOf: + - properties: + customer_acceptance: properties: - ip_address: - type: string - user_agent: + accepted_at: + format: unix-time + type: integer + 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 - title: online_param + - type + title: customer_acceptance_param type: object - type: - 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/payment_intents/create#create_payment_intent-confirm). metadata: additionalProperties: type: string @@ -78246,6 +78250,9 @@ paths: - customer_acceptance title: secret_key_param type: object + - enum: + - '' + type: string - properties: customer_acceptance: properties: