stripe 18.3.0 → 18.4.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 +1296 -12
- package/README.md +1 -0
- package/VERSION +1 -1
- package/cjs/Error.js +107 -1
- package/cjs/apiVersion.js +2 -3
- 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/Tax/Associations.js +9 -0
- package/cjs/resources/Tax/Forms.js +20 -0
- package/cjs/resources/Terminal/ReaderCollectedData.js +12 -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 +25 -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 +93 -0
- package/esm/apiVersion.js +1 -2
- 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/Tax/Associations.js +6 -0
- package/esm/resources/Tax/Forms.js +17 -0
- package/esm/resources/Terminal/ReaderCollectedData.js +9 -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 +22 -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 +333 -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/Disputes.d.ts +7 -0
- package/types/Errors.d.ts +81 -2
- package/types/EventTypes.d.ts +664 -0
- package/types/Events.d.ts +97 -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 +1447 -16
- 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 +1163 -0
- package/types/OrdersResource.d.ts +3139 -0
- package/types/PaymentAttemptRecords.d.ts +2161 -0
- package/types/PaymentAttemptRecordsResource.d.ts +47 -0
- package/types/PaymentIntentAmountDetailsLineItems.d.ts +116 -0
- package/types/PaymentIntents.d.ts +768 -2
- package/types/PaymentIntentsResource.d.ts +8808 -4088
- 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 +2154 -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 +1696 -0
- package/types/QuotePreviewSubscriptionSchedules.d.ts +845 -0
- package/types/Quotes.d.ts +594 -1
- package/types/QuotesResource.d.ts +2577 -232
- 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 +21 -0
- package/types/SubscriptionItemsResource.d.ts +109 -0
- package/types/SubscriptionSchedules.d.ts +205 -0
- package/types/SubscriptionSchedulesResource.d.ts +1237 -9
- package/types/Subscriptions.d.ts +97 -1
- package/types/SubscriptionsResource.d.ts +396 -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 +20 -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 +3780 -0
- package/types/V2/Core/Accounts.d.ts +8791 -0
- package/types/V2/Core/AccountsResource.d.ts +10582 -0
- package/types/V2/Core/Persons.d.ts +1872 -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 +958 -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 +580 -0
- package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +326 -0
- package/types/V2/MoneyManagement/FinancialAddresses.d.ts +314 -0
- package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +289 -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 +208 -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 +262 -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 +78 -0
- package/types/index.d.ts +138 -2
- 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';
|
|
@@ -1987,6 +2009,11 @@ declare module 'stripe' {
|
|
|
1987
2009
|
*/
|
|
1988
2010
|
reference?: string;
|
|
1989
2011
|
|
|
2012
|
+
/**
|
|
2013
|
+
* 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.
|
|
2014
|
+
*/
|
|
2015
|
+
reference_id?: string;
|
|
2016
|
+
|
|
1990
2017
|
/**
|
|
1991
2018
|
* The risk correlation ID for an on-session payment using a saved PayPal payment method.
|
|
1992
2019
|
*/
|
|
@@ -2004,6 +2031,11 @@ declare module 'stripe' {
|
|
|
2004
2031
|
* 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`.
|
|
2005
2032
|
*/
|
|
2006
2033
|
setup_future_usage?: Stripe.Emptyable<Paypal.SetupFutureUsage>;
|
|
2034
|
+
|
|
2035
|
+
/**
|
|
2036
|
+
* 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.
|
|
2037
|
+
*/
|
|
2038
|
+
subsellers?: Array<string>;
|
|
2007
2039
|
}
|
|
2008
2040
|
|
|
2009
2041
|
namespace Paypal {
|
|
@@ -2033,6 +2065,92 @@ declare module 'stripe' {
|
|
|
2033
2065
|
type SetupFutureUsage = 'none' | 'off_session';
|
|
2034
2066
|
}
|
|
2035
2067
|
|
|
2068
|
+
interface Payto {
|
|
2069
|
+
/**
|
|
2070
|
+
* Additional fields for Mandate creation
|
|
2071
|
+
*/
|
|
2072
|
+
mandate_options?: Payto.MandateOptions;
|
|
2073
|
+
|
|
2074
|
+
/**
|
|
2075
|
+
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2076
|
+
*
|
|
2077
|
+
* 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.
|
|
2078
|
+
*
|
|
2079
|
+
* 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.
|
|
2080
|
+
*
|
|
2081
|
+
* 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).
|
|
2082
|
+
*/
|
|
2083
|
+
setup_future_usage?: Payto.SetupFutureUsage;
|
|
2084
|
+
}
|
|
2085
|
+
|
|
2086
|
+
namespace Payto {
|
|
2087
|
+
interface MandateOptions {
|
|
2088
|
+
/**
|
|
2089
|
+
* Amount that will be collected. It is required when `amount_type` is `fixed`.
|
|
2090
|
+
*/
|
|
2091
|
+
amount?: number;
|
|
2092
|
+
|
|
2093
|
+
/**
|
|
2094
|
+
* 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.
|
|
2095
|
+
*/
|
|
2096
|
+
amount_type?: MandateOptions.AmountType;
|
|
2097
|
+
|
|
2098
|
+
/**
|
|
2099
|
+
* Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
|
2100
|
+
*/
|
|
2101
|
+
end_date?: string;
|
|
2102
|
+
|
|
2103
|
+
/**
|
|
2104
|
+
* The periodicity at which payments will be collected.
|
|
2105
|
+
*/
|
|
2106
|
+
payment_schedule?: MandateOptions.PaymentSchedule;
|
|
2107
|
+
|
|
2108
|
+
/**
|
|
2109
|
+
* 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.
|
|
2110
|
+
*/
|
|
2111
|
+
payments_per_period?: number;
|
|
2112
|
+
|
|
2113
|
+
/**
|
|
2114
|
+
* The purpose for which payments are made. Defaults to retail.
|
|
2115
|
+
*/
|
|
2116
|
+
purpose?: MandateOptions.Purpose;
|
|
2117
|
+
|
|
2118
|
+
/**
|
|
2119
|
+
* Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
|
|
2120
|
+
*/
|
|
2121
|
+
start_date?: string;
|
|
2122
|
+
}
|
|
2123
|
+
|
|
2124
|
+
namespace MandateOptions {
|
|
2125
|
+
type AmountType = 'fixed' | 'maximum';
|
|
2126
|
+
|
|
2127
|
+
type PaymentSchedule =
|
|
2128
|
+
| 'adhoc'
|
|
2129
|
+
| 'annual'
|
|
2130
|
+
| 'daily'
|
|
2131
|
+
| 'fortnightly'
|
|
2132
|
+
| 'monthly'
|
|
2133
|
+
| 'quarterly'
|
|
2134
|
+
| 'semi_annual'
|
|
2135
|
+
| 'weekly';
|
|
2136
|
+
|
|
2137
|
+
type Purpose =
|
|
2138
|
+
| 'dependant_support'
|
|
2139
|
+
| 'government'
|
|
2140
|
+
| 'loan'
|
|
2141
|
+
| 'mortgage'
|
|
2142
|
+
| 'other'
|
|
2143
|
+
| 'pension'
|
|
2144
|
+
| 'personal'
|
|
2145
|
+
| 'retail'
|
|
2146
|
+
| 'salary'
|
|
2147
|
+
| 'tax'
|
|
2148
|
+
| 'utility';
|
|
2149
|
+
}
|
|
2150
|
+
|
|
2151
|
+
type SetupFutureUsage = 'none' | 'off_session';
|
|
2152
|
+
}
|
|
2153
|
+
|
|
2036
2154
|
interface Pix {
|
|
2037
2155
|
/**
|
|
2038
2156
|
* The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds.
|
|
@@ -2166,7 +2284,11 @@ declare module 'stripe' {
|
|
|
2166
2284
|
| 'payment_method'
|
|
2167
2285
|
| 'transactions';
|
|
2168
2286
|
|
|
2169
|
-
type Prefetch =
|
|
2287
|
+
type Prefetch =
|
|
2288
|
+
| 'balances'
|
|
2289
|
+
| 'inferred_balances'
|
|
2290
|
+
| 'ownership'
|
|
2291
|
+
| 'transactions';
|
|
2170
2292
|
}
|
|
2171
2293
|
|
|
2172
2294
|
type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
|
|
@@ -2222,6 +2344,7 @@ declare module 'stripe' {
|
|
|
2222
2344
|
| 'eps'
|
|
2223
2345
|
| 'fpx'
|
|
2224
2346
|
| 'giropay'
|
|
2347
|
+
| 'gopay'
|
|
2225
2348
|
| 'grabpay'
|
|
2226
2349
|
| 'ideal'
|
|
2227
2350
|
| 'kakao_pay'
|
|
@@ -2229,6 +2352,7 @@ declare module 'stripe' {
|
|
|
2229
2352
|
| 'konbini'
|
|
2230
2353
|
| 'kr_card'
|
|
2231
2354
|
| 'link'
|
|
2355
|
+
| 'mb_way'
|
|
2232
2356
|
| 'mobilepay'
|
|
2233
2357
|
| 'multibanco'
|
|
2234
2358
|
| 'naver_pay'
|
|
@@ -2238,12 +2362,16 @@ declare module 'stripe' {
|
|
|
2238
2362
|
| 'payco'
|
|
2239
2363
|
| 'paynow'
|
|
2240
2364
|
| 'paypal'
|
|
2365
|
+
| 'payto'
|
|
2241
2366
|
| 'pix'
|
|
2242
2367
|
| 'promptpay'
|
|
2368
|
+
| 'qris'
|
|
2369
|
+
| 'rechnung'
|
|
2243
2370
|
| 'revolut_pay'
|
|
2244
2371
|
| 'samsung_pay'
|
|
2245
2372
|
| 'satispay'
|
|
2246
2373
|
| 'sepa_debit'
|
|
2374
|
+
| 'shopeepay'
|
|
2247
2375
|
| 'sofort'
|
|
2248
2376
|
| 'swish'
|
|
2249
2377
|
| 'twint'
|
|
@@ -2252,6 +2380,20 @@ declare module 'stripe' {
|
|
|
2252
2380
|
| 'zip';
|
|
2253
2381
|
|
|
2254
2382
|
interface Permissions {
|
|
2383
|
+
/**
|
|
2384
|
+
* Permissions for updating the Checkout Session.
|
|
2385
|
+
*/
|
|
2386
|
+
update?: Permissions.Update;
|
|
2387
|
+
|
|
2388
|
+
/**
|
|
2389
|
+
* Determines which entity is allowed to update the line items.
|
|
2390
|
+
*
|
|
2391
|
+
* 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.
|
|
2392
|
+
*
|
|
2393
|
+
* 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.
|
|
2394
|
+
*/
|
|
2395
|
+
update_line_items?: Permissions.UpdateLineItems;
|
|
2396
|
+
|
|
2255
2397
|
/**
|
|
2256
2398
|
* Determines which entity is allowed to update the shipping details.
|
|
2257
2399
|
*
|
|
@@ -2263,6 +2405,34 @@ declare module 'stripe' {
|
|
|
2263
2405
|
}
|
|
2264
2406
|
|
|
2265
2407
|
namespace Permissions {
|
|
2408
|
+
interface Update {
|
|
2409
|
+
/**
|
|
2410
|
+
* Determines which entity is allowed to update the line items.
|
|
2411
|
+
*
|
|
2412
|
+
* 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.
|
|
2413
|
+
*
|
|
2414
|
+
* 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.
|
|
2415
|
+
*/
|
|
2416
|
+
line_items?: Update.LineItems;
|
|
2417
|
+
|
|
2418
|
+
/**
|
|
2419
|
+
* Determines which entity is allowed to update the shipping details.
|
|
2420
|
+
*
|
|
2421
|
+
* 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.
|
|
2422
|
+
*
|
|
2423
|
+
* 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.
|
|
2424
|
+
*/
|
|
2425
|
+
shipping_details?: Update.ShippingDetails;
|
|
2426
|
+
}
|
|
2427
|
+
|
|
2428
|
+
namespace Update {
|
|
2429
|
+
type LineItems = 'client_only' | 'server_only';
|
|
2430
|
+
|
|
2431
|
+
type ShippingDetails = 'client_only' | 'server_only';
|
|
2432
|
+
}
|
|
2433
|
+
|
|
2434
|
+
type UpdateLineItems = 'client_only' | 'server_only';
|
|
2435
|
+
|
|
2266
2436
|
type UpdateShippingDetails = 'client_only' | 'server_only';
|
|
2267
2437
|
}
|
|
2268
2438
|
|
|
@@ -2908,6 +3078,23 @@ declare module 'stripe' {
|
|
|
2908
3078
|
*/
|
|
2909
3079
|
expand?: Array<string>;
|
|
2910
3080
|
|
|
3081
|
+
/**
|
|
3082
|
+
* A list of items the customer is purchasing.
|
|
3083
|
+
*
|
|
3084
|
+
* When updating line items, you must retransmit the entire array of line items.
|
|
3085
|
+
*
|
|
3086
|
+
* To retain an existing line item, specify its `id`.
|
|
3087
|
+
*
|
|
3088
|
+
* To update an existing line item, specify its `id` along with the new values of the fields to update.
|
|
3089
|
+
*
|
|
3090
|
+
* To add a new line item, specify one of `price` or `price_data` and `quantity`.
|
|
3091
|
+
*
|
|
3092
|
+
* To remove an existing line item, omit the line item's ID from the retransmitted array.
|
|
3093
|
+
*
|
|
3094
|
+
* To reorder a line item, specify it at the desired position in the retransmitted array.
|
|
3095
|
+
*/
|
|
3096
|
+
line_items?: Array<SessionUpdateParams.LineItem>;
|
|
3097
|
+
|
|
2911
3098
|
/**
|
|
2912
3099
|
* 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`.
|
|
2913
3100
|
*/
|
|
@@ -2977,6 +3164,146 @@ declare module 'stripe' {
|
|
|
2977
3164
|
}
|
|
2978
3165
|
}
|
|
2979
3166
|
|
|
3167
|
+
interface LineItem {
|
|
3168
|
+
/**
|
|
3169
|
+
* When set, provides configuration for this item's quantity to be adjusted by the customer during Checkout.
|
|
3170
|
+
*/
|
|
3171
|
+
adjustable_quantity?: LineItem.AdjustableQuantity;
|
|
3172
|
+
|
|
3173
|
+
/**
|
|
3174
|
+
* ID of an existing line item.
|
|
3175
|
+
*/
|
|
3176
|
+
id?: string;
|
|
3177
|
+
|
|
3178
|
+
/**
|
|
3179
|
+
* 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`.
|
|
3180
|
+
*/
|
|
3181
|
+
metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
|
|
3182
|
+
|
|
3183
|
+
/**
|
|
3184
|
+
* 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.
|
|
3185
|
+
*/
|
|
3186
|
+
price?: string;
|
|
3187
|
+
|
|
3188
|
+
/**
|
|
3189
|
+
* 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.
|
|
3190
|
+
*/
|
|
3191
|
+
price_data?: LineItem.PriceData;
|
|
3192
|
+
|
|
3193
|
+
/**
|
|
3194
|
+
* The quantity of the line item being purchased. Quantity should not be defined when `recurring.usage_type=metered`.
|
|
3195
|
+
*/
|
|
3196
|
+
quantity?: number;
|
|
3197
|
+
|
|
3198
|
+
/**
|
|
3199
|
+
* The [tax rates](https://stripe.com/docs/api/tax_rates) which apply to this line item.
|
|
3200
|
+
*/
|
|
3201
|
+
tax_rates?: Stripe.Emptyable<Array<string>>;
|
|
3202
|
+
}
|
|
3203
|
+
|
|
3204
|
+
namespace LineItem {
|
|
3205
|
+
interface AdjustableQuantity {
|
|
3206
|
+
/**
|
|
3207
|
+
* Set to true if the quantity can be adjusted to any positive integer. Setting to false will remove any previously specified constraints on quantity.
|
|
3208
|
+
*/
|
|
3209
|
+
enabled: boolean;
|
|
3210
|
+
|
|
3211
|
+
/**
|
|
3212
|
+
* 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.
|
|
3213
|
+
*/
|
|
3214
|
+
maximum?: number;
|
|
3215
|
+
|
|
3216
|
+
/**
|
|
3217
|
+
* The minimum quantity the customer must purchase for the Checkout Session. By default this value is 0.
|
|
3218
|
+
*/
|
|
3219
|
+
minimum?: number;
|
|
3220
|
+
}
|
|
3221
|
+
|
|
3222
|
+
interface PriceData {
|
|
3223
|
+
/**
|
|
3224
|
+
* 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).
|
|
3225
|
+
*/
|
|
3226
|
+
currency: string;
|
|
3227
|
+
|
|
3228
|
+
/**
|
|
3229
|
+
* 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.
|
|
3230
|
+
*/
|
|
3231
|
+
product?: string;
|
|
3232
|
+
|
|
3233
|
+
/**
|
|
3234
|
+
* Data used to generate a new [Product](https://docs.stripe.com/api/products) object inline. One of `product` or `product_data` is required.
|
|
3235
|
+
*/
|
|
3236
|
+
product_data?: PriceData.ProductData;
|
|
3237
|
+
|
|
3238
|
+
/**
|
|
3239
|
+
* The recurring components of a price such as `interval` and `interval_count`.
|
|
3240
|
+
*/
|
|
3241
|
+
recurring?: PriceData.Recurring;
|
|
3242
|
+
|
|
3243
|
+
/**
|
|
3244
|
+
* 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.
|
|
3245
|
+
*/
|
|
3246
|
+
tax_behavior?: PriceData.TaxBehavior;
|
|
3247
|
+
|
|
3248
|
+
/**
|
|
3249
|
+
* A non-negative integer in cents (or local equivalent) representing how much to charge. One of `unit_amount` or `unit_amount_decimal` is required.
|
|
3250
|
+
*/
|
|
3251
|
+
unit_amount?: number;
|
|
3252
|
+
|
|
3253
|
+
/**
|
|
3254
|
+
* 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.
|
|
3255
|
+
*/
|
|
3256
|
+
unit_amount_decimal?: string;
|
|
3257
|
+
}
|
|
3258
|
+
|
|
3259
|
+
namespace PriceData {
|
|
3260
|
+
interface ProductData {
|
|
3261
|
+
/**
|
|
3262
|
+
* 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.
|
|
3263
|
+
*/
|
|
3264
|
+
description?: string;
|
|
3265
|
+
|
|
3266
|
+
/**
|
|
3267
|
+
* A list of up to 8 URLs of images for this product, meant to be displayable to the customer.
|
|
3268
|
+
*/
|
|
3269
|
+
images?: Array<string>;
|
|
3270
|
+
|
|
3271
|
+
/**
|
|
3272
|
+
* 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`.
|
|
3273
|
+
*/
|
|
3274
|
+
metadata?: Stripe.MetadataParam;
|
|
3275
|
+
|
|
3276
|
+
/**
|
|
3277
|
+
* The product's name, meant to be displayable to the customer.
|
|
3278
|
+
*/
|
|
3279
|
+
name: string;
|
|
3280
|
+
|
|
3281
|
+
/**
|
|
3282
|
+
* A [tax code](https://stripe.com/docs/tax/tax-categories) ID.
|
|
3283
|
+
*/
|
|
3284
|
+
tax_code?: string;
|
|
3285
|
+
}
|
|
3286
|
+
|
|
3287
|
+
interface Recurring {
|
|
3288
|
+
/**
|
|
3289
|
+
* Specifies billing frequency. Either `day`, `week`, `month` or `year`.
|
|
3290
|
+
*/
|
|
3291
|
+
interval: Recurring.Interval;
|
|
3292
|
+
|
|
3293
|
+
/**
|
|
3294
|
+
* 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).
|
|
3295
|
+
*/
|
|
3296
|
+
interval_count?: number;
|
|
3297
|
+
}
|
|
3298
|
+
|
|
3299
|
+
namespace Recurring {
|
|
3300
|
+
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
3301
|
+
}
|
|
3302
|
+
|
|
3303
|
+
type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified';
|
|
3304
|
+
}
|
|
3305
|
+
}
|
|
3306
|
+
|
|
2980
3307
|
interface ShippingOption {
|
|
2981
3308
|
/**
|
|
2982
3309
|
* The ID of the Shipping Rate to use for this shipping option.
|
|
@@ -3127,6 +3454,11 @@ declare module 'stripe' {
|
|
|
3127
3454
|
*/
|
|
3128
3455
|
customer?: string;
|
|
3129
3456
|
|
|
3457
|
+
/**
|
|
3458
|
+
* Only return the Checkout Sessions for the Account specified.
|
|
3459
|
+
*/
|
|
3460
|
+
customer_account?: string;
|
|
3461
|
+
|
|
3130
3462
|
/**
|
|
3131
3463
|
* Only return the Checkout Sessions for the Customer details specified.
|
|
3132
3464
|
*/
|