stripe 17.5.0 → 17.6.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.
- package/CHANGELOG.md +1032 -109
- package/README.md +1 -0
- package/VERSION +1 -1
- package/cjs/resources/AccountNotices.js +21 -0
- package/cjs/resources/Capital/FinancingOffers.js +21 -0
- package/cjs/resources/Capital/FinancingSummary.js +12 -0
- package/cjs/resources/Capital/FinancingTransactions.js +17 -0
- package/cjs/resources/FinancialConnections/Accounts.js +5 -0
- package/cjs/resources/FinancialConnections/Institutions.js +17 -0
- package/cjs/resources/GiftCards/Cards.js +23 -0
- package/cjs/resources/GiftCards/Transactions.js +33 -0
- package/cjs/resources/Invoices.js +17 -0
- package/cjs/resources/Issuing/CreditUnderwritingRecords.js +33 -0
- package/cjs/resources/Issuing/DisputeSettlementDetails.js +17 -0
- package/cjs/resources/Issuing/FraudLiabilityDebits.js +17 -0
- package/cjs/resources/Margins.js +22 -0
- package/cjs/resources/Orders.js +24 -0
- package/cjs/resources/PaymentAttemptRecords.js +17 -0
- package/cjs/resources/PaymentIntents.js +8 -0
- package/cjs/resources/PaymentRecords.js +29 -0
- package/cjs/resources/Quotes.js +32 -0
- package/cjs/resources/SubscriptionSchedules.js +4 -0
- package/cjs/resources/Tax/Associations.js +9 -0
- package/cjs/resources/Tax/Forms.js +20 -0
- package/cjs/resources/Terminal/ReaderCollectedData.js +12 -0
- package/cjs/resources/Terminal/Readers.js +12 -0
- package/cjs/resources/Treasury/FinancialAccounts.js +4 -0
- package/cjs/resources.js +48 -10
- package/cjs/stripe.core.js +1 -1
- package/esm/resources/AccountNotices.js +18 -0
- package/esm/resources/Capital/FinancingOffers.js +18 -0
- package/esm/resources/Capital/FinancingSummary.js +9 -0
- package/esm/resources/Capital/FinancingTransactions.js +14 -0
- package/esm/resources/FinancialConnections/Accounts.js +5 -0
- package/esm/resources/FinancialConnections/Institutions.js +14 -0
- package/esm/resources/GiftCards/Cards.js +20 -0
- package/esm/resources/GiftCards/Transactions.js +30 -0
- package/esm/resources/Invoices.js +17 -0
- package/esm/resources/Issuing/CreditUnderwritingRecords.js +30 -0
- package/esm/resources/Issuing/DisputeSettlementDetails.js +14 -0
- package/esm/resources/Issuing/FraudLiabilityDebits.js +14 -0
- package/esm/resources/Margins.js +19 -0
- package/esm/resources/Orders.js +21 -0
- package/esm/resources/PaymentAttemptRecords.js +14 -0
- package/esm/resources/PaymentIntents.js +8 -0
- package/esm/resources/PaymentRecords.js +26 -0
- package/esm/resources/Quotes.js +32 -0
- package/esm/resources/SubscriptionSchedules.js +4 -0
- package/esm/resources/Tax/Associations.js +6 -0
- package/esm/resources/Tax/Forms.js +17 -0
- package/esm/resources/Terminal/ReaderCollectedData.js +9 -0
- package/esm/resources/Terminal/Readers.js +12 -0
- package/esm/resources/Treasury/FinancialAccounts.js +4 -0
- package/esm/resources.js +33 -0
- package/esm/stripe.core.js +1 -1
- package/package.json +1 -1
- package/types/AccountLinksResource.d.ts +5 -1
- package/types/AccountNotices.d.ts +113 -0
- package/types/AccountNoticesResource.d.ts +98 -0
- package/types/AccountSessions.d.ts +45 -0
- package/types/AccountSessionsResource.d.ts +355 -0
- package/types/Accounts.d.ts +218 -1
- package/types/AccountsResource.d.ts +536 -0
- package/types/Billing/MeterErrorReports.d.ts +106 -0
- package/types/BillingPortal/Configurations.d.ts +1 -4
- package/types/BillingPortal/ConfigurationsResource.d.ts +2 -8
- package/types/Capital/FinancingOffers.d.ts +188 -0
- package/types/Capital/FinancingOffersResource.d.ts +97 -0
- package/types/Capital/FinancingSummary.d.ts +106 -0
- package/types/Capital/FinancingSummaryResource.d.ts +27 -0
- package/types/Capital/FinancingTransactions.d.ts +135 -0
- package/types/Capital/FinancingTransactionsResource.d.ts +68 -0
- package/types/Cards.d.ts +6 -1
- package/types/Charges.d.ts +155 -2
- package/types/ChargesResource.d.ts +1294 -0
- package/types/Checkout/Sessions.d.ts +340 -4
- package/types/Checkout/SessionsResource.d.ts +447 -5
- package/types/ConfirmationTokens.d.ts +105 -1
- package/types/Coupons.d.ts +1 -1
- package/types/CouponsResource.d.ts +1 -1
- package/types/CreditNoteLineItems.d.ts +1 -1
- package/types/CreditNotes.d.ts +22 -1
- package/types/CreditNotesResource.d.ts +51 -0
- package/types/CustomersResource.d.ts +7 -0
- package/types/EventTypes.d.ts +596 -0
- package/types/Events.d.ts +93 -0
- package/types/FinancialConnections/AccountInferredBalances.d.ts +38 -0
- package/types/FinancialConnections/Accounts.d.ts +29 -1
- package/types/FinancialConnections/AccountsResource.d.ts +35 -3
- package/types/FinancialConnections/Institutions.d.ts +93 -0
- package/types/FinancialConnections/InstitutionsResource.d.ts +47 -0
- package/types/FinancialConnections/Sessions.d.ts +49 -1
- package/types/FinancialConnections/SessionsResource.d.ts +38 -1
- package/types/GiftCards/Cards.d.ts +118 -0
- package/types/GiftCards/CardsResource.d.ts +159 -0
- package/types/GiftCards/Transactions.d.ts +129 -0
- package/types/GiftCards/TransactionsResource.d.ts +201 -0
- package/types/InvoiceItems.d.ts +5 -0
- package/types/InvoiceItemsResource.d.ts +98 -0
- package/types/InvoiceLineItems.d.ts +29 -2
- package/types/InvoicePayments.d.ts +113 -0
- package/types/Invoices.d.ts +143 -3
- package/types/InvoicesResource.d.ts +4618 -933
- package/types/Issuing/Authorizations.d.ts +2 -1
- package/types/Issuing/CardholdersResource.d.ts +2 -1
- package/types/Issuing/CreditUnderwritingRecords.d.ts +451 -0
- package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +1032 -0
- package/types/Issuing/DisputeSettlementDetails.d.ts +73 -0
- package/types/Issuing/DisputeSettlementDetailsResource.d.ts +52 -0
- package/types/Issuing/FraudLiabilityDebits.d.ts +52 -0
- package/types/Issuing/FraudLiabilityDebitsResource.d.ts +52 -0
- package/types/Issuing/Settlements.d.ts +103 -0
- package/types/Issuing/Transactions.d.ts +3 -1
- package/types/Issuing/TransactionsResource.d.ts +5 -0
- package/types/LineItems.d.ts +32 -0
- package/types/Mandates.d.ts +77 -0
- package/types/Margins.d.ts +56 -0
- package/types/MarginsResource.d.ts +114 -0
- package/types/Orders.d.ts +1179 -0
- package/types/OrdersResource.d.ts +2961 -0
- package/types/PaymentAttemptRecords.d.ts +242 -0
- package/types/PaymentAttemptRecordsResource.d.ts +47 -0
- package/types/PaymentIntents.d.ts +649 -1
- package/types/PaymentIntentsResource.d.ts +8052 -3765
- package/types/PaymentLinks.d.ts +6 -0
- package/types/PaymentLinksResource.d.ts +26 -0
- package/types/PaymentMethodConfigurations.d.ts +180 -0
- package/types/PaymentMethodConfigurationsResource.d.ts +250 -0
- package/types/PaymentMethods.d.ts +105 -1
- package/types/PaymentMethodsResource.d.ts +133 -0
- package/types/PaymentRecords.d.ts +242 -0
- package/types/PaymentRecordsResource.d.ts +455 -0
- package/types/Prices.d.ts +22 -0
- package/types/PricesResource.d.ts +22 -0
- package/types/Products.d.ts +39 -0
- package/types/ProductsResource.d.ts +36 -0
- package/types/QuoteLines.d.ts +634 -0
- package/types/QuotePreviewInvoices.d.ts +1658 -0
- package/types/QuotePreviewSubscriptionSchedules.d.ts +824 -0
- package/types/Quotes.d.ts +591 -1
- package/types/QuotesResource.d.ts +2526 -194
- package/types/Refunds.d.ts +14 -0
- package/types/SetupAttempts.d.ts +43 -0
- package/types/SetupIntents.d.ts +116 -1
- package/types/SetupIntentsResource.d.ts +645 -3
- package/types/Sources.d.ts +29 -0
- package/types/SubscriptionItems.d.ts +21 -0
- package/types/SubscriptionItemsResource.d.ts +109 -0
- package/types/SubscriptionSchedules.d.ts +200 -0
- package/types/SubscriptionSchedulesResource.d.ts +1234 -16
- package/types/Subscriptions.d.ts +91 -1
- package/types/SubscriptionsResource.d.ts +369 -2
- package/types/Tax/Associations.d.ts +126 -0
- package/types/Tax/AssociationsResource.d.ts +29 -0
- package/types/Tax/Forms.d.ts +220 -0
- package/types/Tax/FormsResource.d.ts +107 -0
- package/types/Terminal/ReaderCollectedData.d.ts +51 -0
- package/types/Terminal/ReaderCollectedDataResource.d.ts +29 -0
- package/types/Terminal/Readers.d.ts +310 -0
- package/types/Terminal/ReadersResource.d.ts +215 -0
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +104 -0
- package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
- package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -0
- package/types/TokensResource.d.ts +8 -0
- package/types/Treasury/FinancialAccountFeatures.d.ts +7 -0
- package/types/Treasury/FinancialAccounts.d.ts +12 -0
- package/types/Treasury/FinancialAccountsResource.d.ts +121 -0
- package/types/Treasury/OutboundTransfers.d.ts +43 -1
- package/types/Treasury/OutboundTransfersResource.d.ts +43 -0
- package/types/Treasury/ReceivedCredits.d.ts +36 -0
- package/types/Treasury/ReceivedCreditsResource.d.ts +1 -0
- package/types/Treasury/ReceivedDebits.d.ts +31 -0
- package/types/WebhookEndpointsResource.d.ts +70 -0
- 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
|
|
|
@@ -140,6 +140,10 @@ declare module 'stripe' {
|
|
|
140
140
|
*/
|
|
141
141
|
ownership_declaration_shown_and_signed?: boolean;
|
|
142
142
|
|
|
143
|
+
ownership_exemption_reason?: Stripe.Emptyable<
|
|
144
|
+
Company.OwnershipExemptionReason
|
|
145
|
+
>;
|
|
146
|
+
|
|
143
147
|
/**
|
|
144
148
|
* The company's phone number (used for verification).
|
|
145
149
|
*/
|
|
@@ -194,6 +198,10 @@ declare module 'stripe' {
|
|
|
194
198
|
user_agent?: string;
|
|
195
199
|
}
|
|
196
200
|
|
|
201
|
+
type OwnershipExemptionReason =
|
|
202
|
+
| 'qualified_entity_exceeds_ownership_threshold'
|
|
203
|
+
| 'qualifies_as_financial_institution';
|
|
204
|
+
|
|
197
205
|
type Structure =
|
|
198
206
|
| 'free_zone_establishment'
|
|
199
207
|
| 'free_zone_llc'
|
|
@@ -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.
|
|
@@ -49,6 +54,8 @@ declare module 'stripe' {
|
|
|
49
54
|
*/
|
|
50
55
|
financial_addresses: Array<FinancialAccount.FinancialAddress>;
|
|
51
56
|
|
|
57
|
+
is_default?: boolean;
|
|
58
|
+
|
|
52
59
|
/**
|
|
53
60
|
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
54
61
|
*/
|
|
@@ -59,6 +66,11 @@ declare module 'stripe' {
|
|
|
59
66
|
*/
|
|
60
67
|
metadata: Stripe.Metadata | null;
|
|
61
68
|
|
|
69
|
+
/**
|
|
70
|
+
* The nickname for the FinancialAccount.
|
|
71
|
+
*/
|
|
72
|
+
nickname?: string | null;
|
|
73
|
+
|
|
62
74
|
/**
|
|
63
75
|
* The array of paths to pending Features in the Features hash.
|
|
64
76
|
*/
|
|
@@ -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
|
*/
|
|
@@ -24,6 +29,11 @@ declare module 'stripe' {
|
|
|
24
29
|
*/
|
|
25
30
|
metadata?: Stripe.MetadataParam;
|
|
26
31
|
|
|
32
|
+
/**
|
|
33
|
+
* The nickname for the FinancialAccount.
|
|
34
|
+
*/
|
|
35
|
+
nickname?: Stripe.Emptyable<string>;
|
|
36
|
+
|
|
27
37
|
/**
|
|
28
38
|
* The set of functionalities that the platform can restrict on the FinancialAccount.
|
|
29
39
|
*/
|
|
@@ -92,11 +102,20 @@ declare module 'stripe' {
|
|
|
92
102
|
|
|
93
103
|
namespace FinancialAddresses {
|
|
94
104
|
interface Aba {
|
|
105
|
+
/**
|
|
106
|
+
* Requested bank partner
|
|
107
|
+
*/
|
|
108
|
+
bank?: Aba.Bank;
|
|
109
|
+
|
|
95
110
|
/**
|
|
96
111
|
* Whether the FinancialAccount should have the Feature.
|
|
97
112
|
*/
|
|
98
113
|
requested: boolean;
|
|
99
114
|
}
|
|
115
|
+
|
|
116
|
+
namespace Aba {
|
|
117
|
+
type Bank = 'evolve' | 'fifth_third' | 'goldman_sachs';
|
|
118
|
+
}
|
|
100
119
|
}
|
|
101
120
|
|
|
102
121
|
interface InboundTransfers {
|
|
@@ -206,6 +225,11 @@ declare module 'stripe' {
|
|
|
206
225
|
}
|
|
207
226
|
|
|
208
227
|
interface FinancialAccountUpdateParams {
|
|
228
|
+
/**
|
|
229
|
+
* 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.
|
|
230
|
+
*/
|
|
231
|
+
display_name?: Stripe.Emptyable<string>;
|
|
232
|
+
|
|
209
233
|
/**
|
|
210
234
|
* Specifies which fields in the response should be expanded.
|
|
211
235
|
*/
|
|
@@ -216,11 +240,21 @@ declare module 'stripe' {
|
|
|
216
240
|
*/
|
|
217
241
|
features?: FinancialAccountUpdateParams.Features;
|
|
218
242
|
|
|
243
|
+
/**
|
|
244
|
+
* A different bank account where funds can be deposited/debited in order to get the closing FA's balance to $0
|
|
245
|
+
*/
|
|
246
|
+
forwarding_settings?: FinancialAccountUpdateParams.ForwardingSettings;
|
|
247
|
+
|
|
219
248
|
/**
|
|
220
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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
221
250
|
*/
|
|
222
251
|
metadata?: Stripe.MetadataParam;
|
|
223
252
|
|
|
253
|
+
/**
|
|
254
|
+
* The nickname for the FinancialAccount.
|
|
255
|
+
*/
|
|
256
|
+
nickname?: Stripe.Emptyable<string>;
|
|
257
|
+
|
|
224
258
|
/**
|
|
225
259
|
* The set of functionalities that the platform can restrict on the FinancialAccount.
|
|
226
260
|
*/
|
|
@@ -289,11 +323,20 @@ declare module 'stripe' {
|
|
|
289
323
|
|
|
290
324
|
namespace FinancialAddresses {
|
|
291
325
|
interface Aba {
|
|
326
|
+
/**
|
|
327
|
+
* Requested bank partner
|
|
328
|
+
*/
|
|
329
|
+
bank?: Aba.Bank;
|
|
330
|
+
|
|
292
331
|
/**
|
|
293
332
|
* Whether the FinancialAccount should have the Feature.
|
|
294
333
|
*/
|
|
295
334
|
requested: boolean;
|
|
296
335
|
}
|
|
336
|
+
|
|
337
|
+
namespace Aba {
|
|
338
|
+
type Bank = 'evolve' | 'fifth_third' | 'goldman_sachs';
|
|
339
|
+
}
|
|
297
340
|
}
|
|
298
341
|
|
|
299
342
|
interface InboundTransfers {
|
|
@@ -376,6 +419,27 @@ declare module 'stripe' {
|
|
|
376
419
|
}
|
|
377
420
|
}
|
|
378
421
|
|
|
422
|
+
interface ForwardingSettings {
|
|
423
|
+
/**
|
|
424
|
+
* The financial_account id
|
|
425
|
+
*/
|
|
426
|
+
financial_account?: string;
|
|
427
|
+
|
|
428
|
+
/**
|
|
429
|
+
* The payment_method or bank account id. This needs to be a verified bank account.
|
|
430
|
+
*/
|
|
431
|
+
payment_method?: string;
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* The type of the bank account provided. This can be either "financial_account" or "payment_method"
|
|
435
|
+
*/
|
|
436
|
+
type: ForwardingSettings.Type;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
namespace ForwardingSettings {
|
|
440
|
+
type Type = 'financial_account' | 'payment_method';
|
|
441
|
+
}
|
|
442
|
+
|
|
379
443
|
interface PlatformRestrictions {
|
|
380
444
|
/**
|
|
381
445
|
* Restricts all inbound money movement.
|
|
@@ -407,6 +471,41 @@ declare module 'stripe' {
|
|
|
407
471
|
expand?: Array<string>;
|
|
408
472
|
}
|
|
409
473
|
|
|
474
|
+
interface FinancialAccountCloseParams {
|
|
475
|
+
/**
|
|
476
|
+
* Specifies which fields in the response should be expanded.
|
|
477
|
+
*/
|
|
478
|
+
expand?: Array<string>;
|
|
479
|
+
|
|
480
|
+
/**
|
|
481
|
+
* A different bank account where funds can be deposited/debited in order to get the closing FA's balance to $0
|
|
482
|
+
*/
|
|
483
|
+
forwarding_settings?: FinancialAccountCloseParams.ForwardingSettings;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
namespace FinancialAccountCloseParams {
|
|
487
|
+
interface ForwardingSettings {
|
|
488
|
+
/**
|
|
489
|
+
* The financial_account id
|
|
490
|
+
*/
|
|
491
|
+
financial_account?: string;
|
|
492
|
+
|
|
493
|
+
/**
|
|
494
|
+
* The payment_method or bank account id. This needs to be a verified bank account.
|
|
495
|
+
*/
|
|
496
|
+
payment_method?: string;
|
|
497
|
+
|
|
498
|
+
/**
|
|
499
|
+
* The type of the bank account provided. This can be either "financial_account" or "payment_method"
|
|
500
|
+
*/
|
|
501
|
+
type: ForwardingSettings.Type;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
namespace ForwardingSettings {
|
|
505
|
+
type Type = 'financial_account' | 'payment_method';
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
|
|
410
509
|
interface FinancialAccountRetrieveFeaturesParams {
|
|
411
510
|
/**
|
|
412
511
|
* Specifies which fields in the response should be expanded.
|
|
@@ -480,11 +579,20 @@ declare module 'stripe' {
|
|
|
480
579
|
|
|
481
580
|
namespace FinancialAddresses {
|
|
482
581
|
interface Aba {
|
|
582
|
+
/**
|
|
583
|
+
* Requested bank partner
|
|
584
|
+
*/
|
|
585
|
+
bank?: Aba.Bank;
|
|
586
|
+
|
|
483
587
|
/**
|
|
484
588
|
* Whether the FinancialAccount should have the Feature.
|
|
485
589
|
*/
|
|
486
590
|
requested: boolean;
|
|
487
591
|
}
|
|
592
|
+
|
|
593
|
+
namespace Aba {
|
|
594
|
+
type Bank = 'evolve' | 'fifth_third' | 'goldman_sachs';
|
|
595
|
+
}
|
|
488
596
|
}
|
|
489
597
|
|
|
490
598
|
interface InboundTransfers {
|
|
@@ -609,6 +717,19 @@ declare module 'stripe' {
|
|
|
609
717
|
options?: RequestOptions
|
|
610
718
|
): ApiListPromise<Stripe.Treasury.FinancialAccount>;
|
|
611
719
|
|
|
720
|
+
/**
|
|
721
|
+
* Closes a FinancialAccount. A FinancialAccount can only be closed if it has a zero balance, has no pending InboundTransfers, and has canceled all attached Issuing cards.
|
|
722
|
+
*/
|
|
723
|
+
close(
|
|
724
|
+
id: string,
|
|
725
|
+
params?: FinancialAccountCloseParams,
|
|
726
|
+
options?: RequestOptions
|
|
727
|
+
): Promise<Stripe.Response<Stripe.Treasury.FinancialAccount>>;
|
|
728
|
+
close(
|
|
729
|
+
id: string,
|
|
730
|
+
options?: RequestOptions
|
|
731
|
+
): Promise<Stripe.Response<Stripe.Treasury.FinancialAccount>>;
|
|
732
|
+
|
|
612
733
|
/**
|
|
613
734
|
* Retrieves Features information associated with the FinancialAccount.
|
|
614
735
|
*/
|
|
@@ -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
|
*/
|
|
@@ -110,10 +115,12 @@ declare module 'stripe' {
|
|
|
110
115
|
interface DestinationPaymentMethodDetails {
|
|
111
116
|
billing_details: DestinationPaymentMethodDetails.BillingDetails;
|
|
112
117
|
|
|
118
|
+
financial_account?: DestinationPaymentMethodDetails.FinancialAccount;
|
|
119
|
+
|
|
113
120
|
/**
|
|
114
121
|
* The type of the payment method used in the OutboundTransfer.
|
|
115
122
|
*/
|
|
116
|
-
type:
|
|
123
|
+
type: DestinationPaymentMethodDetails.Type;
|
|
117
124
|
|
|
118
125
|
us_bank_account?: DestinationPaymentMethodDetails.UsBankAccount;
|
|
119
126
|
}
|
|
@@ -133,6 +140,20 @@ declare module 'stripe' {
|
|
|
133
140
|
name: string | null;
|
|
134
141
|
}
|
|
135
142
|
|
|
143
|
+
interface FinancialAccount {
|
|
144
|
+
/**
|
|
145
|
+
* Token of the FinancialAccount.
|
|
146
|
+
*/
|
|
147
|
+
id: string;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* The rails used to send funds.
|
|
151
|
+
*/
|
|
152
|
+
network: 'stripe';
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
type Type = 'financial_account' | 'us_bank_account';
|
|
156
|
+
|
|
136
157
|
interface UsBankAccount {
|
|
137
158
|
/**
|
|
138
159
|
* Account holder type: individual or company.
|
|
@@ -184,6 +205,27 @@ declare module 'stripe' {
|
|
|
184
205
|
}
|
|
185
206
|
}
|
|
186
207
|
|
|
208
|
+
interface NetworkDetails {
|
|
209
|
+
/**
|
|
210
|
+
* Details about an ACH transaction.
|
|
211
|
+
*/
|
|
212
|
+
ach?: NetworkDetails.Ach | null;
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* The type of flow that originated the OutboundTransfer.
|
|
216
|
+
*/
|
|
217
|
+
type: 'ach';
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
namespace NetworkDetails {
|
|
221
|
+
interface Ach {
|
|
222
|
+
/**
|
|
223
|
+
* ACH Addenda record
|
|
224
|
+
*/
|
|
225
|
+
addenda: string | null;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
|
|
187
229
|
interface ReturnedDetails {
|
|
188
230
|
/**
|
|
189
231
|
* Reason for the return.
|