stripe 17.2.0-beta.1 → 17.2.0
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 +115 -873
- package/README.md +7 -6
- package/VERSION +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/V2/Core/Events.js +50 -7
- package/cjs/resources.js +10 -42
- package/cjs/stripe.core.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/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 +0 -45
- package/types/AccountSessionsResource.d.ts +0 -309
- package/types/Accounts.d.ts +1 -113
- package/types/AccountsResource.d.ts +0 -270
- package/types/Charges.d.ts +0 -71
- package/types/ChargesResource.d.ts +0 -1294
- package/types/Checkout/Sessions.d.ts +4 -296
- package/types/Checkout/SessionsResource.d.ts +5 -351
- package/types/ConfirmationTokens.d.ts +0 -67
- 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 +0 -3
- package/types/Disputes.d.ts +0 -152
- package/types/DisputesResource.d.ts +0 -120
- package/types/EventTypes.d.ts +0 -545
- package/types/Events.d.ts +0 -90
- 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/InvoiceItems.d.ts +0 -5
- package/types/InvoiceItemsResource.d.ts +0 -98
- package/types/InvoiceLineItems.d.ts +1 -28
- package/types/Invoices.d.ts +2 -123
- package/types/InvoicesResource.d.ts +1835 -5493
- 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 -77
- package/types/PaymentIntents.d.ts +1 -503
- package/types/PaymentIntentsResource.d.ts +3464 -7064
- 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 +0 -50
- package/types/PaymentMethods.d.ts +0 -67
- package/types/PaymentMethodsResource.d.ts +0 -88
- 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 -10
- package/types/SetupIntents.d.ts +1 -111
- package/types/SetupIntentsResource.d.ts +3 -522
- 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 +2 -347
- package/types/Terminal/Readers.d.ts +0 -278
- package/types/Terminal/ReadersResource.d.ts +0 -215
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -63
- package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
- package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
- package/types/Treasury/FinancialAccounts.d.ts +0 -5
- 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/V2/EventTypes.d.ts +3 -1
- package/types/WebhookEndpointsResource.d.ts +0 -64
- 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 -1084
- package/types/OrdersResource.d.ts +0 -2765
- package/types/QuoteLines.d.ts +0 -634
- package/types/QuotePreviewInvoices.d.ts +0 -1586
- 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/Invoices.d.ts
CHANGED
|
@@ -104,11 +104,6 @@ declare module 'stripe' {
|
|
|
104
104
|
*/
|
|
105
105
|
amount_shipping: number;
|
|
106
106
|
|
|
107
|
-
/**
|
|
108
|
-
* List of expected payments and corresponding due dates. This value will be null for invoices where collection_method=charge_automatically.
|
|
109
|
-
*/
|
|
110
|
-
amounts_due?: Array<Invoice.AmountsDue> | null;
|
|
111
|
-
|
|
112
107
|
/**
|
|
113
108
|
* ID of the Connect Application that created the invoice.
|
|
114
109
|
*/
|
|
@@ -223,11 +218,6 @@ declare module 'stripe' {
|
|
|
223
218
|
*/
|
|
224
219
|
customer_tax_ids?: Array<Invoice.CustomerTaxId> | null;
|
|
225
220
|
|
|
226
|
-
/**
|
|
227
|
-
* The margins applied to the invoice. Can be overridden by line item `margins`. Use `expand[]=default_margins` to expand each margin.
|
|
228
|
-
*/
|
|
229
|
-
default_margins?: Array<string | Stripe.Margin> | null;
|
|
230
|
-
|
|
231
221
|
/**
|
|
232
222
|
* ID of the default payment method for the invoice. It must belong to the customer associated with the invoice. If not set, defaults to the subscription's default payment method, if any, or to the default payment method in the customer's invoice settings.
|
|
233
223
|
*/
|
|
@@ -357,11 +347,6 @@ declare module 'stripe' {
|
|
|
357
347
|
|
|
358
348
|
payment_settings: Invoice.PaymentSettings;
|
|
359
349
|
|
|
360
|
-
/**
|
|
361
|
-
* Payments for this invoice
|
|
362
|
-
*/
|
|
363
|
-
payments?: ApiList<Stripe.InvoicePayment>;
|
|
364
|
-
|
|
365
350
|
/**
|
|
366
351
|
* End of the usage period during which invoice items were added to this invoice. This looks back one period for a subscription invoice. Use the [line item period](https://stripe.com/api/invoices/line_item#invoice_line_item_object-period) to get the service period for each price.
|
|
367
352
|
*/
|
|
@@ -476,11 +461,6 @@ declare module 'stripe' {
|
|
|
476
461
|
*/
|
|
477
462
|
total_excluding_tax: number | null;
|
|
478
463
|
|
|
479
|
-
/**
|
|
480
|
-
* The aggregate amounts calculated per margin across all line items.
|
|
481
|
-
*/
|
|
482
|
-
total_margin_amounts?: Array<Invoice.TotalMarginAmount> | null;
|
|
483
|
-
|
|
484
464
|
total_pretax_credit_amounts?: Array<
|
|
485
465
|
Invoice.TotalPretaxCreditAmount
|
|
486
466
|
> | null;
|
|
@@ -502,52 +482,6 @@ declare module 'stripe' {
|
|
|
502
482
|
}
|
|
503
483
|
|
|
504
484
|
namespace Invoice {
|
|
505
|
-
interface AmountsDue {
|
|
506
|
-
/**
|
|
507
|
-
* Incremental amount due for this payment in cents (or local equivalent).
|
|
508
|
-
*/
|
|
509
|
-
amount: number;
|
|
510
|
-
|
|
511
|
-
/**
|
|
512
|
-
* The amount in cents (or local equivalent) that was paid for this payment.
|
|
513
|
-
*/
|
|
514
|
-
amount_paid: number;
|
|
515
|
-
|
|
516
|
-
/**
|
|
517
|
-
* The difference between the payment's amount and amount_paid, in cents (or local equivalent).
|
|
518
|
-
*/
|
|
519
|
-
amount_remaining: number;
|
|
520
|
-
|
|
521
|
-
/**
|
|
522
|
-
* Number of days from when invoice is finalized until the payment is due.
|
|
523
|
-
*/
|
|
524
|
-
days_until_due: number | null;
|
|
525
|
-
|
|
526
|
-
/**
|
|
527
|
-
* An arbitrary string attached to the object. Often useful for displaying to users.
|
|
528
|
-
*/
|
|
529
|
-
description: string | null;
|
|
530
|
-
|
|
531
|
-
/**
|
|
532
|
-
* Date on which a payment plan's payment is due.
|
|
533
|
-
*/
|
|
534
|
-
due_date: number | null;
|
|
535
|
-
|
|
536
|
-
/**
|
|
537
|
-
* Timestamp when the payment was paid.
|
|
538
|
-
*/
|
|
539
|
-
paid_at: number | null;
|
|
540
|
-
|
|
541
|
-
/**
|
|
542
|
-
* The status of the payment, one of `open`, `paid`, or `past_due`
|
|
543
|
-
*/
|
|
544
|
-
status: AmountsDue.Status;
|
|
545
|
-
}
|
|
546
|
-
|
|
547
|
-
namespace AmountsDue {
|
|
548
|
-
type Status = 'open' | 'paid' | 'past_due';
|
|
549
|
-
}
|
|
550
|
-
|
|
551
485
|
interface AutomaticTax {
|
|
552
486
|
/**
|
|
553
487
|
* Whether Stripe automatically computes tax on this invoice. Note that incompatible invoice items (invoice items with manually specified [tax rates](https://stripe.com/docs/api/tax_rates), negative amounts, or `tax_behavior=unspecified`) cannot be added to automatic tax invoices.
|
|
@@ -903,15 +837,11 @@ declare module 'stripe' {
|
|
|
903
837
|
| 'email_invalid'
|
|
904
838
|
| 'expired_card'
|
|
905
839
|
| 'financial_connections_account_inactive'
|
|
906
|
-
| 'financial_connections_institution_unavailable'
|
|
907
840
|
| 'financial_connections_no_successful_transaction_refresh'
|
|
908
841
|
| 'forwarding_api_inactive'
|
|
909
842
|
| 'forwarding_api_invalid_parameter'
|
|
910
843
|
| 'forwarding_api_upstream_connection_error'
|
|
911
844
|
| 'forwarding_api_upstream_connection_timeout'
|
|
912
|
-
| 'gift_card_balance_insufficient'
|
|
913
|
-
| 'gift_card_code_exists'
|
|
914
|
-
| 'gift_card_inactive'
|
|
915
845
|
| 'idempotency_key_in_use'
|
|
916
846
|
| 'incorrect_address'
|
|
917
847
|
| 'incorrect_cvc'
|
|
@@ -1001,7 +931,6 @@ declare module 'stripe' {
|
|
|
1001
931
|
| 'return_intent_already_processed'
|
|
1002
932
|
| 'routing_number_invalid'
|
|
1003
933
|
| 'secret_key_required'
|
|
1004
|
-
| 'sensitive_data_access_expired'
|
|
1005
934
|
| 'sepa_unsupported_account'
|
|
1006
935
|
| 'setup_attempt_failed'
|
|
1007
936
|
| 'setup_intent_authentication_failure'
|
|
@@ -1019,7 +948,6 @@ declare module 'stripe' {
|
|
|
1019
948
|
| 'taxes_calculation_failed'
|
|
1020
949
|
| 'terminal_location_country_unsupported'
|
|
1021
950
|
| 'terminal_reader_busy'
|
|
1022
|
-
| 'terminal_reader_collected_data_invalid'
|
|
1023
951
|
| 'terminal_reader_hardware_fault'
|
|
1024
952
|
| 'terminal_reader_invalid_location_for_activation'
|
|
1025
953
|
| 'terminal_reader_invalid_location_for_payment'
|
|
@@ -1219,11 +1147,6 @@ declare module 'stripe' {
|
|
|
1219
1147
|
* The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
|
|
1220
1148
|
*/
|
|
1221
1149
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
1222
|
-
|
|
1223
|
-
/**
|
|
1224
|
-
* The institution to use to filter for possible accounts to link.
|
|
1225
|
-
*/
|
|
1226
|
-
institution?: string;
|
|
1227
1150
|
}
|
|
1228
1151
|
|
|
1229
1152
|
namespace Filters {
|
|
@@ -1236,11 +1159,7 @@ declare module 'stripe' {
|
|
|
1236
1159
|
| 'payment_method'
|
|
1237
1160
|
| 'transactions';
|
|
1238
1161
|
|
|
1239
|
-
type Prefetch =
|
|
1240
|
-
| 'balances'
|
|
1241
|
-
| 'inferred_balances'
|
|
1242
|
-
| 'ownership'
|
|
1243
|
-
| 'transactions';
|
|
1162
|
+
type Prefetch = 'balances' | 'ownership' | 'transactions';
|
|
1244
1163
|
}
|
|
1245
1164
|
|
|
1246
1165
|
type VerificationMethod = 'automatic' | 'instant' | 'microdeposits';
|
|
@@ -1441,29 +1360,6 @@ declare module 'stripe' {
|
|
|
1441
1360
|
* *Note: This attribute is populated only for invoices created on or after June 29, 2023.*
|
|
1442
1361
|
*/
|
|
1443
1362
|
metadata: Stripe.Metadata | null;
|
|
1444
|
-
|
|
1445
|
-
/**
|
|
1446
|
-
* If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment).
|
|
1447
|
-
*/
|
|
1448
|
-
pause_collection?: SubscriptionDetails.PauseCollection | null;
|
|
1449
|
-
}
|
|
1450
|
-
|
|
1451
|
-
namespace SubscriptionDetails {
|
|
1452
|
-
interface PauseCollection {
|
|
1453
|
-
/**
|
|
1454
|
-
* The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`.
|
|
1455
|
-
*/
|
|
1456
|
-
behavior: PauseCollection.Behavior;
|
|
1457
|
-
|
|
1458
|
-
/**
|
|
1459
|
-
* The time after which the subscription will resume collecting payments.
|
|
1460
|
-
*/
|
|
1461
|
-
resumes_at: number | null;
|
|
1462
|
-
}
|
|
1463
|
-
|
|
1464
|
-
namespace PauseCollection {
|
|
1465
|
-
type Behavior = 'keep_as_draft' | 'mark_uncollectible' | 'void';
|
|
1466
|
-
}
|
|
1467
1363
|
}
|
|
1468
1364
|
|
|
1469
1365
|
interface ThresholdReason {
|
|
@@ -1504,18 +1400,6 @@ declare module 'stripe' {
|
|
|
1504
1400
|
discount: string | Stripe.Discount | Stripe.DeletedDiscount;
|
|
1505
1401
|
}
|
|
1506
1402
|
|
|
1507
|
-
interface TotalMarginAmount {
|
|
1508
|
-
/**
|
|
1509
|
-
* The amount, in cents (or local equivalent), of the reduction in line item amount.
|
|
1510
|
-
*/
|
|
1511
|
-
amount: number;
|
|
1512
|
-
|
|
1513
|
-
/**
|
|
1514
|
-
* The margin that was applied to get this margin amount.
|
|
1515
|
-
*/
|
|
1516
|
-
margin: string | Stripe.Margin;
|
|
1517
|
-
}
|
|
1518
|
-
|
|
1519
1403
|
interface TotalPretaxCreditAmount {
|
|
1520
1404
|
/**
|
|
1521
1405
|
* The amount, in cents (or local equivalent), of the pretax credit amount.
|
|
@@ -1535,11 +1419,6 @@ declare module 'stripe' {
|
|
|
1535
1419
|
*/
|
|
1536
1420
|
discount?: string | Stripe.Discount | Stripe.DeletedDiscount;
|
|
1537
1421
|
|
|
1538
|
-
/**
|
|
1539
|
-
* The margin that was applied to get this pretax credit amount.
|
|
1540
|
-
*/
|
|
1541
|
-
margin?: string | Stripe.Margin;
|
|
1542
|
-
|
|
1543
1422
|
/**
|
|
1544
1423
|
* Type of the pretax credit amount referenced.
|
|
1545
1424
|
*/
|
|
@@ -1547,7 +1426,7 @@ declare module 'stripe' {
|
|
|
1547
1426
|
}
|
|
1548
1427
|
|
|
1549
1428
|
namespace TotalPretaxCreditAmount {
|
|
1550
|
-
type Type = 'credit_balance_transaction' | 'discount'
|
|
1429
|
+
type Type = 'credit_balance_transaction' | 'discount';
|
|
1551
1430
|
}
|
|
1552
1431
|
|
|
1553
1432
|
interface TotalTaxAmount {
|