stripe 17.2.1 → 17.3.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (186) hide show
  1. package/CHANGELOG.md +925 -114
  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/Margins.js +22 -0
  16. package/cjs/resources/Orders.js +24 -0
  17. package/cjs/resources/PaymentIntents.js +4 -0
  18. package/cjs/resources/Quotes.js +32 -0
  19. package/cjs/resources/SubscriptionSchedules.js +4 -0
  20. package/cjs/resources/Tax/Associations.js +9 -0
  21. package/cjs/resources/Tax/Forms.js +20 -0
  22. package/cjs/resources/Terminal/ReaderCollectedData.js +12 -0
  23. package/cjs/resources/Terminal/Readers.js +12 -0
  24. package/cjs/resources/TestHelpers/Issuing/Cards.js +4 -0
  25. package/cjs/resources.js +42 -10
  26. package/cjs/stripe.core.js +1 -1
  27. package/esm/resources/AccountNotices.js +18 -0
  28. package/esm/resources/Capital/FinancingOffers.js +18 -0
  29. package/esm/resources/Capital/FinancingSummary.js +9 -0
  30. package/esm/resources/Capital/FinancingTransactions.js +14 -0
  31. package/esm/resources/FinancialConnections/Accounts.js +5 -0
  32. package/esm/resources/FinancialConnections/Institutions.js +14 -0
  33. package/esm/resources/GiftCards/Cards.js +20 -0
  34. package/esm/resources/GiftCards/Transactions.js +30 -0
  35. package/esm/resources/Invoices.js +17 -0
  36. package/esm/resources/Issuing/CreditUnderwritingRecords.js +30 -0
  37. package/esm/resources/Issuing/DisputeSettlementDetails.js +14 -0
  38. package/esm/resources/Margins.js +19 -0
  39. package/esm/resources/Orders.js +21 -0
  40. package/esm/resources/PaymentIntents.js +4 -0
  41. package/esm/resources/Quotes.js +32 -0
  42. package/esm/resources/SubscriptionSchedules.js +4 -0
  43. package/esm/resources/Tax/Associations.js +6 -0
  44. package/esm/resources/Tax/Forms.js +17 -0
  45. package/esm/resources/Terminal/ReaderCollectedData.js +9 -0
  46. package/esm/resources/Terminal/Readers.js +12 -0
  47. package/esm/resources/TestHelpers/Issuing/Cards.js +4 -0
  48. package/esm/resources.js +29 -0
  49. package/esm/stripe.core.js +1 -1
  50. package/package.json +1 -1
  51. package/types/AccountLinksResource.d.ts +5 -1
  52. package/types/AccountNotices.d.ts +113 -0
  53. package/types/AccountNoticesResource.d.ts +98 -0
  54. package/types/AccountSessions.d.ts +75 -5
  55. package/types/AccountSessionsResource.d.ts +354 -5
  56. package/types/Accounts.d.ts +211 -3
  57. package/types/AccountsResource.d.ts +584 -2
  58. package/types/Billing/CreditBalanceSummary.d.ts +4 -4
  59. package/types/Billing/CreditBalanceSummaryResource.d.ts +2 -2
  60. package/types/Billing/CreditBalanceTransactions.d.ts +10 -10
  61. package/types/Billing/CreditGrants.d.ts +11 -8
  62. package/types/Billing/CreditGrantsResource.d.ts +6 -6
  63. package/types/Billing/MeterErrorReports.d.ts +106 -0
  64. package/types/Billing/Meters.d.ts +2 -0
  65. package/types/BillingPortal/Configurations.d.ts +22 -0
  66. package/types/BillingPortal/ConfigurationsResource.d.ts +56 -4
  67. package/types/Capital/FinancingOffers.d.ts +188 -0
  68. package/types/Capital/FinancingOffersResource.d.ts +97 -0
  69. package/types/Capital/FinancingSummary.d.ts +106 -0
  70. package/types/Capital/FinancingSummaryResource.d.ts +27 -0
  71. package/types/Capital/FinancingTransactions.d.ts +135 -0
  72. package/types/Capital/FinancingTransactionsResource.d.ts +68 -0
  73. package/types/Charges.d.ts +168 -0
  74. package/types/ChargesResource.d.ts +1294 -0
  75. package/types/Checkout/Sessions.d.ts +309 -5
  76. package/types/Checkout/SessionsResource.d.ts +360 -5
  77. package/types/ConfirmationTokens.d.ts +157 -0
  78. package/types/Coupons.d.ts +1 -1
  79. package/types/CouponsResource.d.ts +1 -1
  80. package/types/CreditNoteLineItems.d.ts +3 -0
  81. package/types/CreditNotes.d.ts +24 -0
  82. package/types/CreditNotesResource.d.ts +54 -3
  83. package/types/CustomersResource.d.ts +27 -3
  84. package/types/Disputes.d.ts +152 -0
  85. package/types/DisputesResource.d.ts +120 -0
  86. package/types/EventTypes.d.ts +564 -2
  87. package/types/Events.d.ts +91 -0
  88. package/types/FinancialConnections/AccountInferredBalances.d.ts +38 -0
  89. package/types/FinancialConnections/Accounts.d.ts +29 -1
  90. package/types/FinancialConnections/AccountsResource.d.ts +35 -3
  91. package/types/FinancialConnections/Institutions.d.ts +93 -0
  92. package/types/FinancialConnections/InstitutionsResource.d.ts +47 -0
  93. package/types/FinancialConnections/Sessions.d.ts +49 -1
  94. package/types/FinancialConnections/SessionsResource.d.ts +38 -1
  95. package/types/Forwarding/Requests.d.ts +5 -0
  96. package/types/Forwarding/RequestsResource.d.ts +5 -0
  97. package/types/GiftCards/Cards.d.ts +118 -0
  98. package/types/GiftCards/CardsResource.d.ts +159 -0
  99. package/types/GiftCards/Transactions.d.ts +129 -0
  100. package/types/GiftCards/TransactionsResource.d.ts +201 -0
  101. package/types/InvoiceItems.d.ts +5 -0
  102. package/types/InvoiceItemsResource.d.ts +98 -0
  103. package/types/InvoiceLineItems.d.ts +31 -1
  104. package/types/InvoicePayments.d.ts +138 -0
  105. package/types/Invoices.d.ts +139 -3
  106. package/types/InvoicesResource.d.ts +5488 -1799
  107. package/types/Issuing/CardholdersResource.d.ts +2 -1
  108. package/types/Issuing/CardsResource.d.ts +1 -1
  109. package/types/Issuing/CreditUnderwritingRecords.d.ts +451 -0
  110. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +1032 -0
  111. package/types/Issuing/DisputeSettlementDetails.d.ts +73 -0
  112. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +52 -0
  113. package/types/Issuing/Settlements.d.ts +103 -0
  114. package/types/Issuing/Transactions.d.ts +2 -0
  115. package/types/Issuing/TransactionsResource.d.ts +5 -0
  116. package/types/LineItems.d.ts +7 -0
  117. package/types/Mandates.d.ts +85 -0
  118. package/types/Margins.d.ts +56 -0
  119. package/types/MarginsResource.d.ts +114 -0
  120. package/types/Orders.d.ts +1154 -0
  121. package/types/OrdersResource.d.ts +2911 -0
  122. package/types/PaymentIntents.d.ts +697 -1
  123. package/types/PaymentIntentsResource.d.ts +7977 -3377
  124. package/types/PaymentLinks.d.ts +7 -0
  125. package/types/PaymentLinksResource.d.ts +14 -0
  126. package/types/PaymentMethodConfigurations.d.ts +72 -0
  127. package/types/PaymentMethodConfigurationsResource.d.ts +102 -2
  128. package/types/PaymentMethodDomains.d.ts +28 -0
  129. package/types/PaymentMethods.d.ts +157 -0
  130. package/types/PaymentMethodsResource.d.ts +195 -1
  131. package/types/Persons.d.ts +1 -1
  132. package/types/Prices.d.ts +22 -0
  133. package/types/PricesResource.d.ts +22 -0
  134. package/types/Products.d.ts +39 -0
  135. package/types/ProductsResource.d.ts +36 -0
  136. package/types/QuoteLines.d.ts +634 -0
  137. package/types/QuotePreviewInvoices.d.ts +1601 -0
  138. package/types/QuotePreviewSubscriptionSchedules.d.ts +814 -0
  139. package/types/Quotes.d.ts +591 -1
  140. package/types/QuotesResource.d.ts +2526 -194
  141. package/types/Refunds.d.ts +4 -0
  142. package/types/SetupAttempts.d.ts +19 -0
  143. package/types/SetupIntents.d.ts +112 -1
  144. package/types/SetupIntentsResource.d.ts +768 -6
  145. package/types/Sources.d.ts +23 -0
  146. package/types/SubscriptionItems.d.ts +21 -0
  147. package/types/SubscriptionItemsResource.d.ts +109 -0
  148. package/types/SubscriptionSchedules.d.ts +200 -0
  149. package/types/SubscriptionSchedulesResource.d.ts +1234 -16
  150. package/types/Subscriptions.d.ts +87 -1
  151. package/types/SubscriptionsResource.d.ts +359 -4
  152. package/types/Tax/Associations.d.ts +126 -0
  153. package/types/Tax/AssociationsResource.d.ts +29 -0
  154. package/types/Tax/CalculationLineItems.d.ts +1 -0
  155. package/types/Tax/Calculations.d.ts +33 -1
  156. package/types/Tax/CalculationsResource.d.ts +7 -1
  157. package/types/Tax/Forms.d.ts +220 -0
  158. package/types/Tax/FormsResource.d.ts +107 -0
  159. package/types/Tax/Registrations.d.ts +82 -0
  160. package/types/Tax/RegistrationsResource.d.ts +109 -0
  161. package/types/Tax/Transactions.d.ts +8 -1
  162. package/types/TaxIds.d.ts +7 -1
  163. package/types/TaxIdsResource.d.ts +7 -1
  164. package/types/TaxRates.d.ts +25 -0
  165. package/types/TaxRatesResource.d.ts +2 -0
  166. package/types/Terminal/Configurations.d.ts +19 -0
  167. package/types/Terminal/ConfigurationsResource.d.ts +44 -0
  168. package/types/Terminal/ReaderCollectedData.d.ts +51 -0
  169. package/types/Terminal/ReaderCollectedDataResource.d.ts +29 -0
  170. package/types/Terminal/Readers.d.ts +278 -0
  171. package/types/Terminal/ReadersResource.d.ts +215 -0
  172. package/types/TestHelpers/ConfirmationTokensResource.d.ts +145 -1
  173. package/types/TestHelpers/Issuing/CardsResource.d.ts +22 -0
  174. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
  175. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -0
  176. package/types/TokensResource.d.ts +2 -2
  177. package/types/Treasury/FinancialAccountFeatures.d.ts +7 -0
  178. package/types/Treasury/FinancialAccounts.d.ts +6 -1
  179. package/types/Treasury/FinancialAccountsResource.d.ts +37 -0
  180. package/types/Treasury/OutboundTransfers.d.ts +26 -0
  181. package/types/Treasury/OutboundTransfersResource.d.ts +26 -0
  182. package/types/Treasury/ReceivedCredits.d.ts +26 -0
  183. package/types/Treasury/ReceivedDebits.d.ts +31 -0
  184. package/types/UsageRecordSummaries.d.ts +1 -1
  185. package/types/WebhookEndpointsResource.d.ts +66 -0
  186. package/types/index.d.ts +53 -0
@@ -64,6 +64,11 @@ declare module 'stripe' {
64
64
  */
65
65
  allow_redisplay?: PaymentMethodData.AllowRedisplay;
66
66
 
67
+ /**
68
+ * If this is a Alma PaymentMethod, this hash contains details about the Alma payment method.
69
+ */
70
+ alma?: PaymentMethodData.Alma;
71
+
67
72
  /**
68
73
  * If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method.
69
74
  */
@@ -124,6 +129,11 @@ declare module 'stripe' {
124
129
  */
125
130
  giropay?: PaymentMethodData.Giropay;
126
131
 
132
+ /**
133
+ * If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
134
+ */
135
+ gopay?: PaymentMethodData.Gopay;
136
+
127
137
  /**
128
138
  * If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
129
139
  */
@@ -139,6 +149,11 @@ declare module 'stripe' {
139
149
  */
140
150
  interac_present?: PaymentMethodData.InteracPresent;
141
151
 
152
+ /**
153
+ * If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method.
154
+ */
155
+ kakao_pay?: PaymentMethodData.KakaoPay;
156
+
142
157
  /**
143
158
  * If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method.
144
159
  */
@@ -149,11 +164,21 @@ declare module 'stripe' {
149
164
  */
150
165
  konbini?: PaymentMethodData.Konbini;
151
166
 
167
+ /**
168
+ * If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method.
169
+ */
170
+ kr_card?: PaymentMethodData.KrCard;
171
+
152
172
  /**
153
173
  * If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
154
174
  */
155
175
  link?: PaymentMethodData.Link;
156
176
 
177
+ /**
178
+ * If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
179
+ */
180
+ mb_way?: PaymentMethodData.MbWay;
181
+
157
182
  /**
158
183
  * 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`.
159
184
  */
@@ -169,6 +194,11 @@ declare module 'stripe' {
169
194
  */
170
195
  multibanco?: PaymentMethodData.Multibanco;
171
196
 
197
+ /**
198
+ * If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method.
199
+ */
200
+ naver_pay?: PaymentMethodData.NaverPay;
201
+
172
202
  /**
173
203
  * If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method.
174
204
  */
@@ -179,6 +209,11 @@ declare module 'stripe' {
179
209
  */
180
210
  p24?: PaymentMethodData.P24;
181
211
 
212
+ /**
213
+ * If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method.
214
+ */
215
+ payco?: PaymentMethodData.Payco;
216
+
182
217
  /**
183
218
  * If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method.
184
219
  */
@@ -189,6 +224,11 @@ declare module 'stripe' {
189
224
  */
190
225
  paypal?: PaymentMethodData.Paypal;
191
226
 
227
+ /**
228
+ * If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
229
+ */
230
+ payto?: PaymentMethodData.Payto;
231
+
192
232
  /**
193
233
  * If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
194
234
  */
@@ -199,21 +239,41 @@ declare module 'stripe' {
199
239
  */
200
240
  promptpay?: PaymentMethodData.Promptpay;
201
241
 
242
+ /**
243
+ * If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
244
+ */
245
+ qris?: PaymentMethodData.Qris;
246
+
202
247
  /**
203
248
  * Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
204
249
  */
205
250
  radar_options?: PaymentMethodData.RadarOptions;
206
251
 
252
+ /**
253
+ * If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
254
+ */
255
+ rechnung?: PaymentMethodData.Rechnung;
256
+
207
257
  /**
208
258
  * If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
209
259
  */
210
260
  revolut_pay?: PaymentMethodData.RevolutPay;
211
261
 
262
+ /**
263
+ * If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
264
+ */
265
+ samsung_pay?: PaymentMethodData.SamsungPay;
266
+
212
267
  /**
213
268
  * If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
214
269
  */
215
270
  sepa_debit?: PaymentMethodData.SepaDebit;
216
271
 
272
+ /**
273
+ * If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
274
+ */
275
+ shopeepay?: PaymentMethodData.Shopeepay;
276
+
217
277
  /**
218
278
  * If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
219
279
  */
@@ -276,6 +336,8 @@ declare module 'stripe' {
276
336
 
277
337
  type AllowRedisplay = 'always' | 'limited' | 'unspecified';
278
338
 
339
+ interface Alma {}
340
+
279
341
  interface AmazonPay {}
280
342
 
281
343
  interface AuBecsDebit {
@@ -420,11 +482,13 @@ declare module 'stripe' {
420
482
 
421
483
  interface Giropay {}
422
484
 
485
+ interface Gopay {}
486
+
423
487
  interface Grabpay {}
424
488
 
425
489
  interface Ideal {
426
490
  /**
427
- * The customer's bank.
491
+ * The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
428
492
  */
429
493
  bank?: Ideal.Bank;
430
494
  }
@@ -451,6 +515,8 @@ declare module 'stripe' {
451
515
 
452
516
  interface InteracPresent {}
453
517
 
518
+ interface KakaoPay {}
519
+
454
520
  interface Klarna {
455
521
  /**
456
522
  * Customer's date of birth
@@ -479,12 +545,27 @@ declare module 'stripe' {
479
545
 
480
546
  interface Konbini {}
481
547
 
548
+ interface KrCard {}
549
+
482
550
  interface Link {}
483
551
 
552
+ interface MbWay {}
553
+
484
554
  interface Mobilepay {}
485
555
 
486
556
  interface Multibanco {}
487
557
 
558
+ interface NaverPay {
559
+ /**
560
+ * Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
561
+ */
562
+ funding?: NaverPay.Funding;
563
+ }
564
+
565
+ namespace NaverPay {
566
+ type Funding = 'card' | 'points';
567
+ }
568
+
488
569
  interface Oxxo {}
489
570
 
490
571
  interface P24 {
@@ -524,14 +605,35 @@ declare module 'stripe' {
524
605
  | 'volkswagen_bank';
525
606
  }
526
607
 
608
+ interface Payco {}
609
+
527
610
  interface Paynow {}
528
611
 
529
612
  interface Paypal {}
530
613
 
614
+ interface Payto {
615
+ /**
616
+ * The account number for the bank account.
617
+ */
618
+ account_number?: string;
619
+
620
+ /**
621
+ * Bank-State-Branch number of the bank account.
622
+ */
623
+ bsb_number?: string;
624
+
625
+ /**
626
+ * The PayID alias for the bank account.
627
+ */
628
+ pay_id?: string;
629
+ }
630
+
531
631
  interface Pix {}
532
632
 
533
633
  interface Promptpay {}
534
634
 
635
+ interface Qris {}
636
+
535
637
  interface RadarOptions {
536
638
  /**
537
639
  * 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.
@@ -539,8 +641,36 @@ declare module 'stripe' {
539
641
  session?: string;
540
642
  }
541
643
 
644
+ interface Rechnung {
645
+ /**
646
+ * Customer's date of birth
647
+ */
648
+ dob: Rechnung.Dob;
649
+ }
650
+
651
+ namespace Rechnung {
652
+ interface Dob {
653
+ /**
654
+ * The day of birth, between 1 and 31.
655
+ */
656
+ day: number;
657
+
658
+ /**
659
+ * The month of birth, between 1 and 12.
660
+ */
661
+ month: number;
662
+
663
+ /**
664
+ * The four-digit year of birth.
665
+ */
666
+ year: number;
667
+ }
668
+ }
669
+
542
670
  interface RevolutPay {}
543
671
 
672
+ interface SamsungPay {}
673
+
544
674
  interface SepaDebit {
545
675
  /**
546
676
  * IBAN of the bank account.
@@ -548,6 +678,8 @@ declare module 'stripe' {
548
678
  iban: string;
549
679
  }
550
680
 
681
+ interface Shopeepay {}
682
+
551
683
  interface Sofort {
552
684
  /**
553
685
  * Two-letter ISO code representing the country the bank account is located in.
@@ -568,6 +700,7 @@ declare module 'stripe' {
568
700
  | 'affirm'
569
701
  | 'afterpay_clearpay'
570
702
  | 'alipay'
703
+ | 'alma'
571
704
  | 'amazon_pay'
572
705
  | 'au_becs_debit'
573
706
  | 'bacs_debit'
@@ -579,21 +712,32 @@ declare module 'stripe' {
579
712
  | 'eps'
580
713
  | 'fpx'
581
714
  | 'giropay'
715
+ | 'gopay'
582
716
  | 'grabpay'
583
717
  | 'ideal'
718
+ | 'kakao_pay'
584
719
  | 'klarna'
585
720
  | 'konbini'
721
+ | 'kr_card'
586
722
  | 'link'
723
+ | 'mb_way'
587
724
  | 'mobilepay'
588
725
  | 'multibanco'
726
+ | 'naver_pay'
589
727
  | 'oxxo'
590
728
  | 'p24'
729
+ | 'payco'
591
730
  | 'paynow'
592
731
  | 'paypal'
732
+ | 'payto'
593
733
  | 'pix'
594
734
  | 'promptpay'
735
+ | 'qris'
736
+ | 'rechnung'
595
737
  | 'revolut_pay'
738
+ | 'samsung_pay'
596
739
  | 'sepa_debit'
740
+ | 'shopeepay'
597
741
  | 'sofort'
598
742
  | 'swish'
599
743
  | 'twint'
@@ -39,6 +39,15 @@ 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
+
42
51
  namespace Issuing {
43
52
  class CardsResource {
44
53
  /**
@@ -92,6 +101,19 @@ declare module 'stripe' {
92
101
  id: string,
93
102
  options?: RequestOptions
94
103
  ): Promise<Stripe.Response<Stripe.Issuing.Card>>;
104
+
105
+ /**
106
+ * Updates the shipping status of the specified Issuing Card object to submitted. This method requires Stripe Version ‘2024-09-30.acacia' or later.
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>>;
95
117
  }
96
118
  }
97
119
  }
@@ -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
 
@@ -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 (International regulations require either "male" or "female").
291
+ * The individual's gender
292
292
  */
293
293
  gender?: string;
294
294
 
@@ -890,7 +890,7 @@ declare module 'stripe' {
890
890
  class TokensResource {
891
891
  /**
892
892
  * Creates a single-use token that represents a bank account's details.
893
- * You can use this token with any API method in place of a bank account dictionary. You can only use this token once. To do so, attach it to a [connected account](https://stripe.com/docs/api#accounts) where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is application, which includes Custom accounts.
893
+ * You can use this token with any v1 API method in place of a bank account dictionary. You can only use this token once. To do so, attach it to a [connected account](https://stripe.com/docs/api#accounts) where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is application, which includes Custom accounts.
894
894
  */
895
895
  create(
896
896
  params?: TokenCreateParams,
@@ -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 {
@@ -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.
@@ -75,7 +80,7 @@ declare module 'stripe' {
75
80
  restricted_features?: Array<FinancialAccount.RestrictedFeature>;
76
81
 
77
82
  /**
78
- * The enum specifying what state the account is in.
83
+ * Status of this FinancialAccount.
79
84
  */
80
85
  status: FinancialAccount.Status;
81
86
 
@@ -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.