stripe 19.3.0-beta.1 → 19.4.0-alpha.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 (184) hide show
  1. package/CHANGELOG.md +235 -1
  2. package/OPENAPI_VERSION +1 -1
  3. package/VERSION +1 -1
  4. package/cjs/RequestSender.js +1 -1
  5. package/cjs/apiVersion.js +1 -1
  6. package/cjs/resources/DelegatedCheckout/RequestedSessions.js +28 -0
  7. package/cjs/resources/Identity/BlocklistEntries.js +25 -0
  8. package/cjs/resources/PaymentMethods.js +4 -0
  9. package/cjs/resources/TestHelpers/Capital/FinancingOffers.js +16 -0
  10. package/cjs/resources/V2/Billing/CustomPricingUnits.js +25 -0
  11. package/cjs/resources/V2/Billing/Intents/Actions.js +17 -0
  12. package/cjs/resources/V2/Billing/Intents.js +36 -0
  13. package/cjs/resources/V2/Billing/LicenseFeeSubscriptions.js +12 -0
  14. package/cjs/resources/V2/Billing/LicenseFees/Versions.js +17 -0
  15. package/cjs/resources/V2/Billing/LicenseFees.js +27 -0
  16. package/cjs/resources/V2/Billing/LicensedItems.js +25 -0
  17. package/cjs/resources/V2/Billing/MeteredItems.js +22 -0
  18. package/cjs/resources/V2/Billing/PricingPlanSubscriptions/Components.js +12 -0
  19. package/cjs/resources/V2/Billing/PricingPlanSubscriptions.js +26 -0
  20. package/cjs/resources/V2/Billing/PricingPlans/Components.js +29 -0
  21. package/cjs/resources/V2/Billing/PricingPlans/Versions.js +17 -0
  22. package/cjs/resources/V2/Billing/PricingPlans.js +29 -0
  23. package/cjs/resources/V2/Billing/RateCardSubscriptions.js +29 -0
  24. package/cjs/resources/V2/Billing/RateCards/Rates.js +25 -0
  25. package/cjs/resources/V2/Billing/RateCards/Versions.js +17 -0
  26. package/cjs/resources/V2/Billing/RateCards.js +29 -0
  27. package/cjs/resources/V2/Billing/ServiceActions.js +20 -0
  28. package/cjs/resources/V2/Core/ClaimableSandboxes.js +16 -0
  29. package/cjs/resources/V2/MoneyManagement/RecipientVerifications.js +20 -0
  30. package/cjs/resources/V2/Reporting/ReportRuns.js +13 -0
  31. package/cjs/resources/V2/Reporting/Reports.js +12 -0
  32. package/cjs/resources/V2/Tax/AutomaticRules.js +22 -0
  33. package/cjs/resources/V2/TestHelpers/MoneyManagement.js +12 -0
  34. package/cjs/resources.js +47 -1
  35. package/cjs/stripe.core.js +1 -1
  36. package/esm/RequestSender.js +1 -1
  37. package/esm/apiVersion.js +1 -1
  38. package/esm/resources/DelegatedCheckout/RequestedSessions.js +25 -0
  39. package/esm/resources/Identity/BlocklistEntries.js +22 -0
  40. package/esm/resources/PaymentMethods.js +4 -0
  41. package/esm/resources/TestHelpers/Capital/FinancingOffers.js +13 -0
  42. package/esm/resources/V2/Billing/CustomPricingUnits.js +22 -0
  43. package/esm/resources/V2/Billing/Intents/Actions.js +14 -0
  44. package/esm/resources/V2/Billing/Intents.js +33 -0
  45. package/esm/resources/V2/Billing/LicenseFeeSubscriptions.js +9 -0
  46. package/esm/resources/V2/Billing/LicenseFees/Versions.js +14 -0
  47. package/esm/resources/V2/Billing/LicenseFees.js +24 -0
  48. package/esm/resources/V2/Billing/LicensedItems.js +22 -0
  49. package/esm/resources/V2/Billing/MeteredItems.js +19 -0
  50. package/esm/resources/V2/Billing/PricingPlanSubscriptions/Components.js +9 -0
  51. package/esm/resources/V2/Billing/PricingPlanSubscriptions.js +23 -0
  52. package/esm/resources/V2/Billing/PricingPlans/Components.js +26 -0
  53. package/esm/resources/V2/Billing/PricingPlans/Versions.js +14 -0
  54. package/esm/resources/V2/Billing/PricingPlans.js +26 -0
  55. package/esm/resources/V2/Billing/RateCardSubscriptions.js +26 -0
  56. package/esm/resources/V2/Billing/RateCards/Rates.js +22 -0
  57. package/esm/resources/V2/Billing/RateCards/Versions.js +14 -0
  58. package/esm/resources/V2/Billing/RateCards.js +26 -0
  59. package/esm/resources/V2/Billing/ServiceActions.js +17 -0
  60. package/esm/resources/V2/Core/ClaimableSandboxes.js +13 -0
  61. package/esm/resources/V2/MoneyManagement/RecipientVerifications.js +17 -0
  62. package/esm/resources/V2/Reporting/ReportRuns.js +10 -0
  63. package/esm/resources/V2/Reporting/Reports.js +9 -0
  64. package/esm/resources/V2/Tax/AutomaticRules.js +19 -0
  65. package/esm/resources/V2/TestHelpers/MoneyManagement.js +9 -0
  66. package/esm/resources.js +46 -0
  67. package/esm/stripe.core.js +1 -1
  68. package/package.json +1 -1
  69. package/types/ApplicationFees.d.ts +6 -1
  70. package/types/Balance.d.ts +82 -0
  71. package/types/BalanceTransactions.d.ts +2 -1
  72. package/types/Billing/AlertTriggereds.d.ts +15 -0
  73. package/types/Billing/Alerts.d.ts +116 -1
  74. package/types/Billing/AlertsResource.d.ts +149 -2
  75. package/types/Billing/Analytics/MeterUsageResource.d.ts +5 -0
  76. package/types/Billing/Analytics/MeterUsageRows.d.ts +7 -0
  77. package/types/Billing/CreditBalanceSummary.d.ts +118 -2
  78. package/types/Billing/CreditBalanceSummaryResource.d.ts +12 -0
  79. package/types/Billing/CreditBalanceTransactions.d.ts +118 -2
  80. package/types/Billing/CreditGrants.d.ts +71 -1
  81. package/types/Billing/CreditGrantsResource.d.ts +32 -1
  82. package/types/Billing/MeterEventSummaries.d.ts +7 -0
  83. package/types/Billing/Meters.d.ts +5 -0
  84. package/types/Billing/MetersResource.d.ts +17 -0
  85. package/types/Cards.d.ts +14 -0
  86. package/types/Charges.d.ts +14 -0
  87. package/types/ChargesResource.d.ts +4 -16
  88. package/types/Checkout/Sessions.d.ts +58 -0
  89. package/types/Checkout/SessionsResource.d.ts +50 -0
  90. package/types/ConfirmationTokens.d.ts +14 -0
  91. package/types/Coupons.d.ts +3 -1
  92. package/types/CouponsResource.d.ts +3 -1
  93. package/types/DelegatedCheckout/RequestedSessions.d.ts +360 -0
  94. package/types/DelegatedCheckout/RequestedSessionsResource.d.ts +593 -0
  95. package/types/Identity/BlocklistEntries.d.ts +78 -0
  96. package/types/Identity/BlocklistEntriesResource.d.ts +146 -0
  97. package/types/Identity/VerificationReports.d.ts +10 -0
  98. package/types/Identity/VerificationReportsResource.d.ts +5 -0
  99. package/types/InvoiceItems.d.ts +104 -2
  100. package/types/InvoiceLineItems.d.ts +113 -2
  101. package/types/InvoicePayments.d.ts +1 -1
  102. package/types/InvoicesResource.d.ts +5 -0
  103. package/types/PaymentIntentAmountDetailsLineItems.d.ts +7 -13
  104. package/types/PaymentIntents.d.ts +37 -18
  105. package/types/PaymentIntentsResource.d.ts +164 -145
  106. package/types/PaymentMethodBalances.d.ts +63 -0
  107. package/types/PaymentMethods.d.ts +14 -0
  108. package/types/PaymentMethodsResource.d.ts +20 -0
  109. package/types/SetupIntents.d.ts +24 -1
  110. package/types/SetupIntentsResource.d.ts +90 -0
  111. package/types/TestHelpers/Capital/FinancingOffersResource.d.ts +100 -0
  112. package/types/Transfers.d.ts +4 -0
  113. package/types/TransfersResource.d.ts +2 -0
  114. package/types/TransitBalances.d.ts +40 -0
  115. package/types/V2/Billing/Cadences.d.ts +51 -2
  116. package/types/V2/Billing/CadencesResource.d.ts +32 -3
  117. package/types/V2/Billing/CollectionSettingVersions.d.ts +6 -2
  118. package/types/V2/Billing/CollectionSettings.d.ts +6 -2
  119. package/types/V2/Billing/CollectionSettingsResource.d.ts +12 -4
  120. package/types/V2/Billing/CustomPricingUnits.d.ts +56 -0
  121. package/types/V2/Billing/CustomPricingUnitsResource.d.ts +122 -0
  122. package/types/V2/Billing/IntentActions.d.ts +459 -0
  123. package/types/V2/Billing/Intents/ActionsResource.d.ts +58 -0
  124. package/types/V2/Billing/Intents.d.ts +117 -0
  125. package/types/V2/Billing/IntentsResource.d.ts +575 -0
  126. package/types/V2/Billing/LicenseFeeSubscriptions.d.ts +64 -0
  127. package/types/V2/Billing/LicenseFeeSubscriptionsResource.d.ts +28 -0
  128. package/types/V2/Billing/LicenseFeeVersions.d.ts +106 -0
  129. package/types/V2/Billing/LicenseFees/VersionsResource.d.ts +58 -0
  130. package/types/V2/Billing/LicenseFees.d.ts +164 -0
  131. package/types/V2/Billing/LicenseFeesResource.d.ts +290 -0
  132. package/types/V2/Billing/LicensedItems.d.ts +73 -0
  133. package/types/V2/Billing/LicensedItemsResource.d.ts +157 -0
  134. package/types/V2/Billing/MeteredItems.d.ts +101 -0
  135. package/types/V2/Billing/MeteredItemsResource.d.ts +189 -0
  136. package/types/V2/Billing/PricingPlanComponents.d.ts +109 -0
  137. package/types/V2/Billing/PricingPlanSubscriptionComponents.d.ts +57 -0
  138. package/types/V2/Billing/PricingPlanSubscriptions/ComponentsResource.d.ts +40 -0
  139. package/types/V2/Billing/PricingPlanSubscriptions.d.ts +144 -0
  140. package/types/V2/Billing/PricingPlanSubscriptionsResource.d.ts +120 -0
  141. package/types/V2/Billing/PricingPlanVersions.d.ts +49 -0
  142. package/types/V2/Billing/PricingPlans/ComponentsResource.d.ts +197 -0
  143. package/types/V2/Billing/PricingPlans/VersionsResource.d.ts +58 -0
  144. package/types/V2/Billing/PricingPlans.d.ts +84 -0
  145. package/types/V2/Billing/PricingPlansResource.d.ts +151 -0
  146. package/types/V2/Billing/RateCardRates.d.ts +144 -0
  147. package/types/V2/Billing/RateCardSubscriptions.d.ts +144 -0
  148. package/types/V2/Billing/RateCardSubscriptionsResource.d.ts +157 -0
  149. package/types/V2/Billing/RateCardVersions.d.ts +39 -0
  150. package/types/V2/Billing/RateCards/RatesResource.d.ts +203 -0
  151. package/types/V2/Billing/RateCards/VersionsResource.d.ts +58 -0
  152. package/types/V2/Billing/RateCards.d.ts +98 -0
  153. package/types/V2/Billing/RateCardsResource.d.ts +162 -0
  154. package/types/V2/Billing/ServiceActions.d.ts +274 -0
  155. package/types/V2/Billing/ServiceActionsResource.d.ts +370 -0
  156. package/types/V2/Core/Accounts.d.ts +1491 -23
  157. package/types/V2/Core/AccountsResource.d.ts +1619 -0
  158. package/types/V2/Core/ClaimableSandboxes.d.ts +132 -0
  159. package/types/V2/Core/ClaimableSandboxesResource.d.ts +74 -0
  160. package/types/V2/Core/EventTypes.d.ts +7399 -343
  161. package/types/V2/Core/Events.d.ts +14 -0
  162. package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +14 -0
  163. package/types/V2/MoneyManagement/InboundTransfers.d.ts +9 -3
  164. package/types/V2/MoneyManagement/OutboundPayments.d.ts +5 -0
  165. package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +5 -0
  166. package/types/V2/MoneyManagement/OutboundSetupIntentsResource.d.ts +34 -0
  167. package/types/V2/MoneyManagement/OutboundTransfers.d.ts +5 -0
  168. package/types/V2/MoneyManagement/OutboundTransfersResource.d.ts +5 -0
  169. package/types/V2/MoneyManagement/PayoutMethods.d.ts +41 -0
  170. package/types/V2/MoneyManagement/ReceivedCredits.d.ts +5 -0
  171. package/types/V2/MoneyManagement/ReceivedDebits.d.ts +10 -0
  172. package/types/V2/MoneyManagement/RecipientVerifications.d.ts +112 -0
  173. package/types/V2/MoneyManagement/RecipientVerificationsResource.d.ts +77 -0
  174. package/types/V2/Reporting/ReportRuns.d.ts +154 -0
  175. package/types/V2/Reporting/ReportRunsResource.d.ts +75 -0
  176. package/types/V2/Reporting/Reports.d.ts +120 -0
  177. package/types/V2/Reporting/ReportsResource.d.ts +30 -0
  178. package/types/V2/Tax/AutomaticRules.d.ts +53 -0
  179. package/types/V2/Tax/AutomaticRulesResource.d.ts +102 -0
  180. package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +6 -1
  181. package/types/V2/TestHelpers/MoneyManagementResource.d.ts +49 -0
  182. package/types/Webhooks.d.ts +2 -0
  183. package/types/apiVersion.d.ts +1 -1
  184. package/types/index.d.ts +82 -0
@@ -0,0 +1,146 @@
1
+ // File generated from our OpenAPI spec
2
+
3
+ declare module 'stripe' {
4
+ namespace Stripe {
5
+ namespace Identity {
6
+ interface BlocklistEntryCreateParams {
7
+ /**
8
+ * The type of blocklist entry to be created.
9
+ */
10
+ entry_type: BlocklistEntryCreateParams.EntryType;
11
+
12
+ /**
13
+ * The identifier of the VerificationReport to create the BlocklistEntry from.
14
+ */
15
+ verification_report: string;
16
+
17
+ /**
18
+ * When true, the created BlocklistEntry will be used to retroactively unverify matching verifications.
19
+ */
20
+ check_existing_verifications?: boolean;
21
+
22
+ /**
23
+ * Specifies which fields in the response should be expanded.
24
+ */
25
+ expand?: Array<string>;
26
+ }
27
+
28
+ namespace BlocklistEntryCreateParams {
29
+ type EntryType = 'document' | 'selfie';
30
+ }
31
+
32
+ interface BlocklistEntryRetrieveParams {
33
+ /**
34
+ * Specifies which fields in the response should be expanded.
35
+ */
36
+ expand?: Array<string>;
37
+ }
38
+
39
+ interface BlocklistEntryListParams extends PaginationParams {
40
+ /**
41
+ * Only return BlocklistEntries that were created during the given date interval.
42
+ */
43
+ created?: Stripe.RangeQueryParam | number;
44
+
45
+ /**
46
+ * Specifies which fields in the response should be expanded.
47
+ */
48
+ expand?: Array<string>;
49
+
50
+ /**
51
+ * Only return blocklist entries with the specified status.
52
+ */
53
+ status?: BlocklistEntryListParams.Status;
54
+
55
+ /**
56
+ * Only return blocklist entries of the specified type.
57
+ */
58
+ type?: BlocklistEntryListParams.Type;
59
+
60
+ /**
61
+ * Only return blocklist entries created from this verification report.
62
+ */
63
+ verification_report?: string;
64
+ }
65
+
66
+ namespace BlocklistEntryListParams {
67
+ type Status = 'active' | 'disabled' | 'redacted';
68
+
69
+ type Type = 'document' | 'selfie';
70
+ }
71
+
72
+ interface BlocklistEntryDisableParams {
73
+ /**
74
+ * Specifies which fields in the response should be expanded.
75
+ */
76
+ expand?: Array<string>;
77
+ }
78
+
79
+ class BlocklistEntriesResource {
80
+ /**
81
+ * Creates a BlocklistEntry object from a verification report.
82
+ *
83
+ * A blocklist entry prevents future identity verifications that match the same identity information.
84
+ * You can create blocklist entries from verification reports that contain document extracted data
85
+ * or a selfie.
86
+ *
87
+ * Related guide: [Identity Verification Blocklist](https://docs.stripe.com/docs/identity/review-tools#add-a-blocklist-entry)
88
+ */
89
+ create(
90
+ params: BlocklistEntryCreateParams,
91
+ options?: RequestOptions
92
+ ): Promise<Stripe.Response<Stripe.Identity.BlocklistEntry>>;
93
+
94
+ /**
95
+ * Retrieves a BlocklistEntry object by its identifier.
96
+ *
97
+ * Related guide: [Identity Verification Blocklist](https://docs.stripe.com/docs/identity/review-tools#block-list)
98
+ */
99
+ retrieve(
100
+ id: string,
101
+ params?: BlocklistEntryRetrieveParams,
102
+ options?: RequestOptions
103
+ ): Promise<Stripe.Response<Stripe.Identity.BlocklistEntry>>;
104
+ retrieve(
105
+ id: string,
106
+ options?: RequestOptions
107
+ ): Promise<Stripe.Response<Stripe.Identity.BlocklistEntry>>;
108
+
109
+ /**
110
+ * Returns a list of BlocklistEntry objects associated with your account.
111
+ *
112
+ * The blocklist entries are returned sorted by creation date, with the most recently created
113
+ * entries appearing first.
114
+ *
115
+ * Related guide: [Identity Verification Blocklist](https://docs.stripe.com/docs/identity/review-tools#block-list)
116
+ */
117
+ list(
118
+ params?: BlocklistEntryListParams,
119
+ options?: RequestOptions
120
+ ): ApiListPromise<Stripe.Identity.BlocklistEntry>;
121
+ list(
122
+ options?: RequestOptions
123
+ ): ApiListPromise<Stripe.Identity.BlocklistEntry>;
124
+
125
+ /**
126
+ * Disables a BlocklistEntry object.
127
+ *
128
+ * After a BlocklistEntry is disabled, it will no longer block future verifications that match
129
+ * the same information. This action is irreversible. To re-enable it, a new BlocklistEntry
130
+ * must be created using the same verification report.
131
+ *
132
+ * Related guide: [Identity Verification Blocklist](https://docs.stripe.com/docs/identity/review-tools#disable-a-blocklist-entry)
133
+ */
134
+ disable(
135
+ id: string,
136
+ params?: BlocklistEntryDisableParams,
137
+ options?: RequestOptions
138
+ ): Promise<Stripe.Response<Stripe.Identity.BlocklistEntry>>;
139
+ disable(
140
+ id: string,
141
+ options?: RequestOptions
142
+ ): Promise<Stripe.Response<Stripe.Identity.BlocklistEntry>>;
143
+ }
144
+ }
145
+ }
146
+ }
@@ -92,6 +92,11 @@ declare module 'stripe' {
92
92
  */
93
93
  address: Stripe.Address | null;
94
94
 
95
+ /**
96
+ * If document was not verified due to extracted data being on the blocklist, this is the token of the BlocklistEntry that blocked it
97
+ */
98
+ blocked_by_entry?: string | Stripe.Identity.BlocklistEntry | null;
99
+
95
100
  /**
96
101
  * Date of birth as it appears in the document.
97
102
  */
@@ -435,6 +440,11 @@ declare module 'stripe' {
435
440
  }
436
441
 
437
442
  interface Selfie {
443
+ /**
444
+ * If selfie was not verified due to being on the blocklist, this is the token of the BlocklistEntry that blocked it
445
+ */
446
+ blocked_by_entry?: string | Stripe.Identity.BlocklistEntry | null;
447
+
438
448
  /**
439
449
  * ID of the [File](https://stripe.com/docs/api/files) holding the image of the identity document used in this check.
440
450
  */
@@ -11,6 +11,11 @@ declare module 'stripe' {
11
11
  }
12
12
 
13
13
  interface VerificationReportListParams extends PaginationParams {
14
+ /**
15
+ * Only return VerificationReports that were blocked by this BlocklistEntry id.
16
+ */
17
+ blocked_by_entry?: string;
18
+
14
19
  /**
15
20
  * A string to reference this user. This can be a customer ID, a session ID, or similar, and can be used to reconcile this verification with your internal systems.
16
21
  */
@@ -150,6 +150,16 @@ 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
+
153
163
  /**
154
164
  * Details about the subscription that generated this invoice item
155
165
  */
@@ -158,10 +168,54 @@ declare module 'stripe' {
158
168
  /**
159
169
  * The type of parent that generated this invoice item
160
170
  */
161
- type: 'subscription_details';
171
+ type: Parent.Type;
162
172
  }
163
173
 
164
174
  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
+
165
219
  interface SubscriptionDetails {
166
220
  /**
167
221
  * The subscription that generated this invoice item
@@ -173,6 +227,11 @@ declare module 'stripe' {
173
227
  */
174
228
  subscription_item?: string;
175
229
  }
230
+
231
+ type Type =
232
+ | 'license_fee_subscription_details'
233
+ | 'rate_card_subscription_details'
234
+ | 'subscription_details';
176
235
  }
177
236
 
178
237
  interface Period {
@@ -188,12 +247,16 @@ declare module 'stripe' {
188
247
  }
189
248
 
190
249
  interface Pricing {
250
+ license_fee_details?: Pricing.LicenseFeeDetails;
251
+
191
252
  price_details?: Pricing.PriceDetails;
192
253
 
254
+ rate_card_rate_details?: Pricing.RateCardRateDetails;
255
+
193
256
  /**
194
257
  * The type of the pricing details.
195
258
  */
196
- type: 'price_details';
259
+ type: Pricing.Type;
197
260
 
198
261
  /**
199
262
  * The unit amount (in the `currency` specified) of the item which contains a decimal value with at most 12 decimal places.
@@ -202,6 +265,23 @@ declare module 'stripe' {
202
265
  }
203
266
 
204
267
  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
+
205
285
  interface PriceDetails {
206
286
  /**
207
287
  * The ID of the price this item is associated with.
@@ -213,6 +293,28 @@ declare module 'stripe' {
213
293
  */
214
294
  product: string;
215
295
  }
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';
216
318
  }
217
319
 
218
320
  interface ProrationDetails {
@@ -139,6 +139,16 @@ 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
+
142
152
  /**
143
153
  * Details about the subscription item that generated this line item
144
154
  */
@@ -196,6 +206,60 @@ declare module 'stripe' {
196
206
  }
197
207
  }
198
208
 
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
+
199
263
  interface SubscriptionItemDetails {
200
264
  /**
201
265
  * The invoice item that generated this line item
@@ -246,7 +310,11 @@ declare module 'stripe' {
246
310
  }
247
311
  }
248
312
 
249
- type Type = 'invoice_item_details' | 'subscription_item_details';
313
+ type Type =
314
+ | 'invoice_item_details'
315
+ | 'license_fee_subscription_details'
316
+ | 'rate_card_subscription_details'
317
+ | 'subscription_item_details';
250
318
  }
251
319
 
252
320
  interface Period {
@@ -296,12 +364,16 @@ declare module 'stripe' {
296
364
  }
297
365
 
298
366
  interface Pricing {
367
+ license_fee_details?: Pricing.LicenseFeeDetails;
368
+
299
369
  price_details?: Pricing.PriceDetails;
300
370
 
371
+ rate_card_rate_details?: Pricing.RateCardRateDetails;
372
+
301
373
  /**
302
374
  * The type of the pricing details.
303
375
  */
304
- type: 'price_details';
376
+ type: Pricing.Type;
305
377
 
306
378
  /**
307
379
  * The unit amount (in the `currency` specified) of the item which contains a decimal value with at most 12 decimal places.
@@ -310,6 +382,23 @@ declare module 'stripe' {
310
382
  }
311
383
 
312
384
  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
+
313
402
  interface PriceDetails {
314
403
  /**
315
404
  * The ID of the price this item is associated with.
@@ -321,6 +410,28 @@ declare module 'stripe' {
321
410
  */
322
411
  product: string;
323
412
  }
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';
324
435
  }
325
436
 
326
437
  interface Tax {
@@ -92,7 +92,7 @@ declare module 'stripe' {
92
92
  }
93
93
 
94
94
  namespace Payment {
95
- type Type = 'charge' | 'payment_intent';
95
+ type Type = 'charge' | 'payment_intent' | 'payment_record';
96
96
  }
97
97
 
98
98
  interface StatusTransitions {
@@ -1790,6 +1790,11 @@ 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
+
1793
1798
  /**
1794
1799
  * The collection method of the invoice to retrieve. Either `charge_automatically` or `send_invoice`.
1795
1800
  */
@@ -17,9 +17,7 @@ declare module 'stripe' {
17
17
  object: 'payment_intent_amount_details_line_item';
18
18
 
19
19
  /**
20
- * The discount applied on this line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than 0.
21
- *
22
- * This field is mutually exclusive with the `amount_details[discount_amount]` field.
20
+ * The amount an item was discounted for. Positive integer.
23
21
  */
24
22
  discount_amount: number | null;
25
23
 
@@ -29,19 +27,17 @@ declare module 'stripe' {
29
27
  payment_method_options: PaymentIntentAmountDetailsLineItem.PaymentMethodOptions | null;
30
28
 
31
29
  /**
32
- * The product code of the line item, such as an SKU. Required for L3 rates. At most 12 characters long.
30
+ * Unique identifier of the product. At most 12 characters long.
33
31
  */
34
32
  product_code: string | null;
35
33
 
36
34
  /**
37
- * The product name of the line item. Required for L3 rates. At most 1024 characters long.
38
- *
39
- * For Cards, this field is truncated to 26 alphanumeric characters before being sent to the card networks. For Paypal, this field is truncated to 127 characters.
35
+ * Name of the product. At most 100 characters long.
40
36
  */
41
37
  product_name: string;
42
38
 
43
39
  /**
44
- * The quantity of items. Required for L3 rates. An integer greater than 0.
40
+ * Number of items of the product. Positive integer.
45
41
  */
46
42
  quantity: number;
47
43
 
@@ -51,12 +47,12 @@ declare module 'stripe' {
51
47
  tax: PaymentIntentAmountDetailsLineItem.Tax | null;
52
48
 
53
49
  /**
54
- * The unit cost of the line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0.
50
+ * Cost of the product. Non-negative integer.
55
51
  */
56
52
  unit_cost: number;
57
53
 
58
54
  /**
59
- * A unit of measure for the line item, such as gallons, feet, meters, etc. Required for L3 rates. At most 12 alphanumeric characters long.
55
+ * A unit of measure for the line item, such as gallons, feet, meters, etc.
60
56
  */
61
57
  unit_of_measure: string | null;
62
58
  }
@@ -115,9 +111,7 @@ declare module 'stripe' {
115
111
 
116
112
  interface Tax {
117
113
  /**
118
- * The total amount of tax on the transaction represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L2 rates. An integer greater than or equal to 0.
119
- *
120
- * This field is mutually exclusive with the `amount_details[line_items][#][tax][total_tax_amount]` field.
114
+ * Total portion of the amount that is for tax.
121
115
  */
122
116
  total_tax_amount: number;
123
117
  }