From f96861ba001b56d61e377931c44a6d33f977bc09 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 29 Mar 2024 17:29:16 +0000 Subject: [PATCH] Update OpenAPI specification --- openapi/spec3.beta.sdk.json | 94 +++++++++++++++++++++++++++++++++++++ openapi/spec3.beta.sdk.yaml | 70 +++++++++++++++++++++++++++ 2 files changed, 164 insertions(+) diff --git a/openapi/spec3.beta.sdk.json b/openapi/spec3.beta.sdk.json index e62513bf..c1bd9406 100644 --- a/openapi/spec3.beta.sdk.json +++ b/openapi/spec3.beta.sdk.json @@ -15550,6 +15550,13 @@ "method_type": "create", "operation": "post", "path": "/v1/entitlements/features" + }, + { + "method_name": "update", + "method_on": "service", + "method_type": "update", + "operation": "post", + "path": "/v1/entitlements/features/{id}" } ], "x-stripeResource": { @@ -96819,6 +96826,93 @@ } } }, + "/v1/entitlements/features/{id}": { + "post": { + "description": "

Update a feature’s metadata or permanently deactivate it.

", + "operationId": "PostEntitlementsFeaturesId", + "parameters": [ + { + "in": "path", + "name": "id", + "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": { + "active": { + "description": "Inactive features cannot be attached to new products and will not be returned from the features list endpoint.", + "type": "boolean" + }, + "expand": { + "description": "Specifies which fields in the response should be expanded.", + "items": { + "maxLength": 5000, + "type": "string" + }, + "type": "array" + }, + "metadata": { + "additionalProperties": { + "type": "string" + }, + "description": "Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.", + "type": "object" + }, + "name": { + "description": "The feature's name, for your own purpose, not meant to be displayable to the customer.", + "maxLength": 80, + "type": "string" + } + }, + "type": "object" + } + } + }, + "required": false + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/entitlements.feature" + } + } + }, + "description": "Successful response." + }, + "default": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error" + } + } + }, + "description": "Error response." + } + } + } + }, "/v1/ephemeral_keys": { "post": { "description": "

Creates a short-lived API key for a given resource.

", diff --git a/openapi/spec3.beta.sdk.yaml b/openapi/spec3.beta.sdk.yaml index 54bc1515..80c6c937 100644 --- a/openapi/spec3.beta.sdk.yaml +++ b/openapi/spec3.beta.sdk.yaml @@ -14225,6 +14225,11 @@ components: method_type: create operation: post path: /v1/entitlements/features + - method_name: update + method_on: service + method_type: update + operation: post + path: '/v1/entitlements/features/{id}' x-stripeResource: class_name: Feature has_collection_class: true @@ -87858,6 +87863,71 @@ paths: schema: $ref: '#/components/schemas/error' description: Error response. + '/v1/entitlements/features/{id}': + post: + description:

Update a feature’s metadata or permanently deactivate it.

+ operationId: PostEntitlementsFeaturesId + parameters: + - in: path + name: id + 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: + active: + description: >- + Inactive features cannot be attached to new products and + will not be returned from the features list endpoint. + type: boolean + expand: + description: Specifies which fields in the response should be expanded. + items: + maxLength: 5000 + type: string + type: array + metadata: + additionalProperties: + type: string + description: >- + Set of key-value pairs that you can attach to an object. + This can be useful for storing additional information about + the object in a structured format. + type: object + name: + description: >- + The feature's name, for your own purpose, not meant to be + displayable to the customer. + maxLength: 80 + type: string + type: object + required: false + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/entitlements.feature' + description: Successful response. + default: + content: + application/json: + schema: + $ref: '#/components/schemas/error' + description: Error response. /v1/ephemeral_keys: post: description:

Creates a short-lived API key for a given resource.