stripe 18.1.0-beta.2 → 18.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +140 -1185
- package/OPENAPI_VERSION +1 -1
- package/README.md +0 -1
- package/VERSION +1 -1
- package/cjs/Error.js +3 -93
- package/cjs/RequestSender.js +3 -7
- package/cjs/Webhooks.js +6 -2
- package/cjs/apiVersion.js +1 -1
- package/cjs/net/FetchHttpClient.js +3 -4
- package/cjs/resources/FinancialConnections/Accounts.js +0 -5
- package/cjs/resources/{PaymentAttemptRecords.js → InvoicePayments.js} +4 -4
- package/cjs/resources/Invoices.js +0 -17
- package/cjs/resources/PaymentIntents.js +0 -8
- package/cjs/resources/Quotes.js +0 -32
- package/cjs/resources/SubscriptionSchedules.js +0 -4
- package/cjs/resources/Terminal/Readers.js +0 -12
- package/cjs/resources/TestHelpers/Terminal/Readers.js +0 -8
- package/cjs/resources.js +18 -106
- package/cjs/stripe.core.js +2 -4
- package/cjs/utils.js +28 -4
- package/esm/Error.js +2 -81
- package/esm/RequestSender.js +4 -8
- package/esm/Webhooks.js +6 -2
- package/esm/apiVersion.js +1 -1
- package/esm/net/FetchHttpClient.js +3 -4
- package/esm/resources/FinancialConnections/Accounts.js +0 -5
- package/esm/resources/{PaymentAttemptRecords.js → InvoicePayments.js} +3 -3
- package/esm/resources/Invoices.js +0 -17
- package/esm/resources/PaymentIntents.js +0 -8
- package/esm/resources/Quotes.js +0 -32
- package/esm/resources/SubscriptionSchedules.js +0 -4
- package/esm/resources/Terminal/Readers.js +0 -12
- package/esm/resources/TestHelpers/Terminal/Readers.js +0 -8
- package/esm/resources.js +1 -83
- package/esm/stripe.core.js +2 -4
- package/esm/utils.js +24 -3
- package/package.json +12 -3
- package/types/AccountLinksResource.d.ts +1 -5
- package/types/AccountSessions.d.ts +0 -45
- package/types/AccountSessionsResource.d.ts +0 -300
- package/types/Accounts.d.ts +20 -212
- package/types/AccountsResource.d.ts +214 -546
- package/types/Billing/CreditBalanceSummary.d.ts +0 -5
- package/types/Billing/CreditBalanceSummaryResource.d.ts +3 -8
- package/types/Billing/CreditBalanceTransactionsResource.d.ts +4 -12
- package/types/Billing/CreditGrants.d.ts +0 -5
- package/types/Billing/CreditGrantsResource.d.ts +1 -11
- package/types/BillingPortal/Sessions.d.ts +0 -5
- package/types/BillingPortal/SessionsResource.d.ts +4 -12
- package/types/Cards.d.ts +0 -5
- package/types/CashBalances.d.ts +0 -5
- package/types/Charges.d.ts +5 -166
- package/types/ChargesResource.d.ts +0 -1294
- package/types/Checkout/Sessions.d.ts +13 -306
- package/types/Checkout/SessionsResource.d.ts +3 -246
- package/types/ConfirmationTokens.d.ts +5 -120
- package/types/CreditNoteLineItems.d.ts +0 -17
- package/types/CreditNotes.d.ts +0 -9
- package/types/CreditNotesResource.d.ts +0 -5
- package/types/CustomerBalanceTransactions.d.ts +0 -2
- package/types/CustomerCashBalanceTransactions.d.ts +0 -2
- package/types/CustomerSessions.d.ts +0 -5
- package/types/CustomerSessionsResource.d.ts +1 -6
- package/types/Customers.d.ts +0 -2
- package/types/CustomersResource.d.ts +23 -11
- package/types/Discounts.d.ts +0 -10
- package/types/Errors.d.ts +2 -69
- package/types/EventTypes.d.ts +0 -681
- package/types/Events.d.ts +1 -99
- package/types/FinancialConnections/Accounts.d.ts +1 -31
- package/types/FinancialConnections/AccountsResource.d.ts +3 -40
- package/types/FinancialConnections/Sessions.d.ts +1 -51
- package/types/FinancialConnections/SessionsResource.d.ts +1 -43
- package/types/Identity/VerificationSessions.d.ts +0 -5
- package/types/Identity/VerificationSessionsResource.d.ts +0 -7
- package/types/InvoiceItems.d.ts +0 -10
- package/types/InvoiceItemsResource.d.ts +6 -117
- package/types/InvoiceLineItems.d.ts +2 -46
- package/types/InvoicePayments.d.ts +0 -5
- package/types/InvoicePaymentsResource.d.ts +74 -0
- package/types/Invoices.d.ts +16 -138
- package/types/InvoicesResource.d.ts +20 -1550
- package/types/Issuing/CardholdersResource.d.ts +1 -2
- package/types/Issuing/Transactions.d.ts +0 -5
- package/types/Issuing/TransactionsResource.d.ts +0 -5
- package/types/LineItems.d.ts +0 -49
- package/types/Mandates.d.ts +0 -77
- package/types/PaymentIntents.d.ts +2 -675
- package/types/PaymentIntentsResource.d.ts +3983 -8416
- package/types/PaymentLinks.d.ts +0 -6
- package/types/PaymentLinksResource.d.ts +0 -12
- package/types/PaymentMethodConfigurations.d.ts +4 -148
- package/types/PaymentMethodConfigurationsResource.d.ts +10 -210
- package/types/PaymentMethods.d.ts +5 -120
- package/types/PaymentMethodsResource.d.ts +12 -167
- package/types/Payouts.d.ts +0 -5
- package/types/PayoutsResource.d.ts +0 -5
- package/types/Persons.d.ts +88 -1
- package/types/Prices.d.ts +0 -22
- package/types/PricesResource.d.ts +0 -22
- package/types/Products.d.ts +0 -39
- package/types/ProductsResource.d.ts +0 -36
- package/types/PromotionCodes.d.ts +0 -5
- package/types/PromotionCodesResource.d.ts +0 -10
- package/types/Quotes.d.ts +2 -597
- package/types/QuotesResource.d.ts +224 -2571
- package/types/Refunds.d.ts +10 -14
- package/types/SetupAttempts.d.ts +1 -50
- package/types/SetupIntents.d.ts +2 -121
- package/types/SetupIntentsResource.d.ts +18 -730
- package/types/Sources.d.ts +0 -29
- package/types/SubscriptionItems.d.ts +0 -23
- package/types/SubscriptionItemsResource.d.ts +0 -109
- package/types/SubscriptionSchedules.d.ts +0 -205
- package/types/SubscriptionSchedulesResource.d.ts +8 -1236
- package/types/Subscriptions.d.ts +2 -97
- package/types/SubscriptionsResource.d.ts +11 -391
- package/types/Tax/Calculations.d.ts +11 -1
- package/types/Tax/CalculationsResource.d.ts +11 -1
- package/types/Tax/Registrations.d.ts +99 -0
- package/types/Tax/RegistrationsResource.d.ts +132 -0
- package/types/Tax/Transactions.d.ts +11 -1
- package/types/TaxIds.d.ts +11 -11
- package/types/TaxIdsResource.d.ts +11 -11
- package/types/Terminal/Readers.d.ts +0 -300
- package/types/Terminal/ReadersResource.d.ts +0 -220
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +12 -127
- package/types/TestHelpers/Terminal/ReadersResource.d.ts +0 -53
- package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
- package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
- package/types/TokensResource.d.ts +106 -0
- package/types/Treasury/FinancialAccountFeatures.d.ts +0 -7
- package/types/Treasury/FinancialAccounts.d.ts +0 -5
- package/types/Treasury/FinancialAccountsResource.d.ts +0 -37
- package/types/Treasury/OutboundTransfers.d.ts +0 -26
- package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
- package/types/Treasury/ReceivedCredits.d.ts +0 -26
- package/types/Treasury/ReceivedDebits.d.ts +0 -31
- package/types/V2/EventTypes.d.ts +7 -677
- package/types/WebhookEndpointsResource.d.ts +4 -83
- package/types/index.d.ts +5 -142
- package/types/lib.d.ts +1 -11
- package/types/test/typescriptTest.ts +3 -3
- package/cjs/resources/AccountNotices.js +0 -21
- package/cjs/resources/BalanceSettings.js +0 -10
- package/cjs/resources/Capital/FinancingOffers.js +0 -21
- package/cjs/resources/Capital/FinancingSummary.js +0 -12
- package/cjs/resources/Capital/FinancingTransactions.js +0 -17
- package/cjs/resources/ExternalAccounts.js +0 -23
- package/cjs/resources/FinancialConnections/Institutions.js +0 -17
- package/cjs/resources/GiftCards/Cards.js +0 -23
- package/cjs/resources/GiftCards/Transactions.js +0 -33
- package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
- package/cjs/resources/Issuing/DisputeSettlementDetails.js +0 -17
- package/cjs/resources/Issuing/FraudLiabilityDebits.js +0 -17
- package/cjs/resources/Margins.js +0 -22
- package/cjs/resources/Orders.js +0 -24
- package/cjs/resources/PaymentRecords.js +0 -29
- package/cjs/resources/Privacy/RedactionJobs.js +0 -46
- package/cjs/resources/Tax/Associations.js +0 -9
- package/cjs/resources/Tax/Forms.js +0 -20
- package/cjs/resources/Terminal/ReaderCollectedData.js +0 -12
- package/cjs/resources/V2/Core/AccountLinks.js +0 -9
- package/cjs/resources/V2/Core/Accounts/Persons.js +0 -29
- package/cjs/resources/V2/Core/Accounts.js +0 -25
- package/cjs/resources/V2/Core/Vault/GbBankAccounts.js +0 -28
- package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +0 -24
- package/cjs/resources/V2/MoneyManagement/Adjustments.js +0 -17
- package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +0 -17
- package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js +0 -21
- package/cjs/resources/V2/MoneyManagement/InboundTransfers.js +0 -21
- package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +0 -12
- package/cjs/resources/V2/MoneyManagement/OutboundPayments.js +0 -25
- package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js +0 -29
- package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js +0 -25
- package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +0 -25
- package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +0 -12
- package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js +0 -17
- package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js +0 -17
- package/cjs/resources/V2/MoneyManagement/TransactionEntries.js +0 -17
- package/cjs/resources/V2/MoneyManagement/Transactions.js +0 -17
- package/cjs/resources/V2/TestHelpers/FinancialAddresses.js +0 -16
- package/esm/resources/AccountNotices.js +0 -18
- package/esm/resources/BalanceSettings.js +0 -7
- package/esm/resources/Capital/FinancingOffers.js +0 -18
- package/esm/resources/Capital/FinancingSummary.js +0 -9
- package/esm/resources/Capital/FinancingTransactions.js +0 -14
- package/esm/resources/ExternalAccounts.js +0 -20
- package/esm/resources/FinancialConnections/Institutions.js +0 -14
- package/esm/resources/GiftCards/Cards.js +0 -20
- package/esm/resources/GiftCards/Transactions.js +0 -30
- package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
- package/esm/resources/Issuing/DisputeSettlementDetails.js +0 -14
- package/esm/resources/Issuing/FraudLiabilityDebits.js +0 -14
- package/esm/resources/Margins.js +0 -19
- package/esm/resources/Orders.js +0 -21
- package/esm/resources/PaymentRecords.js +0 -26
- package/esm/resources/Privacy/RedactionJobs.js +0 -43
- package/esm/resources/Tax/Associations.js +0 -6
- package/esm/resources/Tax/Forms.js +0 -17
- package/esm/resources/Terminal/ReaderCollectedData.js +0 -9
- package/esm/resources/V2/Core/AccountLinks.js +0 -6
- package/esm/resources/V2/Core/Accounts/Persons.js +0 -26
- package/esm/resources/V2/Core/Accounts.js +0 -22
- package/esm/resources/V2/Core/Vault/GbBankAccounts.js +0 -25
- package/esm/resources/V2/Core/Vault/UsBankAccounts.js +0 -21
- package/esm/resources/V2/MoneyManagement/Adjustments.js +0 -14
- package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +0 -14
- package/esm/resources/V2/MoneyManagement/FinancialAddresses.js +0 -18
- package/esm/resources/V2/MoneyManagement/InboundTransfers.js +0 -18
- package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +0 -9
- package/esm/resources/V2/MoneyManagement/OutboundPayments.js +0 -22
- package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js +0 -26
- package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +0 -22
- package/esm/resources/V2/MoneyManagement/PayoutMethods.js +0 -22
- package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +0 -9
- package/esm/resources/V2/MoneyManagement/ReceivedCredits.js +0 -14
- package/esm/resources/V2/MoneyManagement/ReceivedDebits.js +0 -14
- package/esm/resources/V2/MoneyManagement/TransactionEntries.js +0 -14
- package/esm/resources/V2/MoneyManagement/Transactions.js +0 -14
- package/esm/resources/V2/TestHelpers/FinancialAddresses.js +0 -13
- package/types/AccountNotices.d.ts +0 -113
- package/types/AccountNoticesResource.d.ts +0 -98
- package/types/BalanceSettings.d.ts +0 -85
- package/types/BalanceSettingsResource.d.ts +0 -108
- package/types/Billing/MeterErrorReports.d.ts +0 -106
- package/types/Capital/FinancingOffers.d.ts +0 -188
- package/types/Capital/FinancingOffersResource.d.ts +0 -97
- package/types/Capital/FinancingSummary.d.ts +0 -106
- package/types/Capital/FinancingSummaryResource.d.ts +0 -27
- package/types/Capital/FinancingTransactions.d.ts +0 -135
- package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
- package/types/ExternalAccountsResource.d.ts +0 -304
- package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
- package/types/FinancialConnections/Institutions.d.ts +0 -93
- package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
- package/types/GiftCards/Cards.d.ts +0 -118
- package/types/GiftCards/CardsResource.d.ts +0 -159
- package/types/GiftCards/Transactions.d.ts +0 -129
- package/types/GiftCards/TransactionsResource.d.ts +0 -201
- package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -451
- package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1032
- package/types/Issuing/DisputeSettlementDetails.d.ts +0 -85
- package/types/Issuing/DisputeSettlementDetailsResource.d.ts +0 -52
- package/types/Issuing/FraudLiabilityDebits.d.ts +0 -52
- package/types/Issuing/FraudLiabilityDebitsResource.d.ts +0 -52
- package/types/Issuing/Settlements.d.ts +0 -113
- package/types/Margins.d.ts +0 -56
- package/types/MarginsResource.d.ts +0 -114
- package/types/Orders.d.ts +0 -1189
- package/types/OrdersResource.d.ts +0 -2981
- package/types/PaymentAttemptRecords.d.ts +0 -2112
- package/types/PaymentAttemptRecordsResource.d.ts +0 -47
- package/types/PaymentRecords.d.ts +0 -2105
- package/types/PaymentRecordsResource.d.ts +0 -455
- package/types/Privacy/RedactionJobRootObjects.d.ts +0 -35
- package/types/Privacy/RedactionJobValidationErrors.d.ts +0 -30
- package/types/Privacy/RedactionJobs.d.ts +0 -43
- package/types/Privacy/RedactionJobsResource.d.ts +0 -240
- package/types/QuoteLines.d.ts +0 -634
- package/types/QuotePreviewInvoices.d.ts +0 -1686
- package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -778
- package/types/Tax/Associations.d.ts +0 -126
- package/types/Tax/AssociationsResource.d.ts +0 -29
- package/types/Tax/Forms.d.ts +0 -220
- package/types/Tax/FormsResource.d.ts +0 -107
- package/types/Terminal/ReaderCollectedData.d.ts +0 -51
- package/types/Terminal/ReaderCollectedDataResource.d.ts +0 -29
- package/types/V2/Core/AccountLinks.d.ts +0 -101
- package/types/V2/Core/AccountLinksResource.d.ts +0 -90
- package/types/V2/Core/Accounts/PersonsResource.d.ts +0 -3760
- package/types/V2/Core/Accounts.d.ts +0 -8057
- package/types/V2/Core/AccountsResource.d.ts +0 -10184
- package/types/V2/Core/Persons.d.ts +0 -1857
- package/types/V2/Core/Vault/GbBankAccounts.d.ts +0 -155
- package/types/V2/Core/Vault/GbBankAccountsResource.d.ts +0 -172
- package/types/V2/Core/Vault/UsBankAccounts.d.ts +0 -65
- package/types/V2/Core/Vault/UsBankAccountsResource.d.ts +0 -123
- package/types/V2/FinancialAddressCreditSimulations.d.ts +0 -22
- package/types/V2/FinancialAddressGeneratedMicrodeposits.d.ts +0 -27
- package/types/V2/MoneyManagement/Adjustments.d.ts +0 -105
- package/types/V2/MoneyManagement/AdjustmentsResource.d.ts +0 -83
- package/types/V2/MoneyManagement/FinancialAccounts.d.ts +0 -540
- package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +0 -52
- package/types/V2/MoneyManagement/FinancialAddresses.d.ts +0 -308
- package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +0 -287
- package/types/V2/MoneyManagement/InboundTransfers.d.ts +0 -201
- package/types/V2/MoneyManagement/InboundTransfersResource.d.ts +0 -144
- package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +0 -141
- package/types/V2/MoneyManagement/OutboundPaymentQuotesResource.d.ts +0 -93
- package/types/V2/MoneyManagement/OutboundPayments.d.ts +0 -273
- package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +0 -242
- package/types/V2/MoneyManagement/OutboundSetupIntents.d.ts +0 -92
- package/types/V2/MoneyManagement/OutboundSetupIntentsResource.d.ts +0 -296
- package/types/V2/MoneyManagement/OutboundTransfers.d.ts +0 -246
- package/types/V2/MoneyManagement/OutboundTransfersResource.d.ts +0 -207
- package/types/V2/MoneyManagement/PayoutMethods.d.ts +0 -146
- package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecResource.d.ts +0 -41
- package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecs.d.ts +0 -82
- package/types/V2/MoneyManagement/PayoutMethodsResource.d.ts +0 -113
- package/types/V2/MoneyManagement/ReceivedCredits.d.ts +0 -280
- package/types/V2/MoneyManagement/ReceivedCreditsResource.d.ts +0 -78
- package/types/V2/MoneyManagement/ReceivedDebits.d.ts +0 -219
- package/types/V2/MoneyManagement/ReceivedDebitsResource.d.ts +0 -48
- package/types/V2/MoneyManagement/TransactionEntries.d.ts +0 -151
- package/types/V2/MoneyManagement/TransactionEntriesResource.d.ts +0 -82
- package/types/V2/MoneyManagement/Transactions.d.ts +0 -166
- package/types/V2/MoneyManagement/TransactionsResource.d.ts +0 -83
- package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +0 -66
|
@@ -76,11 +76,6 @@ 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
|
-
|
|
84
79
|
/**
|
|
85
80
|
* Configure whether a Checkout Session creates a [Customer](https://stripe.com/docs/api/customers) during Session confirmation.
|
|
86
81
|
*
|
|
@@ -209,7 +204,7 @@ declare module 'stripe' {
|
|
|
209
204
|
payment_method_types?: Array<SessionCreateParams.PaymentMethodType>;
|
|
210
205
|
|
|
211
206
|
/**
|
|
212
|
-
* This property is used to set up permissions for various actions (e.g., update) on the CheckoutSession object.
|
|
207
|
+
* This property is used to set up permissions for various actions (e.g., update) on the CheckoutSession object. Can only be set when creating `embedded` or `custom` sessions.
|
|
213
208
|
*
|
|
214
209
|
* For specific permissions, please refer to their dedicated subsections, such as `permissions.update_shipping_details`.
|
|
215
210
|
*/
|
|
@@ -709,11 +704,6 @@ declare module 'stripe' {
|
|
|
709
704
|
*/
|
|
710
705
|
dynamic_tax_rates?: Array<string>;
|
|
711
706
|
|
|
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
|
-
|
|
717
707
|
/**
|
|
718
708
|
* 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.
|
|
719
709
|
*/
|
|
@@ -1222,11 +1212,6 @@ declare module 'stripe' {
|
|
|
1222
1212
|
*/
|
|
1223
1213
|
paypal?: PaymentMethodOptions.Paypal;
|
|
1224
1214
|
|
|
1225
|
-
/**
|
|
1226
|
-
* contains details about the PayTo payment method options.
|
|
1227
|
-
*/
|
|
1228
|
-
payto?: PaymentMethodOptions.Payto;
|
|
1229
|
-
|
|
1230
1215
|
/**
|
|
1231
1216
|
* contains details about the Pix payment method options.
|
|
1232
1217
|
*/
|
|
@@ -1496,11 +1481,6 @@ declare module 'stripe' {
|
|
|
1496
1481
|
*/
|
|
1497
1482
|
installments?: Card.Installments;
|
|
1498
1483
|
|
|
1499
|
-
/**
|
|
1500
|
-
* Request ability to [capture beyond the standard authorization validity window](https://stripe.com/payments/extended-authorization) for this CheckoutSession.
|
|
1501
|
-
*/
|
|
1502
|
-
request_decremental_authorization?: Card.RequestDecrementalAuthorization;
|
|
1503
|
-
|
|
1504
1484
|
/**
|
|
1505
1485
|
* Request ability to [capture beyond the standard authorization validity window](https://stripe.com/payments/extended-authorization) for this CheckoutSession.
|
|
1506
1486
|
*/
|
|
@@ -1562,8 +1542,6 @@ declare module 'stripe' {
|
|
|
1562
1542
|
enabled?: boolean;
|
|
1563
1543
|
}
|
|
1564
1544
|
|
|
1565
|
-
type RequestDecrementalAuthorization = 'if_available' | 'never';
|
|
1566
|
-
|
|
1567
1545
|
type RequestExtendedAuthorization = 'if_available' | 'never';
|
|
1568
1546
|
|
|
1569
1547
|
type RequestIncrementalAuthorization = 'if_available' | 'never';
|
|
@@ -1959,11 +1937,6 @@ declare module 'stripe' {
|
|
|
1959
1937
|
*/
|
|
1960
1938
|
reference?: string;
|
|
1961
1939
|
|
|
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
|
-
|
|
1967
1940
|
/**
|
|
1968
1941
|
* The risk correlation ID for an on-session payment using a saved PayPal payment method.
|
|
1969
1942
|
*/
|
|
@@ -1981,11 +1954,6 @@ declare module 'stripe' {
|
|
|
1981
1954
|
* 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`.
|
|
1982
1955
|
*/
|
|
1983
1956
|
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>;
|
|
1989
1957
|
}
|
|
1990
1958
|
|
|
1991
1959
|
namespace Paypal {
|
|
@@ -2015,92 +1983,6 @@ declare module 'stripe' {
|
|
|
2015
1983
|
type SetupFutureUsage = 'none' | 'off_session';
|
|
2016
1984
|
}
|
|
2017
1985
|
|
|
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://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.
|
|
2028
|
-
*
|
|
2029
|
-
* 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.
|
|
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://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
|
-
|
|
2104
1986
|
interface Pix {
|
|
2105
1987
|
/**
|
|
2106
1988
|
* The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds.
|
|
@@ -2234,11 +2116,7 @@ declare module 'stripe' {
|
|
|
2234
2116
|
| 'payment_method'
|
|
2235
2117
|
| 'transactions';
|
|
2236
2118
|
|
|
2237
|
-
type Prefetch =
|
|
2238
|
-
| 'balances'
|
|
2239
|
-
| 'inferred_balances'
|
|
2240
|
-
| 'ownership'
|
|
2241
|
-
| 'transactions';
|
|
2119
|
+
type Prefetch = 'balances' | 'ownership' | 'transactions';
|
|
2242
2120
|
}
|
|
2243
2121
|
|
|
2244
2122
|
type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
|
|
@@ -2293,7 +2171,6 @@ declare module 'stripe' {
|
|
|
2293
2171
|
| 'eps'
|
|
2294
2172
|
| 'fpx'
|
|
2295
2173
|
| 'giropay'
|
|
2296
|
-
| 'gopay'
|
|
2297
2174
|
| 'grabpay'
|
|
2298
2175
|
| 'ideal'
|
|
2299
2176
|
| 'kakao_pay'
|
|
@@ -2301,7 +2178,6 @@ declare module 'stripe' {
|
|
|
2301
2178
|
| 'konbini'
|
|
2302
2179
|
| 'kr_card'
|
|
2303
2180
|
| 'link'
|
|
2304
|
-
| 'mb_way'
|
|
2305
2181
|
| 'mobilepay'
|
|
2306
2182
|
| 'multibanco'
|
|
2307
2183
|
| 'naver_pay'
|
|
@@ -2311,16 +2187,12 @@ declare module 'stripe' {
|
|
|
2311
2187
|
| 'payco'
|
|
2312
2188
|
| 'paynow'
|
|
2313
2189
|
| 'paypal'
|
|
2314
|
-
| 'payto'
|
|
2315
2190
|
| 'pix'
|
|
2316
2191
|
| 'promptpay'
|
|
2317
|
-
| 'qris'
|
|
2318
|
-
| 'rechnung'
|
|
2319
2192
|
| 'revolut_pay'
|
|
2320
2193
|
| 'samsung_pay'
|
|
2321
2194
|
| 'satispay'
|
|
2322
2195
|
| 'sepa_debit'
|
|
2323
|
-
| 'shopeepay'
|
|
2324
2196
|
| 'sofort'
|
|
2325
2197
|
| 'swish'
|
|
2326
2198
|
| 'twint'
|
|
@@ -2329,20 +2201,6 @@ declare module 'stripe' {
|
|
|
2329
2201
|
| 'zip';
|
|
2330
2202
|
|
|
2331
2203
|
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
|
-
|
|
2346
2204
|
/**
|
|
2347
2205
|
* Determines which entity is allowed to update the shipping details.
|
|
2348
2206
|
*
|
|
@@ -2354,34 +2212,6 @@ declare module 'stripe' {
|
|
|
2354
2212
|
}
|
|
2355
2213
|
|
|
2356
2214
|
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
|
-
|
|
2385
2215
|
type UpdateShippingDetails = 'client_only' | 'server_only';
|
|
2386
2216
|
}
|
|
2387
2217
|
|
|
@@ -3001,7 +2831,7 @@ declare module 'stripe' {
|
|
|
3001
2831
|
|
|
3002
2832
|
interface SessionUpdateParams {
|
|
3003
2833
|
/**
|
|
3004
|
-
* Information about the customer collected within the Checkout Session.
|
|
2834
|
+
* Information about the customer collected within the Checkout Session. Can only be set when updating `embedded` or `custom` sessions.
|
|
3005
2835
|
*/
|
|
3006
2836
|
collected_information?: SessionUpdateParams.CollectedInformation;
|
|
3007
2837
|
|
|
@@ -3010,23 +2840,6 @@ declare module 'stripe' {
|
|
|
3010
2840
|
*/
|
|
3011
2841
|
expand?: Array<string>;
|
|
3012
2842
|
|
|
3013
|
-
/**
|
|
3014
|
-
* A list of items the customer is purchasing.
|
|
3015
|
-
*
|
|
3016
|
-
* When updating line items, you must retransmit the entire array of line items.
|
|
3017
|
-
*
|
|
3018
|
-
* To retain an existing line item, specify its `id`.
|
|
3019
|
-
*
|
|
3020
|
-
* To update an existing line item, specify its `id` along with the new values of the fields to update.
|
|
3021
|
-
*
|
|
3022
|
-
* To add a new line item, specify a `price` and `quantity`.
|
|
3023
|
-
*
|
|
3024
|
-
* To remove an existing line item, omit the line item's ID from the retransmitted array.
|
|
3025
|
-
*
|
|
3026
|
-
* To reorder a line item, specify it at the desired position in the retransmitted array.
|
|
3027
|
-
*/
|
|
3028
|
-
line_items?: Array<SessionUpdateParams.LineItem>;
|
|
3029
|
-
|
|
3030
2843
|
/**
|
|
3031
2844
|
* 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`.
|
|
3032
2845
|
*/
|
|
@@ -3096,57 +2909,6 @@ declare module 'stripe' {
|
|
|
3096
2909
|
}
|
|
3097
2910
|
}
|
|
3098
2911
|
|
|
3099
|
-
interface LineItem {
|
|
3100
|
-
/**
|
|
3101
|
-
* When set, provides configuration for this item's quantity to be adjusted by the customer during Checkout.
|
|
3102
|
-
*/
|
|
3103
|
-
adjustable_quantity?: LineItem.AdjustableQuantity;
|
|
3104
|
-
|
|
3105
|
-
/**
|
|
3106
|
-
* ID of an existing line item.
|
|
3107
|
-
*/
|
|
3108
|
-
id?: string;
|
|
3109
|
-
|
|
3110
|
-
/**
|
|
3111
|
-
* 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`.
|
|
3112
|
-
*/
|
|
3113
|
-
metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
|
|
3114
|
-
|
|
3115
|
-
/**
|
|
3116
|
-
* The ID of the [Price](https://stripe.com/docs/api/prices).
|
|
3117
|
-
*/
|
|
3118
|
-
price?: string;
|
|
3119
|
-
|
|
3120
|
-
/**
|
|
3121
|
-
* The quantity of the line item being purchased.
|
|
3122
|
-
*/
|
|
3123
|
-
quantity?: number;
|
|
3124
|
-
|
|
3125
|
-
/**
|
|
3126
|
-
* The [tax rates](https://stripe.com/docs/api/tax_rates) which apply to this line item.
|
|
3127
|
-
*/
|
|
3128
|
-
tax_rates?: Stripe.Emptyable<Array<string>>;
|
|
3129
|
-
}
|
|
3130
|
-
|
|
3131
|
-
namespace LineItem {
|
|
3132
|
-
interface AdjustableQuantity {
|
|
3133
|
-
/**
|
|
3134
|
-
* Set to true if the quantity can be adjusted to any positive integer. Setting to false will remove any previously specified constraints on quantity.
|
|
3135
|
-
*/
|
|
3136
|
-
enabled: boolean;
|
|
3137
|
-
|
|
3138
|
-
/**
|
|
3139
|
-
* 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.
|
|
3140
|
-
*/
|
|
3141
|
-
maximum?: number;
|
|
3142
|
-
|
|
3143
|
-
/**
|
|
3144
|
-
* The minimum quantity the customer must purchase for the Checkout Session. By default this value is 0.
|
|
3145
|
-
*/
|
|
3146
|
-
minimum?: number;
|
|
3147
|
-
}
|
|
3148
|
-
}
|
|
3149
|
-
|
|
3150
2912
|
interface ShippingOption {
|
|
3151
2913
|
/**
|
|
3152
2914
|
* The ID of the Shipping Rate to use for this shipping option.
|
|
@@ -3297,11 +3059,6 @@ declare module 'stripe' {
|
|
|
3297
3059
|
*/
|
|
3298
3060
|
customer?: string;
|
|
3299
3061
|
|
|
3300
|
-
/**
|
|
3301
|
-
* Only return the Checkout Sessions for the Account specified.
|
|
3302
|
-
*/
|
|
3303
|
-
customer_account?: string;
|
|
3304
|
-
|
|
3305
3062
|
/**
|
|
3306
3063
|
* Only return the Checkout Sessions for the Customer details specified.
|
|
3307
3064
|
*/
|
|
@@ -211,8 +211,6 @@ declare module 'stripe' {
|
|
|
211
211
|
*/
|
|
212
212
|
customer: string | Stripe.Customer | null;
|
|
213
213
|
|
|
214
|
-
customer_account?: string | null;
|
|
215
|
-
|
|
216
214
|
customer_balance?: PaymentMethodPreview.CustomerBalance;
|
|
217
215
|
|
|
218
216
|
eps?: PaymentMethodPreview.Eps;
|
|
@@ -221,12 +219,8 @@ declare module 'stripe' {
|
|
|
221
219
|
|
|
222
220
|
giropay?: PaymentMethodPreview.Giropay;
|
|
223
221
|
|
|
224
|
-
gopay?: PaymentMethodPreview.Gopay;
|
|
225
|
-
|
|
226
222
|
grabpay?: PaymentMethodPreview.Grabpay;
|
|
227
223
|
|
|
228
|
-
id_bank_transfer?: PaymentMethodPreview.IdBankTransfer;
|
|
229
|
-
|
|
230
224
|
ideal?: PaymentMethodPreview.Ideal;
|
|
231
225
|
|
|
232
226
|
interac_present?: PaymentMethodPreview.InteracPresent;
|
|
@@ -241,8 +235,6 @@ declare module 'stripe' {
|
|
|
241
235
|
|
|
242
236
|
link?: PaymentMethodPreview.Link;
|
|
243
237
|
|
|
244
|
-
mb_way?: PaymentMethodPreview.MbWay;
|
|
245
|
-
|
|
246
238
|
mobilepay?: PaymentMethodPreview.Mobilepay;
|
|
247
239
|
|
|
248
240
|
multibanco?: PaymentMethodPreview.Multibanco;
|
|
@@ -263,16 +255,10 @@ declare module 'stripe' {
|
|
|
263
255
|
|
|
264
256
|
paypal?: PaymentMethodPreview.Paypal;
|
|
265
257
|
|
|
266
|
-
payto?: PaymentMethodPreview.Payto;
|
|
267
|
-
|
|
268
258
|
pix?: PaymentMethodPreview.Pix;
|
|
269
259
|
|
|
270
260
|
promptpay?: PaymentMethodPreview.Promptpay;
|
|
271
261
|
|
|
272
|
-
qris?: PaymentMethodPreview.Qris;
|
|
273
|
-
|
|
274
|
-
rechnung?: PaymentMethodPreview.Rechnung;
|
|
275
|
-
|
|
276
262
|
revolut_pay?: PaymentMethodPreview.RevolutPay;
|
|
277
263
|
|
|
278
264
|
samsung_pay?: PaymentMethodPreview.SamsungPay;
|
|
@@ -281,12 +267,8 @@ declare module 'stripe' {
|
|
|
281
267
|
|
|
282
268
|
sepa_debit?: PaymentMethodPreview.SepaDebit;
|
|
283
269
|
|
|
284
|
-
shopeepay?: PaymentMethodPreview.Shopeepay;
|
|
285
|
-
|
|
286
270
|
sofort?: PaymentMethodPreview.Sofort;
|
|
287
271
|
|
|
288
|
-
stripe_balance?: PaymentMethodPreview.StripeBalance;
|
|
289
|
-
|
|
290
272
|
swish?: PaymentMethodPreview.Swish;
|
|
291
273
|
|
|
292
274
|
twint?: PaymentMethodPreview.Twint;
|
|
@@ -401,6 +383,11 @@ declare module 'stripe' {
|
|
|
401
383
|
* Billing phone number (including extension).
|
|
402
384
|
*/
|
|
403
385
|
phone: string | null;
|
|
386
|
+
|
|
387
|
+
/**
|
|
388
|
+
* Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
|
|
389
|
+
*/
|
|
390
|
+
tax_id: string | null;
|
|
404
391
|
}
|
|
405
392
|
|
|
406
393
|
interface Blik {}
|
|
@@ -1104,24 +1091,8 @@ declare module 'stripe' {
|
|
|
1104
1091
|
|
|
1105
1092
|
interface Giropay {}
|
|
1106
1093
|
|
|
1107
|
-
interface Gopay {}
|
|
1108
|
-
|
|
1109
1094
|
interface Grabpay {}
|
|
1110
1095
|
|
|
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
|
-
|
|
1125
1096
|
interface Ideal {
|
|
1126
1097
|
/**
|
|
1127
1098
|
* 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`.
|
|
@@ -1349,8 +1320,6 @@ declare module 'stripe' {
|
|
|
1349
1320
|
persistent_token?: string;
|
|
1350
1321
|
}
|
|
1351
1322
|
|
|
1352
|
-
interface MbWay {}
|
|
1353
|
-
|
|
1354
1323
|
interface Mobilepay {}
|
|
1355
1324
|
|
|
1356
1325
|
interface Multibanco {}
|
|
@@ -1454,11 +1423,6 @@ declare module 'stripe' {
|
|
|
1454
1423
|
*/
|
|
1455
1424
|
country: string | null;
|
|
1456
1425
|
|
|
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
|
-
|
|
1462
1426
|
/**
|
|
1463
1427
|
* Owner's email. Values are provided by PayPal directly
|
|
1464
1428
|
* (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
|
@@ -1469,60 +1433,12 @@ declare module 'stripe' {
|
|
|
1469
1433
|
* PayPal account PayerID. This identifier uniquely identifies the PayPal customer.
|
|
1470
1434
|
*/
|
|
1471
1435
|
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;
|
|
1495
1436
|
}
|
|
1496
1437
|
|
|
1497
1438
|
interface Pix {}
|
|
1498
1439
|
|
|
1499
1440
|
interface Promptpay {}
|
|
1500
1441
|
|
|
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
|
-
|
|
1526
1442
|
interface RevolutPay {}
|
|
1527
1443
|
|
|
1528
1444
|
interface SamsungPay {}
|
|
@@ -1575,8 +1491,6 @@ declare module 'stripe' {
|
|
|
1575
1491
|
}
|
|
1576
1492
|
}
|
|
1577
1493
|
|
|
1578
|
-
interface Shopeepay {}
|
|
1579
|
-
|
|
1580
1494
|
interface Sofort {
|
|
1581
1495
|
/**
|
|
1582
1496
|
* Two-letter ISO code representing the country the bank account is located in.
|
|
@@ -1584,22 +1498,6 @@ declare module 'stripe' {
|
|
|
1584
1498
|
country: string | null;
|
|
1585
1499
|
}
|
|
1586
1500
|
|
|
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
|
-
|
|
1603
1501
|
interface Swish {}
|
|
1604
1502
|
|
|
1605
1503
|
interface Twint {}
|
|
@@ -1624,9 +1522,7 @@ declare module 'stripe' {
|
|
|
1624
1522
|
| 'eps'
|
|
1625
1523
|
| 'fpx'
|
|
1626
1524
|
| 'giropay'
|
|
1627
|
-
| 'gopay'
|
|
1628
1525
|
| 'grabpay'
|
|
1629
|
-
| 'id_bank_transfer'
|
|
1630
1526
|
| 'ideal'
|
|
1631
1527
|
| 'interac_present'
|
|
1632
1528
|
| 'kakao_pay'
|
|
@@ -1634,7 +1530,6 @@ declare module 'stripe' {
|
|
|
1634
1530
|
| 'konbini'
|
|
1635
1531
|
| 'kr_card'
|
|
1636
1532
|
| 'link'
|
|
1637
|
-
| 'mb_way'
|
|
1638
1533
|
| 'mobilepay'
|
|
1639
1534
|
| 'multibanco'
|
|
1640
1535
|
| 'naver_pay'
|
|
@@ -1645,18 +1540,13 @@ declare module 'stripe' {
|
|
|
1645
1540
|
| 'payco'
|
|
1646
1541
|
| 'paynow'
|
|
1647
1542
|
| 'paypal'
|
|
1648
|
-
| 'payto'
|
|
1649
1543
|
| 'pix'
|
|
1650
1544
|
| 'promptpay'
|
|
1651
|
-
| 'qris'
|
|
1652
|
-
| 'rechnung'
|
|
1653
1545
|
| 'revolut_pay'
|
|
1654
1546
|
| 'samsung_pay'
|
|
1655
1547
|
| 'satispay'
|
|
1656
1548
|
| 'sepa_debit'
|
|
1657
|
-
| 'shopeepay'
|
|
1658
1549
|
| 'sofort'
|
|
1659
|
-
| 'stripe_balance'
|
|
1660
1550
|
| 'swish'
|
|
1661
1551
|
| 'twint'
|
|
1662
1552
|
| 'us_bank_account'
|
|
@@ -1669,11 +1559,6 @@ declare module 'stripe' {
|
|
|
1669
1559
|
*/
|
|
1670
1560
|
account_holder_type: UsBankAccount.AccountHolderType | null;
|
|
1671
1561
|
|
|
1672
|
-
/**
|
|
1673
|
-
* Account number of the bank account.
|
|
1674
|
-
*/
|
|
1675
|
-
account_number?: string | null;
|
|
1676
|
-
|
|
1677
1562
|
/**
|
|
1678
1563
|
* Account type: checkings or savings. Defaults to checking if omitted.
|
|
1679
1564
|
*/
|
|
@@ -56,11 +56,6 @@ 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
|
-
|
|
64
59
|
/**
|
|
65
60
|
* The tax rates which apply to the line item.
|
|
66
61
|
*/
|
|
@@ -186,18 +181,6 @@ declare module 'stripe' {
|
|
|
186
181
|
}
|
|
187
182
|
}
|
|
188
183
|
|
|
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
|
-
|
|
201
184
|
type Type = 'custom_line_item' | 'invoice_line_item';
|
|
202
185
|
}
|
|
203
186
|
}
|
package/types/CreditNotes.d.ts
CHANGED
|
@@ -43,11 +43,6 @@ declare module 'stripe' {
|
|
|
43
43
|
*/
|
|
44
44
|
customer: string | Stripe.Customer | Stripe.DeletedCustomer;
|
|
45
45
|
|
|
46
|
-
/**
|
|
47
|
-
* ID of the account.
|
|
48
|
-
*/
|
|
49
|
-
customer_account?: string | null;
|
|
50
|
-
|
|
51
46
|
/**
|
|
52
47
|
* Customer balance transaction related to this credit note.
|
|
53
48
|
*/
|
|
@@ -111,10 +106,6 @@ declare module 'stripe' {
|
|
|
111
106
|
*/
|
|
112
107
|
pdf: string;
|
|
113
108
|
|
|
114
|
-
post_payment_amount?: number;
|
|
115
|
-
|
|
116
|
-
pre_payment_amount?: number;
|
|
117
|
-
|
|
118
109
|
/**
|
|
119
110
|
* The pretax credit amounts (ex: discount, credit grants, etc) for all line items.
|
|
120
111
|
*/
|