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.
- package/CHANGELOG.md +117 -899
- package/README.md +4 -4
- package/VERSION +1 -1
- package/cjs/Webhooks.js +1 -1
- package/cjs/resources/FinancialConnections/Accounts.js +0 -5
- package/cjs/resources/Invoices.js +0 -17
- package/cjs/resources/PaymentIntents.js +0 -4
- package/cjs/resources/Quotes.js +0 -32
- package/cjs/resources/SubscriptionSchedules.js +0 -4
- package/cjs/resources/Terminal/Readers.js +0 -12
- package/cjs/resources/TestHelpers/Issuing/Cards.js +0 -4
- package/cjs/resources/V2/Core/Events.js +50 -7
- package/cjs/resources.js +10 -42
- package/cjs/stripe.core.js +1 -1
- package/esm/Webhooks.js +1 -1
- package/esm/resources/FinancialConnections/Accounts.js +0 -5
- package/esm/resources/Invoices.js +0 -17
- package/esm/resources/PaymentIntents.js +0 -4
- package/esm/resources/Quotes.js +0 -32
- package/esm/resources/SubscriptionSchedules.js +0 -4
- package/esm/resources/Terminal/Readers.js +0 -12
- package/esm/resources/TestHelpers/Issuing/Cards.js +0 -4
- package/esm/resources/V2/Core/Events.js +50 -7
- package/esm/resources.js +0 -29
- package/esm/stripe.core.js +1 -1
- package/package.json +1 -1
- package/types/AccountLinksResource.d.ts +1 -5
- package/types/AccountSessions.d.ts +5 -75
- package/types/AccountSessionsResource.d.ts +5 -354
- package/types/Accounts.d.ts +3 -127
- package/types/AccountsResource.d.ts +2 -296
- package/types/Billing/CreditGrants.d.ts +2 -2
- package/types/Billing/CreditGrantsResource.d.ts +2 -2
- package/types/Billing/Meters.d.ts +0 -2
- package/types/Charges.d.ts +0 -152
- package/types/ChargesResource.d.ts +0 -1294
- package/types/Checkout/Sessions.d.ts +5 -309
- package/types/Checkout/SessionsResource.d.ts +5 -356
- package/types/ConfirmationTokens.d.ts +0 -137
- package/types/Coupons.d.ts +1 -1
- package/types/CouponsResource.d.ts +1 -1
- package/types/CreditNotes.d.ts +0 -21
- package/types/CreditNotesResource.d.ts +0 -51
- package/types/CustomersResource.d.ts +2 -22
- package/types/Disputes.d.ts +0 -152
- package/types/DisputesResource.d.ts +0 -120
- package/types/EventTypes.d.ts +2 -564
- package/types/Events.d.ts +0 -91
- package/types/FinancialConnections/Accounts.d.ts +1 -29
- package/types/FinancialConnections/AccountsResource.d.ts +3 -35
- package/types/FinancialConnections/Sessions.d.ts +1 -49
- package/types/FinancialConnections/SessionsResource.d.ts +1 -38
- package/types/Forwarding/Requests.d.ts +0 -5
- package/types/InvoiceItems.d.ts +0 -5
- package/types/InvoiceItemsResource.d.ts +0 -98
- package/types/InvoiceLineItems.d.ts +1 -31
- package/types/Invoices.d.ts +3 -134
- package/types/InvoicesResource.d.ts +1836 -5515
- package/types/Issuing/Authorizations.d.ts +1 -1
- package/types/Issuing/AuthorizationsResource.d.ts +1 -1
- package/types/Issuing/CardholdersResource.d.ts +1 -2
- package/types/Issuing/Transactions.d.ts +0 -2
- package/types/Issuing/TransactionsResource.d.ts +0 -5
- package/types/LineItems.d.ts +0 -7
- package/types/Mandates.d.ts +0 -85
- package/types/PaymentIntents.d.ts +1 -643
- package/types/PaymentIntentsResource.d.ts +3463 -7739
- package/types/PaymentLinks.d.ts +0 -3
- package/types/PaymentLinksResource.d.ts +0 -6
- package/types/PaymentMethodConfigurations.d.ts +0 -36
- package/types/PaymentMethodConfigurationsResource.d.ts +2 -52
- package/types/PaymentMethods.d.ts +0 -137
- package/types/PaymentMethodsResource.d.ts +0 -158
- package/types/Persons.d.ts +1 -1
- package/types/Prices.d.ts +0 -22
- package/types/PricesResource.d.ts +0 -22
- package/types/Products.d.ts +0 -39
- package/types/ProductsResource.d.ts +0 -36
- package/types/Quotes.d.ts +1 -591
- package/types/QuotesResource.d.ts +199 -2531
- package/types/SetupAttempts.d.ts +0 -19
- package/types/SetupIntents.d.ts +1 -112
- package/types/SetupIntentsResource.d.ts +3 -669
- package/types/Sources.d.ts +0 -23
- package/types/SubscriptionItems.d.ts +0 -21
- package/types/SubscriptionItemsResource.d.ts +0 -109
- package/types/SubscriptionSchedules.d.ts +0 -200
- package/types/SubscriptionSchedulesResource.d.ts +13 -1231
- package/types/Subscriptions.d.ts +1 -82
- package/types/SubscriptionsResource.d.ts +3 -348
- package/types/Tax/CalculationLineItems.d.ts +0 -1
- package/types/Tax/Calculations.d.ts +1 -33
- package/types/Tax/CalculationsResource.d.ts +1 -7
- package/types/Tax/Registrations.d.ts +0 -82
- package/types/Tax/RegistrationsResource.d.ts +0 -109
- package/types/Tax/Transactions.d.ts +1 -8
- package/types/TaxIds.d.ts +1 -7
- package/types/TaxIdsResource.d.ts +1 -7
- package/types/TaxRates.d.ts +0 -25
- package/types/TaxRatesResource.d.ts +0 -2
- package/types/Terminal/Readers.d.ts +0 -278
- package/types/Terminal/ReadersResource.d.ts +0 -215
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -112
- package/types/TestHelpers/Issuing/CardsResource.d.ts +0 -22
- package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
- package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
- package/types/TokensResource.d.ts +1 -1
- package/types/Treasury/FinancialAccounts.d.ts +1 -6
- package/types/Treasury/FinancialAccountsResource.d.ts +0 -10
- package/types/Treasury/OutboundTransfers.d.ts +0 -26
- package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
- package/types/Treasury/ReceivedCredits.d.ts +0 -26
- package/types/Treasury/ReceivedDebits.d.ts +0 -31
- package/types/UsageRecordSummaries.d.ts +1 -1
- package/types/V2/Billing/MeterEventAdjustments.d.ts +1 -1
- package/types/V2/Billing/MeterEventSessions.d.ts +1 -1
- package/types/V2/Billing/MeterEvents.d.ts +1 -1
- package/types/V2/EventTypes.d.ts +3 -1
- package/types/WebhookEndpointsResource.d.ts +0 -66
- package/types/index.d.ts +0 -53
- package/cjs/resources/AccountNotices.js +0 -21
- package/cjs/resources/Capital/FinancingOffers.js +0 -21
- package/cjs/resources/Capital/FinancingSummary.js +0 -12
- package/cjs/resources/Capital/FinancingTransactions.js +0 -17
- package/cjs/resources/FinancialConnections/Institutions.js +0 -17
- package/cjs/resources/GiftCards/Cards.js +0 -23
- package/cjs/resources/GiftCards/Transactions.js +0 -33
- package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
- package/cjs/resources/Issuing/DisputeSettlementDetails.js +0 -17
- package/cjs/resources/Margins.js +0 -22
- package/cjs/resources/Orders.js +0 -24
- package/cjs/resources/Tax/Associations.js +0 -9
- package/cjs/resources/Tax/Forms.js +0 -20
- package/cjs/resources/Terminal/ReaderCollectedData.js +0 -12
- package/esm/resources/AccountNotices.js +0 -18
- package/esm/resources/Capital/FinancingOffers.js +0 -18
- package/esm/resources/Capital/FinancingSummary.js +0 -9
- package/esm/resources/Capital/FinancingTransactions.js +0 -14
- package/esm/resources/FinancialConnections/Institutions.js +0 -14
- package/esm/resources/GiftCards/Cards.js +0 -20
- package/esm/resources/GiftCards/Transactions.js +0 -30
- package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
- package/esm/resources/Issuing/DisputeSettlementDetails.js +0 -14
- package/esm/resources/Margins.js +0 -19
- package/esm/resources/Orders.js +0 -21
- package/esm/resources/Tax/Associations.js +0 -6
- package/esm/resources/Tax/Forms.js +0 -17
- package/esm/resources/Terminal/ReaderCollectedData.js +0 -9
- package/types/AccountNotices.d.ts +0 -113
- package/types/AccountNoticesResource.d.ts +0 -98
- package/types/Billing/MeterErrorReports.d.ts +0 -106
- package/types/Capital/FinancingOffers.d.ts +0 -188
- package/types/Capital/FinancingOffersResource.d.ts +0 -97
- package/types/Capital/FinancingSummary.d.ts +0 -106
- package/types/Capital/FinancingSummaryResource.d.ts +0 -27
- package/types/Capital/FinancingTransactions.d.ts +0 -135
- package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
- package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
- package/types/FinancialConnections/Institutions.d.ts +0 -93
- package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
- package/types/GiftCards/Cards.d.ts +0 -118
- package/types/GiftCards/CardsResource.d.ts +0 -159
- package/types/GiftCards/Transactions.d.ts +0 -129
- package/types/GiftCards/TransactionsResource.d.ts +0 -201
- package/types/InvoicePayments.d.ts +0 -138
- package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -451
- package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1032
- package/types/Issuing/DisputeSettlementDetails.d.ts +0 -73
- package/types/Issuing/DisputeSettlementDetailsResource.d.ts +0 -52
- package/types/Issuing/Settlements.d.ts +0 -103
- package/types/Margins.d.ts +0 -56
- package/types/MarginsResource.d.ts +0 -114
- package/types/Orders.d.ts +0 -1154
- package/types/OrdersResource.d.ts +0 -2911
- package/types/QuoteLines.d.ts +0 -634
- package/types/QuotePreviewInvoices.d.ts +0 -1596
- package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -814
- package/types/Tax/Associations.d.ts +0 -126
- package/types/Tax/AssociationsResource.d.ts +0 -29
- package/types/Tax/Forms.d.ts +0 -133
- package/types/Tax/FormsResource.d.ts +0 -90
- package/types/Terminal/ReaderCollectedData.d.ts +0 -51
- 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
|
|
|
@@ -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
|
-
*
|
|
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
|
-
*
|
|
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.
|
package/types/V2/EventTypes.d.ts
CHANGED
|
@@ -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
|
-
//
|
|
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 {
|