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
@@ -75,6 +75,11 @@ declare module 'stripe' {
75
75
 
76
76
  namespace Credit {
77
77
  interface Amount {
78
+ /**
79
+ * The custom pricing unit amount.
80
+ */
81
+ custom_pricing_unit?: Amount.CustomPricingUnit | null;
82
+
78
83
  /**
79
84
  * The monetary amount.
80
85
  */
@@ -83,10 +88,61 @@ declare module 'stripe' {
83
88
  /**
84
89
  * The type of this amount. We currently only support `monetary` billing credits.
85
90
  */
86
- type: 'monetary';
91
+ type: Amount.Type;
87
92
  }
88
93
 
89
94
  namespace Amount {
95
+ interface CustomPricingUnit {
96
+ /**
97
+ * The custom pricing unit object.
98
+ */
99
+ custom_pricing_unit_details: CustomPricingUnit.CustomPricingUnitDetails | null;
100
+
101
+ /**
102
+ * Unique identifier for the object.
103
+ */
104
+ id: string;
105
+
106
+ /**
107
+ * A positive integer representing the amount.
108
+ */
109
+ value: string;
110
+ }
111
+
112
+ namespace CustomPricingUnit {
113
+ interface CustomPricingUnitDetails {
114
+ /**
115
+ * Time at which the object was created. Measured in seconds since the Unix epoch.
116
+ */
117
+ created: number;
118
+
119
+ /**
120
+ * The name of the custom pricing unit.
121
+ */
122
+ display_name: string;
123
+
124
+ /**
125
+ * Unique identifier for the object.
126
+ */
127
+ id: string;
128
+
129
+ /**
130
+ * A lookup key for the custom pricing unit.
131
+ */
132
+ lookup_key: string | null;
133
+
134
+ /**
135
+ * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
136
+ */
137
+ metadata: Stripe.Metadata;
138
+
139
+ /**
140
+ * The status of the custom pricing unit.
141
+ */
142
+ status: string;
143
+ }
144
+ }
145
+
90
146
  interface Monetary {
91
147
  /**
92
148
  * 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).
@@ -98,6 +154,8 @@ declare module 'stripe' {
98
154
  */
99
155
  value: number;
100
156
  }
157
+
158
+ type Type = 'custom_pricing_unit' | 'monetary';
101
159
  }
102
160
 
103
161
  interface CreditsApplicationInvoiceVoided {
@@ -131,6 +189,11 @@ declare module 'stripe' {
131
189
 
132
190
  namespace Debit {
133
191
  interface Amount {
192
+ /**
193
+ * The custom pricing unit amount.
194
+ */
195
+ custom_pricing_unit?: Amount.CustomPricingUnit | null;
196
+
134
197
  /**
135
198
  * The monetary amount.
136
199
  */
@@ -139,10 +202,61 @@ declare module 'stripe' {
139
202
  /**
140
203
  * The type of this amount. We currently only support `monetary` billing credits.
141
204
  */
142
- type: 'monetary';
205
+ type: Amount.Type;
143
206
  }
144
207
 
145
208
  namespace Amount {
209
+ interface CustomPricingUnit {
210
+ /**
211
+ * The custom pricing unit object.
212
+ */
213
+ custom_pricing_unit_details: CustomPricingUnit.CustomPricingUnitDetails | null;
214
+
215
+ /**
216
+ * Unique identifier for the object.
217
+ */
218
+ id: string;
219
+
220
+ /**
221
+ * A positive integer representing the amount.
222
+ */
223
+ value: string;
224
+ }
225
+
226
+ namespace CustomPricingUnit {
227
+ interface CustomPricingUnitDetails {
228
+ /**
229
+ * Time at which the object was created. Measured in seconds since the Unix epoch.
230
+ */
231
+ created: number;
232
+
233
+ /**
234
+ * The name of the custom pricing unit.
235
+ */
236
+ display_name: string;
237
+
238
+ /**
239
+ * Unique identifier for the object.
240
+ */
241
+ id: string;
242
+
243
+ /**
244
+ * A lookup key for the custom pricing unit.
245
+ */
246
+ lookup_key: string | null;
247
+
248
+ /**
249
+ * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
250
+ */
251
+ metadata: Stripe.Metadata;
252
+
253
+ /**
254
+ * The status of the custom pricing unit.
255
+ */
256
+ status: string;
257
+ }
258
+ }
259
+
146
260
  interface Monetary {
147
261
  /**
148
262
  * 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).
@@ -154,6 +268,8 @@ declare module 'stripe' {
154
268
  */
155
269
  value: number;
156
270
  }
271
+
272
+ type Type = 'custom_pricing_unit' | 'monetary';
157
273
  }
158
274
 
159
275
  interface CreditsApplied {
@@ -91,6 +91,11 @@ declare module 'stripe' {
91
91
 
92
92
  namespace CreditGrant {
93
93
  interface Amount {
94
+ /**
95
+ * The custom pricing unit amount.
96
+ */
97
+ custom_pricing_unit?: Amount.CustomPricingUnit | null;
98
+
94
99
  /**
95
100
  * The monetary amount.
96
101
  */
@@ -99,10 +104,61 @@ declare module 'stripe' {
99
104
  /**
100
105
  * The type of this amount. We currently only support `monetary` billing credits.
101
106
  */
102
- type: 'monetary';
107
+ type: Amount.Type;
103
108
  }
104
109
 
105
110
  namespace Amount {
111
+ interface CustomPricingUnit {
112
+ /**
113
+ * The custom pricing unit object.
114
+ */
115
+ custom_pricing_unit_details: CustomPricingUnit.CustomPricingUnitDetails | null;
116
+
117
+ /**
118
+ * Unique identifier for the object.
119
+ */
120
+ id: string;
121
+
122
+ /**
123
+ * A positive integer representing the amount.
124
+ */
125
+ value: string;
126
+ }
127
+
128
+ namespace CustomPricingUnit {
129
+ interface CustomPricingUnitDetails {
130
+ /**
131
+ * Time at which the object was created. Measured in seconds since the Unix epoch.
132
+ */
133
+ created: number;
134
+
135
+ /**
136
+ * The name of the custom pricing unit.
137
+ */
138
+ display_name: string;
139
+
140
+ /**
141
+ * Unique identifier for the object.
142
+ */
143
+ id: string;
144
+
145
+ /**
146
+ * A lookup key for the custom pricing unit.
147
+ */
148
+ lookup_key: string | null;
149
+
150
+ /**
151
+ * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
152
+ */
153
+ metadata: Stripe.Metadata;
154
+
155
+ /**
156
+ * The status of the custom pricing unit.
157
+ */
158
+ status: string;
159
+ }
160
+ }
161
+
106
162
  interface Monetary {
107
163
  /**
108
164
  * 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).
@@ -114,6 +170,8 @@ declare module 'stripe' {
114
170
  */
115
171
  value: number;
116
172
  }
173
+
174
+ type Type = 'custom_pricing_unit' | 'monetary';
117
175
  }
118
176
 
119
177
  interface ApplicabilityConfig {
@@ -122,6 +180,11 @@ declare module 'stripe' {
122
180
 
123
181
  namespace ApplicabilityConfig {
124
182
  interface Scope {
183
+ /**
184
+ * The billable items that credit grants can apply to. We currently only support metered billable items. Cannot be used in combination with `price_type` or `prices`.
185
+ */
186
+ billable_items?: Array<Scope.BillableItem>;
187
+
125
188
  /**
126
189
  * The price type that credit grants can apply to. We currently only support the `metered` price type. This refers to prices that have a [Billing Meter](https://docs.stripe.com/api/billing/meter) attached to them. Cannot be used in combination with `prices`.
127
190
  */
@@ -134,6 +197,13 @@ declare module 'stripe' {
134
197
  }
135
198
 
136
199
  namespace Scope {
200
+ interface BillableItem {
201
+ /**
202
+ * Unique identifier for the object.
203
+ */
204
+ id: string | null;
205
+ }
206
+
137
207
  interface Price {
138
208
  /**
139
209
  * Unique identifier for the object.
@@ -62,6 +62,11 @@ 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
+
65
70
  /**
66
71
  * The monetary amount.
67
72
  */
@@ -70,10 +75,22 @@ declare module 'stripe' {
70
75
  /**
71
76
  * The type of this amount. We currently only support `monetary` billing credits.
72
77
  */
73
- type: 'monetary';
78
+ type: Amount.Type;
74
79
  }
75
80
 
76
81
  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
+
77
94
  interface Monetary {
78
95
  /**
79
96
  * Three-letter [ISO code for the currency](https://stripe.com/docs/currencies) of the `value` parameter.
@@ -85,6 +102,8 @@ declare module 'stripe' {
85
102
  */
86
103
  value: number;
87
104
  }
105
+
106
+ type Type = 'custom_pricing_unit' | 'monetary';
88
107
  }
89
108
 
90
109
  interface ApplicabilityConfig {
@@ -96,6 +115,11 @@ declare module 'stripe' {
96
115
 
97
116
  namespace ApplicabilityConfig {
98
117
  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
+
99
123
  /**
100
124
  * The price type that credit grants can apply to. We currently only support the `metered` price type. Cannot be used in combination with `prices`.
101
125
  */
@@ -108,6 +132,13 @@ declare module 'stripe' {
108
132
  }
109
133
 
110
134
  namespace Scope {
135
+ interface BillableItem {
136
+ /**
137
+ * The billable item ID this credit grant should apply to.
138
+ */
139
+ id: string;
140
+ }
141
+
111
142
  interface Price {
112
143
  /**
113
144
  * The price ID this credit grant should apply to.
@@ -25,6 +25,13 @@ declare module 'stripe' {
25
25
  */
26
26
  aggregated_value: number;
27
27
 
28
+ /**
29
+ * Key-value pairs of dimension values for event summaries with grouping on dimensions.
30
+ */
31
+ dimensions?: {
32
+ [key: string]: string;
33
+ } | null;
34
+
28
35
  /**
29
36
  * End timestamp for this event summary (exclusive). Must be aligned with minute boundaries.
30
37
  */
@@ -28,6 +28,11 @@ declare module 'stripe' {
28
28
 
29
29
  default_aggregation: Meter.DefaultAggregation;
30
30
 
31
+ /**
32
+ * Set of keys that will be used to group meter events by.
33
+ */
34
+ dimension_payload_keys?: Array<string> | null;
35
+
31
36
  /**
32
37
  * The meter's name.
33
38
  */
@@ -24,6 +24,11 @@ declare module 'stripe' {
24
24
  */
25
25
  customer_mapping?: MeterCreateParams.CustomerMapping;
26
26
 
27
+ /**
28
+ * Set of keys that will be used to group meter events by. Each key must be present in the event payload.
29
+ */
30
+ dimension_payload_keys?: Array<string>;
31
+
27
32
  /**
28
33
  * The time window which meter events have been pre-aggregated for, if any.
29
34
  */
@@ -132,6 +137,18 @@ declare module 'stripe' {
132
137
  */
133
138
  start_time: number;
134
139
 
140
+ /**
141
+ * Key-value pairs used to filter meter events by dimension values. If specified, event summaries will be generated with only matching meter events.
142
+ */
143
+ dimension_filters?: {
144
+ [key: string]: string;
145
+ };
146
+
147
+ /**
148
+ * List of dimension payload keys to group by. If specified, event summaries will be grouped by the given dimension payload key values.
149
+ */
150
+ dimension_group_by_keys?: Array<string>;
151
+
135
152
  /**
136
153
  * Specifies which fields in the response should be expanded.
137
154
  */
package/types/Cards.d.ts CHANGED
@@ -72,6 +72,8 @@ declare module 'stripe' {
72
72
  */
73
73
  available_payout_methods?: Array<Card.AvailablePayoutMethod> | null;
74
74
 
75
+ benefits?: Card.Benefits;
76
+
75
77
  /**
76
78
  * Card brand. Can be `American Express`, `Cartes Bancaires`, `Diners Club`, `Discover`, `Eftpos Australia`, `Girocard`, `JCB`, `MasterCard`, `UnionPay`, `Visa`, or `Unknown`.
77
79
  */
@@ -192,6 +194,18 @@ declare module 'stripe' {
192
194
 
193
195
  type AvailablePayoutMethod = 'instant' | 'standard';
194
196
 
197
+ interface Benefits {
198
+ /**
199
+ * Issuer of this benefit card
200
+ */
201
+ issuer: string | null;
202
+
203
+ /**
204
+ * Available benefit programs for this card
205
+ */
206
+ programs: Array<string> | null;
207
+ }
208
+
195
209
  interface Networks {
196
210
  /**
197
211
  * The preferred network for co-branded cards. Can be `cartes_bancaires`, `mastercard`, `visa` or `invalid_preference` if requested network is not valid for the card.
@@ -18,6 +18,11 @@ declare module 'stripe' {
18
18
  */
19
19
  object: 'charge';
20
20
 
21
+ /**
22
+ * Funds that are in transit and destined for another balance or another connected account.
23
+ */
24
+ allocated_funds?: Stripe.TransitBalance;
25
+
21
26
  /**
22
27
  * Amount intended to be collected by this payment. A positive integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://stripe.com/docs/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
23
28
  */
@@ -868,6 +873,8 @@ declare module 'stripe' {
868
873
  */
869
874
  authorization_code: string | null;
870
875
 
876
+ benefits?: Card.Benefits;
877
+
871
878
  /**
872
879
  * Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
873
880
  */
@@ -991,6 +998,13 @@ declare module 'stripe' {
991
998
  }
992
999
 
993
1000
  namespace Card {
1001
+ interface Benefits {
1002
+ /**
1003
+ * Issuer of the benefit card utilized on this payment
1004
+ */
1005
+ issuer: string | null;
1006
+ }
1007
+
994
1008
  interface Checks {
995
1009
  /**
996
1010
  * If a address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
@@ -228,9 +228,7 @@ declare module 'stripe' {
228
228
  car_rental?: PaymentDetails.CarRental;
229
229
 
230
230
  /**
231
- * A unique value to identify the customer. This field is available only for card payments.
232
- *
233
- * This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
231
+ * Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field.
234
232
  */
235
233
  customer_reference?: Stripe.Emptyable<string>;
236
234
 
@@ -250,11 +248,7 @@ declare module 'stripe' {
250
248
  lodging?: PaymentDetails.Lodging;
251
249
 
252
250
  /**
253
- * A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
254
- *
255
- * Required when the Payment Method Types array contains `card`, including when [automatic_payment_methods.enabled](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled) is set to `true`.
256
- *
257
- * For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app.
251
+ * A unique value assigned by the business to identify the transaction.
258
252
  */
259
253
  order_reference?: Stripe.Emptyable<string>;
260
254
 
@@ -1042,9 +1036,7 @@ declare module 'stripe' {
1042
1036
  car_rental?: PaymentDetails.CarRental;
1043
1037
 
1044
1038
  /**
1045
- * A unique value to identify the customer. This field is available only for card payments.
1046
- *
1047
- * This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
1039
+ * Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field.
1048
1040
  */
1049
1041
  customer_reference?: Stripe.Emptyable<string>;
1050
1042
 
@@ -1064,11 +1056,7 @@ declare module 'stripe' {
1064
1056
  lodging?: PaymentDetails.Lodging;
1065
1057
 
1066
1058
  /**
1067
- * A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
1068
- *
1069
- * Required when the Payment Method Types array contains `card`, including when [automatic_payment_methods.enabled](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled) is set to `true`.
1070
- *
1071
- * For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app.
1059
+ * A unique value assigned by the business to identify the transaction.
1072
1060
  */
1073
1061
  order_reference?: Stripe.Emptyable<string>;
1074
1062
 
@@ -69,6 +69,8 @@ declare module 'stripe' {
69
69
  */
70
70
  cancel_url: string | null;
71
71
 
72
+ checkout_items?: Array<Session.CheckoutItem>;
73
+
72
74
  /**
73
75
  * A unique string to reference the Checkout Session. This can be a
74
76
  * customer ID, a cart ID, or similar, and can be used to reconcile the
@@ -517,6 +519,62 @@ declare module 'stripe' {
517
519
  }
518
520
  }
519
521
 
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
+
520
578
  interface CollectedInformation {
521
579
  /**
522
580
  * Customer's business name for this Checkout Session
@@ -39,6 +39,8 @@ declare module 'stripe' {
39
39
  */
40
40
  cancel_url?: string;
41
41
 
42
+ checkout_items?: Array<SessionCreateParams.CheckoutItem>;
43
+
42
44
  /**
43
45
  * A unique string to reference the Checkout Session. This can be a
44
46
  * customer ID, a cart ID, or similar, and can be used to reconcile the
@@ -495,6 +497,54 @@ declare module 'stripe' {
495
497
  }
496
498
  }
497
499
 
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
+
498
548
  interface ConsentCollection {
499
549
  /**
500
550
  * 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.
@@ -431,6 +431,8 @@ declare module 'stripe' {
431
431
  }
432
432
 
433
433
  interface Card {
434
+ benefits?: Card.Benefits;
435
+
434
436
  /**
435
437
  * Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
436
438
  */
@@ -520,6 +522,18 @@ declare module 'stripe' {
520
522
  }
521
523
 
522
524
  namespace Card {
525
+ interface Benefits {
526
+ /**
527
+ * Issuer of this benefit card
528
+ */
529
+ issuer: string | null;
530
+
531
+ /**
532
+ * Available benefit programs for this card
533
+ */
534
+ programs: Array<string> | null;
535
+ }
536
+
523
537
  interface Checks {
524
538
  /**
525
539
  * If a address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
@@ -143,7 +143,9 @@ declare module 'stripe' {
143
143
  }
144
144
 
145
145
  namespace Script {
146
- interface Configuration {}
146
+ type Configuration = {
147
+ [key: string]: unknown;
148
+ };
147
149
  }
148
150
 
149
151
  type Type = 'amount_off' | 'percent_off' | 'script';