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
package/types/Accounts.d.ts
CHANGED
|
@@ -40,7 +40,7 @@ declare module 'stripe' {
|
|
|
40
40
|
capabilities?: Account.Capabilities;
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
|
-
* Whether the account can
|
|
43
|
+
* Whether the account can create live charges.
|
|
44
44
|
*/
|
|
45
45
|
charges_enabled: boolean;
|
|
46
46
|
|
|
@@ -85,11 +85,6 @@ declare module 'stripe' {
|
|
|
85
85
|
|
|
86
86
|
future_requirements?: Account.FutureRequirements;
|
|
87
87
|
|
|
88
|
-
/**
|
|
89
|
-
* The groups associated with the account.
|
|
90
|
-
*/
|
|
91
|
-
groups?: Account.Groups | null;
|
|
92
|
-
|
|
93
88
|
/**
|
|
94
89
|
* This is an object representing a person associated with a Stripe account.
|
|
95
90
|
*
|
|
@@ -105,14 +100,12 @@ declare module 'stripe' {
|
|
|
105
100
|
metadata?: Stripe.Metadata;
|
|
106
101
|
|
|
107
102
|
/**
|
|
108
|
-
* Whether
|
|
103
|
+
* Whether Stripe can send payouts to this account.
|
|
109
104
|
*/
|
|
110
105
|
payouts_enabled: boolean;
|
|
111
106
|
|
|
112
107
|
requirements?: Account.Requirements;
|
|
113
108
|
|
|
114
|
-
risk_controls?: Account.RiskControls;
|
|
115
|
-
|
|
116
109
|
/**
|
|
117
110
|
* Options for customizing how the account functions within Stripe.
|
|
118
111
|
*/
|
|
@@ -354,11 +347,6 @@ declare module 'stripe' {
|
|
|
354
347
|
*/
|
|
355
348
|
link_payments?: Capabilities.LinkPayments;
|
|
356
349
|
|
|
357
|
-
/**
|
|
358
|
-
* The status of the MB WAY payments capability of the account, or whether the account can directly process MB WAY charges.
|
|
359
|
-
*/
|
|
360
|
-
mb_way_payments?: Capabilities.MbWayPayments;
|
|
361
|
-
|
|
362
350
|
/**
|
|
363
351
|
* The status of the MobilePay capability of the account, or whether the account can directly process MobilePay charges.
|
|
364
352
|
*/
|
|
@@ -389,26 +377,11 @@ declare module 'stripe' {
|
|
|
389
377
|
*/
|
|
390
378
|
paynow_payments?: Capabilities.PaynowPayments;
|
|
391
379
|
|
|
392
|
-
/**
|
|
393
|
-
* The status of the PayPal payments capability of the account, or whether the account can directly process PayPal charges.
|
|
394
|
-
*/
|
|
395
|
-
paypal_payments?: Capabilities.PaypalPayments;
|
|
396
|
-
|
|
397
|
-
/**
|
|
398
|
-
* The status of the PayTo capability of the account, or whether the account can directly process PayTo charges.
|
|
399
|
-
*/
|
|
400
|
-
payto_payments?: Capabilities.PaytoPayments;
|
|
401
|
-
|
|
402
380
|
/**
|
|
403
381
|
* The status of the promptpay payments capability of the account, or whether the account can directly process promptpay charges.
|
|
404
382
|
*/
|
|
405
383
|
promptpay_payments?: Capabilities.PromptpayPayments;
|
|
406
384
|
|
|
407
|
-
/**
|
|
408
|
-
* The status of the Rechnung capability of the account, or whether the account can directly process Rechnung payments.
|
|
409
|
-
*/
|
|
410
|
-
rechnung_payments?: Capabilities.RechnungPayments;
|
|
411
|
-
|
|
412
385
|
/**
|
|
413
386
|
* The status of the RevolutPay capability of the account, or whether the account can directly process RevolutPay payments.
|
|
414
387
|
*/
|
|
@@ -530,8 +503,6 @@ declare module 'stripe' {
|
|
|
530
503
|
|
|
531
504
|
type LinkPayments = 'active' | 'inactive' | 'pending';
|
|
532
505
|
|
|
533
|
-
type MbWayPayments = 'active' | 'inactive' | 'pending';
|
|
534
|
-
|
|
535
506
|
type MobilepayPayments = 'active' | 'inactive' | 'pending';
|
|
536
507
|
|
|
537
508
|
type MultibancoPayments = 'active' | 'inactive' | 'pending';
|
|
@@ -544,14 +515,8 @@ declare module 'stripe' {
|
|
|
544
515
|
|
|
545
516
|
type PaynowPayments = 'active' | 'inactive' | 'pending';
|
|
546
517
|
|
|
547
|
-
type PaypalPayments = 'active' | 'inactive' | 'pending';
|
|
548
|
-
|
|
549
|
-
type PaytoPayments = 'active' | 'inactive' | 'pending';
|
|
550
|
-
|
|
551
518
|
type PromptpayPayments = 'active' | 'inactive' | 'pending';
|
|
552
519
|
|
|
553
|
-
type RechnungPayments = 'active' | 'inactive' | 'pending';
|
|
554
|
-
|
|
555
520
|
type RevolutPayPayments = 'active' | 'inactive' | 'pending';
|
|
556
521
|
|
|
557
522
|
type SepaBankTransferPayments = 'active' | 'inactive' | 'pending';
|
|
@@ -815,10 +780,6 @@ declare module 'stripe' {
|
|
|
815
780
|
}
|
|
816
781
|
|
|
817
782
|
interface Controller {
|
|
818
|
-
application?: Controller.Application;
|
|
819
|
-
|
|
820
|
-
dashboard?: Controller.Dashboard;
|
|
821
|
-
|
|
822
783
|
fees?: Controller.Fees;
|
|
823
784
|
|
|
824
785
|
/**
|
|
@@ -842,34 +803,6 @@ declare module 'stripe' {
|
|
|
842
803
|
}
|
|
843
804
|
|
|
844
805
|
namespace Controller {
|
|
845
|
-
interface Application {
|
|
846
|
-
/**
|
|
847
|
-
* `true` if the Connect application is responsible for negative balances and should manage credit and fraud risk on the account.
|
|
848
|
-
*/
|
|
849
|
-
loss_liable: boolean;
|
|
850
|
-
|
|
851
|
-
/**
|
|
852
|
-
* `true` if the Connect application is responsible for onboarding the account.
|
|
853
|
-
*/
|
|
854
|
-
onboarding_owner: boolean;
|
|
855
|
-
|
|
856
|
-
/**
|
|
857
|
-
* `true` if the Connect application is responsible for paying Stripe fees on pricing-control eligible products.
|
|
858
|
-
*/
|
|
859
|
-
pricing_controls: boolean;
|
|
860
|
-
}
|
|
861
|
-
|
|
862
|
-
interface Dashboard {
|
|
863
|
-
/**
|
|
864
|
-
* Whether this account has access to the full Stripe dashboard (`full`), to the Express dashboard (`express`), or to no dashboard (`none`).
|
|
865
|
-
*/
|
|
866
|
-
type: Dashboard.Type;
|
|
867
|
-
}
|
|
868
|
-
|
|
869
|
-
namespace Dashboard {
|
|
870
|
-
type Type = 'express' | 'full' | 'none';
|
|
871
|
-
}
|
|
872
|
-
|
|
873
806
|
interface Fees {
|
|
874
807
|
/**
|
|
875
808
|
* A value indicating the responsible payer of a bundle of Stripe fees for pricing-control eligible products on this account. Learn more about [fee behavior on connected accounts](https://docs.stripe.com/connect/direct-charges-fee-payer-behavior).
|
|
@@ -882,8 +815,7 @@ declare module 'stripe' {
|
|
|
882
815
|
| 'account'
|
|
883
816
|
| 'application'
|
|
884
817
|
| 'application_custom'
|
|
885
|
-
| 'application_express'
|
|
886
|
-
| 'application_unified_accounts_beta';
|
|
818
|
+
| 'application_express';
|
|
887
819
|
}
|
|
888
820
|
|
|
889
821
|
interface Losses {
|
|
@@ -1080,13 +1012,6 @@ declare module 'stripe' {
|
|
|
1080
1012
|
}
|
|
1081
1013
|
}
|
|
1082
1014
|
|
|
1083
|
-
interface Groups {
|
|
1084
|
-
/**
|
|
1085
|
-
* The group the account is in to determine their payments pricing, and null if the account is on customized pricing. [See the Platform pricing tool documentation](https://stripe.com/docs/connect/platform-pricing-tools) for details.
|
|
1086
|
-
*/
|
|
1087
|
-
payments_pricing: string | null;
|
|
1088
|
-
}
|
|
1089
|
-
|
|
1090
1015
|
interface Requirements {
|
|
1091
1016
|
/**
|
|
1092
1017
|
* Fields that are due and can be satisfied by providing the corresponding alternative fields instead.
|
|
@@ -1254,35 +1179,11 @@ declare module 'stripe' {
|
|
|
1254
1179
|
}
|
|
1255
1180
|
}
|
|
1256
1181
|
|
|
1257
|
-
interface RiskControls {
|
|
1258
|
-
charges: RiskControls.Charges;
|
|
1259
|
-
|
|
1260
|
-
payouts: RiskControls.Payouts;
|
|
1261
|
-
}
|
|
1262
|
-
|
|
1263
|
-
namespace RiskControls {
|
|
1264
|
-
interface Charges {
|
|
1265
|
-
/**
|
|
1266
|
-
* Whether a pause of the risk control has been requested.
|
|
1267
|
-
*/
|
|
1268
|
-
pause_requested: boolean;
|
|
1269
|
-
}
|
|
1270
|
-
|
|
1271
|
-
interface Payouts {
|
|
1272
|
-
/**
|
|
1273
|
-
* Whether a pause of the risk control has been requested.
|
|
1274
|
-
*/
|
|
1275
|
-
pause_requested: boolean;
|
|
1276
|
-
}
|
|
1277
|
-
}
|
|
1278
|
-
|
|
1279
1182
|
interface Settings {
|
|
1280
1183
|
bacs_debit_payments?: Settings.BacsDebitPayments;
|
|
1281
1184
|
|
|
1282
1185
|
branding: Settings.Branding;
|
|
1283
1186
|
|
|
1284
|
-
capital?: Settings.Capital;
|
|
1285
|
-
|
|
1286
1187
|
card_issuing?: Settings.CardIssuing;
|
|
1287
1188
|
|
|
1288
1189
|
card_payments: Settings.CardPayments;
|
|
@@ -1297,8 +1198,6 @@ declare module 'stripe' {
|
|
|
1297
1198
|
|
|
1298
1199
|
sepa_debit_payments?: Settings.SepaDebitPayments;
|
|
1299
1200
|
|
|
1300
|
-
tax_forms?: Settings.TaxForms;
|
|
1301
|
-
|
|
1302
1201
|
treasury?: Settings.Treasury;
|
|
1303
1202
|
}
|
|
1304
1203
|
|
|
@@ -1337,22 +1236,6 @@ declare module 'stripe' {
|
|
|
1337
1236
|
secondary_color: string | null;
|
|
1338
1237
|
}
|
|
1339
1238
|
|
|
1340
|
-
interface Capital {
|
|
1341
|
-
/**
|
|
1342
|
-
* Per-currency mapping of user-selected destination accounts used to pay out loans.
|
|
1343
|
-
*/
|
|
1344
|
-
payout_destination?: {
|
|
1345
|
-
[key: string]: string;
|
|
1346
|
-
};
|
|
1347
|
-
|
|
1348
|
-
/**
|
|
1349
|
-
* Per-currency mapping of all destination accounts eligible to receive loan payouts.
|
|
1350
|
-
*/
|
|
1351
|
-
payout_destination_selector?: {
|
|
1352
|
-
[key: string]: Array<string>;
|
|
1353
|
-
};
|
|
1354
|
-
}
|
|
1355
|
-
|
|
1356
1239
|
interface CardIssuing {
|
|
1357
1240
|
tos_acceptance?: CardIssuing.TosAcceptance;
|
|
1358
1241
|
}
|
|
@@ -1500,13 +1383,6 @@ declare module 'stripe' {
|
|
|
1500
1383
|
creditor_id?: string;
|
|
1501
1384
|
}
|
|
1502
1385
|
|
|
1503
|
-
interface TaxForms {
|
|
1504
|
-
/**
|
|
1505
|
-
* Whether the account opted out of receiving their tax forms by postal delivery.
|
|
1506
|
-
*/
|
|
1507
|
-
consented_to_paperless_delivery: boolean;
|
|
1508
|
-
}
|
|
1509
|
-
|
|
1510
1386
|
interface Treasury {
|
|
1511
1387
|
tos_acceptance?: Treasury.TosAcceptance;
|
|
1512
1388
|
}
|