Skip to content

Commit 00f5396

Browse files
Update OpenAPI for 99403dc28ad8b1b3865890dd8329200b02f50283
1 parent a7fd059 commit 00f5396

File tree

1 file changed

+2
-139
lines changed

1 file changed

+2
-139
lines changed

embedded/openapi/spec3.beta.sdk.json

+2-139
Original file line numberDiff line numberDiff line change
@@ -26272,15 +26272,6 @@
2627226272
"nullable": true,
2627326273
"type": "string"
2627426274
},
26275-
"discount": {
26276-
"anyOf": [
26277-
{
26278-
"$ref": "#/components/schemas/discount"
26279-
}
26280-
],
26281-
"description": "Describes the current discount applied to this invoice, if there is one. Not populated if there are multiple discounts.",
26282-
"nullable": true
26283-
},
2628426275
"discounts": {
2628526276
"description": "The discounts applied to the invoice. Line item discounts are applied before invoice discounts. Use `expand[]=discounts` to expand each discount.",
2628626277
"items": {
@@ -26817,7 +26808,6 @@
2681726808
"default_source",
2681826809
"default_tax_rates",
2681926810
"description",
26820-
"discount",
2682126811
"discounts",
2682226812
"due_date",
2682326813
"effective_at",
@@ -26882,7 +26872,6 @@
2688226872
"default_payment_method",
2688326873
"default_source",
2688426874
"default_tax_rates",
26885-
"discount",
2688626875
"discounts",
2688726876
"from_invoice",
2688826877
"issuer",
@@ -63690,15 +63679,6 @@
6369063679
"nullable": true,
6369163680
"type": "string"
6369263681
},
63693-
"discount": {
63694-
"anyOf": [
63695-
{
63696-
"$ref": "#/components/schemas/discount"
63697-
}
63698-
],
63699-
"description": "Describes the current discount applied to this invoice, if there is one. Not populated if there are multiple discounts.",
63700-
"nullable": true
63701-
},
6370263682
"discounts": {
6370363683
"description": "The discounts applied to the invoice. Line item discounts are applied before invoice discounts. Use `expand[]=discounts` to expand each discount.",
6370463684
"items": {
@@ -64222,7 +64202,6 @@
6422264202
"default_source",
6422364203
"default_tax_rates",
6422464204
"description",
64225-
"discount",
6422664205
"discounts",
6422764206
"due_date",
6422864207
"effective_at",
@@ -64287,7 +64266,6 @@
6428764266
"default_payment_method",
6428864267
"default_source",
6428964268
"default_tax_rates",
64290-
"discount",
6429164269
"discounts",
6429264270
"from_invoice",
6429364271
"issuer",
@@ -73794,15 +73772,6 @@
7379473772
"nullable": true,
7379573773
"type": "string"
7379673774
},
73797-
"discount": {
73798-
"anyOf": [
73799-
{
73800-
"$ref": "#/components/schemas/discount"
73801-
}
73802-
],
73803-
"description": "Describes the current discount applied to this subscription, if there is one. When billing, a discount applied to a subscription overrides a discount applied on a customer-wide basis. This field has been deprecated and will be removed in a future API version. Use `discounts` instead.",
73804-
"nullable": true
73805-
},
7380673775
"discounts": {
7380773776
"description": "The discounts applied to the subscription. Subscription item discounts are applied before subscription discounts. Use `expand[]=discounts` to expand each discount.",
7380873777
"items": {
@@ -74133,7 +74102,6 @@
7413374102
"default_payment_method",
7413474103
"default_source",
7413574104
"description",
74136-
"discount",
7413774105
"discounts",
7413874106
"ended_at",
7413974107
"id",
@@ -74171,7 +74139,6 @@
7417174139
"default_payment_method",
7417274140
"default_source",
7417374141
"default_tax_rates",
74174-
"discount",
7417574142
"discounts",
7417674143
"invoice_settings",
7417774144
"items",
@@ -75413,32 +75380,6 @@
7541375380
"nullable": true,
7541475381
"type": "string"
7541575382
},
75416-
"coupon": {
75417-
"anyOf": [
75418-
{
75419-
"maxLength": 5000,
75420-
"type": "string"
75421-
},
75422-
{
75423-
"$ref": "#/components/schemas/coupon"
75424-
},
75425-
{
75426-
"$ref": "#/components/schemas/deleted_coupon"
75427-
}
75428-
],
75429-
"description": "ID of the coupon to use during this phase of the subscription schedule.",
75430-
"nullable": true,
75431-
"x-expansionResources": {
75432-
"oneOf": [
75433-
{
75434-
"$ref": "#/components/schemas/coupon"
75435-
},
75436-
{
75437-
"$ref": "#/components/schemas/deleted_coupon"
75438-
}
75439-
]
75440-
}
75441-
},
7544275383
"currency": {
7544375384
"description": "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).",
7544475385
"format": "currency",
@@ -75598,7 +75539,6 @@
7559875539
"billing_cycle_anchor",
7559975540
"billing_thresholds",
7560075541
"collection_method",
75601-
"coupon",
7560275542
"currency",
7560375543
"default_payment_method",
7560475544
"description",
@@ -75619,7 +75559,6 @@
7561975559
"add_invoice_items",
7562075560
"automatic_tax",
7562175561
"billing_thresholds",
75622-
"coupon",
7562375562
"default_payment_method",
7562475563
"default_tax_rates",
7562575564
"discounts",
@@ -75637,7 +75576,6 @@
7563775576
"billing_cycle_anchor",
7563875577
"billing_thresholds",
7563975578
"collection_method",
75640-
"coupon",
7564175579
"currency",
7564275580
"default_payment_method",
7564375581
"default_tax_rates",
@@ -118446,6 +118384,7 @@
118446118384
]
118447118385
},
118448118386
"coupon": {
118387+
"description": "If you provide a coupon code, the customer will have a discount applied on all recurring charges. Charges you create through the API will not have the discount.",
118449118388
"maxLength": 5000,
118450118389
"type": "string"
118451118390
},
@@ -119345,6 +119284,7 @@
119345119284
]
119346119285
},
119347119286
"coupon": {
119287+
"description": "If you provide a coupon code, the customer will have a discount applied on all recurring charges. Charges you create through the API will not have the discount.",
119348119288
"maxLength": 5000,
119349119289
"type": "string"
119350119290
},
@@ -132899,11 +132839,6 @@
132899132839
"liability"
132900132840
]
132901132841
},
132902-
"coupon": {
132903-
"description": "The ID of the coupon to apply to this phase of the subscription schedule. This field has been deprecated and will be removed in a future API version. Use `discounts` instead.",
132904-
"maxLength": 5000,
132905-
"type": "string"
132906-
},
132907132842
"currency": {
132908132843
"description": "The currency to preview this invoice in. Defaults to that of `customer` if not specified.",
132909132844
"format": "currency",
@@ -134791,11 +134726,6 @@
134791134726
],
134792134727
"type": "string"
134793134728
},
134794-
"coupon": {
134795-
"description": "The ID of the coupon to apply to this phase of the subscription schedule. This field has been deprecated and will be removed in a future API version. Use `discounts` instead.",
134796-
"maxLength": 5000,
134797-
"type": "string"
134798-
},
134799134729
"currency": {
134800134730
"description": "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).",
134801134731
"format": "currency",
@@ -135452,7 +135382,6 @@
135452135382
"billing_cycle_anchor",
135453135383
"billing_thresholds",
135454135384
"collection_method",
135455-
"coupon",
135456135385
"currency",
135457135386
"default_payment_method",
135458135387
"default_tax_rates",
@@ -136262,17 +136191,6 @@
136262136191
},
136263136192
"style": "deepObject"
136264136193
},
136265-
{
136266-
"description": "The ID of the coupon to apply to this phase of the subscription schedule. This field has been deprecated and will be removed in a future API version. Use `discounts` instead.",
136267-
"in": "query",
136268-
"name": "coupon",
136269-
"required": false,
136270-
"schema": {
136271-
"maxLength": 5000,
136272-
"type": "string"
136273-
},
136274-
"style": "form"
136275-
},
136276136194
{
136277136195
"description": "The currency to preview this invoice in. Defaults to that of `customer` if not specified.",
136278136196
"in": "query",
@@ -138231,11 +138149,6 @@
138231138149
],
138232138150
"type": "string"
138233138151
},
138234-
"coupon": {
138235-
"description": "The ID of the coupon to apply to this phase of the subscription schedule. This field has been deprecated and will be removed in a future API version. Use `discounts` instead.",
138236-
"maxLength": 5000,
138237-
"type": "string"
138238-
},
138239138152
"currency": {
138240138153
"description": "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).",
138241138154
"format": "currency",
@@ -138892,7 +138805,6 @@
138892138805
"billing_cycle_anchor",
138893138806
"billing_thresholds",
138894138807
"collection_method",
138895-
"coupon",
138896138808
"currency",
138897138809
"default_payment_method",
138898138810
"default_tax_rates",
@@ -140063,17 +139975,6 @@
140063139975
},
140064139976
"style": "deepObject"
140065139977
},
140066-
{
140067-
"description": "The ID of the coupon to apply to this phase of the subscription schedule. This field has been deprecated and will be removed in a future API version. Use `discounts` instead.",
140068-
"in": "query",
140069-
"name": "coupon",
140070-
"required": false,
140071-
"schema": {
140072-
"maxLength": 5000,
140073-
"type": "string"
140074-
},
140075-
"style": "form"
140076-
},
140077139978
{
140078139979
"description": "The currency to preview this invoice in. Defaults to that of `customer` if not specified.",
140079139980
"in": "query",
@@ -142053,11 +141954,6 @@
142053141954
],
142054141955
"type": "string"
142055141956
},
142056-
"coupon": {
142057-
"description": "The ID of the coupon to apply to this phase of the subscription schedule. This field has been deprecated and will be removed in a future API version. Use `discounts` instead.",
142058-
"maxLength": 5000,
142059-
"type": "string"
142060-
},
142061141957
"currency": {
142062141958
"description": "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).",
142063141959
"format": "currency",
@@ -142714,7 +142610,6 @@
142714142610
"billing_cycle_anchor",
142715142611
"billing_thresholds",
142716142612
"collection_method",
142717-
"coupon",
142718142613
"currency",
142719142614
"default_payment_method",
142720142615
"default_tax_rates",
@@ -219269,11 +219164,6 @@
219269219164
],
219270219165
"type": "string"
219271219166
},
219272-
"coupon": {
219273-
"description": "The ID of the coupon to apply to this phase of the subscription schedule. This field has been deprecated and will be removed in a future API version. Use `discounts` instead.",
219274-
"maxLength": 5000,
219275-
"type": "string"
219276-
},
219277219167
"currency": {
219278219168
"description": "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).",
219279219169
"format": "currency",
@@ -219893,7 +219783,6 @@
219893219783
"billing_thresholds",
219894219784
"cancel_at_period_end",
219895219785
"collection_method",
219896-
"coupon",
219897219786
"currency",
219898219787
"default_payment_method",
219899219788
"default_tax_rates",
@@ -220665,11 +220554,6 @@
220665220554
],
220666220555
"type": "string"
220667220556
},
220668-
"coupon": {
220669-
"description": "The ID of the coupon to apply to this phase of the subscription schedule. This field has been deprecated and will be removed in a future API version. Use `discounts` instead.",
220670-
"maxLength": 5000,
220671-
"type": "string"
220672-
},
220673220557
"currency": {
220674220558
"description": "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).",
220675220559
"format": "currency",
@@ -221326,7 +221210,6 @@
221326221210
"billing_cycle_anchor",
221327221211
"billing_thresholds",
221328221212
"collection_method",
221329-
"coupon",
221330221213
"currency",
221331221214
"default_payment_method",
221332221215
"default_tax_rates",
@@ -223447,11 +223330,6 @@
223447223330
],
223448223331
"type": "string"
223449223332
},
223450-
"coupon": {
223451-
"description": "The ID of the coupon to apply to this subscription. A coupon applied to a subscription will only affect invoices created for that particular subscription. This field has been deprecated and will be removed in a future API version. Use `discounts` instead.",
223452-
"maxLength": 5000,
223453-
"type": "string"
223454-
},
223455223333
"currency": {
223456223334
"description": "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).",
223457223335
"format": "currency",
@@ -224520,11 +224398,6 @@
224520224398
"update_behavior"
224521224399
]
224522224400
},
224523-
"promotion_code": {
224524-
"description": "The promotion code to apply to this subscription. A promotion code applied to a subscription will only affect invoices created for that particular subscription. This field has been deprecated and will be removed in a future API version. Use `discounts` instead.",
224525-
"maxLength": 5000,
224526-
"type": "string"
224527-
},
224528224401
"proration_behavior": {
224529224402
"description": "Determines how to handle [prorations](https://stripe.com/docs/billing/subscriptions/prorations) resulting from the `billing_cycle_anchor`. If no value is passed, the default is `create_prorations`.",
224530224403
"enum": [
@@ -225436,11 +225309,6 @@
225436225309
],
225437225310
"type": "string"
225438225311
},
225439-
"coupon": {
225440-
"description": "The ID of the coupon to apply to this subscription. A coupon applied to a subscription will only affect invoices created for that particular subscription. This field has been deprecated and will be removed in a future API version. Use `discounts` instead.",
225441-
"maxLength": 5000,
225442-
"type": "string"
225443-
},
225444225312
"days_until_due": {
225445225313
"description": "Number of days a customer has to pay invoices generated by this subscription. Valid only for subscriptions where `collection_method` is set to `send_invoice`.",
225446225314
"type": "integer"
@@ -226553,11 +226421,6 @@
226553226421
"update_behavior"
226554226422
]
226555226423
},
226556-
"promotion_code": {
226557-
"description": "The promotion code to apply to this subscription. A promotion code applied to a subscription will only affect invoices created for that particular subscription. This field has been deprecated and will be removed in a future API version. Use `discounts` instead.",
226558-
"maxLength": 5000,
226559-
"type": "string"
226560-
},
226561226424
"proration_behavior": {
226562226425
"description": "Determines how to handle [prorations](https://stripe.com/docs/billing/subscriptions/prorations) when the billing cycle changes (e.g., when switching plans, resetting `billing_cycle_anchor=now`, or starting a trial), or if an item's `quantity` changes. The default value is `create_prorations`.",
226563226426
"enum": [

0 commit comments

Comments
 (0)