stripe 17.4.0 → 17.5.0-beta.2

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 (181) hide show
  1. package/CHANGELOG.md +1000 -109
  2. package/README.md +4 -4
  3. package/VERSION +1 -1
  4. package/cjs/resources/AccountNotices.js +21 -0
  5. package/cjs/resources/Capital/FinancingOffers.js +21 -0
  6. package/cjs/resources/Capital/FinancingSummary.js +12 -0
  7. package/cjs/resources/Capital/FinancingTransactions.js +17 -0
  8. package/cjs/resources/FinancialConnections/Accounts.js +5 -0
  9. package/cjs/resources/FinancialConnections/Institutions.js +17 -0
  10. package/cjs/resources/GiftCards/Cards.js +23 -0
  11. package/cjs/resources/GiftCards/Transactions.js +33 -0
  12. package/cjs/resources/Invoices.js +17 -0
  13. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +33 -0
  14. package/cjs/resources/Issuing/DisputeSettlementDetails.js +17 -0
  15. package/cjs/resources/Issuing/FraudLiabilityDebits.js +17 -0
  16. package/cjs/resources/Margins.js +22 -0
  17. package/cjs/resources/Orders.js +24 -0
  18. package/cjs/resources/PaymentAttemptRecords.js +17 -0
  19. package/cjs/resources/PaymentIntents.js +8 -0
  20. package/cjs/resources/PaymentRecords.js +29 -0
  21. package/cjs/resources/Quotes.js +32 -0
  22. package/cjs/resources/SubscriptionSchedules.js +4 -0
  23. package/cjs/resources/Tax/Associations.js +9 -0
  24. package/cjs/resources/Tax/Forms.js +20 -0
  25. package/cjs/resources/Terminal/ReaderCollectedData.js +12 -0
  26. package/cjs/resources/Terminal/Readers.js +12 -0
  27. package/cjs/resources.js +48 -10
  28. package/cjs/stripe.core.js +1 -1
  29. package/esm/resources/AccountNotices.js +18 -0
  30. package/esm/resources/Capital/FinancingOffers.js +18 -0
  31. package/esm/resources/Capital/FinancingSummary.js +9 -0
  32. package/esm/resources/Capital/FinancingTransactions.js +14 -0
  33. package/esm/resources/FinancialConnections/Accounts.js +5 -0
  34. package/esm/resources/FinancialConnections/Institutions.js +14 -0
  35. package/esm/resources/GiftCards/Cards.js +20 -0
  36. package/esm/resources/GiftCards/Transactions.js +30 -0
  37. package/esm/resources/Invoices.js +17 -0
  38. package/esm/resources/Issuing/CreditUnderwritingRecords.js +30 -0
  39. package/esm/resources/Issuing/DisputeSettlementDetails.js +14 -0
  40. package/esm/resources/Issuing/FraudLiabilityDebits.js +14 -0
  41. package/esm/resources/Margins.js +19 -0
  42. package/esm/resources/Orders.js +21 -0
  43. package/esm/resources/PaymentAttemptRecords.js +14 -0
  44. package/esm/resources/PaymentIntents.js +8 -0
  45. package/esm/resources/PaymentRecords.js +26 -0
  46. package/esm/resources/Quotes.js +32 -0
  47. package/esm/resources/SubscriptionSchedules.js +4 -0
  48. package/esm/resources/Tax/Associations.js +6 -0
  49. package/esm/resources/Tax/Forms.js +17 -0
  50. package/esm/resources/Terminal/ReaderCollectedData.js +9 -0
  51. package/esm/resources/Terminal/Readers.js +12 -0
  52. package/esm/resources.js +33 -0
  53. package/esm/stripe.core.js +1 -1
  54. package/package.json +1 -1
  55. package/types/AccountLinksResource.d.ts +5 -1
  56. package/types/AccountNotices.d.ts +113 -0
  57. package/types/AccountNoticesResource.d.ts +98 -0
  58. package/types/AccountSessions.d.ts +50 -5
  59. package/types/AccountSessionsResource.d.ts +360 -5
  60. package/types/Accounts.d.ts +191 -2
  61. package/types/AccountsResource.d.ts +522 -2
  62. package/types/BalanceTransactions.d.ts +3 -1
  63. package/types/BalanceTransactionsResource.d.ts +1 -1
  64. package/types/Billing/CreditBalanceSummaryResource.d.ts +2 -2
  65. package/types/Billing/CreditBalanceTransactionsResource.d.ts +2 -2
  66. package/types/Billing/CreditGrants.d.ts +2 -2
  67. package/types/Billing/CreditGrantsResource.d.ts +8 -8
  68. package/types/Billing/MeterErrorReports.d.ts +106 -0
  69. package/types/Billing/MeterEventAdjustmentsResource.d.ts +1 -1
  70. package/types/Billing/MeterEvents.d.ts +1 -2
  71. package/types/Billing/MeterEventsResource.d.ts +2 -2
  72. package/types/Billing/Meters.d.ts +1 -1
  73. package/types/Billing/MetersResource.d.ts +8 -8
  74. package/types/BillingPortal/Configurations.d.ts +1 -1
  75. package/types/Capabilities.d.ts +1 -1
  76. package/types/Capital/FinancingOffers.d.ts +188 -0
  77. package/types/Capital/FinancingOffersResource.d.ts +97 -0
  78. package/types/Capital/FinancingSummary.d.ts +106 -0
  79. package/types/Capital/FinancingSummaryResource.d.ts +27 -0
  80. package/types/Capital/FinancingTransactions.d.ts +135 -0
  81. package/types/Capital/FinancingTransactionsResource.d.ts +68 -0
  82. package/types/Charges.d.ts +244 -2
  83. package/types/ChargesResource.d.ts +1294 -0
  84. package/types/Checkout/Sessions.d.ts +333 -6
  85. package/types/Checkout/SessionsResource.d.ts +460 -8
  86. package/types/ConfirmationTokens.d.ts +99 -0
  87. package/types/Coupons.d.ts +1 -1
  88. package/types/CouponsResource.d.ts +1 -1
  89. package/types/CreditNotes.d.ts +21 -0
  90. package/types/CreditNotesResource.d.ts +51 -0
  91. package/types/CustomersResource.d.ts +8 -1
  92. package/types/EventTypes.d.ts +598 -2
  93. package/types/Events.d.ts +93 -0
  94. package/types/FinancialConnections/AccountInferredBalances.d.ts +38 -0
  95. package/types/FinancialConnections/Accounts.d.ts +29 -1
  96. package/types/FinancialConnections/AccountsResource.d.ts +35 -3
  97. package/types/FinancialConnections/Institutions.d.ts +93 -0
  98. package/types/FinancialConnections/InstitutionsResource.d.ts +47 -0
  99. package/types/FinancialConnections/Sessions.d.ts +49 -1
  100. package/types/FinancialConnections/SessionsResource.d.ts +38 -1
  101. package/types/FundingInstructions.d.ts +21 -0
  102. package/types/GiftCards/Cards.d.ts +118 -0
  103. package/types/GiftCards/CardsResource.d.ts +159 -0
  104. package/types/GiftCards/Transactions.d.ts +129 -0
  105. package/types/GiftCards/TransactionsResource.d.ts +201 -0
  106. package/types/InvoiceItems.d.ts +5 -0
  107. package/types/InvoiceItemsResource.d.ts +98 -0
  108. package/types/InvoiceLineItems.d.ts +28 -1
  109. package/types/InvoicePayments.d.ts +113 -0
  110. package/types/Invoices.d.ts +156 -2
  111. package/types/InvoicesResource.d.ts +5537 -1852
  112. package/types/Issuing/Authorizations.d.ts +1 -1
  113. package/types/Issuing/CardholdersResource.d.ts +2 -1
  114. package/types/Issuing/CreditUnderwritingRecords.d.ts +451 -0
  115. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +1032 -0
  116. package/types/Issuing/DisputeSettlementDetails.d.ts +73 -0
  117. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +52 -0
  118. package/types/Issuing/FraudLiabilityDebits.d.ts +52 -0
  119. package/types/Issuing/FraudLiabilityDebitsResource.d.ts +52 -0
  120. package/types/Issuing/Settlements.d.ts +103 -0
  121. package/types/Issuing/Transactions.d.ts +2 -0
  122. package/types/Issuing/TransactionsResource.d.ts +5 -0
  123. package/types/LineItems.d.ts +33 -1
  124. package/types/Mandates.d.ts +77 -0
  125. package/types/Margins.d.ts +56 -0
  126. package/types/MarginsResource.d.ts +114 -0
  127. package/types/Orders.d.ts +1160 -0
  128. package/types/OrdersResource.d.ts +2923 -0
  129. package/types/PaymentAttemptRecords.d.ts +242 -0
  130. package/types/PaymentAttemptRecordsResource.d.ts +47 -0
  131. package/types/PaymentIntents.d.ts +688 -4
  132. package/types/PaymentIntentsResource.d.ts +7994 -3677
  133. package/types/PaymentLinks.d.ts +6 -0
  134. package/types/PaymentLinksResource.d.ts +23 -2
  135. package/types/PaymentMethodConfigurations.d.ts +180 -0
  136. package/types/PaymentMethodConfigurationsResource.d.ts +250 -0
  137. package/types/PaymentMethods.d.ts +99 -0
  138. package/types/PaymentMethodsResource.d.ts +133 -0
  139. package/types/PaymentRecords.d.ts +259 -0
  140. package/types/PaymentRecordsResource.d.ts +455 -0
  141. package/types/Prices.d.ts +22 -0
  142. package/types/PricesResource.d.ts +22 -0
  143. package/types/Products.d.ts +39 -0
  144. package/types/ProductsResource.d.ts +36 -0
  145. package/types/QuoteLines.d.ts +634 -0
  146. package/types/QuotePreviewInvoices.d.ts +1634 -0
  147. package/types/QuotePreviewSubscriptionSchedules.d.ts +824 -0
  148. package/types/Quotes.d.ts +591 -1
  149. package/types/QuotesResource.d.ts +2526 -194
  150. package/types/Refunds.d.ts +14 -0
  151. package/types/SetupAttempts.d.ts +48 -0
  152. package/types/SetupIntents.d.ts +133 -3
  153. package/types/SetupIntentsResource.d.ts +681 -9
  154. package/types/Sources.d.ts +23 -0
  155. package/types/SubscriptionItems.d.ts +21 -0
  156. package/types/SubscriptionItemsResource.d.ts +109 -0
  157. package/types/SubscriptionSchedules.d.ts +210 -0
  158. package/types/SubscriptionSchedulesResource.d.ts +1234 -16
  159. package/types/Subscriptions.d.ts +96 -1
  160. package/types/SubscriptionsResource.d.ts +372 -5
  161. package/types/Tax/Associations.d.ts +126 -0
  162. package/types/Tax/AssociationsResource.d.ts +29 -0
  163. package/types/Tax/Forms.d.ts +220 -0
  164. package/types/Tax/FormsResource.d.ts +107 -0
  165. package/types/Terminal/LocationsResource.d.ts +1 -1
  166. package/types/Terminal/ReaderCollectedData.d.ts +51 -0
  167. package/types/Terminal/ReaderCollectedDataResource.d.ts +29 -0
  168. package/types/Terminal/Readers.d.ts +278 -0
  169. package/types/Terminal/ReadersResource.d.ts +215 -0
  170. package/types/TestHelpers/ConfirmationTokensResource.d.ts +104 -0
  171. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
  172. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -0
  173. package/types/Treasury/FinancialAccountFeatures.d.ts +10 -3
  174. package/types/Treasury/FinancialAccounts.d.ts +5 -0
  175. package/types/Treasury/FinancialAccountsResource.d.ts +37 -0
  176. package/types/Treasury/OutboundTransfers.d.ts +26 -0
  177. package/types/Treasury/OutboundTransfersResource.d.ts +26 -0
  178. package/types/Treasury/ReceivedCredits.d.ts +26 -0
  179. package/types/Treasury/ReceivedDebits.d.ts +31 -0
  180. package/types/WebhookEndpointsResource.d.ts +70 -0
  181. package/types/index.d.ts +62 -0
@@ -129,11 +129,21 @@ declare module 'stripe' {
129
129
  */
130
130
  giropay?: PaymentMethodData.Giropay;
131
131
 
132
+ /**
133
+ * If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
134
+ */
135
+ gopay?: PaymentMethodData.Gopay;
136
+
132
137
  /**
133
138
  * If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
134
139
  */
135
140
  grabpay?: PaymentMethodData.Grabpay;
136
141
 
142
+ /**
143
+ * If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
144
+ */
145
+ id_bank_transfer?: PaymentMethodData.IdBankTransfer;
146
+
137
147
  /**
138
148
  * If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
139
149
  */
@@ -169,6 +179,11 @@ declare module 'stripe' {
169
179
  */
170
180
  link?: PaymentMethodData.Link;
171
181
 
182
+ /**
183
+ * If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
184
+ */
185
+ mb_way?: PaymentMethodData.MbWay;
186
+
172
187
  /**
173
188
  * 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
189
  */
@@ -214,6 +229,11 @@ declare module 'stripe' {
214
229
  */
215
230
  paypal?: PaymentMethodData.Paypal;
216
231
 
232
+ /**
233
+ * If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
234
+ */
235
+ payto?: PaymentMethodData.Payto;
236
+
217
237
  /**
218
238
  * If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
219
239
  */
@@ -224,11 +244,21 @@ declare module 'stripe' {
224
244
  */
225
245
  promptpay?: PaymentMethodData.Promptpay;
226
246
 
247
+ /**
248
+ * If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
249
+ */
250
+ qris?: PaymentMethodData.Qris;
251
+
227
252
  /**
228
253
  * Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
229
254
  */
230
255
  radar_options?: PaymentMethodData.RadarOptions;
231
256
 
257
+ /**
258
+ * If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
259
+ */
260
+ rechnung?: PaymentMethodData.Rechnung;
261
+
232
262
  /**
233
263
  * If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
234
264
  */
@@ -244,6 +274,11 @@ declare module 'stripe' {
244
274
  */
245
275
  sepa_debit?: PaymentMethodData.SepaDebit;
246
276
 
277
+ /**
278
+ * If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
279
+ */
280
+ shopeepay?: PaymentMethodData.Shopeepay;
281
+
247
282
  /**
248
283
  * If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
249
284
  */
@@ -452,8 +487,21 @@ declare module 'stripe' {
452
487
 
453
488
  interface Giropay {}
454
489
 
490
+ interface Gopay {}
491
+
455
492
  interface Grabpay {}
456
493
 
494
+ interface IdBankTransfer {
495
+ /**
496
+ * Bank where the account is held.
497
+ */
498
+ bank?: IdBankTransfer.Bank;
499
+ }
500
+
501
+ namespace IdBankTransfer {
502
+ type Bank = 'bca' | 'bni' | 'bri' | 'cimb' | 'permata';
503
+ }
504
+
457
505
  interface Ideal {
458
506
  /**
459
507
  * The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
@@ -517,6 +565,8 @@ declare module 'stripe' {
517
565
 
518
566
  interface Link {}
519
567
 
568
+ interface MbWay {}
569
+
520
570
  interface Mobilepay {}
521
571
 
522
572
  interface Multibanco {}
@@ -577,10 +627,29 @@ declare module 'stripe' {
577
627
 
578
628
  interface Paypal {}
579
629
 
630
+ interface Payto {
631
+ /**
632
+ * The account number for the bank account.
633
+ */
634
+ account_number?: string;
635
+
636
+ /**
637
+ * Bank-State-Branch number of the bank account.
638
+ */
639
+ bsb_number?: string;
640
+
641
+ /**
642
+ * The PayID alias for the bank account.
643
+ */
644
+ pay_id?: string;
645
+ }
646
+
580
647
  interface Pix {}
581
648
 
582
649
  interface Promptpay {}
583
650
 
651
+ interface Qris {}
652
+
584
653
  interface RadarOptions {
585
654
  /**
586
655
  * A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
@@ -588,6 +657,32 @@ declare module 'stripe' {
588
657
  session?: string;
589
658
  }
590
659
 
660
+ interface Rechnung {
661
+ /**
662
+ * Customer's date of birth
663
+ */
664
+ dob: Rechnung.Dob;
665
+ }
666
+
667
+ namespace Rechnung {
668
+ interface Dob {
669
+ /**
670
+ * The day of birth, between 1 and 31.
671
+ */
672
+ day: number;
673
+
674
+ /**
675
+ * The month of birth, between 1 and 12.
676
+ */
677
+ month: number;
678
+
679
+ /**
680
+ * The four-digit year of birth.
681
+ */
682
+ year: number;
683
+ }
684
+ }
685
+
591
686
  interface RevolutPay {}
592
687
 
593
688
  interface SamsungPay {}
@@ -599,6 +694,8 @@ declare module 'stripe' {
599
694
  iban: string;
600
695
  }
601
696
 
697
+ interface Shopeepay {}
698
+
602
699
  interface Sofort {
603
700
  /**
604
701
  * Two-letter ISO code representing the country the bank account is located in.
@@ -631,13 +728,16 @@ declare module 'stripe' {
631
728
  | 'eps'
632
729
  | 'fpx'
633
730
  | 'giropay'
731
+ | 'gopay'
634
732
  | 'grabpay'
733
+ | 'id_bank_transfer'
635
734
  | 'ideal'
636
735
  | 'kakao_pay'
637
736
  | 'klarna'
638
737
  | 'konbini'
639
738
  | 'kr_card'
640
739
  | 'link'
740
+ | 'mb_way'
641
741
  | 'mobilepay'
642
742
  | 'multibanco'
643
743
  | 'naver_pay'
@@ -646,11 +746,15 @@ declare module 'stripe' {
646
746
  | 'payco'
647
747
  | 'paynow'
648
748
  | 'paypal'
749
+ | 'payto'
649
750
  | 'pix'
650
751
  | 'promptpay'
752
+ | 'qris'
753
+ | 'rechnung'
651
754
  | 'revolut_pay'
652
755
  | 'samsung_pay'
653
756
  | 'sepa_debit'
757
+ | 'shopeepay'
654
758
  | 'sofort'
655
759
  | 'swish'
656
760
  | 'twint'
@@ -39,6 +39,11 @@ 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;
42
47
  }
43
48
 
44
49
  namespace ReceivedCreditCreateParams {
@@ -74,6 +79,27 @@ declare module 'stripe' {
74
79
  }
75
80
 
76
81
  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
+ }
77
103
  }
78
104
  }
79
105
 
@@ -39,6 +39,11 @@ 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;
42
47
  }
43
48
 
44
49
  namespace ReceivedDebitCreateParams {
@@ -72,6 +77,27 @@ declare module 'stripe' {
72
77
  routing_number?: string;
73
78
  }
74
79
  }
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
+ }
75
101
  }
76
102
  }
77
103
 
@@ -175,6 +175,11 @@ declare module 'stripe' {
175
175
 
176
176
  namespace FinancialAddresses {
177
177
  interface Aba {
178
+ /**
179
+ * Requested bank partner for this Financial Account
180
+ */
181
+ bank?: Aba.Bank;
182
+
178
183
  /**
179
184
  * Whether the FinancialAccount should have the Feature.
180
185
  */
@@ -192,6 +197,8 @@ declare module 'stripe' {
192
197
  }
193
198
 
194
199
  namespace Aba {
200
+ type Bank = 'evolve' | 'fifth_third' | 'goldman_sachs';
201
+
195
202
  type Status = 'active' | 'pending' | 'restricted';
196
203
 
197
204
  interface StatusDetail {
@@ -235,7 +242,7 @@ declare module 'stripe' {
235
242
 
236
243
  interface InboundTransfers {
237
244
  /**
238
- * Toggle settings for enabling/disabling an ACH specific feature
245
+ * Toggle settings for enabling/disabling an inbound ACH specific feature
239
246
  */
240
247
  ach?: InboundTransfers.Ach;
241
248
  }
@@ -360,7 +367,7 @@ declare module 'stripe' {
360
367
 
361
368
  interface OutboundPayments {
362
369
  /**
363
- * Toggle settings for enabling/disabling an ACH specific feature
370
+ * Toggle settings for enabling/disabling an outbound ACH specific feature
364
371
  */
365
372
  ach?: OutboundPayments.Ach;
366
373
 
@@ -490,7 +497,7 @@ declare module 'stripe' {
490
497
 
491
498
  interface OutboundTransfers {
492
499
  /**
493
- * Toggle settings for enabling/disabling an ACH specific feature
500
+ * Toggle settings for enabling/disabling an outbound ACH specific feature
494
501
  */
495
502
  ach?: OutboundTransfers.Ach;
496
503
 
@@ -38,6 +38,11 @@ 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
+
41
46
  /**
42
47
  * Encodes whether a FinancialAccount has access to a particular Feature, with a `status` enum and associated `status_details`.
43
48
  * Stripe or the platform can control Features via the requested field.
@@ -9,6 +9,11 @@ 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
+
12
17
  /**
13
18
  * Specifies which fields in the response should be expanded.
14
19
  */
@@ -92,11 +97,20 @@ declare module 'stripe' {
92
97
 
93
98
  namespace FinancialAddresses {
94
99
  interface Aba {
100
+ /**
101
+ * Requested bank partner
102
+ */
103
+ bank?: Aba.Bank;
104
+
95
105
  /**
96
106
  * Whether the FinancialAccount should have the Feature.
97
107
  */
98
108
  requested: boolean;
99
109
  }
110
+
111
+ namespace Aba {
112
+ type Bank = 'evolve' | 'fifth_third' | 'goldman_sachs';
113
+ }
100
114
  }
101
115
 
102
116
  interface InboundTransfers {
@@ -206,6 +220,11 @@ declare module 'stripe' {
206
220
  }
207
221
 
208
222
  interface FinancialAccountUpdateParams {
223
+ /**
224
+ * 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.
225
+ */
226
+ display_name?: Stripe.Emptyable<string>;
227
+
209
228
  /**
210
229
  * Specifies which fields in the response should be expanded.
211
230
  */
@@ -289,11 +308,20 @@ declare module 'stripe' {
289
308
 
290
309
  namespace FinancialAddresses {
291
310
  interface Aba {
311
+ /**
312
+ * Requested bank partner
313
+ */
314
+ bank?: Aba.Bank;
315
+
292
316
  /**
293
317
  * Whether the FinancialAccount should have the Feature.
294
318
  */
295
319
  requested: boolean;
296
320
  }
321
+
322
+ namespace Aba {
323
+ type Bank = 'evolve' | 'fifth_third' | 'goldman_sachs';
324
+ }
297
325
  }
298
326
 
299
327
  interface InboundTransfers {
@@ -480,11 +508,20 @@ declare module 'stripe' {
480
508
 
481
509
  namespace FinancialAddresses {
482
510
  interface Aba {
511
+ /**
512
+ * Requested bank partner
513
+ */
514
+ bank?: Aba.Bank;
515
+
483
516
  /**
484
517
  * Whether the FinancialAccount should have the Feature.
485
518
  */
486
519
  requested: boolean;
487
520
  }
521
+
522
+ namespace Aba {
523
+ type Bank = 'evolve' | 'fifth_third' | 'goldman_sachs';
524
+ }
488
525
  }
489
526
 
490
527
  interface InboundTransfers {
@@ -78,6 +78,11 @@ 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
+
81
86
  /**
82
87
  * Details about a returned OutboundTransfer. Only set when the status is `returned`.
83
88
  */
@@ -184,6 +189,27 @@ declare module 'stripe' {
184
189
  }
185
190
  }
186
191
 
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
+
187
213
  interface ReturnedDetails {
188
214
  /**
189
215
  * Reason for the return.
@@ -44,6 +44,11 @@ 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
+
47
52
  /**
48
53
  * 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".
49
54
  */
@@ -72,6 +77,27 @@ declare module 'stripe' {
72
77
  type Network = 'ach' | 'us_domestic_wire';
73
78
  }
74
79
  }
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
+ }
75
101
  }
76
102
 
77
103
  interface OutboundTransferRetrieveParams {
@@ -66,6 +66,11 @@ 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
+
69
74
  /**
70
75
  * Details describing when a ReceivedCredit may be reversed.
71
76
  */
@@ -241,6 +246,27 @@ declare module 'stripe' {
241
246
 
242
247
  type Network = 'ach' | 'card' | 'stripe' | 'us_domestic_wire';
243
248
 
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
+
244
270
  interface ReversalDetails {
245
271
  /**
246
272
  * Time before which a ReceivedCredit can be reversed.
@@ -66,6 +66,11 @@ 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
+
69
74
  /**
70
75
  * Details describing when a ReceivedDebit might be reversed.
71
76
  */
@@ -190,10 +195,36 @@ declare module 'stripe' {
190
195
  * Set if the ReceivedDebit was created due to a [Payout](https://stripe.com/docs/api#payouts) object.
191
196
  */
192
197
  payout: string | null;
198
+
199
+ /**
200
+ * The ReceivedCredit that Capital withheld from
201
+ */
202
+ received_credit_capital_withholding?: string | null;
193
203
  }
194
204
 
195
205
  type Network = 'ach' | 'card' | 'stripe';
196
206
 
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
+
197
228
  interface ReversalDetails {
198
229
  /**
199
230
  * Time before which a ReceivedDebit can be reversed.