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 Jul 28, 2023
1 parent 538dd12 commit 6f470a3
Show file tree
Hide file tree
Showing 6 changed files with 109 additions and 2 deletions.
2 changes: 1 addition & 1 deletion openapi/spec3.beta.sdk.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
2 changes: 1 addition & 1 deletion openapi/spec3.beta.sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
27 changes: 27 additions & 0 deletions openapi/spec3.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -11765,6 +11774,7 @@
"shipping_details",
"status_transitions",
"subscription",
"subscription_details",
"test_clock",
"threshold_reason",
"total_discount_amounts",
Expand Down Expand Up @@ -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": {
Expand Down
31 changes: 31 additions & 0 deletions openapi/spec3.sdk.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -14305,6 +14314,7 @@
"shipping_details",
"status_transitions",
"subscription",
"subscription_details",
"test_clock",
"threshold_reason",
"total_discount_amounts",
Expand Down Expand Up @@ -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": {
Expand Down
26 changes: 26 additions & 0 deletions openapi/spec3.sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -13390,6 +13395,7 @@ components:
- shipping_details
- status_transitions
- subscription
- subscription_details
- test_clock
- threshold_reason
- total_discount_amounts
Expand Down Expand Up @@ -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
Expand Down
23 changes: 23 additions & 0 deletions openapi/spec3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -11369,6 +11374,7 @@ components:
- shipping_details
- status_transitions
- subscription
- subscription_details
- test_clock
- threshold_reason
- total_discount_amounts
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6f470a3

Please sign in to comment.