Skip to content

Commit e8c59fc

Browse files
OpenAPI Update (#940)
Update OpenAPI for 53746f899ccd8d06cb4aac0776f0cbdceb99d5ef Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
1 parent f880e55 commit e8c59fc

File tree

2 files changed

+179
-0
lines changed

2 files changed

+179
-0
lines changed

embedded/openapi/spec3.beta.sdk.json

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8322,6 +8322,13 @@
83228322
"operation": "post",
83238323
"path": "/v1/checkout/sessions"
83248324
},
8325+
{
8326+
"method_name": "update",
8327+
"method_on": "service",
8328+
"method_type": "update",
8329+
"operation": "post",
8330+
"path": "/v1/checkout/sessions/{session}"
8331+
},
83258332
{
83268333
"method_name": "expire",
83278334
"method_on": "service",
@@ -92756,6 +92763,92 @@
9275692763
"description": "Error response."
9275792764
}
9275892765
}
92766+
},
92767+
"post": {
92768+
"description": "<p>Updates a Session object.</p>",
92769+
"operationId": "PostCheckoutSessionsSession",
92770+
"parameters": [
92771+
{
92772+
"in": "path",
92773+
"name": "session",
92774+
"required": true,
92775+
"schema": {
92776+
"maxLength": 5000,
92777+
"type": "string"
92778+
},
92779+
"style": "simple"
92780+
}
92781+
],
92782+
"requestBody": {
92783+
"content": {
92784+
"application/x-www-form-urlencoded": {
92785+
"encoding": {
92786+
"expand": {
92787+
"explode": true,
92788+
"style": "deepObject"
92789+
},
92790+
"metadata": {
92791+
"explode": true,
92792+
"style": "deepObject"
92793+
}
92794+
},
92795+
"schema": {
92796+
"additionalProperties": false,
92797+
"properties": {
92798+
"expand": {
92799+
"description": "Specifies which fields in the response should be expanded.",
92800+
"items": {
92801+
"maxLength": 5000,
92802+
"type": "string"
92803+
},
92804+
"type": "array"
92805+
},
92806+
"metadata": {
92807+
"anyOf": [
92808+
{
92809+
"additionalProperties": {
92810+
"type": "string"
92811+
},
92812+
"type": "object"
92813+
},
92814+
{
92815+
"enum": [
92816+
""
92817+
],
92818+
"type": "string"
92819+
}
92820+
],
92821+
"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`."
92822+
}
92823+
},
92824+
"type": "object"
92825+
}
92826+
}
92827+
},
92828+
"required": false
92829+
},
92830+
"responses": {
92831+
"200": {
92832+
"content": {
92833+
"application/json": {
92834+
"schema": {
92835+
"$ref": "#/components/schemas/checkout.session"
92836+
}
92837+
}
92838+
},
92839+
"description": "Successful response."
92840+
},
92841+
"default": {
92842+
"content": {
92843+
"application/json": {
92844+
"schema": {
92845+
"$ref": "#/components/schemas/error"
92846+
}
92847+
}
92848+
},
92849+
"description": "Error response."
92850+
}
92851+
}
9275992852
}
9276092853
},
9276192854
"/v1/checkout/sessions/{session}/expire": {

embedded/openapi/spec3.json

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68259,6 +68259,92 @@
6825968259
"description": "Error response."
6826068260
}
6826168261
}
68262+
},
68263+
"post": {
68264+
"description": "<p>Updates a Session object.</p>",
68265+
"operationId": "PostCheckoutSessionsSession",
68266+
"parameters": [
68267+
{
68268+
"in": "path",
68269+
"name": "session",
68270+
"required": true,
68271+
"schema": {
68272+
"maxLength": 5000,
68273+
"type": "string"
68274+
},
68275+
"style": "simple"
68276+
}
68277+
],
68278+
"requestBody": {
68279+
"content": {
68280+
"application/x-www-form-urlencoded": {
68281+
"encoding": {
68282+
"expand": {
68283+
"explode": true,
68284+
"style": "deepObject"
68285+
},
68286+
"metadata": {
68287+
"explode": true,
68288+
"style": "deepObject"
68289+
}
68290+
},
68291+
"schema": {
68292+
"additionalProperties": false,
68293+
"properties": {
68294+
"expand": {
68295+
"description": "Specifies which fields in the response should be expanded.",
68296+
"items": {
68297+
"maxLength": 5000,
68298+
"type": "string"
68299+
},
68300+
"type": "array"
68301+
},
68302+
"metadata": {
68303+
"anyOf": [
68304+
{
68305+
"additionalProperties": {
68306+
"type": "string"
68307+
},
68308+
"type": "object"
68309+
},
68310+
{
68311+
"enum": [
68312+
""
68313+
],
68314+
"type": "string"
68315+
}
68316+
],
68317+
"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`."
68318+
}
68319+
},
68320+
"type": "object"
68321+
}
68322+
}
68323+
},
68324+
"required": false
68325+
},
68326+
"responses": {
68327+
"200": {
68328+
"content": {
68329+
"application/json": {
68330+
"schema": {
68331+
"$ref": "#/components/schemas/checkout.session"
68332+
}
68333+
}
68334+
},
68335+
"description": "Successful response."
68336+
},
68337+
"default": {
68338+
"content": {
68339+
"application/json": {
68340+
"schema": {
68341+
"$ref": "#/components/schemas/error"
68342+
}
68343+
}
68344+
},
68345+
"description": "Error response."
68346+
}
68347+
}
6826268348
}
6826368349
},
6826468350
"/v1/checkout/sessions/{session}/expire": {

0 commit comments

Comments
 (0)