diff --git a/embedded/openapi/spec3.beta.sdk.json b/embedded/openapi/spec3.beta.sdk.json index b237ccfd..5e2a940f 100644 --- a/embedded/openapi/spec3.beta.sdk.json +++ b/embedded/openapi/spec3.beta.sdk.json @@ -12519,23 +12519,6 @@ "customer_entitlement" ], "type": "string" - }, - "quantity": { - "anyOf": [ - { - "$ref": "#/components/schemas/customer_entitlement_quantity" - } - ], - "description": "Contains information about entitlements relating to features with type=quantity. Required when the feature has type=quantity.", - "nullable": true - }, - "type": { - "description": "The type of feature.", - "enum": [ - "quantity", - "switch" - ], - "type": "string" } }, "required": [ @@ -12543,15 +12526,11 @@ "id", "livemode", "lookup_key", - "object", - "quantity", - "type" + "object" ], "title": "CustomerEntitlement", "type": "object", - "x-expandableFields": [ - "quantity" - ], + "x-expandableFields": [], "x-resourceId": "customer_entitlement", "x-stripeOperations": [ { @@ -12568,21 +12547,6 @@ "in_package": "" } }, - "customer_entitlement_quantity": { - "description": "", - "properties": { - "total_available": { - "description": "The total quantity available to the customer.", - "type": "integer" - } - }, - "required": [ - "total_available" - ], - "title": "CustomerEntitlementQuantity", - "type": "object", - "x-expandableFields": [] - }, "customer_entitlement_summary": { "description": "A summary of a customer's entitlements.", "properties": { @@ -14998,232 +14962,6 @@ "type": "object", "x-expandableFields": [] }, - "entitlement_event_grant": { - "description": "", - "properties": { - "expires_at": { - "description": "When manually creating a grant entitlement event, you can make it a temporary grant by setting it to expire.", - "format": "unix-time", - "type": "integer" - }, - "granted_by": { - "description": "Who/what created this grant entitlement event.", - "enum": [ - "subscription_item", - "user" - ], - "type": "string" - }, - "subscription_item": { - "anyOf": [ - { - "$ref": "#/components/schemas/entitlement_event_subscription_item" - } - ], - "description": "If this entitlement event was created by a subscription_item, this will contains information about the subscription_item.", - "nullable": true - } - }, - "required": [ - "expires_at", - "granted_by", - "subscription_item" - ], - "title": "EntitlementEventGrant", - "type": "object", - "x-expandableFields": [ - "subscription_item" - ] - }, - "entitlement_event_quantity": { - "description": "", - "properties": { - "units": { - "description": "When granting or revoking an entitlement to a type=quantity feature, you must specify the number of units you're granting/revoking. When the entitlement event type=grant, this number increments the total quantity available to the customer, and when type=revoke it decrements the total quantity available to the customer.", - "type": "integer" - } - }, - "required": [ - "units" - ], - "title": "EntitlementEventQuantity", - "type": "object", - "x-expandableFields": [] - }, - "entitlement_event_revoke": { - "description": "", - "properties": { - "expires_at": { - "description": "A revoke entitlement event will always expire at the same time as the grant it is revoking.", - "format": "unix-time", - "type": "integer" - }, - "revoked_by": { - "description": "Who/what created this revoke entitlement event.", - "enum": [ - "subscription_item", - "user" - ], - "type": "string" - }, - "subscription_item": { - "anyOf": [ - { - "$ref": "#/components/schemas/entitlement_event_subscription_item" - } - ], - "description": "If this entitlement event was created by a subscription_item, this will contains information about the subscription_item.", - "nullable": true - } - }, - "required": [ - "expires_at", - "revoked_by", - "subscription_item" - ], - "title": "EntitlementEventRevoke", - "type": "object", - "x-expandableFields": [ - "subscription_item" - ] - }, - "entitlement_event_subscription_item": { - "description": "", - "properties": { - "item_quantity": { - "description": "The subscription line item quantity.", - "type": "integer" - }, - "price": { - "description": "The price for the product that contains the feature for this entitlement event.", - "maxLength": 5000, - "type": "string" - }, - "product": { - "description": "The product that contains the feature for this entitlement event.", - "maxLength": 5000, - "type": "string" - }, - "subscription": { - "description": "The subscription that created this entitlement event.", - "maxLength": 5000, - "type": "string" - }, - "subscription_item": { - "description": "The subscription item that created this entitlement event.", - "maxLength": 5000, - "type": "string" - } - }, - "required": [ - "item_quantity", - "price", - "product", - "subscription", - "subscription_item" - ], - "title": "EntitlementEventSubscriptionItem", - "type": "object", - "x-expandableFields": [] - }, - "entitlements.event": { - "description": "An entitlement event either grants or revokes an entitlement to a feature for a customer.", - "properties": { - "customer": { - "description": "The customer that is being granted or revoked entitlement to/from a feature.", - "maxLength": 5000, - "type": "string" - }, - "feature": { - "description": "The feature that the customer is being granted/revoked entitlement to/from.", - "maxLength": 5000, - "type": "string" - }, - "grant": { - "anyOf": [ - { - "$ref": "#/components/schemas/entitlement_event_grant" - } - ], - "description": "Contains information about type=grant entitlement event.", - "nullable": true - }, - "id": { - "description": "Unique identifier for the object.", - "maxLength": 5000, - "type": "string" - }, - "livemode": { - "description": "Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.", - "type": "boolean" - }, - "object": { - "description": "String representing the object's type. Objects of the same type share the same value.", - "enum": [ - "entitlements.event" - ], - "type": "string" - }, - "quantity": { - "anyOf": [ - { - "$ref": "#/components/schemas/entitlement_event_quantity" - } - ], - "description": "Contains information about entitlement events relating to features with type=quantity. Required when the feature has type=quantity.", - "nullable": true - }, - "revoke": { - "anyOf": [ - { - "$ref": "#/components/schemas/entitlement_event_revoke" - } - ], - "description": "Contains information about type=revoke entitlement event.", - "nullable": true - }, - "type": { - "description": "Whether the event is a grant or revocation of the feature.", - "enum": [ - "grant", - "revoke" - ], - "type": "string" - } - }, - "required": [ - "customer", - "feature", - "grant", - "id", - "livemode", - "object", - "quantity", - "revoke", - "type" - ], - "title": "EntitlementEvent", - "type": "object", - "x-expandableFields": [ - "grant", - "quantity", - "revoke" - ], - "x-resourceId": "entitlements.event", - "x-stripeOperations": [ - { - "method_name": "create", - "method_on": "service", - "method_type": "create", - "operation": "post", - "path": "/v1/entitlements/events" - } - ], - "x-stripeResource": { - "class_name": "Event", - "in_package": "Entitlements" - } - }, "entitlements.feature": { "description": "A feature represents a monetizable ability or functionality in your system.\nFeatures can be assigned to products, and when those products are purchased, Stripe will create an entitlement to the feature for the purchasing customer.", "properties": { @@ -15252,23 +14990,6 @@ "entitlements.feature" ], "type": "string" - }, - "quantity": { - "anyOf": [ - { - "$ref": "#/components/schemas/feature_quantity" - } - ], - "description": "Contains information about type=quantity features. This is required when type=quantity.", - "nullable": true - }, - "type": { - "description": "The type of feature.", - "enum": [ - "quantity", - "switch" - ], - "type": "string" } }, "required": [ @@ -15276,15 +14997,11 @@ "livemode", "lookup_key", "name", - "object", - "quantity", - "type" + "object" ], "title": "Feature", "type": "object", - "x-expandableFields": [ - "quantity" - ], + "x-expandableFields": [], "x-resourceId": "entitlements.feature", "x-stripeOperations": [ { @@ -15936,21 +15653,6 @@ "errors" ] }, - "feature_quantity": { - "description": "", - "properties": { - "units_available": { - "description": "The quantity of units made available by this feature. This quantity will be multiplied by the line_item quantity for line_items that contain this feature.", - "type": "integer" - } - }, - "required": [ - "units_available" - ], - "title": "FeatureQuantity", - "type": "object", - "x-expandableFields": [] - }, "fee": { "description": "", "properties": { @@ -94664,121 +94366,6 @@ } } }, - "/v1/entitlements/events": { - "post": { - "description": "
Create an entitlement event manually, outside of the entitlement events automatically created by Stripe lifecycle events.
", - "operationId": "PostEntitlementsEvents", - "requestBody": { - "content": { - "application/x-www-form-urlencoded": { - "encoding": { - "expand": { - "explode": true, - "style": "deepObject" - }, - "grant": { - "explode": true, - "style": "deepObject" - }, - "quantity": { - "explode": true, - "style": "deepObject" - } - }, - "schema": { - "additionalProperties": false, - "properties": { - "customer": { - "description": "The customer that is being granted or revoked entitlement to/from a feature.", - "maxLength": 5000, - "type": "string" - }, - "expand": { - "description": "Specifies which fields in the response should be expanded.", - "items": { - "maxLength": 5000, - "type": "string" - }, - "type": "array" - }, - "feature": { - "description": "The feature that the customer is being granted/revoked entitlement to/from.", - "maxLength": 5000, - "type": "string" - }, - "grant": { - "description": "Contains information about type=grant entitlement event.", - "properties": { - "expires_at": { - "description": "When manually creating a grant entitlement event, you can make it a temporary grant by setting it to expire.", - "format": "unix-time", - "type": "integer" - } - }, - "required": [ - "expires_at" - ], - "title": "grant_param", - "type": "object" - }, - "quantity": { - "description": "Contains information about entitlement events relating to features with type=quantity. Required when the feature has type=quantity.", - "properties": { - "units": { - "description": "When granting or revoking an entitlement to a type=quantity feature, you must specify the number of units you're granting/revoking. When the entitlement event type=grant, this number increments the total quantity available to the customer, and when type=revoke it decrements the total quantity available to the customer.", - "type": "integer" - } - }, - "required": [ - "units" - ], - "title": "quantity_param", - "type": "object" - }, - "type": { - "description": "Whether the event is a grant or revocation of the feature.", - "enum": [ - "grant", - "revoke" - ], - "type": "string" - } - }, - "required": [ - "customer", - "feature", - "type" - ], - "type": "object" - } - } - }, - "required": true - }, - "responses": { - "200": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/entitlements.event" - } - } - }, - "description": "Successful response." - }, - "default": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/error" - } - } - }, - "description": "Error response." - } - } - } - }, "/v1/entitlements/features": { "get": { "description": "Retrieve a list of features
", @@ -94914,10 +94501,6 @@ "expand": { "explode": true, "style": "deepObject" - }, - "quantity": { - "explode": true, - "style": "deepObject" } }, "schema": { @@ -94940,34 +94523,11 @@ "description": "The feature's name, for your own purpose, not meant to be displayable to the customer.", "maxLength": 80, "type": "string" - }, - "quantity": { - "description": "Contains information about type=quantity features. This is required when type=quantity.", - "properties": { - "units_available": { - "description": "The quantity of units made available by this feature. This quantity will be multiplied by the line_item quantity for line_items that contain this feature.", - "type": "integer" - } - }, - "required": [ - "units_available" - ], - "title": "feature_quantity_param", - "type": "object" - }, - "type": { - "description": "The type of feature.", - "enum": [ - "quantity", - "switch" - ], - "type": "string" } }, "required": [ "lookup_key", - "name", - "type" + "name" ], "type": "object" }