|
26272 | 26272 | "nullable": true,
|
26273 | 26273 | "type": "string"
|
26274 | 26274 | },
|
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 |
| - }, |
26284 | 26275 | "discounts": {
|
26285 | 26276 | "description": "The discounts applied to the invoice. Line item discounts are applied before invoice discounts. Use `expand[]=discounts` to expand each discount.",
|
26286 | 26277 | "items": {
|
|
26817 | 26808 | "default_source",
|
26818 | 26809 | "default_tax_rates",
|
26819 | 26810 | "description",
|
26820 |
| - "discount", |
26821 | 26811 | "discounts",
|
26822 | 26812 | "due_date",
|
26823 | 26813 | "effective_at",
|
|
26882 | 26872 | "default_payment_method",
|
26883 | 26873 | "default_source",
|
26884 | 26874 | "default_tax_rates",
|
26885 |
| - "discount", |
26886 | 26875 | "discounts",
|
26887 | 26876 | "from_invoice",
|
26888 | 26877 | "issuer",
|
|
63690 | 63679 | "nullable": true,
|
63691 | 63680 | "type": "string"
|
63692 | 63681 | },
|
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 |
| - }, |
63702 | 63682 | "discounts": {
|
63703 | 63683 | "description": "The discounts applied to the invoice. Line item discounts are applied before invoice discounts. Use `expand[]=discounts` to expand each discount.",
|
63704 | 63684 | "items": {
|
|
64222 | 64202 | "default_source",
|
64223 | 64203 | "default_tax_rates",
|
64224 | 64204 | "description",
|
64225 |
| - "discount", |
64226 | 64205 | "discounts",
|
64227 | 64206 | "due_date",
|
64228 | 64207 | "effective_at",
|
|
64287 | 64266 | "default_payment_method",
|
64288 | 64267 | "default_source",
|
64289 | 64268 | "default_tax_rates",
|
64290 |
| - "discount", |
64291 | 64269 | "discounts",
|
64292 | 64270 | "from_invoice",
|
64293 | 64271 | "issuer",
|
|
73794 | 73772 | "nullable": true,
|
73795 | 73773 | "type": "string"
|
73796 | 73774 | },
|
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 |
| - }, |
73806 | 73775 | "discounts": {
|
73807 | 73776 | "description": "The discounts applied to the subscription. Subscription item discounts are applied before subscription discounts. Use `expand[]=discounts` to expand each discount.",
|
73808 | 73777 | "items": {
|
|
74133 | 74102 | "default_payment_method",
|
74134 | 74103 | "default_source",
|
74135 | 74104 | "description",
|
74136 |
| - "discount", |
74137 | 74105 | "discounts",
|
74138 | 74106 | "ended_at",
|
74139 | 74107 | "id",
|
|
74171 | 74139 | "default_payment_method",
|
74172 | 74140 | "default_source",
|
74173 | 74141 | "default_tax_rates",
|
74174 |
| - "discount", |
74175 | 74142 | "discounts",
|
74176 | 74143 | "invoice_settings",
|
74177 | 74144 | "items",
|
|
75413 | 75380 | "nullable": true,
|
75414 | 75381 | "type": "string"
|
75415 | 75382 | },
|
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 |
| - }, |
75442 | 75383 | "currency": {
|
75443 | 75384 | "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).",
|
75444 | 75385 | "format": "currency",
|
|
75598 | 75539 | "billing_cycle_anchor",
|
75599 | 75540 | "billing_thresholds",
|
75600 | 75541 | "collection_method",
|
75601 |
| - "coupon", |
75602 | 75542 | "currency",
|
75603 | 75543 | "default_payment_method",
|
75604 | 75544 | "description",
|
|
75619 | 75559 | "add_invoice_items",
|
75620 | 75560 | "automatic_tax",
|
75621 | 75561 | "billing_thresholds",
|
75622 |
| - "coupon", |
75623 | 75562 | "default_payment_method",
|
75624 | 75563 | "default_tax_rates",
|
75625 | 75564 | "discounts",
|
|
75637 | 75576 | "billing_cycle_anchor",
|
75638 | 75577 | "billing_thresholds",
|
75639 | 75578 | "collection_method",
|
75640 |
| - "coupon", |
75641 | 75579 | "currency",
|
75642 | 75580 | "default_payment_method",
|
75643 | 75581 | "default_tax_rates",
|
@@ -118446,6 +118384,7 @@
|
118446 | 118384 | ]
|
118447 | 118385 | },
|
118448 | 118386 | "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.", |
118449 | 118388 | "maxLength": 5000,
|
118450 | 118389 | "type": "string"
|
118451 | 118390 | },
|
@@ -119345,6 +119284,7 @@
|
119345 | 119284 | ]
|
119346 | 119285 | },
|
119347 | 119286 | "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.", |
119348 | 119288 | "maxLength": 5000,
|
119349 | 119289 | "type": "string"
|
119350 | 119290 | },
|
@@ -132899,11 +132839,6 @@
|
132899 | 132839 | "liability"
|
132900 | 132840 | ]
|
132901 | 132841 | },
|
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 |
| - }, |
132907 | 132842 | "currency": {
|
132908 | 132843 | "description": "The currency to preview this invoice in. Defaults to that of `customer` if not specified.",
|
132909 | 132844 | "format": "currency",
|
@@ -134791,11 +134726,6 @@
|
134791 | 134726 | ],
|
134792 | 134727 | "type": "string"
|
134793 | 134728 | },
|
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 |
| - }, |
134799 | 134729 | "currency": {
|
134800 | 134730 | "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).",
|
134801 | 134731 | "format": "currency",
|
@@ -135452,7 +135382,6 @@
|
135452 | 135382 | "billing_cycle_anchor",
|
135453 | 135383 | "billing_thresholds",
|
135454 | 135384 | "collection_method",
|
135455 |
| - "coupon", |
135456 | 135385 | "currency",
|
135457 | 135386 | "default_payment_method",
|
135458 | 135387 | "default_tax_rates",
|
@@ -136262,17 +136191,6 @@
|
136262 | 136191 | },
|
136263 | 136192 | "style": "deepObject"
|
136264 | 136193 | },
|
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 |
| - }, |
136276 | 136194 | {
|
136277 | 136195 | "description": "The currency to preview this invoice in. Defaults to that of `customer` if not specified.",
|
136278 | 136196 | "in": "query",
|
@@ -138231,11 +138149,6 @@
|
138231 | 138149 | ],
|
138232 | 138150 | "type": "string"
|
138233 | 138151 | },
|
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 |
| - }, |
138239 | 138152 | "currency": {
|
138240 | 138153 | "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).",
|
138241 | 138154 | "format": "currency",
|
@@ -138892,7 +138805,6 @@
|
138892 | 138805 | "billing_cycle_anchor",
|
138893 | 138806 | "billing_thresholds",
|
138894 | 138807 | "collection_method",
|
138895 |
| - "coupon", |
138896 | 138808 | "currency",
|
138897 | 138809 | "default_payment_method",
|
138898 | 138810 | "default_tax_rates",
|
@@ -140063,17 +139975,6 @@
|
140063 | 139975 | },
|
140064 | 139976 | "style": "deepObject"
|
140065 | 139977 | },
|
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 |
| - }, |
140077 | 139978 | {
|
140078 | 139979 | "description": "The currency to preview this invoice in. Defaults to that of `customer` if not specified.",
|
140079 | 139980 | "in": "query",
|
@@ -142053,11 +141954,6 @@
|
142053 | 141954 | ],
|
142054 | 141955 | "type": "string"
|
142055 | 141956 | },
|
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 |
| - }, |
142061 | 141957 | "currency": {
|
142062 | 141958 | "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).",
|
142063 | 141959 | "format": "currency",
|
@@ -142714,7 +142610,6 @@
|
142714 | 142610 | "billing_cycle_anchor",
|
142715 | 142611 | "billing_thresholds",
|
142716 | 142612 | "collection_method",
|
142717 |
| - "coupon", |
142718 | 142613 | "currency",
|
142719 | 142614 | "default_payment_method",
|
142720 | 142615 | "default_tax_rates",
|
@@ -219269,11 +219164,6 @@
|
219269 | 219164 | ],
|
219270 | 219165 | "type": "string"
|
219271 | 219166 | },
|
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 |
| - }, |
219277 | 219167 | "currency": {
|
219278 | 219168 | "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).",
|
219279 | 219169 | "format": "currency",
|
@@ -219893,7 +219783,6 @@
|
219893 | 219783 | "billing_thresholds",
|
219894 | 219784 | "cancel_at_period_end",
|
219895 | 219785 | "collection_method",
|
219896 |
| - "coupon", |
219897 | 219786 | "currency",
|
219898 | 219787 | "default_payment_method",
|
219899 | 219788 | "default_tax_rates",
|
@@ -220665,11 +220554,6 @@
|
220665 | 220554 | ],
|
220666 | 220555 | "type": "string"
|
220667 | 220556 | },
|
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 |
| - }, |
220673 | 220557 | "currency": {
|
220674 | 220558 | "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).",
|
220675 | 220559 | "format": "currency",
|
@@ -221326,7 +221210,6 @@
|
221326 | 221210 | "billing_cycle_anchor",
|
221327 | 221211 | "billing_thresholds",
|
221328 | 221212 | "collection_method",
|
221329 |
| - "coupon", |
221330 | 221213 | "currency",
|
221331 | 221214 | "default_payment_method",
|
221332 | 221215 | "default_tax_rates",
|
@@ -223447,11 +223330,6 @@
|
223447 | 223330 | ],
|
223448 | 223331 | "type": "string"
|
223449 | 223332 | },
|
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 |
| - }, |
223455 | 223333 | "currency": {
|
223456 | 223334 | "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).",
|
223457 | 223335 | "format": "currency",
|
@@ -224520,11 +224398,6 @@
|
224520 | 224398 | "update_behavior"
|
224521 | 224399 | ]
|
224522 | 224400 | },
|
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 |
| - }, |
224528 | 224401 | "proration_behavior": {
|
224529 | 224402 | "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`.",
|
224530 | 224403 | "enum": [
|
@@ -225436,11 +225309,6 @@
|
225436 | 225309 | ],
|
225437 | 225310 | "type": "string"
|
225438 | 225311 | },
|
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 |
| - }, |
225444 | 225312 | "days_until_due": {
|
225445 | 225313 | "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`.",
|
225446 | 225314 | "type": "integer"
|
@@ -226553,11 +226421,6 @@
|
226553 | 226421 | "update_behavior"
|
226554 | 226422 | ]
|
226555 | 226423 | },
|
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 |
| - }, |
226561 | 226424 | "proration_behavior": {
|
226562 | 226425 | "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`.",
|
226563 | 226426 | "enum": [
|
|
0 commit comments