stripe 19.2.0-alpha.1 → 19.2.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. package/CHANGELOG.md +1 -106
  2. package/OPENAPI_VERSION +1 -1
  3. package/VERSION +1 -1
  4. package/cjs/resources.js +0 -30
  5. package/cjs/stripe.core.js +1 -1
  6. package/esm/resources.js +0 -30
  7. package/esm/stripe.core.js +1 -1
  8. package/package.json +1 -1
  9. package/types/Billing/AlertTriggereds.d.ts +0 -15
  10. package/types/Billing/Alerts.d.ts +1 -116
  11. package/types/Billing/AlertsResource.d.ts +2 -149
  12. package/types/Billing/CreditBalanceSummary.d.ts +2 -118
  13. package/types/Billing/CreditBalanceSummaryResource.d.ts +0 -12
  14. package/types/Billing/CreditBalanceTransactions.d.ts +2 -118
  15. package/types/Billing/CreditGrants.d.ts +1 -71
  16. package/types/Billing/CreditGrantsResource.d.ts +1 -32
  17. package/types/Checkout/Sessions.d.ts +0 -58
  18. package/types/Checkout/SessionsResource.d.ts +0 -50
  19. package/types/CreditNotes.d.ts +0 -26
  20. package/types/CreditNotesResource.d.ts +0 -78
  21. package/types/InvoiceItems.d.ts +2 -104
  22. package/types/InvoiceLineItems.d.ts +2 -113
  23. package/types/InvoicesResource.d.ts +0 -5
  24. package/types/V2/Billing/Cadences.d.ts +0 -45
  25. package/types/V2/Billing/CadencesResource.d.ts +3 -32
  26. package/types/V2/Core/Accounts.d.ts +0 -59
  27. package/types/V2/Core/AccountsResource.d.ts +0 -24
  28. package/types/V2/Core/EventTypes.d.ts +375 -7180
  29. package/types/V2/Core/Events.d.ts +0 -12
  30. package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +0 -14
  31. package/types/V2/MoneyManagement/OutboundPayments.d.ts +0 -5
  32. package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +0 -5
  33. package/types/V2/MoneyManagement/OutboundSetupIntentsResource.d.ts +0 -34
  34. package/types/V2/MoneyManagement/OutboundTransfers.d.ts +0 -5
  35. package/types/V2/MoneyManagement/OutboundTransfersResource.d.ts +0 -5
  36. package/types/V2/MoneyManagement/PayoutMethods.d.ts +0 -41
  37. package/types/V2/MoneyManagement/ReceivedDebits.d.ts +0 -5
  38. package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +1 -6
  39. package/types/Webhooks.d.ts +0 -2
  40. package/types/index.d.ts +0 -58
  41. package/cjs/resources/V2/Billing/CustomPricingUnits.js +0 -25
  42. package/cjs/resources/V2/Billing/Intents/Actions.js +0 -17
  43. package/cjs/resources/V2/Billing/Intents.js +0 -36
  44. package/cjs/resources/V2/Billing/LicenseFeeSubscriptions.js +0 -12
  45. package/cjs/resources/V2/Billing/LicenseFees/Versions.js +0 -17
  46. package/cjs/resources/V2/Billing/LicenseFees.js +0 -27
  47. package/cjs/resources/V2/Billing/LicensedItems.js +0 -25
  48. package/cjs/resources/V2/Billing/MeteredItems.js +0 -22
  49. package/cjs/resources/V2/Billing/PricingPlanSubscriptions.js +0 -21
  50. package/cjs/resources/V2/Billing/PricingPlans/Components.js +0 -29
  51. package/cjs/resources/V2/Billing/PricingPlans/Versions.js +0 -17
  52. package/cjs/resources/V2/Billing/PricingPlans.js +0 -29
  53. package/cjs/resources/V2/Billing/RateCardSubscriptions.js +0 -29
  54. package/cjs/resources/V2/Billing/RateCards/Rates.js +0 -25
  55. package/cjs/resources/V2/Billing/RateCards/Versions.js +0 -17
  56. package/cjs/resources/V2/Billing/RateCards.js +0 -29
  57. package/cjs/resources/V2/Billing/ServiceActions.js +0 -20
  58. package/cjs/resources/V2/Core/ClaimableSandboxes.js +0 -16
  59. package/cjs/resources/V2/MoneyManagement/RecipientVerifications.js +0 -20
  60. package/cjs/resources/V2/Tax/AutomaticRules.js +0 -22
  61. package/cjs/resources/V2/TestHelpers/MoneyManagement.js +0 -12
  62. package/esm/resources/V2/Billing/CustomPricingUnits.js +0 -22
  63. package/esm/resources/V2/Billing/Intents/Actions.js +0 -14
  64. package/esm/resources/V2/Billing/Intents.js +0 -33
  65. package/esm/resources/V2/Billing/LicenseFeeSubscriptions.js +0 -9
  66. package/esm/resources/V2/Billing/LicenseFees/Versions.js +0 -14
  67. package/esm/resources/V2/Billing/LicenseFees.js +0 -24
  68. package/esm/resources/V2/Billing/LicensedItems.js +0 -22
  69. package/esm/resources/V2/Billing/MeteredItems.js +0 -19
  70. package/esm/resources/V2/Billing/PricingPlanSubscriptions.js +0 -18
  71. package/esm/resources/V2/Billing/PricingPlans/Components.js +0 -26
  72. package/esm/resources/V2/Billing/PricingPlans/Versions.js +0 -14
  73. package/esm/resources/V2/Billing/PricingPlans.js +0 -26
  74. package/esm/resources/V2/Billing/RateCardSubscriptions.js +0 -26
  75. package/esm/resources/V2/Billing/RateCards/Rates.js +0 -22
  76. package/esm/resources/V2/Billing/RateCards/Versions.js +0 -14
  77. package/esm/resources/V2/Billing/RateCards.js +0 -26
  78. package/esm/resources/V2/Billing/ServiceActions.js +0 -17
  79. package/esm/resources/V2/Core/ClaimableSandboxes.js +0 -13
  80. package/esm/resources/V2/MoneyManagement/RecipientVerifications.js +0 -17
  81. package/esm/resources/V2/Tax/AutomaticRules.js +0 -19
  82. package/esm/resources/V2/TestHelpers/MoneyManagement.js +0 -9
  83. package/types/V2/Billing/CustomPricingUnits.d.ts +0 -56
  84. package/types/V2/Billing/CustomPricingUnitsResource.d.ts +0 -122
  85. package/types/V2/Billing/IntentActions.d.ts +0 -459
  86. package/types/V2/Billing/Intents/ActionsResource.d.ts +0 -58
  87. package/types/V2/Billing/Intents.d.ts +0 -117
  88. package/types/V2/Billing/IntentsResource.d.ts +0 -575
  89. package/types/V2/Billing/LicenseFeeSubscriptions.d.ts +0 -64
  90. package/types/V2/Billing/LicenseFeeSubscriptionsResource.d.ts +0 -28
  91. package/types/V2/Billing/LicenseFeeVersions.d.ts +0 -106
  92. package/types/V2/Billing/LicenseFees/VersionsResource.d.ts +0 -58
  93. package/types/V2/Billing/LicenseFees.d.ts +0 -164
  94. package/types/V2/Billing/LicenseFeesResource.d.ts +0 -290
  95. package/types/V2/Billing/LicensedItems.d.ts +0 -73
  96. package/types/V2/Billing/LicensedItemsResource.d.ts +0 -157
  97. package/types/V2/Billing/MeteredItems.d.ts +0 -101
  98. package/types/V2/Billing/MeteredItemsResource.d.ts +0 -189
  99. package/types/V2/Billing/PricingPlanComponents.d.ts +0 -109
  100. package/types/V2/Billing/PricingPlanSubscriptions.d.ts +0 -144
  101. package/types/V2/Billing/PricingPlanSubscriptionsResource.d.ts +0 -118
  102. package/types/V2/Billing/PricingPlanVersions.d.ts +0 -49
  103. package/types/V2/Billing/PricingPlans/ComponentsResource.d.ts +0 -197
  104. package/types/V2/Billing/PricingPlans/VersionsResource.d.ts +0 -58
  105. package/types/V2/Billing/PricingPlans.d.ts +0 -84
  106. package/types/V2/Billing/PricingPlansResource.d.ts +0 -151
  107. package/types/V2/Billing/RateCardRates.d.ts +0 -144
  108. package/types/V2/Billing/RateCardSubscriptions.d.ts +0 -144
  109. package/types/V2/Billing/RateCardSubscriptionsResource.d.ts +0 -157
  110. package/types/V2/Billing/RateCardVersions.d.ts +0 -39
  111. package/types/V2/Billing/RateCards/RatesResource.d.ts +0 -203
  112. package/types/V2/Billing/RateCards/VersionsResource.d.ts +0 -58
  113. package/types/V2/Billing/RateCards.d.ts +0 -98
  114. package/types/V2/Billing/RateCardsResource.d.ts +0 -162
  115. package/types/V2/Billing/ServiceActions.d.ts +0 -274
  116. package/types/V2/Billing/ServiceActionsResource.d.ts +0 -370
  117. package/types/V2/Core/ClaimableSandboxes.d.ts +0 -132
  118. package/types/V2/Core/ClaimableSandboxesResource.d.ts +0 -74
  119. package/types/V2/MoneyManagement/RecipientVerifications.d.ts +0 -112
  120. package/types/V2/MoneyManagement/RecipientVerificationsResource.d.ts +0 -77
  121. package/types/V2/Tax/AutomaticRules.d.ts +0 -53
  122. package/types/V2/Tax/AutomaticRulesResource.d.ts +0 -102
  123. package/types/V2/TestHelpers/MoneyManagementResource.d.ts +0 -48
@@ -62,11 +62,6 @@ declare module 'stripe' {
62
62
 
63
63
  namespace CreditGrantCreateParams {
64
64
  interface Amount {
65
- /**
66
- * The custom pricing unit amount.
67
- */
68
- custom_pricing_unit?: Amount.CustomPricingUnit;
69
-
70
65
  /**
71
66
  * The monetary amount.
72
67
  */
@@ -75,22 +70,10 @@ declare module 'stripe' {
75
70
  /**
76
71
  * The type of this amount. We currently only support `monetary` billing credits.
77
72
  */
78
- type: Amount.Type;
73
+ type: 'monetary';
79
74
  }
80
75
 
81
76
  namespace Amount {
82
- interface CustomPricingUnit {
83
- /**
84
- * The ID of the custom pricing unit.
85
- */
86
- id: string;
87
-
88
- /**
89
- * A positive integer representing the amount of the credit grant.
90
- */
91
- value: string;
92
- }
93
-
94
77
  interface Monetary {
95
78
  /**
96
79
  * Three-letter [ISO code for the currency](https://stripe.com/docs/currencies) of the `value` parameter.
@@ -102,8 +85,6 @@ declare module 'stripe' {
102
85
  */
103
86
  value: number;
104
87
  }
105
-
106
- type Type = 'custom_pricing_unit' | 'monetary';
107
88
  }
108
89
 
109
90
  interface ApplicabilityConfig {
@@ -115,11 +96,6 @@ declare module 'stripe' {
115
96
 
116
97
  namespace ApplicabilityConfig {
117
98
  interface Scope {
118
- /**
119
- * A list of billable items that the credit grant can apply to. We currently only support metered billable items. Cannot be used in combination with `price_type` or `prices`.
120
- */
121
- billable_items?: Array<Scope.BillableItem>;
122
-
123
99
  /**
124
100
  * The price type that credit grants can apply to. We currently only support the `metered` price type. Cannot be used in combination with `prices`.
125
101
  */
@@ -132,13 +108,6 @@ declare module 'stripe' {
132
108
  }
133
109
 
134
110
  namespace Scope {
135
- interface BillableItem {
136
- /**
137
- * The billable item ID this credit grant should apply to.
138
- */
139
- id: string;
140
- }
141
-
142
111
  interface Price {
143
112
  /**
144
113
  * The price ID this credit grant should apply to.
@@ -69,8 +69,6 @@ declare module 'stripe' {
69
69
  */
70
70
  cancel_url: string | null;
71
71
 
72
- checkout_items?: Array<Session.CheckoutItem>;
73
-
74
72
  /**
75
73
  * A unique string to reference the Checkout Session. This can be a
76
74
  * customer ID, a cart ID, or similar, and can be used to reconcile the
@@ -519,62 +517,6 @@ declare module 'stripe' {
519
517
  }
520
518
  }
521
519
 
522
- interface CheckoutItem {
523
- type: CheckoutItem.Type;
524
-
525
- rate_card_subscription_item?: CheckoutItem.RateCardSubscriptionItem;
526
-
527
- pricing_plan_subscription_item?: CheckoutItem.PricingPlanSubscriptionItem;
528
- }
529
-
530
- namespace CheckoutItem {
531
- interface PricingPlanSubscriptionItem {
532
- pricing_plan: string;
533
-
534
- pricing_plan_version: string;
535
-
536
- metadata: Stripe.Metadata;
537
-
538
- component_configurations: {
539
- [key: string]: PricingPlanSubscriptionItem.ComponentConfigurations;
540
- };
541
-
542
- pricing_plan_subscription?: string;
543
-
544
- billing_cadence?: string;
545
- }
546
-
547
- namespace PricingPlanSubscriptionItem {
548
- interface ComponentConfigurations {
549
- type: 'license_fee_component';
550
-
551
- license_fee_component?: ComponentConfigurations.LicenseFeeComponent;
552
- }
553
-
554
- namespace ComponentConfigurations {
555
- interface LicenseFeeComponent {
556
- quantity: number;
557
- }
558
- }
559
- }
560
-
561
- interface RateCardSubscriptionItem {
562
- rate_card: string;
563
-
564
- metadata: Stripe.Metadata;
565
-
566
- rate_card_version: string;
567
-
568
- billing_cadence?: string;
569
-
570
- rate_card_subscription?: string;
571
- }
572
-
573
- type Type =
574
- | 'rate_card_subscription_item'
575
- | 'pricing_plan_subscription_item';
576
- }
577
-
578
520
  interface CollectedInformation {
579
521
  /**
580
522
  * Customer's business name for this Checkout Session
@@ -39,8 +39,6 @@ declare module 'stripe' {
39
39
  */
40
40
  cancel_url?: string;
41
41
 
42
- checkout_items?: Array<SessionCreateParams.CheckoutItem>;
43
-
44
42
  /**
45
43
  * A unique string to reference the Checkout Session. This can be a
46
44
  * customer ID, a cart ID, or similar, and can be used to reconcile the
@@ -497,54 +495,6 @@ declare module 'stripe' {
497
495
  }
498
496
  }
499
497
 
500
- interface CheckoutItem {
501
- type: CheckoutItem.Type;
502
-
503
- rate_card_subscription_item?: CheckoutItem.RateCardSubscriptionItem;
504
-
505
- pricing_plan_subscription_item?: CheckoutItem.PricingPlanSubscriptionItem;
506
- }
507
-
508
- namespace CheckoutItem {
509
- interface PricingPlanSubscriptionItem {
510
- pricing_plan: string;
511
-
512
- pricing_plan_version?: string;
513
-
514
- metadata?: Stripe.MetadataParam;
515
-
516
- component_configurations?: {
517
- [key: string]: PricingPlanSubscriptionItem.ComponentConfigurations;
518
- };
519
- }
520
-
521
- namespace PricingPlanSubscriptionItem {
522
- interface ComponentConfigurations {
523
- type: 'license_fee_component';
524
-
525
- license_fee_component?: ComponentConfigurations.LicenseFeeComponent;
526
- }
527
-
528
- namespace ComponentConfigurations {
529
- interface LicenseFeeComponent {
530
- quantity: number;
531
- }
532
- }
533
- }
534
-
535
- interface RateCardSubscriptionItem {
536
- rate_card: string;
537
-
538
- metadata?: Stripe.MetadataParam;
539
-
540
- rate_card_version?: string;
541
- }
542
-
543
- type Type =
544
- | 'rate_card_subscription_item'
545
- | 'pricing_plan_subscription_item';
546
- }
547
-
548
498
  interface ConsentCollection {
549
499
  /**
550
500
  * Determines the display of payment method reuse agreement text in the UI. If set to `hidden`, it will hide legal text related to the reuse of a payment method.
@@ -235,36 +235,10 @@ declare module 'stripe' {
235
235
  */
236
236
  amount_refunded: number;
237
237
 
238
- /**
239
- * The PaymentRecord refund details associated with this credit note refund.
240
- */
241
- payment_record_refund?: Refund.PaymentRecordRefund | null;
242
-
243
238
  /**
244
239
  * ID of the refund.
245
240
  */
246
241
  refund: string | Stripe.Refund;
247
-
248
- /**
249
- * Type of the refund, one of `refund` or `payment_record_refund`.
250
- */
251
- type?: Refund.Type | null;
252
- }
253
-
254
- namespace Refund {
255
- interface PaymentRecordRefund {
256
- /**
257
- * ID of the payment record.
258
- */
259
- payment_record: string;
260
-
261
- /**
262
- * ID of the refund group.
263
- */
264
- refund_group: string;
265
- }
266
-
267
- type Type = 'payment_record_refund' | 'refund';
268
242
  }
269
243
 
270
244
  interface ShippingCost {
@@ -157,36 +157,10 @@ declare module 'stripe' {
157
157
  */
158
158
  amount_refunded?: number;
159
159
 
160
- /**
161
- * The PaymentRecord refund details to link to this credit note. Required when `type` is `payment_record_refund`.
162
- */
163
- payment_record_refund?: Refund.PaymentRecordRefund;
164
-
165
160
  /**
166
161
  * ID of an existing refund to link this credit note to. Required when `type` is `refund`.
167
162
  */
168
163
  refund?: string;
169
-
170
- /**
171
- * Type of the refund, one of `refund` or `payment_record_refund`. Defaults to `refund`.
172
- */
173
- type?: Refund.Type;
174
- }
175
-
176
- namespace Refund {
177
- interface PaymentRecordRefund {
178
- /**
179
- * The ID of the PaymentRecord with the refund to link to this credit note.
180
- */
181
- payment_record: string;
182
-
183
- /**
184
- * The PaymentRecord refund group to link to this credit note. For refunds processed off-Stripe, this will correspond to the `processor_details.custom.refund_reference` field provided when reporting the refund on the PaymentRecord.
185
- */
186
- refund_group: string;
187
- }
188
-
189
- type Type = 'payment_record_refund' | 'refund';
190
164
  }
191
165
 
192
166
  interface ShippingCost {
@@ -410,36 +384,10 @@ declare module 'stripe' {
410
384
  */
411
385
  amount_refunded?: number;
412
386
 
413
- /**
414
- * The PaymentRecord refund details to link to this credit note. Required when `type` is `payment_record_refund`.
415
- */
416
- payment_record_refund?: Refund.PaymentRecordRefund;
417
-
418
387
  /**
419
388
  * ID of an existing refund to link this credit note to. Required when `type` is `refund`.
420
389
  */
421
390
  refund?: string;
422
-
423
- /**
424
- * Type of the refund, one of `refund` or `payment_record_refund`. Defaults to `refund`.
425
- */
426
- type?: Refund.Type;
427
- }
428
-
429
- namespace Refund {
430
- interface PaymentRecordRefund {
431
- /**
432
- * The ID of the PaymentRecord with the refund to link to this credit note.
433
- */
434
- payment_record: string;
435
-
436
- /**
437
- * The PaymentRecord refund group to link to this credit note. For refunds processed off-Stripe, this will correspond to the `processor_details.custom.refund_reference` field provided when reporting the refund on the PaymentRecord.
438
- */
439
- refund_group: string;
440
- }
441
-
442
- type Type = 'payment_record_refund' | 'refund';
443
391
  }
444
392
 
445
393
  interface ShippingCost {
@@ -605,36 +553,10 @@ declare module 'stripe' {
605
553
  */
606
554
  amount_refunded?: number;
607
555
 
608
- /**
609
- * The PaymentRecord refund details to link to this credit note. Required when `type` is `payment_record_refund`.
610
- */
611
- payment_record_refund?: Refund.PaymentRecordRefund;
612
-
613
556
  /**
614
557
  * ID of an existing refund to link this credit note to. Required when `type` is `refund`.
615
558
  */
616
559
  refund?: string;
617
-
618
- /**
619
- * Type of the refund, one of `refund` or `payment_record_refund`. Defaults to `refund`.
620
- */
621
- type?: Refund.Type;
622
- }
623
-
624
- namespace Refund {
625
- interface PaymentRecordRefund {
626
- /**
627
- * The ID of the PaymentRecord with the refund to link to this credit note.
628
- */
629
- payment_record: string;
630
-
631
- /**
632
- * The PaymentRecord refund group to link to this credit note. For refunds processed off-Stripe, this will correspond to the `processor_details.custom.refund_reference` field provided when reporting the refund on the PaymentRecord.
633
- */
634
- refund_group: string;
635
- }
636
-
637
- type Type = 'payment_record_refund' | 'refund';
638
560
  }
639
561
 
640
562
  interface ShippingCost {
@@ -150,16 +150,6 @@ declare module 'stripe' {
150
150
 
151
151
  namespace InvoiceItem {
152
152
  interface Parent {
153
- /**
154
- * Details about the license fee subscription that generated this invoice item
155
- */
156
- license_fee_subscription_details?: Parent.LicenseFeeSubscriptionDetails | null;
157
-
158
- /**
159
- * Details about the rate card subscription that generated this invoice item
160
- */
161
- rate_card_subscription_details?: Parent.RateCardSubscriptionDetails | null;
162
-
163
153
  /**
164
154
  * Details about the subscription that generated this invoice item
165
155
  */
@@ -168,54 +158,10 @@ declare module 'stripe' {
168
158
  /**
169
159
  * The type of parent that generated this invoice item
170
160
  */
171
- type: Parent.Type;
161
+ type: 'subscription_details';
172
162
  }
173
163
 
174
164
  namespace Parent {
175
- interface LicenseFeeSubscriptionDetails {
176
- /**
177
- * The license fee subscription that generated this invoice item
178
- */
179
- license_fee_subscription: string;
180
-
181
- /**
182
- * The license fee version that generated this invoice item
183
- */
184
- license_fee_version: string;
185
-
186
- /**
187
- * The pricing plan subscription that manages the license fee subscription
188
- */
189
- pricing_plan_subscription: string;
190
-
191
- /**
192
- * The pricing plan version at the time this invoice item was generated
193
- */
194
- pricing_plan_version: string;
195
- }
196
-
197
- interface RateCardSubscriptionDetails {
198
- /**
199
- * The pricing plan subscription that manages the rate card subscription
200
- */
201
- pricing_plan_subscription?: string | null;
202
-
203
- /**
204
- * The pricing plan version at the time this invoice item was generated
205
- */
206
- pricing_plan_version?: string | null;
207
-
208
- /**
209
- * The rate card subscription that generated this invoice item
210
- */
211
- rate_card_subscription: string;
212
-
213
- /**
214
- * The rate card version that generated this invoice item
215
- */
216
- rate_card_version: string;
217
- }
218
-
219
165
  interface SubscriptionDetails {
220
166
  /**
221
167
  * The subscription that generated this invoice item
@@ -227,11 +173,6 @@ declare module 'stripe' {
227
173
  */
228
174
  subscription_item?: string;
229
175
  }
230
-
231
- type Type =
232
- | 'license_fee_subscription_details'
233
- | 'rate_card_subscription_details'
234
- | 'subscription_details';
235
176
  }
236
177
 
237
178
  interface Period {
@@ -247,16 +188,12 @@ declare module 'stripe' {
247
188
  }
248
189
 
249
190
  interface Pricing {
250
- license_fee_details?: Pricing.LicenseFeeDetails;
251
-
252
191
  price_details?: Pricing.PriceDetails;
253
192
 
254
- rate_card_rate_details?: Pricing.RateCardRateDetails;
255
-
256
193
  /**
257
194
  * The type of the pricing details.
258
195
  */
259
- type: Pricing.Type;
196
+ type: 'price_details';
260
197
 
261
198
  /**
262
199
  * The unit amount (in the `currency` specified) of the item which contains a decimal value with at most 12 decimal places.
@@ -265,23 +202,6 @@ declare module 'stripe' {
265
202
  }
266
203
 
267
204
  namespace Pricing {
268
- interface LicenseFeeDetails {
269
- /**
270
- * The ID of the license fee this item is associated with
271
- */
272
- license_fee: string;
273
-
274
- /**
275
- * The version of the license fee this item is associated with
276
- */
277
- license_fee_version: string;
278
-
279
- /**
280
- * The ID of the licensed item this item is associated with
281
- */
282
- licensed_item: string;
283
- }
284
-
285
205
  interface PriceDetails {
286
206
  /**
287
207
  * The ID of the price this item is associated with.
@@ -293,28 +213,6 @@ declare module 'stripe' {
293
213
  */
294
214
  product: string;
295
215
  }
296
-
297
- interface RateCardRateDetails {
298
- /**
299
- * The ID of billable item this item is associated with
300
- */
301
- metered_item: string;
302
-
303
- /**
304
- * The ID of the rate card this item is associated with
305
- */
306
- rate_card: string;
307
-
308
- /**
309
- * The ID of the rate card rate this item is associated with
310
- */
311
- rate_card_rate: string;
312
- }
313
-
314
- type Type =
315
- | 'license_fee_details'
316
- | 'price_details'
317
- | 'rate_card_rate_details';
318
216
  }
319
217
 
320
218
  interface ProrationDetails {
@@ -139,16 +139,6 @@ declare module 'stripe' {
139
139
  */
140
140
  invoice_item_details: Parent.InvoiceItemDetails | null;
141
141
 
142
- /**
143
- * Details about the license fee subscription that generated this line item
144
- */
145
- license_fee_subscription_details?: Parent.LicenseFeeSubscriptionDetails | null;
146
-
147
- /**
148
- * Details about the rate card subscription that generated this line item
149
- */
150
- rate_card_subscription_details?: Parent.RateCardSubscriptionDetails | null;
151
-
152
142
  /**
153
143
  * Details about the subscription item that generated this line item
154
144
  */
@@ -206,60 +196,6 @@ declare module 'stripe' {
206
196
  }
207
197
  }
208
198
 
209
- interface LicenseFeeSubscriptionDetails {
210
- /**
211
- * The invoice item that generated this line item
212
- */
213
- invoice_item: string;
214
-
215
- /**
216
- * The license fee subscription that generated this line item
217
- */
218
- license_fee_subscription: string;
219
-
220
- /**
221
- * The license fee version at the time this line item was generated
222
- */
223
- license_fee_version: string;
224
-
225
- /**
226
- * The pricing plan subscription that manages the license fee subscription
227
- */
228
- pricing_plan_subscription: string;
229
-
230
- /**
231
- * The pricing plan version at the time this line item was generated
232
- */
233
- pricing_plan_version: string;
234
- }
235
-
236
- interface RateCardSubscriptionDetails {
237
- /**
238
- * The invoice item that generated this line item
239
- */
240
- invoice_item: string;
241
-
242
- /**
243
- * The pricing plan subscription that manages the rate card subscription
244
- */
245
- pricing_plan_subscription?: string | null;
246
-
247
- /**
248
- * The pricing plan version at the time this line item was generated
249
- */
250
- pricing_plan_version?: string | null;
251
-
252
- /**
253
- * The rate card subscription that generated this line item
254
- */
255
- rate_card_subscription: string;
256
-
257
- /**
258
- * The rate card version at the time this line item was generated
259
- */
260
- rate_card_version: string;
261
- }
262
-
263
199
  interface SubscriptionItemDetails {
264
200
  /**
265
201
  * The invoice item that generated this line item
@@ -310,11 +246,7 @@ declare module 'stripe' {
310
246
  }
311
247
  }
312
248
 
313
- type Type =
314
- | 'invoice_item_details'
315
- | 'license_fee_subscription_details'
316
- | 'rate_card_subscription_details'
317
- | 'subscription_item_details';
249
+ type Type = 'invoice_item_details' | 'subscription_item_details';
318
250
  }
319
251
 
320
252
  interface Period {
@@ -364,16 +296,12 @@ declare module 'stripe' {
364
296
  }
365
297
 
366
298
  interface Pricing {
367
- license_fee_details?: Pricing.LicenseFeeDetails;
368
-
369
299
  price_details?: Pricing.PriceDetails;
370
300
 
371
- rate_card_rate_details?: Pricing.RateCardRateDetails;
372
-
373
301
  /**
374
302
  * The type of the pricing details.
375
303
  */
376
- type: Pricing.Type;
304
+ type: 'price_details';
377
305
 
378
306
  /**
379
307
  * The unit amount (in the `currency` specified) of the item which contains a decimal value with at most 12 decimal places.
@@ -382,23 +310,6 @@ declare module 'stripe' {
382
310
  }
383
311
 
384
312
  namespace Pricing {
385
- interface LicenseFeeDetails {
386
- /**
387
- * The ID of the license fee this item is associated with
388
- */
389
- license_fee: string;
390
-
391
- /**
392
- * The version of the license fee this item is associated with
393
- */
394
- license_fee_version: string;
395
-
396
- /**
397
- * The ID of the licensed item this item is associated with
398
- */
399
- licensed_item: string;
400
- }
401
-
402
313
  interface PriceDetails {
403
314
  /**
404
315
  * The ID of the price this item is associated with.
@@ -410,28 +321,6 @@ declare module 'stripe' {
410
321
  */
411
322
  product: string;
412
323
  }
413
-
414
- interface RateCardRateDetails {
415
- /**
416
- * The ID of billable item this item is associated with
417
- */
418
- metered_item: string;
419
-
420
- /**
421
- * The ID of the rate card this item is associated with
422
- */
423
- rate_card: string;
424
-
425
- /**
426
- * The ID of the rate card rate this item is associated with
427
- */
428
- rate_card_rate: string;
429
- }
430
-
431
- type Type =
432
- | 'license_fee_details'
433
- | 'price_details'
434
- | 'rate_card_rate_details';
435
324
  }
436
325
 
437
326
  interface Tax {
@@ -1790,11 +1790,6 @@ declare module 'stripe' {
1790
1790
  }
1791
1791
 
1792
1792
  interface InvoiceListParams extends PaginationParams {
1793
- /**
1794
- * Only return invoices for the cadence specified by this billing cadence ID.
1795
- */
1796
- billing_cadence?: string;
1797
-
1798
1793
  /**
1799
1794
  * The collection method of the invoice to retrieve. Either `charge_automatically` or `send_invoice`.
1800
1795
  */