diff --git a/embedded/openapi/spec3.beta.sdk.json b/embedded/openapi/spec3.beta.sdk.json index 0f2392b3..a3f89650 100644 --- a/embedded/openapi/spec3.beta.sdk.json +++ b/embedded/openapi/spec3.beta.sdk.json @@ -12007,6 +12007,9 @@ "maxLength": 5000, "type": "string" }, + "components": { + "$ref": "#/components/schemas/customer_session_resource_components" + }, "created": { "description": "Time at which the object was created. Measured in seconds since the Unix epoch.", "format": "unix-time", @@ -12059,6 +12062,7 @@ "title": "CustomerSessionResourceCustomerSession", "type": "object", "x-expandableFields": [ + "components", "customer" ], "x-resourceId": "customer_session", @@ -12076,6 +12080,118 @@ "in_package": "" } }, + "customer_session_resource_components": { + "description": "Configuration for the components supported by this customer session.", + "properties": { + "payment_element": { + "$ref": "#/components/schemas/customer_session_resource_components_resource_payment_element" + }, + "pricing_table": { + "$ref": "#/components/schemas/customer_session_resource_components_resource_pricing_table" + } + }, + "title": "CustomerSessionResourceComponents", + "type": "object", + "x-expandableFields": [ + "payment_element", + "pricing_table" + ], + "x-stripeResource": { + "class_name": "Components", + "in_package": "" + } + }, + "customer_session_resource_components_resource_payment_element": { + "description": "This hash contains whether the payment element is enabled and the features it supports.", + "properties": { + "enabled": { + "description": "Whether the payment element is enabled.", + "type": "boolean" + }, + "features": { + "anyOf": [ + { + "$ref": "#/components/schemas/customer_session_resource_components_resource_payment_element_resource_features" + } + ], + "description": "This hash contains the features the Payment Element supports.", + "nullable": true + } + }, + "required": [ + "enabled", + "features" + ], + "title": "CustomerSessionResourceComponentsResourcePaymentElement", + "type": "object", + "x-expandableFields": [ + "features" + ], + "x-stripeResource": { + "class_name": "PaymentElement", + "in_package": "" + } + }, + "customer_session_resource_components_resource_payment_element_resource_features": { + "description": "This hash contains the features the Payment Element supports.", + "properties": { + "payment_method_detach": { + "description": "Whether the payment element supports detaching payment methods.", + "enum": [ + "auto", + "never" + ], + "type": "string" + }, + "payment_method_set_as_customer_default": { + "description": "Whether the payment element supports setting payment methods as the customer's default.", + "enum": [ + "auto", + "never" + ], + "type": "string" + }, + "payment_method_update": { + "description": "Whether the payment element supports updating payment methods.", + "enum": [ + "auto", + "never" + ], + "type": "string" + } + }, + "required": [ + "payment_method_detach", + "payment_method_set_as_customer_default", + "payment_method_update" + ], + "title": "CustomerSessionResourceComponentsResourcePaymentElementResourceFeatures", + "type": "object", + "x-expandableFields": [], + "x-stripeResource": { + "class_name": "Features", + "in_package": "" + } + }, + "customer_session_resource_components_resource_pricing_table": { + "description": "This hash contains whether the pricing table is enabled.", + "properties": { + "enabled": { + "description": "Whether the pricing table is enabled.", + "type": "boolean" + } + }, + "required": [ + "enabled" + ], + "title": "CustomerSessionResourceComponentsResourcePricingTable", + "type": "object", + "x-expandableFields": [], + "x-stripeResource": { + "class_name": "PricingTable", + "in_package": "" + } + }, "customer_tax": { "description": "", "properties": { @@ -88035,6 +88151,10 @@ "content": { "application/x-www-form-urlencoded": { "encoding": { + "components": { + "explode": true, + "style": "deepObject" + }, "expand": { "explode": true, "style": "deepObject" @@ -88043,6 +88163,72 @@ "schema": { "additionalProperties": false, "properties": { + "components": { + "description": "Configuration for each component.", + "properties": { + "payment_element": { + "description": "Configuration for the payment element.", + "properties": { + "enabled": { + "description": "Whether the payment element is enabled.", + "type": "boolean" + }, + "features": { + "description": "This hash defines whether the payment element supports certain features.", + "properties": { + "payment_method_detach": { + "description": "Whether the payment element supports detaching a payment method.", + "enum": [ + "auto", + "never" + ], + "type": "string" + }, + "payment_method_set_as_customer_default": { + "description": "Whether the payment element supports setting a payment method as the customer's default.", + "enum": [ + "auto", + "never" + ], + "type": "string" + }, + "payment_method_update": { + "description": "Whether the payment element supports updating a payment method.", + "enum": [ + "auto", + "never" + ], + "type": "string" + } + }, + "title": "features_param", + "type": "object" + } + }, + "required": [ + "enabled" + ], + "title": "payment_element_param", + "type": "object" + }, + "pricing_table": { + "description": "Configuration for the pricing table.", + "properties": { + "enabled": { + "description": "Whether pricing table is enabled.", + "type": "boolean" + } + }, + "required": [ + "enabled" + ], + "title": "pricing_table_param", + "type": "object" + } + }, + "title": "components", + "type": "object" + }, "customer": { "description": "The ID of an existing customer for which to create the customer session.", "maxLength": 5000, @@ -88058,6 +88244,7 @@ } }, "required": [ + "components", "customer" ], "type": "object"