stripe 17.2.0-beta.2 → 17.2.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 (183) hide show
  1. package/CHANGELOG.md +117 -899
  2. package/README.md +4 -4
  3. package/VERSION +1 -1
  4. package/cjs/Webhooks.js +1 -1
  5. package/cjs/resources/FinancialConnections/Accounts.js +0 -5
  6. package/cjs/resources/Invoices.js +0 -17
  7. package/cjs/resources/PaymentIntents.js +0 -4
  8. package/cjs/resources/Quotes.js +0 -32
  9. package/cjs/resources/SubscriptionSchedules.js +0 -4
  10. package/cjs/resources/Terminal/Readers.js +0 -12
  11. package/cjs/resources/TestHelpers/Issuing/Cards.js +0 -4
  12. package/cjs/resources/V2/Core/Events.js +50 -7
  13. package/cjs/resources.js +10 -42
  14. package/cjs/stripe.core.js +1 -1
  15. package/esm/Webhooks.js +1 -1
  16. package/esm/resources/FinancialConnections/Accounts.js +0 -5
  17. package/esm/resources/Invoices.js +0 -17
  18. package/esm/resources/PaymentIntents.js +0 -4
  19. package/esm/resources/Quotes.js +0 -32
  20. package/esm/resources/SubscriptionSchedules.js +0 -4
  21. package/esm/resources/Terminal/Readers.js +0 -12
  22. package/esm/resources/TestHelpers/Issuing/Cards.js +0 -4
  23. package/esm/resources/V2/Core/Events.js +50 -7
  24. package/esm/resources.js +0 -29
  25. package/esm/stripe.core.js +1 -1
  26. package/package.json +1 -1
  27. package/types/AccountLinksResource.d.ts +1 -5
  28. package/types/AccountSessions.d.ts +5 -75
  29. package/types/AccountSessionsResource.d.ts +5 -354
  30. package/types/Accounts.d.ts +3 -127
  31. package/types/AccountsResource.d.ts +2 -296
  32. package/types/Billing/CreditGrants.d.ts +2 -2
  33. package/types/Billing/CreditGrantsResource.d.ts +2 -2
  34. package/types/Billing/Meters.d.ts +0 -2
  35. package/types/Charges.d.ts +0 -152
  36. package/types/ChargesResource.d.ts +0 -1294
  37. package/types/Checkout/Sessions.d.ts +5 -309
  38. package/types/Checkout/SessionsResource.d.ts +5 -356
  39. package/types/ConfirmationTokens.d.ts +0 -137
  40. package/types/Coupons.d.ts +1 -1
  41. package/types/CouponsResource.d.ts +1 -1
  42. package/types/CreditNotes.d.ts +0 -21
  43. package/types/CreditNotesResource.d.ts +0 -51
  44. package/types/CustomersResource.d.ts +2 -22
  45. package/types/Disputes.d.ts +0 -152
  46. package/types/DisputesResource.d.ts +0 -120
  47. package/types/EventTypes.d.ts +2 -564
  48. package/types/Events.d.ts +0 -91
  49. package/types/FinancialConnections/Accounts.d.ts +1 -29
  50. package/types/FinancialConnections/AccountsResource.d.ts +3 -35
  51. package/types/FinancialConnections/Sessions.d.ts +1 -49
  52. package/types/FinancialConnections/SessionsResource.d.ts +1 -38
  53. package/types/Forwarding/Requests.d.ts +0 -5
  54. package/types/InvoiceItems.d.ts +0 -5
  55. package/types/InvoiceItemsResource.d.ts +0 -98
  56. package/types/InvoiceLineItems.d.ts +1 -31
  57. package/types/Invoices.d.ts +3 -134
  58. package/types/InvoicesResource.d.ts +1836 -5515
  59. package/types/Issuing/Authorizations.d.ts +1 -1
  60. package/types/Issuing/AuthorizationsResource.d.ts +1 -1
  61. package/types/Issuing/CardholdersResource.d.ts +1 -2
  62. package/types/Issuing/Transactions.d.ts +0 -2
  63. package/types/Issuing/TransactionsResource.d.ts +0 -5
  64. package/types/LineItems.d.ts +0 -7
  65. package/types/Mandates.d.ts +0 -85
  66. package/types/PaymentIntents.d.ts +1 -643
  67. package/types/PaymentIntentsResource.d.ts +3463 -7739
  68. package/types/PaymentLinks.d.ts +0 -3
  69. package/types/PaymentLinksResource.d.ts +0 -6
  70. package/types/PaymentMethodConfigurations.d.ts +0 -36
  71. package/types/PaymentMethodConfigurationsResource.d.ts +2 -52
  72. package/types/PaymentMethods.d.ts +0 -137
  73. package/types/PaymentMethodsResource.d.ts +0 -158
  74. package/types/Persons.d.ts +1 -1
  75. package/types/Prices.d.ts +0 -22
  76. package/types/PricesResource.d.ts +0 -22
  77. package/types/Products.d.ts +0 -39
  78. package/types/ProductsResource.d.ts +0 -36
  79. package/types/Quotes.d.ts +1 -591
  80. package/types/QuotesResource.d.ts +199 -2531
  81. package/types/SetupAttempts.d.ts +0 -19
  82. package/types/SetupIntents.d.ts +1 -112
  83. package/types/SetupIntentsResource.d.ts +3 -669
  84. package/types/Sources.d.ts +0 -23
  85. package/types/SubscriptionItems.d.ts +0 -21
  86. package/types/SubscriptionItemsResource.d.ts +0 -109
  87. package/types/SubscriptionSchedules.d.ts +0 -200
  88. package/types/SubscriptionSchedulesResource.d.ts +13 -1231
  89. package/types/Subscriptions.d.ts +1 -82
  90. package/types/SubscriptionsResource.d.ts +3 -348
  91. package/types/Tax/CalculationLineItems.d.ts +0 -1
  92. package/types/Tax/Calculations.d.ts +1 -33
  93. package/types/Tax/CalculationsResource.d.ts +1 -7
  94. package/types/Tax/Registrations.d.ts +0 -82
  95. package/types/Tax/RegistrationsResource.d.ts +0 -109
  96. package/types/Tax/Transactions.d.ts +1 -8
  97. package/types/TaxIds.d.ts +1 -7
  98. package/types/TaxIdsResource.d.ts +1 -7
  99. package/types/TaxRates.d.ts +0 -25
  100. package/types/TaxRatesResource.d.ts +0 -2
  101. package/types/Terminal/Readers.d.ts +0 -278
  102. package/types/Terminal/ReadersResource.d.ts +0 -215
  103. package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -112
  104. package/types/TestHelpers/Issuing/CardsResource.d.ts +0 -22
  105. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
  106. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
  107. package/types/TokensResource.d.ts +1 -1
  108. package/types/Treasury/FinancialAccounts.d.ts +1 -6
  109. package/types/Treasury/FinancialAccountsResource.d.ts +0 -10
  110. package/types/Treasury/OutboundTransfers.d.ts +0 -26
  111. package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
  112. package/types/Treasury/ReceivedCredits.d.ts +0 -26
  113. package/types/Treasury/ReceivedDebits.d.ts +0 -31
  114. package/types/UsageRecordSummaries.d.ts +1 -1
  115. package/types/V2/Billing/MeterEventAdjustments.d.ts +1 -1
  116. package/types/V2/Billing/MeterEventSessions.d.ts +1 -1
  117. package/types/V2/Billing/MeterEvents.d.ts +1 -1
  118. package/types/V2/EventTypes.d.ts +3 -1
  119. package/types/WebhookEndpointsResource.d.ts +0 -66
  120. package/types/index.d.ts +0 -53
  121. package/cjs/resources/AccountNotices.js +0 -21
  122. package/cjs/resources/Capital/FinancingOffers.js +0 -21
  123. package/cjs/resources/Capital/FinancingSummary.js +0 -12
  124. package/cjs/resources/Capital/FinancingTransactions.js +0 -17
  125. package/cjs/resources/FinancialConnections/Institutions.js +0 -17
  126. package/cjs/resources/GiftCards/Cards.js +0 -23
  127. package/cjs/resources/GiftCards/Transactions.js +0 -33
  128. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
  129. package/cjs/resources/Issuing/DisputeSettlementDetails.js +0 -17
  130. package/cjs/resources/Margins.js +0 -22
  131. package/cjs/resources/Orders.js +0 -24
  132. package/cjs/resources/Tax/Associations.js +0 -9
  133. package/cjs/resources/Tax/Forms.js +0 -20
  134. package/cjs/resources/Terminal/ReaderCollectedData.js +0 -12
  135. package/esm/resources/AccountNotices.js +0 -18
  136. package/esm/resources/Capital/FinancingOffers.js +0 -18
  137. package/esm/resources/Capital/FinancingSummary.js +0 -9
  138. package/esm/resources/Capital/FinancingTransactions.js +0 -14
  139. package/esm/resources/FinancialConnections/Institutions.js +0 -14
  140. package/esm/resources/GiftCards/Cards.js +0 -20
  141. package/esm/resources/GiftCards/Transactions.js +0 -30
  142. package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
  143. package/esm/resources/Issuing/DisputeSettlementDetails.js +0 -14
  144. package/esm/resources/Margins.js +0 -19
  145. package/esm/resources/Orders.js +0 -21
  146. package/esm/resources/Tax/Associations.js +0 -6
  147. package/esm/resources/Tax/Forms.js +0 -17
  148. package/esm/resources/Terminal/ReaderCollectedData.js +0 -9
  149. package/types/AccountNotices.d.ts +0 -113
  150. package/types/AccountNoticesResource.d.ts +0 -98
  151. package/types/Billing/MeterErrorReports.d.ts +0 -106
  152. package/types/Capital/FinancingOffers.d.ts +0 -188
  153. package/types/Capital/FinancingOffersResource.d.ts +0 -97
  154. package/types/Capital/FinancingSummary.d.ts +0 -106
  155. package/types/Capital/FinancingSummaryResource.d.ts +0 -27
  156. package/types/Capital/FinancingTransactions.d.ts +0 -135
  157. package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
  158. package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
  159. package/types/FinancialConnections/Institutions.d.ts +0 -93
  160. package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
  161. package/types/GiftCards/Cards.d.ts +0 -118
  162. package/types/GiftCards/CardsResource.d.ts +0 -159
  163. package/types/GiftCards/Transactions.d.ts +0 -129
  164. package/types/GiftCards/TransactionsResource.d.ts +0 -201
  165. package/types/InvoicePayments.d.ts +0 -138
  166. package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -451
  167. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1032
  168. package/types/Issuing/DisputeSettlementDetails.d.ts +0 -73
  169. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +0 -52
  170. package/types/Issuing/Settlements.d.ts +0 -103
  171. package/types/Margins.d.ts +0 -56
  172. package/types/MarginsResource.d.ts +0 -114
  173. package/types/Orders.d.ts +0 -1154
  174. package/types/OrdersResource.d.ts +0 -2911
  175. package/types/QuoteLines.d.ts +0 -634
  176. package/types/QuotePreviewInvoices.d.ts +0 -1596
  177. package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -814
  178. package/types/Tax/Associations.d.ts +0 -126
  179. package/types/Tax/AssociationsResource.d.ts +0 -29
  180. package/types/Tax/Forms.d.ts +0 -133
  181. package/types/Tax/FormsResource.d.ts +0 -90
  182. package/types/Terminal/ReaderCollectedData.d.ts +0 -51
  183. package/types/Terminal/ReaderCollectedDataResource.d.ts +0 -29
@@ -139,11 +139,6 @@ declare module 'stripe' {
139
139
  */
140
140
  interac_present?: PaymentMethodData.InteracPresent;
141
141
 
142
- /**
143
- * If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method.
144
- */
145
- kakao_pay?: PaymentMethodData.KakaoPay;
146
-
147
142
  /**
148
143
  * If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method.
149
144
  */
@@ -154,21 +149,11 @@ declare module 'stripe' {
154
149
  */
155
150
  konbini?: PaymentMethodData.Konbini;
156
151
 
157
- /**
158
- * If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method.
159
- */
160
- kr_card?: PaymentMethodData.KrCard;
161
-
162
152
  /**
163
153
  * If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
164
154
  */
165
155
  link?: PaymentMethodData.Link;
166
156
 
167
- /**
168
- * If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
169
- */
170
- mb_way?: PaymentMethodData.MbWay;
171
-
172
157
  /**
173
158
  * 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
174
159
  */
@@ -184,11 +169,6 @@ declare module 'stripe' {
184
169
  */
185
170
  multibanco?: PaymentMethodData.Multibanco;
186
171
 
187
- /**
188
- * If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method.
189
- */
190
- naver_pay?: PaymentMethodData.NaverPay;
191
-
192
172
  /**
193
173
  * If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method.
194
174
  */
@@ -199,11 +179,6 @@ declare module 'stripe' {
199
179
  */
200
180
  p24?: PaymentMethodData.P24;
201
181
 
202
- /**
203
- * If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method.
204
- */
205
- payco?: PaymentMethodData.Payco;
206
-
207
182
  /**
208
183
  * If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method.
209
184
  */
@@ -214,11 +189,6 @@ declare module 'stripe' {
214
189
  */
215
190
  paypal?: PaymentMethodData.Paypal;
216
191
 
217
- /**
218
- * If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
219
- */
220
- payto?: PaymentMethodData.Payto;
221
-
222
192
  /**
223
193
  * If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
224
194
  */
@@ -234,21 +204,11 @@ declare module 'stripe' {
234
204
  */
235
205
  radar_options?: PaymentMethodData.RadarOptions;
236
206
 
237
- /**
238
- * If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
239
- */
240
- rechnung?: PaymentMethodData.Rechnung;
241
-
242
207
  /**
243
208
  * If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
244
209
  */
245
210
  revolut_pay?: PaymentMethodData.RevolutPay;
246
211
 
247
- /**
248
- * If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
249
- */
250
- samsung_pay?: PaymentMethodData.SamsungPay;
251
-
252
212
  /**
253
213
  * If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
254
214
  */
@@ -491,8 +451,6 @@ declare module 'stripe' {
491
451
 
492
452
  interface InteracPresent {}
493
453
 
494
- interface KakaoPay {}
495
-
496
454
  interface Klarna {
497
455
  /**
498
456
  * Customer's date of birth
@@ -521,27 +479,12 @@ declare module 'stripe' {
521
479
 
522
480
  interface Konbini {}
523
481
 
524
- interface KrCard {}
525
-
526
482
  interface Link {}
527
483
 
528
- interface MbWay {}
529
-
530
484
  interface Mobilepay {}
531
485
 
532
486
  interface Multibanco {}
533
487
 
534
- interface NaverPay {
535
- /**
536
- * Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
537
- */
538
- funding?: NaverPay.Funding;
539
- }
540
-
541
- namespace NaverPay {
542
- type Funding = 'card' | 'points';
543
- }
544
-
545
488
  interface Oxxo {}
546
489
 
547
490
  interface P24 {
@@ -581,29 +524,10 @@ declare module 'stripe' {
581
524
  | 'volkswagen_bank';
582
525
  }
583
526
 
584
- interface Payco {}
585
-
586
527
  interface Paynow {}
587
528
 
588
529
  interface Paypal {}
589
530
 
590
- interface Payto {
591
- /**
592
- * The account number for the bank account.
593
- */
594
- account_number?: string;
595
-
596
- /**
597
- * Bank-State-Branch number of the bank account.
598
- */
599
- bsb_number?: string;
600
-
601
- /**
602
- * The PayID alias for the bank account.
603
- */
604
- pay_id?: string;
605
- }
606
-
607
531
  interface Pix {}
608
532
 
609
533
  interface Promptpay {}
@@ -615,36 +539,8 @@ declare module 'stripe' {
615
539
  session?: string;
616
540
  }
617
541
 
618
- interface Rechnung {
619
- /**
620
- * Customer's date of birth
621
- */
622
- dob: Rechnung.Dob;
623
- }
624
-
625
- namespace Rechnung {
626
- interface Dob {
627
- /**
628
- * The day of birth, between 1 and 31.
629
- */
630
- day: number;
631
-
632
- /**
633
- * The month of birth, between 1 and 12.
634
- */
635
- month: number;
636
-
637
- /**
638
- * The four-digit year of birth.
639
- */
640
- year: number;
641
- }
642
- }
643
-
644
542
  interface RevolutPay {}
645
543
 
646
- interface SamsungPay {}
647
-
648
544
  interface SepaDebit {
649
545
  /**
650
546
  * IBAN of the bank account.
@@ -685,26 +581,18 @@ declare module 'stripe' {
685
581
  | 'giropay'
686
582
  | 'grabpay'
687
583
  | 'ideal'
688
- | 'kakao_pay'
689
584
  | 'klarna'
690
585
  | 'konbini'
691
- | 'kr_card'
692
586
  | 'link'
693
- | 'mb_way'
694
587
  | 'mobilepay'
695
588
  | 'multibanco'
696
- | 'naver_pay'
697
589
  | 'oxxo'
698
590
  | 'p24'
699
- | 'payco'
700
591
  | 'paynow'
701
592
  | 'paypal'
702
- | 'payto'
703
593
  | 'pix'
704
594
  | 'promptpay'
705
- | 'rechnung'
706
595
  | 'revolut_pay'
707
- | 'samsung_pay'
708
596
  | 'sepa_debit'
709
597
  | 'sofort'
710
598
  | 'swish'
@@ -39,15 +39,6 @@ declare module 'stripe' {
39
39
  }
40
40
  }
41
41
 
42
- namespace Issuing {
43
- interface CardSubmitCardParams {
44
- /**
45
- * Specifies which fields in the response should be expanded.
46
- */
47
- expand?: Array<string>;
48
- }
49
- }
50
-
51
42
  namespace Issuing {
52
43
  class CardsResource {
53
44
  /**
@@ -101,19 +92,6 @@ declare module 'stripe' {
101
92
  id: string,
102
93
  options?: RequestOptions
103
94
  ): Promise<Stripe.Response<Stripe.Issuing.Card>>;
104
-
105
- /**
106
- * Updates the shipping status of the specified Issuing Card object to submitted. This method is only available with Stripe Version ‘2024-09-30.acacia' or above.
107
- */
108
- submitCard(
109
- id: string,
110
- params?: CardSubmitCardParams,
111
- options?: RequestOptions
112
- ): Promise<Stripe.Response<Stripe.Issuing.Card>>;
113
- submitCard(
114
- id: string,
115
- options?: RequestOptions
116
- ): Promise<Stripe.Response<Stripe.Issuing.Card>>;
117
95
  }
118
96
  }
119
97
  }
@@ -39,11 +39,6 @@ declare module 'stripe' {
39
39
  * Initiating payment method details for the object.
40
40
  */
41
41
  initiating_payment_method_details?: ReceivedCreditCreateParams.InitiatingPaymentMethodDetails;
42
-
43
- /**
44
- * Details about the network used for the ReceivedCredit.
45
- */
46
- network_details?: ReceivedCreditCreateParams.NetworkDetails;
47
42
  }
48
43
 
49
44
  namespace ReceivedCreditCreateParams {
@@ -79,27 +74,6 @@ declare module 'stripe' {
79
74
  }
80
75
 
81
76
  type Network = 'ach' | 'us_domestic_wire';
82
-
83
- interface NetworkDetails {
84
- /**
85
- * Optional fields for `ach`.
86
- */
87
- ach?: NetworkDetails.Ach;
88
-
89
- /**
90
- * The type of flow that originated the ReceivedCredit.
91
- */
92
- type: 'ach';
93
- }
94
-
95
- namespace NetworkDetails {
96
- interface Ach {
97
- /**
98
- * ACH Addenda record
99
- */
100
- addenda?: string;
101
- }
102
- }
103
77
  }
104
78
  }
105
79
 
@@ -39,11 +39,6 @@ declare module 'stripe' {
39
39
  * Initiating payment method details for the object.
40
40
  */
41
41
  initiating_payment_method_details?: ReceivedDebitCreateParams.InitiatingPaymentMethodDetails;
42
-
43
- /**
44
- * Details about the network used for the ReceivedDebit.
45
- */
46
- network_details?: ReceivedDebitCreateParams.NetworkDetails;
47
42
  }
48
43
 
49
44
  namespace ReceivedDebitCreateParams {
@@ -77,27 +72,6 @@ declare module 'stripe' {
77
72
  routing_number?: string;
78
73
  }
79
74
  }
80
-
81
- interface NetworkDetails {
82
- /**
83
- * Optional fields for `ach`.
84
- */
85
- ach?: NetworkDetails.Ach;
86
-
87
- /**
88
- * The type of flow that originated the ReceivedDebit.
89
- */
90
- type: 'ach';
91
- }
92
-
93
- namespace NetworkDetails {
94
- interface Ach {
95
- /**
96
- * Addenda record data associated with this ReceivedDebit.
97
- */
98
- addenda?: string;
99
- }
100
- }
101
75
  }
102
76
  }
103
77
 
@@ -288,7 +288,7 @@ declare module 'stripe' {
288
288
  full_name_aliases?: Stripe.Emptyable<Array<string>>;
289
289
 
290
290
  /**
291
- * The individual's gender
291
+ * The individual's gender (International regulations require either "male" or "female").
292
292
  */
293
293
  gender?: string;
294
294
 
@@ -38,11 +38,6 @@ declare module 'stripe' {
38
38
  */
39
39
  created: number;
40
40
 
41
- /**
42
- * The display name for the FinancialAccount. Use this field to customize the names of the FinancialAccounts for your connected accounts. Unlike the `nickname` field, `display_name` is not internal metadata and will be exposed to connected accounts.
43
- */
44
- display_name?: string | null;
45
-
46
41
  /**
47
42
  * Encodes whether a FinancialAccount has access to a particular Feature, with a `status` enum and associated `status_details`.
48
43
  * Stripe or the platform can control Features via the requested field.
@@ -80,7 +75,7 @@ declare module 'stripe' {
80
75
  restricted_features?: Array<FinancialAccount.RestrictedFeature>;
81
76
 
82
77
  /**
83
- * Status of this FinancialAccount.
78
+ * The enum specifying what state the account is in.
84
79
  */
85
80
  status: FinancialAccount.Status;
86
81
 
@@ -9,11 +9,6 @@ declare module 'stripe' {
9
9
  */
10
10
  supported_currencies: Array<string>;
11
11
 
12
- /**
13
- * The display name for the FinancialAccount. Use this field to customize the names of the FinancialAccounts for your connected accounts. Unlike the `nickname` field, `display_name` is not internal metadata and will be exposed to connected accounts.
14
- */
15
- display_name?: Stripe.Emptyable<string>;
16
-
17
12
  /**
18
13
  * Specifies which fields in the response should be expanded.
19
14
  */
@@ -211,11 +206,6 @@ declare module 'stripe' {
211
206
  }
212
207
 
213
208
  interface FinancialAccountUpdateParams {
214
- /**
215
- * The display name for the FinancialAccount. Use this field to customize the names of the FinancialAccounts for your connected accounts. Unlike the `nickname` field, `display_name` is not internal metadata and will be exposed to connected accounts.
216
- */
217
- display_name?: Stripe.Emptyable<string>;
218
-
219
209
  /**
220
210
  * Specifies which fields in the response should be expanded.
221
211
  */
@@ -78,11 +78,6 @@ declare module 'stripe' {
78
78
  */
79
79
  metadata: Stripe.Metadata;
80
80
 
81
- /**
82
- * Details about the network used for the OutboundTransfer.
83
- */
84
- network_details?: OutboundTransfer.NetworkDetails | null;
85
-
86
81
  /**
87
82
  * Details about a returned OutboundTransfer. Only set when the status is `returned`.
88
83
  */
@@ -189,27 +184,6 @@ declare module 'stripe' {
189
184
  }
190
185
  }
191
186
 
192
- interface NetworkDetails {
193
- /**
194
- * Details about an ACH transaction.
195
- */
196
- ach?: NetworkDetails.Ach | null;
197
-
198
- /**
199
- * The type of flow that originated the OutboundTransfer.
200
- */
201
- type: 'ach';
202
- }
203
-
204
- namespace NetworkDetails {
205
- interface Ach {
206
- /**
207
- * ACH Addenda record
208
- */
209
- addenda: string | null;
210
- }
211
- }
212
-
213
187
  interface ReturnedDetails {
214
188
  /**
215
189
  * Reason for the return.
@@ -44,11 +44,6 @@ declare module 'stripe' {
44
44
  */
45
45
  metadata?: Stripe.MetadataParam;
46
46
 
47
- /**
48
- * Details about the network used for the OutboundTransfer.
49
- */
50
- network_details?: OutboundTransferCreateParams.NetworkDetails;
51
-
52
47
  /**
53
48
  * Statement descriptor to be shown on the receiving end of an OutboundTransfer. Maximum 10 characters for `ach` transfers or 140 characters for `us_domestic_wire` transfers. The default value is "transfer".
54
49
  */
@@ -77,27 +72,6 @@ declare module 'stripe' {
77
72
  type Network = 'ach' | 'us_domestic_wire';
78
73
  }
79
74
  }
80
-
81
- interface NetworkDetails {
82
- /**
83
- * Optional fields for `ach`.
84
- */
85
- ach?: NetworkDetails.Ach;
86
-
87
- /**
88
- * The type of flow that originated the OutboundTransfer.
89
- */
90
- type: 'ach';
91
- }
92
-
93
- namespace NetworkDetails {
94
- interface Ach {
95
- /**
96
- * Addenda record data associated with this OutboundTransfer.
97
- */
98
- addenda?: string;
99
- }
100
- }
101
75
  }
102
76
 
103
77
  interface OutboundTransferRetrieveParams {
@@ -66,11 +66,6 @@ declare module 'stripe' {
66
66
  */
67
67
  network: ReceivedCredit.Network;
68
68
 
69
- /**
70
- * Details specific to the money movement rails.
71
- */
72
- network_details?: ReceivedCredit.NetworkDetails | null;
73
-
74
69
  /**
75
70
  * Details describing when a ReceivedCredit may be reversed.
76
71
  */
@@ -246,27 +241,6 @@ declare module 'stripe' {
246
241
 
247
242
  type Network = 'ach' | 'card' | 'stripe' | 'us_domestic_wire';
248
243
 
249
- interface NetworkDetails {
250
- /**
251
- * Details about an ACH transaction.
252
- */
253
- ach?: NetworkDetails.Ach | null;
254
-
255
- /**
256
- * The type of flow that originated the ReceivedCredit.
257
- */
258
- type: 'ach';
259
- }
260
-
261
- namespace NetworkDetails {
262
- interface Ach {
263
- /**
264
- * ACH Addenda record
265
- */
266
- addenda: string | null;
267
- }
268
- }
269
-
270
244
  interface ReversalDetails {
271
245
  /**
272
246
  * Time before which a ReceivedCredit can be reversed.
@@ -66,11 +66,6 @@ declare module 'stripe' {
66
66
  */
67
67
  network: ReceivedDebit.Network;
68
68
 
69
- /**
70
- * Details specific to the money movement rails.
71
- */
72
- network_details?: ReceivedDebit.NetworkDetails | null;
73
-
74
69
  /**
75
70
  * Details describing when a ReceivedDebit might be reversed.
76
71
  */
@@ -195,36 +190,10 @@ declare module 'stripe' {
195
190
  * Set if the ReceivedDebit was created due to a [Payout](https://stripe.com/docs/api#payouts) object.
196
191
  */
197
192
  payout: string | null;
198
-
199
- /**
200
- * The ReceivedCredit that Capital withheld from
201
- */
202
- received_credit_capital_withholding?: string | null;
203
193
  }
204
194
 
205
195
  type Network = 'ach' | 'card' | 'stripe';
206
196
 
207
- interface NetworkDetails {
208
- /**
209
- * Details about an ACH transaction.
210
- */
211
- ach?: NetworkDetails.Ach | null;
212
-
213
- /**
214
- * The type of flow that originated the ReceivedDebit.
215
- */
216
- type: 'ach';
217
- }
218
-
219
- namespace NetworkDetails {
220
- interface Ach {
221
- /**
222
- * ACH Addenda record
223
- */
224
- addenda: string | null;
225
- }
226
- }
227
-
228
197
  interface ReversalDetails {
229
198
  /**
230
199
  * Time before which a ReceivedDebit can be reversed.
@@ -3,7 +3,7 @@
3
3
  declare module 'stripe' {
4
4
  namespace Stripe {
5
5
  /**
6
- * A usage record summary represents an aggregated view of how much usage was accrued for a subscription item within a subscription billing period.
6
+ * The UsageRecordSummary object.
7
7
  */
8
8
  interface UsageRecordSummary {
9
9
  /**
@@ -16,7 +16,7 @@ declare module 'stripe' {
16
16
  /**
17
17
  * String representing the object's type. Objects of the same type share the same value of the object field.
18
18
  */
19
- object: 'billing.meter_event_adjustment';
19
+ object: 'v2.billing.meter_event_adjustment';
20
20
 
21
21
  /**
22
22
  * Specifies which event to cancel.
@@ -16,7 +16,7 @@ declare module 'stripe' {
16
16
  /**
17
17
  * String representing the object's type. Objects of the same type share the same value of the object field.
18
18
  */
19
- object: 'billing.meter_event_session';
19
+ object: 'v2.billing.meter_event_session';
20
20
 
21
21
  /**
22
22
  * The authentication token for this session. Use this token when calling the
@@ -11,7 +11,7 @@ declare module 'stripe' {
11
11
  /**
12
12
  * String representing the object's type. Objects of the same type share the same value of the object field.
13
13
  */
14
- object: 'billing.meter_event';
14
+ object: 'v2.billing.meter_event';
15
15
 
16
16
  /**
17
17
  * The creation time of this meter event.
@@ -16,8 +16,10 @@ declare module 'stripe' {
16
16
  type: 'v1.billing.meter.error_report_triggered';
17
17
  // Retrieves data specific to this event.
18
18
  data: V1BillingMeterErrorReportTriggeredEvent.Data;
19
- // Retrieves the object associated with the event.
19
+ // Object containing the reference to API resource relevant to the event.
20
20
  related_object: Event.RelatedObject;
21
+ // Retrieves the object associated with the event.
22
+ fetchRelatedObject(): Promise<Billing.Meter>;
21
23
  }
22
24
 
23
25
  namespace V1BillingMeterErrorReportTriggeredEvent {