stripe 18.2.1 → 18.3.0-beta.2
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 +1243 -14
- package/README.md +1 -0
- package/VERSION +1 -1
- package/cjs/Error.js +91 -1
- package/cjs/RequestSender.js +1 -1
- package/cjs/apiVersion.js +1 -1
- package/cjs/resources/AccountNotices.js +21 -0
- package/cjs/resources/BalanceSettings.js +10 -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/ExternalAccounts.js +23 -0
- package/cjs/resources/FinancialConnections/Accounts.js +5 -0
- package/cjs/resources/FinancialConnections/Institutions.js +17 -0
- package/cjs/resources/FxQuotes.js +15 -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/{InvoicePayments.js → PaymentAttemptRecords.js} +4 -4
- package/cjs/resources/PaymentIntents.js +13 -0
- package/cjs/resources/PaymentRecords.js +29 -0
- package/cjs/resources/Privacy/RedactionJobs.js +42 -0
- package/cjs/resources/Quotes.js +32 -0
- package/cjs/resources/SubscriptionSchedules.js +4 -0
- package/cjs/resources/Subscriptions.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 +8 -0
- package/cjs/resources/V2/Core/AccountLinks.js +9 -0
- package/cjs/resources/V2/Core/Accounts/Persons.js +29 -0
- package/cjs/resources/V2/Core/Accounts.js +25 -0
- package/cjs/resources/V2/Core/Vault/GbBankAccounts.js +28 -0
- package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +24 -0
- package/cjs/resources/V2/MoneyManagement/Adjustments.js +17 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +17 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js +21 -0
- package/cjs/resources/V2/MoneyManagement/InboundTransfers.js +21 -0
- package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +16 -0
- package/cjs/resources/V2/MoneyManagement/OutboundPayments.js +25 -0
- package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js +29 -0
- package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js +25 -0
- package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +25 -0
- package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +12 -0
- package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js +17 -0
- package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js +17 -0
- package/cjs/resources/V2/MoneyManagement/TransactionEntries.js +17 -0
- package/cjs/resources/V2/MoneyManagement/Transactions.js +17 -0
- package/cjs/resources/V2/Payments/OffSessionPayments.js +25 -0
- package/cjs/resources/V2/TestHelpers/FinancialAddresses.js +16 -0
- package/cjs/resources.js +98 -10
- package/cjs/stripe.core.js +1 -1
- package/esm/Error.js +79 -0
- package/esm/RequestSender.js +1 -1
- package/esm/apiVersion.js +1 -1
- package/esm/resources/AccountNotices.js +18 -0
- package/esm/resources/BalanceSettings.js +7 -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/ExternalAccounts.js +20 -0
- package/esm/resources/FinancialConnections/Accounts.js +5 -0
- package/esm/resources/FinancialConnections/Institutions.js +14 -0
- package/esm/resources/FxQuotes.js +12 -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/{InvoicePayments.js → PaymentAttemptRecords.js} +3 -3
- package/esm/resources/PaymentIntents.js +13 -0
- package/esm/resources/PaymentRecords.js +26 -0
- package/esm/resources/Privacy/RedactionJobs.js +39 -0
- package/esm/resources/Quotes.js +32 -0
- package/esm/resources/SubscriptionSchedules.js +4 -0
- package/esm/resources/Subscriptions.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 +8 -0
- package/esm/resources/V2/Core/AccountLinks.js +6 -0
- package/esm/resources/V2/Core/Accounts/Persons.js +26 -0
- package/esm/resources/V2/Core/Accounts.js +22 -0
- package/esm/resources/V2/Core/Vault/GbBankAccounts.js +25 -0
- package/esm/resources/V2/Core/Vault/UsBankAccounts.js +21 -0
- package/esm/resources/V2/MoneyManagement/Adjustments.js +14 -0
- package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +14 -0
- package/esm/resources/V2/MoneyManagement/FinancialAddresses.js +18 -0
- package/esm/resources/V2/MoneyManagement/InboundTransfers.js +18 -0
- package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +13 -0
- package/esm/resources/V2/MoneyManagement/OutboundPayments.js +22 -0
- package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js +26 -0
- package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +22 -0
- package/esm/resources/V2/MoneyManagement/PayoutMethods.js +22 -0
- package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +9 -0
- package/esm/resources/V2/MoneyManagement/ReceivedCredits.js +14 -0
- package/esm/resources/V2/MoneyManagement/ReceivedDebits.js +14 -0
- package/esm/resources/V2/MoneyManagement/TransactionEntries.js +14 -0
- package/esm/resources/V2/MoneyManagement/Transactions.js +14 -0
- package/esm/resources/V2/Payments/OffSessionPayments.js +22 -0
- package/esm/resources/V2/TestHelpers/FinancialAddresses.js +13 -0
- package/esm/resources.js +82 -1
- 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 +264 -0
- package/types/Accounts.d.ts +212 -1
- package/types/AccountsResource.d.ts +544 -0
- package/types/BalanceSettings.d.ts +89 -0
- package/types/BalanceSettingsResource.d.ts +108 -0
- package/types/Billing/CreditBalanceSummary.d.ts +5 -0
- package/types/Billing/CreditBalanceSummaryResource.d.ts +8 -3
- package/types/Billing/CreditBalanceTransactionsResource.d.ts +12 -4
- package/types/Billing/CreditGrants.d.ts +5 -0
- package/types/Billing/CreditGrantsResource.d.ts +11 -1
- package/types/BillingPortal/Sessions.d.ts +5 -0
- package/types/BillingPortal/SessionsResource.d.ts +12 -4
- 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 +5 -0
- package/types/CashBalances.d.ts +5 -0
- package/types/Charges.d.ts +166 -0
- package/types/ChargesResource.d.ts +1406 -0
- package/types/Checkout/Sessions.d.ts +314 -1
- package/types/Checkout/SessionsResource.d.ts +340 -1
- package/types/ConfirmationTokens.d.ts +125 -0
- package/types/Coupons.d.ts +33 -0
- package/types/CouponsResource.d.ts +21 -0
- package/types/CreditNoteLineItems.d.ts +17 -0
- package/types/CreditNotes.d.ts +5 -0
- package/types/CreditNotesResource.d.ts +5 -0
- package/types/CustomerBalanceTransactions.d.ts +2 -0
- package/types/CustomerCashBalanceTransactions.d.ts +2 -0
- package/types/CustomerSessions.d.ts +5 -0
- package/types/CustomerSessionsResource.d.ts +6 -1
- package/types/Customers.d.ts +2 -0
- package/types/CustomersResource.d.ts +8 -0
- package/types/Discounts.d.ts +10 -0
- package/types/Errors.d.ts +69 -2
- package/types/EventTypes.d.ts +681 -0
- package/types/Events.d.ts +98 -0
- package/types/ExternalAccountsResource.d.ts +304 -0
- package/types/FinancialConnections/AccountInferredBalances.d.ts +38 -0
- package/types/FinancialConnections/Accounts.d.ts +36 -1
- package/types/FinancialConnections/AccountsResource.d.ts +40 -3
- package/types/FinancialConnections/Institutions.d.ts +98 -0
- package/types/FinancialConnections/InstitutionsResource.d.ts +47 -0
- package/types/FinancialConnections/Sessions.d.ts +51 -1
- package/types/FinancialConnections/SessionsResource.d.ts +43 -1
- package/types/FxQuotes.d.ts +153 -0
- package/types/FxQuotesResource.d.ts +130 -0
- package/types/Identity/VerificationSessions.d.ts +5 -0
- package/types/Identity/VerificationSessionsResource.d.ts +7 -0
- package/types/InvoiceItems.d.ts +10 -0
- package/types/InvoiceItemsResource.d.ts +117 -6
- package/types/InvoiceLineItems.d.ts +45 -1
- package/types/InvoicePayments.d.ts +5 -0
- package/types/Invoices.d.ts +133 -3
- package/types/InvoicesResource.d.ts +1458 -13
- 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 +85 -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 +113 -0
- package/types/Issuing/Transactions.d.ts +5 -0
- package/types/Issuing/TransactionsResource.d.ts +5 -0
- package/types/LineItems.d.ts +49 -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 +1159 -0
- package/types/OrdersResource.d.ts +2967 -0
- package/types/PaymentAttemptRecords.d.ts +2132 -0
- package/types/PaymentAttemptRecordsResource.d.ts +47 -0
- package/types/PaymentIntentAmountDetailsLineItems.d.ts +116 -0
- package/types/PaymentIntents.d.ts +764 -2
- package/types/PaymentIntentsResource.d.ts +8819 -4111
- package/types/PaymentLinks.d.ts +6 -0
- package/types/PaymentLinksResource.d.ts +12 -0
- package/types/PaymentMethodConfigurations.d.ts +180 -0
- package/types/PaymentMethodConfigurationsResource.d.ts +250 -0
- package/types/PaymentMethods.d.ts +125 -0
- package/types/PaymentMethodsResource.d.ts +167 -2
- package/types/PaymentRecords.d.ts +2125 -0
- package/types/PaymentRecordsResource.d.ts +455 -0
- package/types/Payouts.d.ts +5 -0
- package/types/PayoutsResource.d.ts +5 -0
- package/types/Prices.d.ts +22 -0
- package/types/PricesResource.d.ts +22 -0
- package/types/Privacy/RedactionJobValidationErrors.d.ts +60 -0
- package/types/Privacy/RedactionJobs.d.ts +111 -0
- package/types/Privacy/RedactionJobsResource.d.ts +230 -0
- package/types/PromotionCodes.d.ts +5 -0
- package/types/PromotionCodesResource.d.ts +10 -0
- package/types/QuoteLines.d.ts +634 -0
- package/types/QuotePreviewInvoices.d.ts +1695 -0
- package/types/QuotePreviewSubscriptionSchedules.d.ts +831 -0
- package/types/Quotes.d.ts +603 -1
- package/types/QuotesResource.d.ts +2572 -218
- package/types/Refunds.d.ts +14 -0
- package/types/SetupAttempts.d.ts +47 -1
- package/types/SetupIntents.d.ts +118 -2
- package/types/SetupIntentsResource.d.ts +730 -3
- package/types/Sources.d.ts +29 -0
- package/types/SubscriptionItems.d.ts +30 -0
- package/types/SubscriptionItemsResource.d.ts +109 -0
- package/types/SubscriptionSchedules.d.ts +212 -0
- package/types/SubscriptionSchedulesResource.d.ts +1240 -5
- package/types/Subscriptions.d.ts +116 -1
- package/types/SubscriptionsResource.d.ts +424 -10
- package/types/Tax/Associations.d.ts +82 -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/TaxIds.d.ts +10 -0
- package/types/TaxIdsResource.d.ts +10 -0
- package/types/Terminal/ReaderCollectedData.d.ts +51 -0
- package/types/Terminal/ReaderCollectedDataResource.d.ts +29 -0
- package/types/Terminal/Readers.d.ts +102 -0
- package/types/Terminal/ReadersResource.d.ts +96 -0
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +126 -0
- package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
- package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -0
- package/types/Transfers.d.ts +5 -0
- package/types/TransfersResource.d.ts +5 -0
- package/types/Treasury/FinancialAccountFeatures.d.ts +7 -0
- package/types/Treasury/FinancialAccounts.d.ts +5 -0
- package/types/Treasury/FinancialAccountsResource.d.ts +37 -0
- package/types/Treasury/OutboundTransfers.d.ts +26 -0
- package/types/Treasury/OutboundTransfersResource.d.ts +26 -0
- package/types/Treasury/ReceivedCredits.d.ts +26 -0
- package/types/Treasury/ReceivedDebits.d.ts +31 -0
- package/types/V2/Core/AccountLinks.d.ts +106 -0
- package/types/V2/Core/AccountLinksResource.d.ts +90 -0
- package/types/V2/Core/Accounts/PersonsResource.d.ts +3770 -0
- package/types/V2/Core/Accounts.d.ts +8169 -0
- package/types/V2/Core/AccountsResource.d.ts +10203 -0
- package/types/V2/Core/Persons.d.ts +1867 -0
- package/types/V2/Core/Vault/GbBankAccounts.d.ts +160 -0
- package/types/V2/Core/Vault/GbBankAccountsResource.d.ts +172 -0
- package/types/V2/Core/Vault/UsBankAccounts.d.ts +70 -0
- package/types/V2/Core/Vault/UsBankAccountsResource.d.ts +123 -0
- package/types/V2/EventTypes.d.ts +907 -5
- package/types/V2/FinancialAddressCreditSimulations.d.ts +27 -0
- package/types/V2/FinancialAddressGeneratedMicrodeposits.d.ts +32 -0
- package/types/V2/MoneyManagement/Adjustments.d.ts +110 -0
- package/types/V2/MoneyManagement/AdjustmentsResource.d.ts +83 -0
- package/types/V2/MoneyManagement/FinancialAccounts.d.ts +546 -0
- package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +52 -0
- package/types/V2/MoneyManagement/FinancialAddresses.d.ts +314 -0
- package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +288 -0
- package/types/V2/MoneyManagement/InboundTransfers.d.ts +206 -0
- package/types/V2/MoneyManagement/InboundTransfersResource.d.ts +144 -0
- package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +168 -0
- package/types/V2/MoneyManagement/OutboundPaymentQuotesResource.d.ts +115 -0
- package/types/V2/MoneyManagement/OutboundPayments.d.ts +278 -0
- package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +242 -0
- package/types/V2/MoneyManagement/OutboundSetupIntents.d.ts +97 -0
- package/types/V2/MoneyManagement/OutboundSetupIntentsResource.d.ts +296 -0
- package/types/V2/MoneyManagement/OutboundTransfers.d.ts +251 -0
- package/types/V2/MoneyManagement/OutboundTransfersResource.d.ts +207 -0
- package/types/V2/MoneyManagement/PayoutMethods.d.ts +151 -0
- package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecResource.d.ts +41 -0
- package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecs.d.ts +87 -0
- package/types/V2/MoneyManagement/PayoutMethodsResource.d.ts +113 -0
- package/types/V2/MoneyManagement/ReceivedCredits.d.ts +243 -0
- package/types/V2/MoneyManagement/ReceivedCreditsResource.d.ts +78 -0
- package/types/V2/MoneyManagement/ReceivedDebits.d.ts +176 -0
- package/types/V2/MoneyManagement/ReceivedDebitsResource.d.ts +48 -0
- package/types/V2/MoneyManagement/TransactionEntries.d.ts +155 -0
- package/types/V2/MoneyManagement/TransactionEntriesResource.d.ts +82 -0
- package/types/V2/MoneyManagement/Transactions.d.ts +170 -0
- package/types/V2/MoneyManagement/TransactionsResource.d.ts +83 -0
- package/types/V2/Payments/OffSessionPayments.d.ts +162 -0
- package/types/V2/Payments/OffSessionPaymentsResource.d.ts +159 -0
- package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +66 -0
- package/types/WebhookEndpointsResource.d.ts +80 -0
- package/types/index.d.ts +141 -5
- package/types/lib.d.ts +11 -1
- package/types/test/typescriptTest.ts +3 -3
- package/types/InvoicePaymentsResource.d.ts +0 -74
|
@@ -76,6 +76,11 @@ declare module 'stripe' {
|
|
|
76
76
|
*/
|
|
77
77
|
customer?: string;
|
|
78
78
|
|
|
79
|
+
/**
|
|
80
|
+
* ID of an existing Account, if one exists. Has the same behavior as `customer`.
|
|
81
|
+
*/
|
|
82
|
+
customer_account?: string;
|
|
83
|
+
|
|
79
84
|
/**
|
|
80
85
|
* Configure whether a Checkout Session creates a [Customer](https://stripe.com/docs/api/customers) during Session confirmation.
|
|
81
86
|
*
|
|
@@ -704,6 +709,11 @@ declare module 'stripe' {
|
|
|
704
709
|
*/
|
|
705
710
|
dynamic_tax_rates?: Array<string>;
|
|
706
711
|
|
|
712
|
+
/**
|
|
713
|
+
* 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`.
|
|
714
|
+
*/
|
|
715
|
+
metadata?: Stripe.MetadataParam;
|
|
716
|
+
|
|
707
717
|
/**
|
|
708
718
|
* The ID of the [Price](https://stripe.com/docs/api/prices) or [Plan](https://stripe.com/docs/api/plans) object. One of `price` or `price_data` is required.
|
|
709
719
|
*/
|
|
@@ -1212,6 +1222,11 @@ declare module 'stripe' {
|
|
|
1212
1222
|
*/
|
|
1213
1223
|
paypal?: PaymentMethodOptions.Paypal;
|
|
1214
1224
|
|
|
1225
|
+
/**
|
|
1226
|
+
* contains details about the PayTo payment method options.
|
|
1227
|
+
*/
|
|
1228
|
+
payto?: PaymentMethodOptions.Payto;
|
|
1229
|
+
|
|
1215
1230
|
/**
|
|
1216
1231
|
* contains details about the Pix payment method options.
|
|
1217
1232
|
*/
|
|
@@ -1481,6 +1496,11 @@ declare module 'stripe' {
|
|
|
1481
1496
|
*/
|
|
1482
1497
|
installments?: Card.Installments;
|
|
1483
1498
|
|
|
1499
|
+
/**
|
|
1500
|
+
* Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this CheckoutSession.
|
|
1501
|
+
*/
|
|
1502
|
+
request_decremental_authorization?: Card.RequestDecrementalAuthorization;
|
|
1503
|
+
|
|
1484
1504
|
/**
|
|
1485
1505
|
* Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this CheckoutSession.
|
|
1486
1506
|
*/
|
|
@@ -1542,6 +1562,8 @@ declare module 'stripe' {
|
|
|
1542
1562
|
enabled?: boolean;
|
|
1543
1563
|
}
|
|
1544
1564
|
|
|
1565
|
+
type RequestDecrementalAuthorization = 'if_available' | 'never';
|
|
1566
|
+
|
|
1545
1567
|
type RequestExtendedAuthorization = 'if_available' | 'never';
|
|
1546
1568
|
|
|
1547
1569
|
type RequestIncrementalAuthorization = 'if_available' | 'never';
|
|
@@ -1937,6 +1959,11 @@ declare module 'stripe' {
|
|
|
1937
1959
|
*/
|
|
1938
1960
|
reference?: string;
|
|
1939
1961
|
|
|
1962
|
+
/**
|
|
1963
|
+
* A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID. This must be a globally unique ID if you have configured in your PayPal settings to block multiple payments per invoice ID.
|
|
1964
|
+
*/
|
|
1965
|
+
reference_id?: string;
|
|
1966
|
+
|
|
1940
1967
|
/**
|
|
1941
1968
|
* The risk correlation ID for an on-session payment using a saved PayPal payment method.
|
|
1942
1969
|
*/
|
|
@@ -1954,6 +1981,11 @@ declare module 'stripe' {
|
|
|
1954
1981
|
* If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
|
|
1955
1982
|
*/
|
|
1956
1983
|
setup_future_usage?: Stripe.Emptyable<Paypal.SetupFutureUsage>;
|
|
1984
|
+
|
|
1985
|
+
/**
|
|
1986
|
+
* The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
|
|
1987
|
+
*/
|
|
1988
|
+
subsellers?: Array<string>;
|
|
1957
1989
|
}
|
|
1958
1990
|
|
|
1959
1991
|
namespace Paypal {
|
|
@@ -1983,6 +2015,92 @@ declare module 'stripe' {
|
|
|
1983
2015
|
type SetupFutureUsage = 'none' | 'off_session';
|
|
1984
2016
|
}
|
|
1985
2017
|
|
|
2018
|
+
interface Payto {
|
|
2019
|
+
/**
|
|
2020
|
+
* Additional fields for Mandate creation
|
|
2021
|
+
*/
|
|
2022
|
+
mandate_options?: Payto.MandateOptions;
|
|
2023
|
+
|
|
2024
|
+
/**
|
|
2025
|
+
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2026
|
+
*
|
|
2027
|
+
* If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
2028
|
+
*
|
|
2029
|
+
* If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
|
|
2030
|
+
*
|
|
2031
|
+
* When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
|
|
2032
|
+
*/
|
|
2033
|
+
setup_future_usage?: Payto.SetupFutureUsage;
|
|
2034
|
+
}
|
|
2035
|
+
|
|
2036
|
+
namespace Payto {
|
|
2037
|
+
interface MandateOptions {
|
|
2038
|
+
/**
|
|
2039
|
+
* Amount that will be collected. It is required when `amount_type` is `fixed`.
|
|
2040
|
+
*/
|
|
2041
|
+
amount?: number;
|
|
2042
|
+
|
|
2043
|
+
/**
|
|
2044
|
+
* The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively.
|
|
2045
|
+
*/
|
|
2046
|
+
amount_type?: MandateOptions.AmountType;
|
|
2047
|
+
|
|
2048
|
+
/**
|
|
2049
|
+
* Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
|
2050
|
+
*/
|
|
2051
|
+
end_date?: string;
|
|
2052
|
+
|
|
2053
|
+
/**
|
|
2054
|
+
* The periodicity at which payments will be collected.
|
|
2055
|
+
*/
|
|
2056
|
+
payment_schedule?: MandateOptions.PaymentSchedule;
|
|
2057
|
+
|
|
2058
|
+
/**
|
|
2059
|
+
* The number of payments that will be made during a payment period. Defaults to 1 except for when `payment_schedule` is `adhoc`. In that case, it defaults to no limit.
|
|
2060
|
+
*/
|
|
2061
|
+
payments_per_period?: number;
|
|
2062
|
+
|
|
2063
|
+
/**
|
|
2064
|
+
* The purpose for which payments are made. Defaults to retail.
|
|
2065
|
+
*/
|
|
2066
|
+
purpose?: MandateOptions.Purpose;
|
|
2067
|
+
|
|
2068
|
+
/**
|
|
2069
|
+
* Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
|
|
2070
|
+
*/
|
|
2071
|
+
start_date?: string;
|
|
2072
|
+
}
|
|
2073
|
+
|
|
2074
|
+
namespace MandateOptions {
|
|
2075
|
+
type AmountType = 'fixed' | 'maximum';
|
|
2076
|
+
|
|
2077
|
+
type PaymentSchedule =
|
|
2078
|
+
| 'adhoc'
|
|
2079
|
+
| 'annual'
|
|
2080
|
+
| 'daily'
|
|
2081
|
+
| 'fortnightly'
|
|
2082
|
+
| 'monthly'
|
|
2083
|
+
| 'quarterly'
|
|
2084
|
+
| 'semi_annual'
|
|
2085
|
+
| 'weekly';
|
|
2086
|
+
|
|
2087
|
+
type Purpose =
|
|
2088
|
+
| 'dependant_support'
|
|
2089
|
+
| 'government'
|
|
2090
|
+
| 'loan'
|
|
2091
|
+
| 'mortgage'
|
|
2092
|
+
| 'other'
|
|
2093
|
+
| 'pension'
|
|
2094
|
+
| 'personal'
|
|
2095
|
+
| 'retail'
|
|
2096
|
+
| 'salary'
|
|
2097
|
+
| 'tax'
|
|
2098
|
+
| 'utility';
|
|
2099
|
+
}
|
|
2100
|
+
|
|
2101
|
+
type SetupFutureUsage = 'none' | 'off_session';
|
|
2102
|
+
}
|
|
2103
|
+
|
|
1986
2104
|
interface Pix {
|
|
1987
2105
|
/**
|
|
1988
2106
|
* The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds.
|
|
@@ -2116,7 +2234,11 @@ declare module 'stripe' {
|
|
|
2116
2234
|
| 'payment_method'
|
|
2117
2235
|
| 'transactions';
|
|
2118
2236
|
|
|
2119
|
-
type Prefetch =
|
|
2237
|
+
type Prefetch =
|
|
2238
|
+
| 'balances'
|
|
2239
|
+
| 'inferred_balances'
|
|
2240
|
+
| 'ownership'
|
|
2241
|
+
| 'transactions';
|
|
2120
2242
|
}
|
|
2121
2243
|
|
|
2122
2244
|
type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
|
|
@@ -2171,6 +2293,7 @@ declare module 'stripe' {
|
|
|
2171
2293
|
| 'eps'
|
|
2172
2294
|
| 'fpx'
|
|
2173
2295
|
| 'giropay'
|
|
2296
|
+
| 'gopay'
|
|
2174
2297
|
| 'grabpay'
|
|
2175
2298
|
| 'ideal'
|
|
2176
2299
|
| 'kakao_pay'
|
|
@@ -2178,6 +2301,7 @@ declare module 'stripe' {
|
|
|
2178
2301
|
| 'konbini'
|
|
2179
2302
|
| 'kr_card'
|
|
2180
2303
|
| 'link'
|
|
2304
|
+
| 'mb_way'
|
|
2181
2305
|
| 'mobilepay'
|
|
2182
2306
|
| 'multibanco'
|
|
2183
2307
|
| 'naver_pay'
|
|
@@ -2187,12 +2311,16 @@ declare module 'stripe' {
|
|
|
2187
2311
|
| 'payco'
|
|
2188
2312
|
| 'paynow'
|
|
2189
2313
|
| 'paypal'
|
|
2314
|
+
| 'payto'
|
|
2190
2315
|
| 'pix'
|
|
2191
2316
|
| 'promptpay'
|
|
2317
|
+
| 'qris'
|
|
2318
|
+
| 'rechnung'
|
|
2192
2319
|
| 'revolut_pay'
|
|
2193
2320
|
| 'samsung_pay'
|
|
2194
2321
|
| 'satispay'
|
|
2195
2322
|
| 'sepa_debit'
|
|
2323
|
+
| 'shopeepay'
|
|
2196
2324
|
| 'sofort'
|
|
2197
2325
|
| 'swish'
|
|
2198
2326
|
| 'twint'
|
|
@@ -2201,6 +2329,20 @@ declare module 'stripe' {
|
|
|
2201
2329
|
| 'zip';
|
|
2202
2330
|
|
|
2203
2331
|
interface Permissions {
|
|
2332
|
+
/**
|
|
2333
|
+
* Permissions for updating the Checkout Session.
|
|
2334
|
+
*/
|
|
2335
|
+
update?: Permissions.Update;
|
|
2336
|
+
|
|
2337
|
+
/**
|
|
2338
|
+
* Determines which entity is allowed to update the line items.
|
|
2339
|
+
*
|
|
2340
|
+
* Default is `client_only`. Stripe Checkout client will automatically update the line items. If set to `server_only`, only your server is allowed to update the line items.
|
|
2341
|
+
*
|
|
2342
|
+
* When set to `server_only`, you must add the onLineItemsChange event handler when initializing the Stripe Checkout client and manually update the line items from your server using the Stripe API.
|
|
2343
|
+
*/
|
|
2344
|
+
update_line_items?: Permissions.UpdateLineItems;
|
|
2345
|
+
|
|
2204
2346
|
/**
|
|
2205
2347
|
* Determines which entity is allowed to update the shipping details.
|
|
2206
2348
|
*
|
|
@@ -2212,6 +2354,34 @@ declare module 'stripe' {
|
|
|
2212
2354
|
}
|
|
2213
2355
|
|
|
2214
2356
|
namespace Permissions {
|
|
2357
|
+
interface Update {
|
|
2358
|
+
/**
|
|
2359
|
+
* Determines which entity is allowed to update the line items.
|
|
2360
|
+
*
|
|
2361
|
+
* Default is `client_only`. Stripe Checkout client will automatically update the line items. If set to `server_only`, only your server is allowed to update the line items.
|
|
2362
|
+
*
|
|
2363
|
+
* When set to `server_only`, you must add the onLineItemsChange event handler when initializing the Stripe Checkout client and manually update the line items from your server using the Stripe API.
|
|
2364
|
+
*/
|
|
2365
|
+
line_items?: Update.LineItems;
|
|
2366
|
+
|
|
2367
|
+
/**
|
|
2368
|
+
* Determines which entity is allowed to update the shipping details.
|
|
2369
|
+
*
|
|
2370
|
+
* Default is `client_only`. Stripe Checkout client will automatically update the shipping details. If set to `server_only`, only your server is allowed to update the shipping details.
|
|
2371
|
+
*
|
|
2372
|
+
* When set to `server_only`, you must add the onShippingDetailsChange event handler when initializing the Stripe Checkout client and manually update the shipping details from your server using the Stripe API.
|
|
2373
|
+
*/
|
|
2374
|
+
shipping_details?: Update.ShippingDetails;
|
|
2375
|
+
}
|
|
2376
|
+
|
|
2377
|
+
namespace Update {
|
|
2378
|
+
type LineItems = 'client_only' | 'server_only';
|
|
2379
|
+
|
|
2380
|
+
type ShippingDetails = 'client_only' | 'server_only';
|
|
2381
|
+
}
|
|
2382
|
+
|
|
2383
|
+
type UpdateLineItems = 'client_only' | 'server_only';
|
|
2384
|
+
|
|
2215
2385
|
type UpdateShippingDetails = 'client_only' | 'server_only';
|
|
2216
2386
|
}
|
|
2217
2387
|
|
|
@@ -2671,6 +2841,11 @@ declare module 'stripe' {
|
|
|
2671
2841
|
*/
|
|
2672
2842
|
billing_cycle_anchor?: number;
|
|
2673
2843
|
|
|
2844
|
+
/**
|
|
2845
|
+
* Controls how prorations and invoices for subscriptions are calculated and orchestrated.
|
|
2846
|
+
*/
|
|
2847
|
+
billing_mode?: SubscriptionData.BillingMode;
|
|
2848
|
+
|
|
2674
2849
|
/**
|
|
2675
2850
|
* The tax rates that will apply to any subscription item that does not have
|
|
2676
2851
|
* `tax_rates` set. Invoices created will have their `default_tax_rates` populated
|
|
@@ -2730,6 +2905,8 @@ declare module 'stripe' {
|
|
|
2730
2905
|
}
|
|
2731
2906
|
|
|
2732
2907
|
namespace SubscriptionData {
|
|
2908
|
+
type BillingMode = 'classic' | 'flexible';
|
|
2909
|
+
|
|
2733
2910
|
interface InvoiceSettings {
|
|
2734
2911
|
/**
|
|
2735
2912
|
* The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
|
|
@@ -2847,6 +3024,23 @@ declare module 'stripe' {
|
|
|
2847
3024
|
*/
|
|
2848
3025
|
expand?: Array<string>;
|
|
2849
3026
|
|
|
3027
|
+
/**
|
|
3028
|
+
* A list of items the customer is purchasing.
|
|
3029
|
+
*
|
|
3030
|
+
* When updating line items, you must retransmit the entire array of line items.
|
|
3031
|
+
*
|
|
3032
|
+
* To retain an existing line item, specify its `id`.
|
|
3033
|
+
*
|
|
3034
|
+
* To update an existing line item, specify its `id` along with the new values of the fields to update.
|
|
3035
|
+
*
|
|
3036
|
+
* To add a new line item, specify one of `price` or `price_data` and `quantity`.
|
|
3037
|
+
*
|
|
3038
|
+
* To remove an existing line item, omit the line item's ID from the retransmitted array.
|
|
3039
|
+
*
|
|
3040
|
+
* To reorder a line item, specify it at the desired position in the retransmitted array.
|
|
3041
|
+
*/
|
|
3042
|
+
line_items?: Array<SessionUpdateParams.LineItem>;
|
|
3043
|
+
|
|
2850
3044
|
/**
|
|
2851
3045
|
* 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`.
|
|
2852
3046
|
*/
|
|
@@ -2916,6 +3110,146 @@ declare module 'stripe' {
|
|
|
2916
3110
|
}
|
|
2917
3111
|
}
|
|
2918
3112
|
|
|
3113
|
+
interface LineItem {
|
|
3114
|
+
/**
|
|
3115
|
+
* When set, provides configuration for this item's quantity to be adjusted by the customer during Checkout.
|
|
3116
|
+
*/
|
|
3117
|
+
adjustable_quantity?: LineItem.AdjustableQuantity;
|
|
3118
|
+
|
|
3119
|
+
/**
|
|
3120
|
+
* ID of an existing line item.
|
|
3121
|
+
*/
|
|
3122
|
+
id?: string;
|
|
3123
|
+
|
|
3124
|
+
/**
|
|
3125
|
+
* 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`.
|
|
3126
|
+
*/
|
|
3127
|
+
metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
|
|
3128
|
+
|
|
3129
|
+
/**
|
|
3130
|
+
* The ID of the [Price](https://stripe.com/docs/api/prices). One of `price` or `price_data` is required when creating a new line item.
|
|
3131
|
+
*/
|
|
3132
|
+
price?: string;
|
|
3133
|
+
|
|
3134
|
+
/**
|
|
3135
|
+
* Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required when creating a new line item.
|
|
3136
|
+
*/
|
|
3137
|
+
price_data?: LineItem.PriceData;
|
|
3138
|
+
|
|
3139
|
+
/**
|
|
3140
|
+
* The quantity of the line item being purchased. Quantity should not be defined when `recurring.usage_type=metered`.
|
|
3141
|
+
*/
|
|
3142
|
+
quantity?: number;
|
|
3143
|
+
|
|
3144
|
+
/**
|
|
3145
|
+
* The [tax rates](https://stripe.com/docs/api/tax_rates) which apply to this line item.
|
|
3146
|
+
*/
|
|
3147
|
+
tax_rates?: Stripe.Emptyable<Array<string>>;
|
|
3148
|
+
}
|
|
3149
|
+
|
|
3150
|
+
namespace LineItem {
|
|
3151
|
+
interface AdjustableQuantity {
|
|
3152
|
+
/**
|
|
3153
|
+
* Set to true if the quantity can be adjusted to any positive integer. Setting to false will remove any previously specified constraints on quantity.
|
|
3154
|
+
*/
|
|
3155
|
+
enabled: boolean;
|
|
3156
|
+
|
|
3157
|
+
/**
|
|
3158
|
+
* The maximum quantity the customer can purchase for the Checkout Session. By default this value is 99. You can specify a value up to 999999.
|
|
3159
|
+
*/
|
|
3160
|
+
maximum?: number;
|
|
3161
|
+
|
|
3162
|
+
/**
|
|
3163
|
+
* The minimum quantity the customer must purchase for the Checkout Session. By default this value is 0.
|
|
3164
|
+
*/
|
|
3165
|
+
minimum?: number;
|
|
3166
|
+
}
|
|
3167
|
+
|
|
3168
|
+
interface PriceData {
|
|
3169
|
+
/**
|
|
3170
|
+
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
3171
|
+
*/
|
|
3172
|
+
currency: string;
|
|
3173
|
+
|
|
3174
|
+
/**
|
|
3175
|
+
* The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to. One of `product` or `product_data` is required.
|
|
3176
|
+
*/
|
|
3177
|
+
product?: string;
|
|
3178
|
+
|
|
3179
|
+
/**
|
|
3180
|
+
* Data used to generate a new [Product](https://docs.stripe.com/api/products) object inline. One of `product` or `product_data` is required.
|
|
3181
|
+
*/
|
|
3182
|
+
product_data?: PriceData.ProductData;
|
|
3183
|
+
|
|
3184
|
+
/**
|
|
3185
|
+
* The recurring components of a price such as `interval` and `interval_count`.
|
|
3186
|
+
*/
|
|
3187
|
+
recurring?: PriceData.Recurring;
|
|
3188
|
+
|
|
3189
|
+
/**
|
|
3190
|
+
* Only required if a [default tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
3191
|
+
*/
|
|
3192
|
+
tax_behavior?: PriceData.TaxBehavior;
|
|
3193
|
+
|
|
3194
|
+
/**
|
|
3195
|
+
* A non-negative integer in cents (or local equivalent) representing how much to charge. One of `unit_amount` or `unit_amount_decimal` is required.
|
|
3196
|
+
*/
|
|
3197
|
+
unit_amount?: number;
|
|
3198
|
+
|
|
3199
|
+
/**
|
|
3200
|
+
* Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.
|
|
3201
|
+
*/
|
|
3202
|
+
unit_amount_decimal?: string;
|
|
3203
|
+
}
|
|
3204
|
+
|
|
3205
|
+
namespace PriceData {
|
|
3206
|
+
interface ProductData {
|
|
3207
|
+
/**
|
|
3208
|
+
* The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes.
|
|
3209
|
+
*/
|
|
3210
|
+
description?: string;
|
|
3211
|
+
|
|
3212
|
+
/**
|
|
3213
|
+
* A list of up to 8 URLs of images for this product, meant to be displayable to the customer.
|
|
3214
|
+
*/
|
|
3215
|
+
images?: Array<string>;
|
|
3216
|
+
|
|
3217
|
+
/**
|
|
3218
|
+
* 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`.
|
|
3219
|
+
*/
|
|
3220
|
+
metadata?: Stripe.MetadataParam;
|
|
3221
|
+
|
|
3222
|
+
/**
|
|
3223
|
+
* The product's name, meant to be displayable to the customer.
|
|
3224
|
+
*/
|
|
3225
|
+
name: string;
|
|
3226
|
+
|
|
3227
|
+
/**
|
|
3228
|
+
* A [tax code](https://stripe.com/docs/tax/tax-categories) ID.
|
|
3229
|
+
*/
|
|
3230
|
+
tax_code?: string;
|
|
3231
|
+
}
|
|
3232
|
+
|
|
3233
|
+
interface Recurring {
|
|
3234
|
+
/**
|
|
3235
|
+
* Specifies billing frequency. Either `day`, `week`, `month` or `year`.
|
|
3236
|
+
*/
|
|
3237
|
+
interval: Recurring.Interval;
|
|
3238
|
+
|
|
3239
|
+
/**
|
|
3240
|
+
* The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks).
|
|
3241
|
+
*/
|
|
3242
|
+
interval_count?: number;
|
|
3243
|
+
}
|
|
3244
|
+
|
|
3245
|
+
namespace Recurring {
|
|
3246
|
+
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
3247
|
+
}
|
|
3248
|
+
|
|
3249
|
+
type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified';
|
|
3250
|
+
}
|
|
3251
|
+
}
|
|
3252
|
+
|
|
2919
3253
|
interface ShippingOption {
|
|
2920
3254
|
/**
|
|
2921
3255
|
* The ID of the Shipping Rate to use for this shipping option.
|
|
@@ -3066,6 +3400,11 @@ declare module 'stripe' {
|
|
|
3066
3400
|
*/
|
|
3067
3401
|
customer?: string;
|
|
3068
3402
|
|
|
3403
|
+
/**
|
|
3404
|
+
* Only return the Checkout Sessions for the Account specified.
|
|
3405
|
+
*/
|
|
3406
|
+
customer_account?: string;
|
|
3407
|
+
|
|
3069
3408
|
/**
|
|
3070
3409
|
* Only return the Checkout Sessions for the Customer details specified.
|
|
3071
3410
|
*/
|