stripe 18.0.0 → 18.1.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1155 -242
- package/OPENAPI_VERSION +1 -1
- package/README.md +1 -0
- package/VERSION +1 -1
- package/cjs/Error.js +91 -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/GiftCards/Cards.js +23 -0
- package/cjs/resources/GiftCards/Transactions.js +33 -0
- package/cjs/resources/Invoices.js +17 -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 +8 -0
- package/cjs/resources/PaymentRecords.js +29 -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/Terminal/Readers.js +12 -0
- package/cjs/resources/TestHelpers/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 +12 -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/TestHelpers/FinancialAddresses.js +16 -0
- package/cjs/resources.js +102 -18
- package/cjs/stripe.core.js +1 -1
- package/esm/Error.js +79 -0
- 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/GiftCards/Cards.js +20 -0
- package/esm/resources/GiftCards/Transactions.js +30 -0
- package/esm/resources/Invoices.js +17 -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 +8 -0
- package/esm/resources/PaymentRecords.js +26 -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/Terminal/Readers.js +12 -0
- package/esm/resources/TestHelpers/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 +9 -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/TestHelpers/FinancialAddresses.js +13 -0
- package/esm/resources.js +79 -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 +243 -0
- package/types/Accounts.d.ts +212 -1
- package/types/AccountsResource.d.ts +544 -0
- package/types/BalanceSettings.d.ts +85 -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/Billing/MeterErrorReports.d.ts +106 -0
- 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 +1294 -0
- package/types/Checkout/Sessions.d.ts +312 -3
- package/types/Checkout/SessionsResource.d.ts +244 -1
- package/types/ConfirmationTokens.d.ts +151 -0
- package/types/Coupons.d.ts +1 -1
- package/types/CreditNoteLineItems.d.ts +17 -0
- package/types/CreditNotes.d.ts +9 -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 +596 -0
- package/types/Events.d.ts +96 -1
- package/types/ExternalAccountsResource.d.ts +219 -0
- package/types/FinancialConnections/AccountInferredBalances.d.ts +38 -0
- package/types/FinancialConnections/Accounts.d.ts +31 -1
- package/types/FinancialConnections/AccountsResource.d.ts +40 -3
- package/types/FinancialConnections/Institutions.d.ts +93 -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/GiftCards/Cards.d.ts +118 -0
- package/types/GiftCards/CardsResource.d.ts +159 -0
- package/types/GiftCards/Transactions.d.ts +129 -0
- package/types/GiftCards/TransactionsResource.d.ts +201 -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 +141 -3
- package/types/InvoicesResource.d.ts +1545 -6
- 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 +1189 -0
- package/types/OrdersResource.d.ts +2981 -0
- package/types/PaymentAttemptRecords.d.ts +2112 -0
- package/types/PaymentAttemptRecordsResource.d.ts +47 -0
- package/types/PaymentIntents.d.ts +679 -2
- package/types/PaymentIntentsResource.d.ts +8437 -3941
- 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 +120 -0
- package/types/PaymentMethodsResource.d.ts +167 -2
- package/types/PaymentRecords.d.ts +2105 -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/Products.d.ts +39 -0
- package/types/ProductsResource.d.ts +36 -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 +1685 -0
- package/types/QuotePreviewSubscriptionSchedules.d.ts +778 -0
- package/types/Quotes.d.ts +601 -1
- package/types/QuotesResource.d.ts +2565 -218
- package/types/Refunds.d.ts +14 -0
- package/types/SetupAttempts.d.ts +50 -1
- package/types/SetupIntents.d.ts +121 -2
- package/types/SetupIntentsResource.d.ts +730 -3
- package/types/Sources.d.ts +29 -0
- package/types/SubscriptionItems.d.ts +23 -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 +94 -1
- package/types/SubscriptionsResource.d.ts +384 -8
- package/types/Tax/Associations.d.ts +126 -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 +300 -0
- package/types/Terminal/ReadersResource.d.ts +220 -0
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +171 -0
- package/types/TestHelpers/Terminal/ReadersResource.d.ts +53 -0
- package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
- package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -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 +101 -0
- package/types/V2/Core/AccountLinksResource.d.ts +90 -0
- package/types/V2/Core/Accounts/PersonsResource.d.ts +3760 -0
- package/types/V2/Core/Accounts.d.ts +8057 -0
- package/types/V2/Core/AccountsResource.d.ts +10184 -0
- package/types/V2/Core/Persons.d.ts +1857 -0
- package/types/V2/Core/Vault/GbBankAccounts.d.ts +155 -0
- package/types/V2/Core/Vault/GbBankAccountsResource.d.ts +172 -0
- package/types/V2/Core/Vault/UsBankAccounts.d.ts +65 -0
- package/types/V2/Core/Vault/UsBankAccountsResource.d.ts +123 -0
- package/types/V2/EventTypes.d.ts +687 -1
- package/types/V2/FinancialAddressCreditSimulations.d.ts +22 -0
- package/types/V2/FinancialAddressGeneratedMicrodeposits.d.ts +27 -0
- package/types/V2/MoneyManagement/Adjustments.d.ts +105 -0
- package/types/V2/MoneyManagement/AdjustmentsResource.d.ts +83 -0
- package/types/V2/MoneyManagement/FinancialAccounts.d.ts +540 -0
- package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +52 -0
- package/types/V2/MoneyManagement/FinancialAddresses.d.ts +308 -0
- package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +287 -0
- package/types/V2/MoneyManagement/InboundTransfers.d.ts +201 -0
- package/types/V2/MoneyManagement/InboundTransfersResource.d.ts +144 -0
- package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +141 -0
- package/types/V2/MoneyManagement/OutboundPaymentQuotesResource.d.ts +93 -0
- package/types/V2/MoneyManagement/OutboundPayments.d.ts +273 -0
- package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +242 -0
- package/types/V2/MoneyManagement/OutboundSetupIntents.d.ts +92 -0
- package/types/V2/MoneyManagement/OutboundSetupIntentsResource.d.ts +296 -0
- package/types/V2/MoneyManagement/OutboundTransfers.d.ts +246 -0
- package/types/V2/MoneyManagement/OutboundTransfersResource.d.ts +207 -0
- package/types/V2/MoneyManagement/PayoutMethods.d.ts +146 -0
- package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecResource.d.ts +41 -0
- package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecs.d.ts +82 -0
- package/types/V2/MoneyManagement/PayoutMethodsResource.d.ts +113 -0
- package/types/V2/MoneyManagement/ReceivedCredits.d.ts +280 -0
- package/types/V2/MoneyManagement/ReceivedCreditsResource.d.ts +78 -0
- package/types/V2/MoneyManagement/ReceivedDebits.d.ts +219 -0
- package/types/V2/MoneyManagement/ReceivedDebitsResource.d.ts +48 -0
- package/types/V2/MoneyManagement/TransactionEntries.d.ts +151 -0
- package/types/V2/MoneyManagement/TransactionEntriesResource.d.ts +82 -0
- package/types/V2/MoneyManagement/Transactions.d.ts +166 -0
- package/types/V2/MoneyManagement/TransactionsResource.d.ts +83 -0
- package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +66 -0
- package/types/WebhookEndpointsResource.d.ts +72 -2
- package/types/index.d.ts +135 -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
|
*
|
|
@@ -699,6 +704,11 @@ declare module 'stripe' {
|
|
|
699
704
|
*/
|
|
700
705
|
dynamic_tax_rates?: Array<string>;
|
|
701
706
|
|
|
707
|
+
/**
|
|
708
|
+
* 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`.
|
|
709
|
+
*/
|
|
710
|
+
metadata?: Stripe.MetadataParam;
|
|
711
|
+
|
|
702
712
|
/**
|
|
703
713
|
* 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.
|
|
704
714
|
*/
|
|
@@ -1207,6 +1217,11 @@ declare module 'stripe' {
|
|
|
1207
1217
|
*/
|
|
1208
1218
|
paypal?: PaymentMethodOptions.Paypal;
|
|
1209
1219
|
|
|
1220
|
+
/**
|
|
1221
|
+
* contains details about the PayTo payment method options.
|
|
1222
|
+
*/
|
|
1223
|
+
payto?: PaymentMethodOptions.Payto;
|
|
1224
|
+
|
|
1210
1225
|
/**
|
|
1211
1226
|
* contains details about the Pix payment method options.
|
|
1212
1227
|
*/
|
|
@@ -1476,6 +1491,11 @@ declare module 'stripe' {
|
|
|
1476
1491
|
*/
|
|
1477
1492
|
installments?: Card.Installments;
|
|
1478
1493
|
|
|
1494
|
+
/**
|
|
1495
|
+
* Request ability to [capture beyond the standard authorization validity window](https://stripe.com/payments/extended-authorization) for this CheckoutSession.
|
|
1496
|
+
*/
|
|
1497
|
+
request_decremental_authorization?: Card.RequestDecrementalAuthorization;
|
|
1498
|
+
|
|
1479
1499
|
/**
|
|
1480
1500
|
* Request ability to [capture beyond the standard authorization validity window](https://stripe.com/payments/extended-authorization) for this CheckoutSession.
|
|
1481
1501
|
*/
|
|
@@ -1537,6 +1557,8 @@ declare module 'stripe' {
|
|
|
1537
1557
|
enabled?: boolean;
|
|
1538
1558
|
}
|
|
1539
1559
|
|
|
1560
|
+
type RequestDecrementalAuthorization = 'if_available' | 'never';
|
|
1561
|
+
|
|
1540
1562
|
type RequestExtendedAuthorization = 'if_available' | 'never';
|
|
1541
1563
|
|
|
1542
1564
|
type RequestIncrementalAuthorization = 'if_available' | 'never';
|
|
@@ -1932,6 +1954,11 @@ declare module 'stripe' {
|
|
|
1932
1954
|
*/
|
|
1933
1955
|
reference?: string;
|
|
1934
1956
|
|
|
1957
|
+
/**
|
|
1958
|
+
* 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.
|
|
1959
|
+
*/
|
|
1960
|
+
reference_id?: string;
|
|
1961
|
+
|
|
1935
1962
|
/**
|
|
1936
1963
|
* The risk correlation ID for an on-session payment using a saved PayPal payment method.
|
|
1937
1964
|
*/
|
|
@@ -1949,6 +1976,11 @@ declare module 'stripe' {
|
|
|
1949
1976
|
* 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`.
|
|
1950
1977
|
*/
|
|
1951
1978
|
setup_future_usage?: Stripe.Emptyable<Paypal.SetupFutureUsage>;
|
|
1979
|
+
|
|
1980
|
+
/**
|
|
1981
|
+
* 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.
|
|
1982
|
+
*/
|
|
1983
|
+
subsellers?: Array<string>;
|
|
1952
1984
|
}
|
|
1953
1985
|
|
|
1954
1986
|
namespace Paypal {
|
|
@@ -1978,6 +2010,92 @@ declare module 'stripe' {
|
|
|
1978
2010
|
type SetupFutureUsage = 'none' | 'off_session';
|
|
1979
2011
|
}
|
|
1980
2012
|
|
|
2013
|
+
interface Payto {
|
|
2014
|
+
/**
|
|
2015
|
+
* Additional fields for Mandate creation
|
|
2016
|
+
*/
|
|
2017
|
+
mandate_options?: Payto.MandateOptions;
|
|
2018
|
+
|
|
2019
|
+
/**
|
|
2020
|
+
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2021
|
+
*
|
|
2022
|
+
* If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://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://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
2023
|
+
*
|
|
2024
|
+
* If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
|
|
2025
|
+
*
|
|
2026
|
+
* When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication).
|
|
2027
|
+
*/
|
|
2028
|
+
setup_future_usage?: Payto.SetupFutureUsage;
|
|
2029
|
+
}
|
|
2030
|
+
|
|
2031
|
+
namespace Payto {
|
|
2032
|
+
interface MandateOptions {
|
|
2033
|
+
/**
|
|
2034
|
+
* Amount that will be collected. It is required when `amount_type` is `fixed`.
|
|
2035
|
+
*/
|
|
2036
|
+
amount?: number;
|
|
2037
|
+
|
|
2038
|
+
/**
|
|
2039
|
+
* 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.
|
|
2040
|
+
*/
|
|
2041
|
+
amount_type?: MandateOptions.AmountType;
|
|
2042
|
+
|
|
2043
|
+
/**
|
|
2044
|
+
* Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
|
2045
|
+
*/
|
|
2046
|
+
end_date?: string;
|
|
2047
|
+
|
|
2048
|
+
/**
|
|
2049
|
+
* The periodicity at which payments will be collected.
|
|
2050
|
+
*/
|
|
2051
|
+
payment_schedule?: MandateOptions.PaymentSchedule;
|
|
2052
|
+
|
|
2053
|
+
/**
|
|
2054
|
+
* 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.
|
|
2055
|
+
*/
|
|
2056
|
+
payments_per_period?: number;
|
|
2057
|
+
|
|
2058
|
+
/**
|
|
2059
|
+
* The purpose for which payments are made. Defaults to retail.
|
|
2060
|
+
*/
|
|
2061
|
+
purpose?: MandateOptions.Purpose;
|
|
2062
|
+
|
|
2063
|
+
/**
|
|
2064
|
+
* Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
|
|
2065
|
+
*/
|
|
2066
|
+
start_date?: string;
|
|
2067
|
+
}
|
|
2068
|
+
|
|
2069
|
+
namespace MandateOptions {
|
|
2070
|
+
type AmountType = 'fixed' | 'maximum';
|
|
2071
|
+
|
|
2072
|
+
type PaymentSchedule =
|
|
2073
|
+
| 'adhoc'
|
|
2074
|
+
| 'annual'
|
|
2075
|
+
| 'daily'
|
|
2076
|
+
| 'fortnightly'
|
|
2077
|
+
| 'monthly'
|
|
2078
|
+
| 'quarterly'
|
|
2079
|
+
| 'semi_annual'
|
|
2080
|
+
| 'weekly';
|
|
2081
|
+
|
|
2082
|
+
type Purpose =
|
|
2083
|
+
| 'dependant_support'
|
|
2084
|
+
| 'government'
|
|
2085
|
+
| 'loan'
|
|
2086
|
+
| 'mortgage'
|
|
2087
|
+
| 'other'
|
|
2088
|
+
| 'pension'
|
|
2089
|
+
| 'personal'
|
|
2090
|
+
| 'retail'
|
|
2091
|
+
| 'salary'
|
|
2092
|
+
| 'tax'
|
|
2093
|
+
| 'utility';
|
|
2094
|
+
}
|
|
2095
|
+
|
|
2096
|
+
type SetupFutureUsage = 'none' | 'off_session';
|
|
2097
|
+
}
|
|
2098
|
+
|
|
1981
2099
|
interface Pix {
|
|
1982
2100
|
/**
|
|
1983
2101
|
* The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds.
|
|
@@ -2111,7 +2229,11 @@ declare module 'stripe' {
|
|
|
2111
2229
|
| 'payment_method'
|
|
2112
2230
|
| 'transactions';
|
|
2113
2231
|
|
|
2114
|
-
type Prefetch =
|
|
2232
|
+
type Prefetch =
|
|
2233
|
+
| 'balances'
|
|
2234
|
+
| 'inferred_balances'
|
|
2235
|
+
| 'ownership'
|
|
2236
|
+
| 'transactions';
|
|
2115
2237
|
}
|
|
2116
2238
|
|
|
2117
2239
|
type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
|
|
@@ -2166,6 +2288,7 @@ declare module 'stripe' {
|
|
|
2166
2288
|
| 'eps'
|
|
2167
2289
|
| 'fpx'
|
|
2168
2290
|
| 'giropay'
|
|
2291
|
+
| 'gopay'
|
|
2169
2292
|
| 'grabpay'
|
|
2170
2293
|
| 'ideal'
|
|
2171
2294
|
| 'kakao_pay'
|
|
@@ -2173,6 +2296,7 @@ declare module 'stripe' {
|
|
|
2173
2296
|
| 'konbini'
|
|
2174
2297
|
| 'kr_card'
|
|
2175
2298
|
| 'link'
|
|
2299
|
+
| 'mb_way'
|
|
2176
2300
|
| 'mobilepay'
|
|
2177
2301
|
| 'multibanco'
|
|
2178
2302
|
| 'naver_pay'
|
|
@@ -2182,12 +2306,16 @@ declare module 'stripe' {
|
|
|
2182
2306
|
| 'payco'
|
|
2183
2307
|
| 'paynow'
|
|
2184
2308
|
| 'paypal'
|
|
2309
|
+
| 'payto'
|
|
2185
2310
|
| 'pix'
|
|
2186
2311
|
| 'promptpay'
|
|
2312
|
+
| 'qris'
|
|
2313
|
+
| 'rechnung'
|
|
2187
2314
|
| 'revolut_pay'
|
|
2188
2315
|
| 'samsung_pay'
|
|
2189
2316
|
| 'satispay'
|
|
2190
2317
|
| 'sepa_debit'
|
|
2318
|
+
| 'shopeepay'
|
|
2191
2319
|
| 'sofort'
|
|
2192
2320
|
| 'swish'
|
|
2193
2321
|
| 'twint'
|
|
@@ -2196,6 +2324,20 @@ declare module 'stripe' {
|
|
|
2196
2324
|
| 'zip';
|
|
2197
2325
|
|
|
2198
2326
|
interface Permissions {
|
|
2327
|
+
/**
|
|
2328
|
+
* Permissions for updating the Checkout Session.
|
|
2329
|
+
*/
|
|
2330
|
+
update?: Permissions.Update;
|
|
2331
|
+
|
|
2332
|
+
/**
|
|
2333
|
+
* Determines which entity is allowed to update the line items.
|
|
2334
|
+
*
|
|
2335
|
+
* 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.
|
|
2336
|
+
*
|
|
2337
|
+
* 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.
|
|
2338
|
+
*/
|
|
2339
|
+
update_line_items?: Permissions.UpdateLineItems;
|
|
2340
|
+
|
|
2199
2341
|
/**
|
|
2200
2342
|
* Determines which entity is allowed to update the shipping details.
|
|
2201
2343
|
*
|
|
@@ -2207,6 +2349,34 @@ declare module 'stripe' {
|
|
|
2207
2349
|
}
|
|
2208
2350
|
|
|
2209
2351
|
namespace Permissions {
|
|
2352
|
+
interface Update {
|
|
2353
|
+
/**
|
|
2354
|
+
* Determines which entity is allowed to update the line items.
|
|
2355
|
+
*
|
|
2356
|
+
* 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.
|
|
2357
|
+
*
|
|
2358
|
+
* 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.
|
|
2359
|
+
*/
|
|
2360
|
+
line_items?: Update.LineItems;
|
|
2361
|
+
|
|
2362
|
+
/**
|
|
2363
|
+
* Determines which entity is allowed to update the shipping details.
|
|
2364
|
+
*
|
|
2365
|
+
* 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.
|
|
2366
|
+
*
|
|
2367
|
+
* 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.
|
|
2368
|
+
*/
|
|
2369
|
+
shipping_details?: Update.ShippingDetails;
|
|
2370
|
+
}
|
|
2371
|
+
|
|
2372
|
+
namespace Update {
|
|
2373
|
+
type LineItems = 'client_only' | 'server_only';
|
|
2374
|
+
|
|
2375
|
+
type ShippingDetails = 'client_only' | 'server_only';
|
|
2376
|
+
}
|
|
2377
|
+
|
|
2378
|
+
type UpdateLineItems = 'client_only' | 'server_only';
|
|
2379
|
+
|
|
2210
2380
|
type UpdateShippingDetails = 'client_only' | 'server_only';
|
|
2211
2381
|
}
|
|
2212
2382
|
|
|
@@ -2815,6 +2985,23 @@ declare module 'stripe' {
|
|
|
2815
2985
|
*/
|
|
2816
2986
|
expand?: Array<string>;
|
|
2817
2987
|
|
|
2988
|
+
/**
|
|
2989
|
+
* A list of items the customer is purchasing.
|
|
2990
|
+
*
|
|
2991
|
+
* When updating line items, you must retransmit the entire array of line items.
|
|
2992
|
+
*
|
|
2993
|
+
* To retain an existing line item, specify its `id`.
|
|
2994
|
+
*
|
|
2995
|
+
* To update an existing line item, specify its `id` along with the new values of the fields to update.
|
|
2996
|
+
*
|
|
2997
|
+
* To add a new line item, specify a `price` and `quantity`.
|
|
2998
|
+
*
|
|
2999
|
+
* To remove an existing line item, omit the line item's ID from the retransmitted array.
|
|
3000
|
+
*
|
|
3001
|
+
* To reorder a line item, specify it at the desired position in the retransmitted array.
|
|
3002
|
+
*/
|
|
3003
|
+
line_items?: Array<SessionUpdateParams.LineItem>;
|
|
3004
|
+
|
|
2818
3005
|
/**
|
|
2819
3006
|
* 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`.
|
|
2820
3007
|
*/
|
|
@@ -2884,6 +3071,57 @@ declare module 'stripe' {
|
|
|
2884
3071
|
}
|
|
2885
3072
|
}
|
|
2886
3073
|
|
|
3074
|
+
interface LineItem {
|
|
3075
|
+
/**
|
|
3076
|
+
* When set, provides configuration for this item's quantity to be adjusted by the customer during Checkout.
|
|
3077
|
+
*/
|
|
3078
|
+
adjustable_quantity?: LineItem.AdjustableQuantity;
|
|
3079
|
+
|
|
3080
|
+
/**
|
|
3081
|
+
* ID of an existing line item.
|
|
3082
|
+
*/
|
|
3083
|
+
id?: string;
|
|
3084
|
+
|
|
3085
|
+
/**
|
|
3086
|
+
* 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`.
|
|
3087
|
+
*/
|
|
3088
|
+
metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
|
|
3089
|
+
|
|
3090
|
+
/**
|
|
3091
|
+
* The ID of the [Price](https://stripe.com/docs/api/prices).
|
|
3092
|
+
*/
|
|
3093
|
+
price?: string;
|
|
3094
|
+
|
|
3095
|
+
/**
|
|
3096
|
+
* The quantity of the line item being purchased.
|
|
3097
|
+
*/
|
|
3098
|
+
quantity?: number;
|
|
3099
|
+
|
|
3100
|
+
/**
|
|
3101
|
+
* The [tax rates](https://stripe.com/docs/api/tax_rates) which apply to this line item.
|
|
3102
|
+
*/
|
|
3103
|
+
tax_rates?: Stripe.Emptyable<Array<string>>;
|
|
3104
|
+
}
|
|
3105
|
+
|
|
3106
|
+
namespace LineItem {
|
|
3107
|
+
interface AdjustableQuantity {
|
|
3108
|
+
/**
|
|
3109
|
+
* Set to true if the quantity can be adjusted to any positive integer. Setting to false will remove any previously specified constraints on quantity.
|
|
3110
|
+
*/
|
|
3111
|
+
enabled: boolean;
|
|
3112
|
+
|
|
3113
|
+
/**
|
|
3114
|
+
* 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.
|
|
3115
|
+
*/
|
|
3116
|
+
maximum?: number;
|
|
3117
|
+
|
|
3118
|
+
/**
|
|
3119
|
+
* The minimum quantity the customer must purchase for the Checkout Session. By default this value is 0.
|
|
3120
|
+
*/
|
|
3121
|
+
minimum?: number;
|
|
3122
|
+
}
|
|
3123
|
+
}
|
|
3124
|
+
|
|
2887
3125
|
interface ShippingOption {
|
|
2888
3126
|
/**
|
|
2889
3127
|
* The ID of the Shipping Rate to use for this shipping option.
|
|
@@ -3034,6 +3272,11 @@ declare module 'stripe' {
|
|
|
3034
3272
|
*/
|
|
3035
3273
|
customer?: string;
|
|
3036
3274
|
|
|
3275
|
+
/**
|
|
3276
|
+
* Only return the Checkout Sessions for the Account specified.
|
|
3277
|
+
*/
|
|
3278
|
+
customer_account?: string;
|
|
3279
|
+
|
|
3037
3280
|
/**
|
|
3038
3281
|
* Only return the Checkout Sessions for the Customer details specified.
|
|
3039
3282
|
*/
|
|
@@ -134,6 +134,37 @@ declare module 'stripe' {
|
|
|
134
134
|
* The `cvc_update` Token collected from the Payment Element.
|
|
135
135
|
*/
|
|
136
136
|
cvc_token: string | null;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Installment configuration for payments.
|
|
140
|
+
*/
|
|
141
|
+
installments?: Card.Installments;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
namespace Card {
|
|
145
|
+
interface Installments {
|
|
146
|
+
plan?: Installments.Plan;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
namespace Installments {
|
|
150
|
+
interface Plan {
|
|
151
|
+
/**
|
|
152
|
+
* For `fixed_count` installment plans, this is the number of installment payments your customer will make to their credit card.
|
|
153
|
+
*/
|
|
154
|
+
count: number | null;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* For `fixed_count` installment plans, this is the interval between installment payments your customer will make to their credit card.
|
|
158
|
+
* One of `month`.
|
|
159
|
+
*/
|
|
160
|
+
interval: 'month' | null;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Type of installment plan, one of `fixed_count`.
|
|
164
|
+
*/
|
|
165
|
+
type: 'fixed_count';
|
|
166
|
+
}
|
|
167
|
+
}
|
|
137
168
|
}
|
|
138
169
|
}
|
|
139
170
|
|
|
@@ -180,6 +211,8 @@ declare module 'stripe' {
|
|
|
180
211
|
*/
|
|
181
212
|
customer: string | Stripe.Customer | null;
|
|
182
213
|
|
|
214
|
+
customer_account?: string | null;
|
|
215
|
+
|
|
183
216
|
customer_balance?: PaymentMethodPreview.CustomerBalance;
|
|
184
217
|
|
|
185
218
|
eps?: PaymentMethodPreview.Eps;
|
|
@@ -188,8 +221,12 @@ declare module 'stripe' {
|
|
|
188
221
|
|
|
189
222
|
giropay?: PaymentMethodPreview.Giropay;
|
|
190
223
|
|
|
224
|
+
gopay?: PaymentMethodPreview.Gopay;
|
|
225
|
+
|
|
191
226
|
grabpay?: PaymentMethodPreview.Grabpay;
|
|
192
227
|
|
|
228
|
+
id_bank_transfer?: PaymentMethodPreview.IdBankTransfer;
|
|
229
|
+
|
|
193
230
|
ideal?: PaymentMethodPreview.Ideal;
|
|
194
231
|
|
|
195
232
|
interac_present?: PaymentMethodPreview.InteracPresent;
|
|
@@ -204,6 +241,8 @@ declare module 'stripe' {
|
|
|
204
241
|
|
|
205
242
|
link?: PaymentMethodPreview.Link;
|
|
206
243
|
|
|
244
|
+
mb_way?: PaymentMethodPreview.MbWay;
|
|
245
|
+
|
|
207
246
|
mobilepay?: PaymentMethodPreview.Mobilepay;
|
|
208
247
|
|
|
209
248
|
multibanco?: PaymentMethodPreview.Multibanco;
|
|
@@ -224,10 +263,16 @@ declare module 'stripe' {
|
|
|
224
263
|
|
|
225
264
|
paypal?: PaymentMethodPreview.Paypal;
|
|
226
265
|
|
|
266
|
+
payto?: PaymentMethodPreview.Payto;
|
|
267
|
+
|
|
227
268
|
pix?: PaymentMethodPreview.Pix;
|
|
228
269
|
|
|
229
270
|
promptpay?: PaymentMethodPreview.Promptpay;
|
|
230
271
|
|
|
272
|
+
qris?: PaymentMethodPreview.Qris;
|
|
273
|
+
|
|
274
|
+
rechnung?: PaymentMethodPreview.Rechnung;
|
|
275
|
+
|
|
231
276
|
revolut_pay?: PaymentMethodPreview.RevolutPay;
|
|
232
277
|
|
|
233
278
|
samsung_pay?: PaymentMethodPreview.SamsungPay;
|
|
@@ -236,8 +281,12 @@ declare module 'stripe' {
|
|
|
236
281
|
|
|
237
282
|
sepa_debit?: PaymentMethodPreview.SepaDebit;
|
|
238
283
|
|
|
284
|
+
shopeepay?: PaymentMethodPreview.Shopeepay;
|
|
285
|
+
|
|
239
286
|
sofort?: PaymentMethodPreview.Sofort;
|
|
240
287
|
|
|
288
|
+
stripe_balance?: PaymentMethodPreview.StripeBalance;
|
|
289
|
+
|
|
241
290
|
swish?: PaymentMethodPreview.Swish;
|
|
242
291
|
|
|
243
292
|
twint?: PaymentMethodPreview.Twint;
|
|
@@ -1055,8 +1104,24 @@ declare module 'stripe' {
|
|
|
1055
1104
|
|
|
1056
1105
|
interface Giropay {}
|
|
1057
1106
|
|
|
1107
|
+
interface Gopay {}
|
|
1108
|
+
|
|
1058
1109
|
interface Grabpay {}
|
|
1059
1110
|
|
|
1111
|
+
interface IdBankTransfer {
|
|
1112
|
+
bank: IdBankTransfer.Bank | null;
|
|
1113
|
+
|
|
1114
|
+
bank_code: string | null;
|
|
1115
|
+
|
|
1116
|
+
bank_name: string | null;
|
|
1117
|
+
|
|
1118
|
+
display_name: string | null;
|
|
1119
|
+
}
|
|
1120
|
+
|
|
1121
|
+
namespace IdBankTransfer {
|
|
1122
|
+
type Bank = 'bca' | 'bni' | 'bri' | 'cimb' | 'permata';
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1060
1125
|
interface Ideal {
|
|
1061
1126
|
/**
|
|
1062
1127
|
* The customer's bank, if provided. Can be one of `abn_amro`, `asn_bank`, `bunq`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
|
|
@@ -1284,6 +1349,8 @@ declare module 'stripe' {
|
|
|
1284
1349
|
persistent_token?: string;
|
|
1285
1350
|
}
|
|
1286
1351
|
|
|
1352
|
+
interface MbWay {}
|
|
1353
|
+
|
|
1287
1354
|
interface Mobilepay {}
|
|
1288
1355
|
|
|
1289
1356
|
interface Multibanco {}
|
|
@@ -1387,6 +1454,11 @@ declare module 'stripe' {
|
|
|
1387
1454
|
*/
|
|
1388
1455
|
country: string | null;
|
|
1389
1456
|
|
|
1457
|
+
/**
|
|
1458
|
+
* Uniquely identifies this particular PayPal account. You can use this attribute to check whether two PayPal accounts are the same.
|
|
1459
|
+
*/
|
|
1460
|
+
fingerprint?: string | null;
|
|
1461
|
+
|
|
1390
1462
|
/**
|
|
1391
1463
|
* Owner's email. Values are provided by PayPal directly
|
|
1392
1464
|
* (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
|
@@ -1397,12 +1469,60 @@ declare module 'stripe' {
|
|
|
1397
1469
|
* PayPal account PayerID. This identifier uniquely identifies the PayPal customer.
|
|
1398
1470
|
*/
|
|
1399
1471
|
payer_id: string | null;
|
|
1472
|
+
|
|
1473
|
+
/**
|
|
1474
|
+
* Owner's verified email. Values are verified or provided by PayPal directly
|
|
1475
|
+
* (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
|
1476
|
+
*/
|
|
1477
|
+
verified_email?: string | null;
|
|
1478
|
+
}
|
|
1479
|
+
|
|
1480
|
+
interface Payto {
|
|
1481
|
+
/**
|
|
1482
|
+
* Bank-State-Branch number of the bank account.
|
|
1483
|
+
*/
|
|
1484
|
+
bsb_number: string | null;
|
|
1485
|
+
|
|
1486
|
+
/**
|
|
1487
|
+
* Last four digits of the bank account number.
|
|
1488
|
+
*/
|
|
1489
|
+
last4: string | null;
|
|
1490
|
+
|
|
1491
|
+
/**
|
|
1492
|
+
* The PayID alias for the bank account.
|
|
1493
|
+
*/
|
|
1494
|
+
pay_id: string | null;
|
|
1400
1495
|
}
|
|
1401
1496
|
|
|
1402
1497
|
interface Pix {}
|
|
1403
1498
|
|
|
1404
1499
|
interface Promptpay {}
|
|
1405
1500
|
|
|
1501
|
+
interface Qris {}
|
|
1502
|
+
|
|
1503
|
+
interface Rechnung {
|
|
1504
|
+
dob?: Rechnung.Dob;
|
|
1505
|
+
}
|
|
1506
|
+
|
|
1507
|
+
namespace Rechnung {
|
|
1508
|
+
interface Dob {
|
|
1509
|
+
/**
|
|
1510
|
+
* The day of birth, between 1 and 31.
|
|
1511
|
+
*/
|
|
1512
|
+
day: number;
|
|
1513
|
+
|
|
1514
|
+
/**
|
|
1515
|
+
* The month of birth, between 1 and 12.
|
|
1516
|
+
*/
|
|
1517
|
+
month: number;
|
|
1518
|
+
|
|
1519
|
+
/**
|
|
1520
|
+
* The four-digit year of birth.
|
|
1521
|
+
*/
|
|
1522
|
+
year: number;
|
|
1523
|
+
}
|
|
1524
|
+
}
|
|
1525
|
+
|
|
1406
1526
|
interface RevolutPay {}
|
|
1407
1527
|
|
|
1408
1528
|
interface SamsungPay {}
|
|
@@ -1455,6 +1575,8 @@ declare module 'stripe' {
|
|
|
1455
1575
|
}
|
|
1456
1576
|
}
|
|
1457
1577
|
|
|
1578
|
+
interface Shopeepay {}
|
|
1579
|
+
|
|
1458
1580
|
interface Sofort {
|
|
1459
1581
|
/**
|
|
1460
1582
|
* Two-letter ISO code representing the country the bank account is located in.
|
|
@@ -1462,6 +1584,22 @@ declare module 'stripe' {
|
|
|
1462
1584
|
country: string | null;
|
|
1463
1585
|
}
|
|
1464
1586
|
|
|
1587
|
+
interface StripeBalance {
|
|
1588
|
+
/**
|
|
1589
|
+
* The connected account ID whose Stripe balance to use as the source of payment
|
|
1590
|
+
*/
|
|
1591
|
+
account?: string | null;
|
|
1592
|
+
|
|
1593
|
+
/**
|
|
1594
|
+
* The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
|
|
1595
|
+
*/
|
|
1596
|
+
source_type: StripeBalance.SourceType;
|
|
1597
|
+
}
|
|
1598
|
+
|
|
1599
|
+
namespace StripeBalance {
|
|
1600
|
+
type SourceType = 'bank_account' | 'card' | 'fpx';
|
|
1601
|
+
}
|
|
1602
|
+
|
|
1465
1603
|
interface Swish {}
|
|
1466
1604
|
|
|
1467
1605
|
interface Twint {}
|
|
@@ -1486,7 +1624,9 @@ declare module 'stripe' {
|
|
|
1486
1624
|
| 'eps'
|
|
1487
1625
|
| 'fpx'
|
|
1488
1626
|
| 'giropay'
|
|
1627
|
+
| 'gopay'
|
|
1489
1628
|
| 'grabpay'
|
|
1629
|
+
| 'id_bank_transfer'
|
|
1490
1630
|
| 'ideal'
|
|
1491
1631
|
| 'interac_present'
|
|
1492
1632
|
| 'kakao_pay'
|
|
@@ -1494,6 +1634,7 @@ declare module 'stripe' {
|
|
|
1494
1634
|
| 'konbini'
|
|
1495
1635
|
| 'kr_card'
|
|
1496
1636
|
| 'link'
|
|
1637
|
+
| 'mb_way'
|
|
1497
1638
|
| 'mobilepay'
|
|
1498
1639
|
| 'multibanco'
|
|
1499
1640
|
| 'naver_pay'
|
|
@@ -1504,13 +1645,18 @@ declare module 'stripe' {
|
|
|
1504
1645
|
| 'payco'
|
|
1505
1646
|
| 'paynow'
|
|
1506
1647
|
| 'paypal'
|
|
1648
|
+
| 'payto'
|
|
1507
1649
|
| 'pix'
|
|
1508
1650
|
| 'promptpay'
|
|
1651
|
+
| 'qris'
|
|
1652
|
+
| 'rechnung'
|
|
1509
1653
|
| 'revolut_pay'
|
|
1510
1654
|
| 'samsung_pay'
|
|
1511
1655
|
| 'satispay'
|
|
1512
1656
|
| 'sepa_debit'
|
|
1657
|
+
| 'shopeepay'
|
|
1513
1658
|
| 'sofort'
|
|
1659
|
+
| 'stripe_balance'
|
|
1514
1660
|
| 'swish'
|
|
1515
1661
|
| 'twint'
|
|
1516
1662
|
| 'us_bank_account'
|
|
@@ -1523,6 +1669,11 @@ declare module 'stripe' {
|
|
|
1523
1669
|
*/
|
|
1524
1670
|
account_holder_type: UsBankAccount.AccountHolderType | null;
|
|
1525
1671
|
|
|
1672
|
+
/**
|
|
1673
|
+
* Account number of the bank account.
|
|
1674
|
+
*/
|
|
1675
|
+
account_number?: string | null;
|
|
1676
|
+
|
|
1526
1677
|
/**
|
|
1527
1678
|
* Account type: checkings or savings. Defaults to checking if omitted.
|
|
1528
1679
|
*/
|
package/types/Coupons.d.ts
CHANGED
|
@@ -48,7 +48,7 @@ declare module 'stripe' {
|
|
|
48
48
|
deleted?: void;
|
|
49
49
|
|
|
50
50
|
/**
|
|
51
|
-
* One of `forever`, `once`,
|
|
51
|
+
* One of `forever`, `once`, or `repeating`. Describes how long a customer who applies this coupon will get the discount.
|
|
52
52
|
*/
|
|
53
53
|
duration: Coupon.Duration;
|
|
54
54
|
|
|
@@ -56,6 +56,11 @@ declare module 'stripe' {
|
|
|
56
56
|
*/
|
|
57
57
|
quantity: number | null;
|
|
58
58
|
|
|
59
|
+
/**
|
|
60
|
+
* The tax calculation identifiers of the line item.
|
|
61
|
+
*/
|
|
62
|
+
tax_calculation_reference?: CreditNoteLineItem.TaxCalculationReference | null;
|
|
63
|
+
|
|
59
64
|
/**
|
|
60
65
|
* The tax rates which apply to the line item.
|
|
61
66
|
*/
|
|
@@ -181,6 +186,18 @@ declare module 'stripe' {
|
|
|
181
186
|
}
|
|
182
187
|
}
|
|
183
188
|
|
|
189
|
+
interface TaxCalculationReference {
|
|
190
|
+
/**
|
|
191
|
+
* The calculation identifier for tax calculation response.
|
|
192
|
+
*/
|
|
193
|
+
calculation_id: string | null;
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* The calculation identifier for tax calculation response line item.
|
|
197
|
+
*/
|
|
198
|
+
calculation_item_id: string | null;
|
|
199
|
+
}
|
|
200
|
+
|
|
184
201
|
type Type = 'custom_line_item' | 'invoice_line_item';
|
|
185
202
|
}
|
|
186
203
|
}
|