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 Jul 25, 2024
1 parent cfc30af commit 53746f8
Show file tree
Hide file tree
Showing 6 changed files with 465 additions and 0 deletions.
93 changes: 93 additions & 0 deletions openapi/spec3.beta.sdk.json
Original file line number Diff line number Diff line change
Expand Up @@ -8322,6 +8322,13 @@
"operation": "post",
"path": "/v1/checkout/sessions"
},
{
"method_name": "update",
"method_on": "service",
"method_type": "update",
"operation": "post",
"path": "/v1/checkout/sessions/{session}"
},
{
"method_name": "expire",
"method_on": "service",
Expand Down Expand Up @@ -92756,6 +92763,92 @@
"description": "Error response."
}
}
},
"post": {
"description": "<p>Updates a Session object.</p>",
"operationId": "PostCheckoutSessionsSession",
"parameters": [
{
"in": "path",
"name": "session",
"required": true,
"schema": {
"maxLength": 5000,
"type": "string"
},
"style": "simple"
}
],
"requestBody": {
"content": {
"application/x-www-form-urlencoded": {
"encoding": {
"expand": {
"explode": true,
"style": "deepObject"
},
"metadata": {
"explode": true,
"style": "deepObject"
}
},
"schema": {
"additionalProperties": false,
"properties": {
"expand": {
"description": "Specifies which fields in the response should be expanded.",
"items": {
"maxLength": 5000,
"type": "string"
},
"type": "array"
},
"metadata": {
"anyOf": [
{
"additionalProperties": {
"type": "string"
},
"type": "object"
},
{
"enum": [
""
],
"type": "string"
}
],
"description": "Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."
}
},
"type": "object"
}
}
},
"required": false
},
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/checkout.session"
}
}
},
"description": "Successful response."
},
"default": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error"
}
}
},
"description": "Error response."
}
}
}
},
"/v1/checkout/sessions/{session}/expire": {
Expand Down
66 changes: 66 additions & 0 deletions openapi/spec3.beta.sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7763,6 +7763,11 @@ components:
method_type: create
operation: post
path: /v1/checkout/sessions
- method_name: update
method_on: service
method_type: update
operation: post
path: '/v1/checkout/sessions/{session}'
- method_name: expire
method_on: service
method_type: custom
Expand Down Expand Up @@ -85105,6 +85110,67 @@ paths:
schema:
$ref: '#/components/schemas/error'
description: Error response.
post:
description: <p>Updates a Session object.</p>
operationId: PostCheckoutSessionsSession
parameters:
- in: path
name: session
required: true
schema:
maxLength: 5000
type: string
style: simple
requestBody:
content:
application/x-www-form-urlencoded:
encoding:
expand:
explode: true
style: deepObject
metadata:
explode: true
style: deepObject
schema:
additionalProperties: false
properties:
expand:
description: Specifies which fields in the response should be expanded.
items:
maxLength: 5000
type: string
type: array
metadata:
anyOf:
- additionalProperties:
type: string
type: object
- enum:
- ''
type: string
description: >-
Set of [key-value
pairs](https://stripe.com/docs/api/metadata) that you can
attach to an object. This can be useful for storing
additional information about the object in a structured
format. Individual keys can be unset by posting an empty
value to them. All keys can be unset by posting an empty
value to `metadata`.
type: object
required: false
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/checkout.session'
description: Successful response.
default:
content:
application/json:
schema:
$ref: '#/components/schemas/error'
description: Error response.
'/v1/checkout/sessions/{session}/expire':
post:
description: >-
Expand Down
86 changes: 86 additions & 0 deletions openapi/spec3.json
Original file line number Diff line number Diff line change
Expand Up @@ -68259,6 +68259,92 @@
"description": "Error response."
}
}
},
"post": {
"description": "<p>Updates a Session object.</p>",
"operationId": "PostCheckoutSessionsSession",
"parameters": [
{
"in": "path",
"name": "session",
"required": true,
"schema": {
"maxLength": 5000,
"type": "string"
},
"style": "simple"
}
],
"requestBody": {
"content": {
"application/x-www-form-urlencoded": {
"encoding": {
"expand": {
"explode": true,
"style": "deepObject"
},
"metadata": {
"explode": true,
"style": "deepObject"
}
},
"schema": {
"additionalProperties": false,
"properties": {
"expand": {
"description": "Specifies which fields in the response should be expanded.",
"items": {
"maxLength": 5000,
"type": "string"
},
"type": "array"
},
"metadata": {
"anyOf": [
{
"additionalProperties": {
"type": "string"
},
"type": "object"
},
{
"enum": [
""
],
"type": "string"
}
],
"description": "Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."
}
},
"type": "object"
}
}
},
"required": false
},
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/checkout.session"
}
}
},
"description": "Successful response."
},
"default": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error"
}
}
},
"description": "Error response."
}
}
}
},
"/v1/checkout/sessions/{session}/expire": {
Expand Down
93 changes: 93 additions & 0 deletions openapi/spec3.sdk.json
Original file line number Diff line number Diff line change
Expand Up @@ -7000,6 +7000,13 @@
"operation": "post",
"path": "/v1/checkout/sessions"
},
{
"method_name": "update",
"method_on": "service",
"method_type": "update",
"operation": "post",
"path": "/v1/checkout/sessions/{session}"
},
{
"method_name": "expire",
"method_on": "service",
Expand Down Expand Up @@ -77918,6 +77925,92 @@
"description": "Error response."
}
}
},
"post": {
"description": "<p>Updates a Session object.</p>",
"operationId": "PostCheckoutSessionsSession",
"parameters": [
{
"in": "path",
"name": "session",
"required": true,
"schema": {
"maxLength": 5000,
"type": "string"
},
"style": "simple"
}
],
"requestBody": {
"content": {
"application/x-www-form-urlencoded": {
"encoding": {
"expand": {
"explode": true,
"style": "deepObject"
},
"metadata": {
"explode": true,
"style": "deepObject"
}
},
"schema": {
"additionalProperties": false,
"properties": {
"expand": {
"description": "Specifies which fields in the response should be expanded.",
"items": {
"maxLength": 5000,
"type": "string"
},
"type": "array"
},
"metadata": {
"anyOf": [
{
"additionalProperties": {
"type": "string"
},
"type": "object"
},
{
"enum": [
""
],
"type": "string"
}
],
"description": "Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."
}
},
"type": "object"
}
}
},
"required": false
},
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/checkout.session"
}
}
},
"description": "Successful response."
},
"default": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/error"
}
}
},
"description": "Error response."
}
}
}
},
"/v1/checkout/sessions/{session}/expire": {
Expand Down
Loading

0 comments on commit 53746f8

Please sign in to comment.