From 6f470a3b537cfcc714848f30cf70b1453db43872 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 28 Jul 2023 13:53:15 +0000 Subject: [PATCH] Update OpenAPI specification --- openapi/spec3.beta.sdk.json | 2 +- openapi/spec3.beta.sdk.yaml | 2 +- openapi/spec3.json | 27 +++++++++++++++++++++++++++ openapi/spec3.sdk.json | 31 +++++++++++++++++++++++++++++++ openapi/spec3.sdk.yaml | 26 ++++++++++++++++++++++++++ openapi/spec3.yaml | 23 +++++++++++++++++++++++ 6 files changed, 109 insertions(+), 2 deletions(-) diff --git a/openapi/spec3.beta.sdk.json b/openapi/spec3.beta.sdk.json index 5de2f8dc..d4bfe93f 100644 --- a/openapi/spec3.beta.sdk.json +++ b/openapi/spec3.beta.sdk.json @@ -48245,7 +48245,7 @@ "maxLength": 500, "type": "string" }, - "description": "Set of [key-value pairs](https://stripe.com/docs/api/metadata) that will reflect the metadata of the subscription at the time of invoice creation. *Note: This attribute is populated only for invoices created on or after June 28, 2023.*", + "description": "Set of [key-value pairs](https://stripe.com/docs/api/metadata) that will reflect the metadata of the subscription at the time of invoice creation. *Note: This attribute is populated only for invoices created on or after June 29, 2023.*", "nullable": true, "type": "object" }, diff --git a/openapi/spec3.beta.sdk.yaml b/openapi/spec3.beta.sdk.yaml index 236f6e10..5304e24f 100644 --- a/openapi/spec3.beta.sdk.yaml +++ b/openapi/spec3.beta.sdk.yaml @@ -43909,7 +43909,7 @@ components: Set of [key-value pairs](https://stripe.com/docs/api/metadata) that will reflect the metadata of the subscription at the time of invoice creation. *Note: This attribute is populated only for invoices - created on or after June 28, 2023.* + created on or after June 29, 2023.* nullable: true type: object pause_collection: diff --git a/openapi/spec3.json b/openapi/spec3.json index 19fb7e0c..4c8c9cd1 100644 --- a/openapi/spec3.json +++ b/openapi/spec3.json @@ -11626,6 +11626,15 @@ ] } }, + "subscription_details": { + "anyOf": [ + { + "$ref": "#/components/schemas/subscription_details_data" + } + ], + "description": "Details about the subscription that created this invoice.", + "nullable": true + }, "subscription_proration_date": { "description": "Only set for upcoming invoices that preview prorations. The time used to calculate prorations.", "type": "integer" @@ -11765,6 +11774,7 @@ "shipping_details", "status_transitions", "subscription", + "subscription_details", "test_clock", "threshold_reason", "total_discount_amounts", @@ -35284,6 +35294,23 @@ "type": "object", "x-expandableFields": [] }, + "subscription_details_data": { + "description": "", + "properties": { + "metadata": { + "additionalProperties": { + "maxLength": 500, + "type": "string" + }, + "description": "Set of [key-value pairs](https://stripe.com/docs/api/metadata) that will reflect the metadata of the subscription at the time of invoice creation. *Note: This attribute is populated only for invoices created on or after June 29, 2023.*", + "nullable": true, + "type": "object" + } + }, + "title": "SubscriptionDetailsData", + "type": "object", + "x-expandableFields": [] + }, "subscription_item": { "description": "Subscription items allow you to create customer subscriptions with more than\none plan, making it easy to represent complex billing relationships.", "properties": { diff --git a/openapi/spec3.sdk.json b/openapi/spec3.sdk.json index 45a0a01d..5dc4679f 100644 --- a/openapi/spec3.sdk.json +++ b/openapi/spec3.sdk.json @@ -14119,6 +14119,15 @@ ] } }, + "subscription_details": { + "anyOf": [ + { + "$ref": "#/components/schemas/subscription_details_data" + } + ], + "description": "Details about the subscription that created this invoice.", + "nullable": true + }, "subscription_proration_date": { "description": "Only set for upcoming invoices that preview prorations. The time used to calculate prorations.", "type": "integer" @@ -14305,6 +14314,7 @@ "shipping_details", "status_transitions", "subscription", + "subscription_details", "test_clock", "threshold_reason", "total_discount_amounts", @@ -42317,6 +42327,27 @@ "in_package": "" } }, + "subscription_details_data": { + "description": "", + "properties": { + "metadata": { + "additionalProperties": { + "maxLength": 500, + "type": "string" + }, + "description": "Set of [key-value pairs](https://stripe.com/docs/api/metadata) that will reflect the metadata of the subscription at the time of invoice creation. *Note: This attribute is populated only for invoices created on or after June 29, 2023.*", + "nullable": true, + "type": "object" + } + }, + "title": "SubscriptionDetailsData", + "type": "object", + "x-expandableFields": [], + "x-stripeResource": { + "class_name": "SubscriptionDetailsData", + "in_package": "" + } + }, "subscription_item": { "description": "Subscription items allow you to create customer subscriptions with more than\none plan, making it easy to represent complex billing relationships.", "properties": { diff --git a/openapi/spec3.sdk.yaml b/openapi/spec3.sdk.yaml index 6be7dd33..6cf240a5 100644 --- a/openapi/spec3.sdk.yaml +++ b/openapi/spec3.sdk.yaml @@ -13211,6 +13211,11 @@ components: x-expansionResources: oneOf: - $ref: '#/components/schemas/subscription' + subscription_details: + anyOf: + - $ref: '#/components/schemas/subscription_details_data' + description: Details about the subscription that created this invoice. + nullable: true subscription_proration_date: description: >- Only set for upcoming invoices that preview prorations. The time @@ -13390,6 +13395,7 @@ components: - shipping_details - status_transitions - subscription + - subscription_details - test_clock - threshold_reason - total_discount_amounts @@ -38723,6 +38729,26 @@ components: x-stripeResource: class_name: BillingThresholds in_package: '' + subscription_details_data: + description: '' + properties: + metadata: + additionalProperties: + maxLength: 500 + type: string + description: >- + Set of [key-value pairs](https://stripe.com/docs/api/metadata) that + will reflect the metadata of the subscription at the time of invoice + creation. *Note: This attribute is populated only for invoices + created on or after June 29, 2023.* + nullable: true + type: object + title: SubscriptionDetailsData + type: object + x-expandableFields: [] + x-stripeResource: + class_name: SubscriptionDetailsData + in_package: '' subscription_item: description: >- Subscription items allow you to create customer subscriptions with more diff --git a/openapi/spec3.yaml b/openapi/spec3.yaml index db813c5a..7d0e8229 100644 --- a/openapi/spec3.yaml +++ b/openapi/spec3.yaml @@ -11237,6 +11237,11 @@ components: x-expansionResources: oneOf: - $ref: '#/components/schemas/subscription' + subscription_details: + anyOf: + - $ref: '#/components/schemas/subscription_details_data' + description: Details about the subscription that created this invoice. + nullable: true subscription_proration_date: description: >- Only set for upcoming invoices that preview prorations. The time @@ -11369,6 +11374,7 @@ components: - shipping_details - status_transitions - subscription + - subscription_details - test_clock - threshold_reason - total_discount_amounts @@ -33084,6 +33090,23 @@ components: title: SubscriptionBillingThresholds type: object x-expandableFields: [] + subscription_details_data: + description: '' + properties: + metadata: + additionalProperties: + maxLength: 500 + type: string + description: >- + Set of [key-value pairs](https://stripe.com/docs/api/metadata) that + will reflect the metadata of the subscription at the time of invoice + creation. *Note: This attribute is populated only for invoices + created on or after June 29, 2023.* + nullable: true + type: object + title: SubscriptionDetailsData + type: object + x-expandableFields: [] subscription_item: description: >- Subscription items allow you to create customer subscriptions with more