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 Mar 29, 2024
1 parent 2ba2a8a commit f96861b
Show file tree
Hide file tree
Showing 2 changed files with 164 additions and 0 deletions.
94 changes: 94 additions & 0 deletions openapi/spec3.beta.sdk.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -96819,6 +96826,93 @@
}
}
},
"/v1/entitlements/features/{id}": {
"post": {
"description": "<p>Update a feature’s metadata or permanently deactivate it.</p>",
"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": "<p>Creates a short-lived API key for a given resource.</p>",
Expand Down
70 changes: 70 additions & 0 deletions openapi/spec3.beta.sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -87858,6 +87863,71 @@ paths:
schema:
$ref: '#/components/schemas/error'
description: Error response.
'/v1/entitlements/features/{id}':
post:
description: <p>Update a feature’s metadata or permanently deactivate it.</p>
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: <p>Creates a short-lived API key for a given resource.</p>
Expand Down

0 comments on commit f96861b

Please sign in to comment.