stripe 18.2.0-beta.1 → 18.2.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 +183 -1211
- package/OPENAPI_VERSION +1 -1
- package/README.md +11 -12
- package/VERSION +1 -1
- package/cjs/Error.js +1 -91
- package/cjs/RequestSender.js +3 -3
- package/cjs/StripeResource.js +1 -1
- package/cjs/apiVersion.js +1 -1
- package/cjs/resources/FinancialConnections/Accounts.js +0 -5
- package/cjs/resources/{PaymentAttemptRecords.js → InvoicePayments.js} +4 -4
- package/cjs/resources/PaymentIntents.js +0 -13
- package/cjs/resources/Quotes.js +0 -32
- package/cjs/resources/SubscriptionSchedules.js +0 -4
- package/cjs/resources/Terminal/Readers.js +0 -8
- package/cjs/resources.js +18 -108
- package/cjs/stripe.core.js +1 -1
- package/cjs/utils.js +5 -0
- package/esm/Error.js +0 -79
- package/esm/RequestSender.js +3 -3
- package/esm/StripeResource.js +1 -1
- package/esm/apiVersion.js +1 -1
- package/esm/resources/FinancialConnections/Accounts.js +0 -5
- package/esm/resources/{PaymentAttemptRecords.js → InvoicePayments.js} +3 -3
- package/esm/resources/PaymentIntents.js +0 -13
- package/esm/resources/Quotes.js +0 -32
- package/esm/resources/SubscriptionSchedules.js +0 -4
- package/esm/resources/Terminal/Readers.js +0 -8
- package/esm/resources.js +1 -84
- package/esm/stripe.core.js +1 -1
- package/esm/utils.js +5 -0
- package/package.json +1 -1
- package/types/AccountLinksResource.d.ts +1 -5
- package/types/AccountSessions.d.ts +52 -32
- package/types/AccountSessionsResource.d.ts +23 -246
- package/types/Accounts.d.ts +19 -223
- package/types/AccountsResource.d.ts +61 -581
- package/types/Balance.d.ts +83 -1
- package/types/BalanceResource.d.ts +1 -1
- package/types/BalanceTransactions.d.ts +10 -0
- package/types/BankAccounts.d.ts +3 -3
- package/types/Billing/Alerts.d.ts +1 -1
- package/types/Billing/AlertsResource.d.ts +2 -2
- 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 +1 -6
- package/types/BillingPortal/SessionsResource.d.ts +4 -12
- package/types/Capabilities.d.ts +1 -1
- package/types/Cards.d.ts +2 -7
- package/types/CashBalances.d.ts +0 -5
- package/types/Charges.d.ts +20 -166
- package/types/ChargesResource.d.ts +4 -1318
- package/types/Checkout/Sessions.d.ts +120 -418
- package/types/Checkout/SessionsResource.d.ts +118 -448
- package/types/ConfirmationTokens.d.ts +4 -129
- package/types/CountrySpecs.d.ts +1 -1
- package/types/Coupons.d.ts +0 -33
- package/types/CouponsResource.d.ts +0 -21
- package/types/CreditNoteLineItems.d.ts +0 -17
- package/types/CreditNotes.d.ts +11 -10
- package/types/CreditNotesResource.d.ts +7 -13
- package/types/CustomerBalanceTransactions.d.ts +0 -2
- package/types/CustomerCashBalanceTransactions.d.ts +0 -2
- package/types/CustomerSessions.d.ts +3 -8
- package/types/CustomerSessionsResource.d.ts +1 -6
- package/types/Customers.d.ts +0 -2
- package/types/CustomersResource.d.ts +7 -15
- package/types/Discounts.d.ts +0 -10
- package/types/Disputes.d.ts +1 -1
- package/types/DisputesResource.d.ts +1 -1
- package/types/Errors.d.ts +2 -69
- package/types/EventTypes.d.ts +17 -698
- package/types/Events.d.ts +4 -99
- package/types/Files.d.ts +1 -1
- package/types/FilesResource.d.ts +1 -1
- 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/VerificationReports.d.ts +17 -0
- package/types/Identity/VerificationSessions.d.ts +19 -7
- package/types/Identity/VerificationSessionsResource.d.ts +5 -12
- package/types/InvoiceItems.d.ts +1 -11
- package/types/InvoiceItemsResource.d.ts +6 -117
- package/types/InvoiceLineItems.d.ts +2 -46
- package/types/InvoicePayments.d.ts +9 -7
- package/types/InvoicePaymentsResource.d.ts +74 -0
- package/types/Invoices.d.ts +10 -142
- package/types/InvoicesResource.d.ts +66 -1469
- package/types/Issuing/AuthorizationsResource.d.ts +4 -4
- package/types/Issuing/CardholdersResource.d.ts +1 -2
- package/types/Issuing/CardsResource.d.ts +3 -0
- package/types/Issuing/DisputesResource.d.ts +2 -2
- package/types/Issuing/Transactions.d.ts +0 -5
- package/types/Issuing/TransactionsResource.d.ts +0 -5
- package/types/LineItems.d.ts +2 -51
- package/types/Mandates.d.ts +0 -77
- package/types/PaymentIntents.d.ts +145 -856
- package/types/PaymentIntentsResource.d.ts +4307 -8780
- package/types/PaymentLinks.d.ts +0 -6
- package/types/PaymentLinksResource.d.ts +0 -12
- package/types/PaymentMethodConfigurations.d.ts +70 -70
- package/types/PaymentMethodConfigurationsResource.d.ts +164 -164
- package/types/PaymentMethodDomainsResource.d.ts +1 -1
- package/types/PaymentMethods.d.ts +4 -129
- package/types/PaymentMethodsResource.d.ts +10 -175
- package/types/Payouts.d.ts +2 -7
- package/types/PayoutsResource.d.ts +2 -7
- package/types/Persons.d.ts +10 -10
- package/types/PlansResource.d.ts +1 -1
- package/types/Prices.d.ts +0 -22
- package/types/PricesResource.d.ts +2 -24
- package/types/Products.d.ts +0 -39
- package/types/ProductsResource.d.ts +1 -37
- package/types/PromotionCodes.d.ts +0 -5
- package/types/PromotionCodesResource.d.ts +1 -11
- package/types/Quotes.d.ts +7 -609
- package/types/QuotesResource.d.ts +224 -2578
- package/types/Radar/EarlyFraudWarningsResource.d.ts +1 -1
- package/types/Refunds.d.ts +6 -15
- package/types/Reviews.d.ts +1 -1
- package/types/SetupAttempts.d.ts +2 -50
- package/types/SetupIntents.d.ts +4 -122
- package/types/SetupIntentsResource.d.ts +6 -733
- package/types/Sources.d.ts +0 -29
- package/types/SourcesResource.d.ts +1 -1
- package/types/SubscriptionItems.d.ts +8 -17
- package/types/SubscriptionItemsResource.d.ts +28 -109
- package/types/SubscriptionSchedules.d.ts +47 -213
- package/types/SubscriptionSchedulesResource.d.ts +104 -1243
- package/types/Subscriptions.d.ts +16 -102
- package/types/SubscriptionsResource.d.ts +80 -407
- package/types/Tax/CalculationLineItems.d.ts +5 -0
- package/types/Tax/CalculationsResource.d.ts +5 -0
- package/types/Tax/RegistrationsResource.d.ts +1 -1
- package/types/TaxIds.d.ts +0 -10
- package/types/TaxIdsResource.d.ts +0 -10
- package/types/TaxRates.d.ts +2 -2
- package/types/Terminal/LocationsResource.d.ts +1 -1
- package/types/Terminal/Readers.d.ts +7 -89
- package/types/Terminal/ReadersResource.d.ts +6 -82
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -126
- package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
- package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
- package/types/Tokens.d.ts +3 -3
- package/types/TokensResource.d.ts +8 -8
- package/types/TransferReversals.d.ts +1 -1
- package/types/Transfers.d.ts +0 -5
- package/types/TransfersResource.d.ts +2 -7
- 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 +2 -28
- package/types/Treasury/ReceivedDebits.d.ts +0 -31
- package/types/V2/EventTypes.d.ts +1 -812
- package/types/WebhookEndpointsResource.d.ts +4 -83
- package/types/index.d.ts +5 -145
- 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/FxQuotes.js +0 -15
- 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 -42
- 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 -16
- 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/FxQuotes.js +0 -12
- 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 -39
- 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 -13
- 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 -89
- 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/FxQuotes.d.ts +0 -153
- package/types/FxQuotesResource.d.ts +0 -130
- 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 -1199
- package/types/OrdersResource.d.ts +0 -3001
- package/types/PaymentAttemptRecords.d.ts +0 -2112
- package/types/PaymentAttemptRecordsResource.d.ts +0 -47
- package/types/PaymentIntentAmountDetailsLineItems.d.ts +0 -110
- package/types/PaymentRecords.d.ts +0 -2105
- package/types/PaymentRecordsResource.d.ts +0 -455
- package/types/Privacy/RedactionJobValidationErrors.d.ts +0 -30
- package/types/Privacy/RedactionJobs.d.ts +0 -65
- package/types/Privacy/RedactionJobsResource.d.ts +0 -218
- package/types/QuoteLines.d.ts +0 -634
- package/types/QuotePreviewInvoices.d.ts +0 -1697
- package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -785
- 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 -106
- package/types/V2/Core/AccountLinksResource.d.ts +0 -90
- package/types/V2/Core/Accounts/PersonsResource.d.ts +0 -3770
- package/types/V2/Core/Accounts.d.ts +0 -8169
- package/types/V2/Core/AccountsResource.d.ts +0 -10203
- package/types/V2/Core/Persons.d.ts +0 -1867
- package/types/V2/Core/Vault/GbBankAccounts.d.ts +0 -160
- package/types/V2/Core/Vault/GbBankAccountsResource.d.ts +0 -172
- package/types/V2/Core/Vault/UsBankAccounts.d.ts +0 -70
- package/types/V2/Core/Vault/UsBankAccountsResource.d.ts +0 -123
- package/types/V2/FinancialAddressCreditSimulations.d.ts +0 -27
- package/types/V2/FinancialAddressGeneratedMicrodeposits.d.ts +0 -32
- package/types/V2/MoneyManagement/Adjustments.d.ts +0 -110
- package/types/V2/MoneyManagement/AdjustmentsResource.d.ts +0 -83
- package/types/V2/MoneyManagement/FinancialAccounts.d.ts +0 -546
- package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +0 -52
- package/types/V2/MoneyManagement/FinancialAddresses.d.ts +0 -314
- package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +0 -288
- package/types/V2/MoneyManagement/InboundTransfers.d.ts +0 -206
- package/types/V2/MoneyManagement/InboundTransfersResource.d.ts +0 -144
- package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +0 -168
- package/types/V2/MoneyManagement/OutboundPaymentQuotesResource.d.ts +0 -115
- package/types/V2/MoneyManagement/OutboundPayments.d.ts +0 -278
- package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +0 -242
- package/types/V2/MoneyManagement/OutboundSetupIntents.d.ts +0 -97
- package/types/V2/MoneyManagement/OutboundSetupIntentsResource.d.ts +0 -296
- package/types/V2/MoneyManagement/OutboundTransfers.d.ts +0 -251
- package/types/V2/MoneyManagement/OutboundTransfersResource.d.ts +0 -207
- package/types/V2/MoneyManagement/PayoutMethods.d.ts +0 -151
- package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecResource.d.ts +0 -41
- package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecs.d.ts +0 -87
- package/types/V2/MoneyManagement/PayoutMethodsResource.d.ts +0 -113
- package/types/V2/MoneyManagement/ReceivedCredits.d.ts +0 -285
- package/types/V2/MoneyManagement/ReceivedCreditsResource.d.ts +0 -78
- package/types/V2/MoneyManagement/ReceivedDebits.d.ts +0 -224
- package/types/V2/MoneyManagement/ReceivedDebitsResource.d.ts +0 -48
- package/types/V2/MoneyManagement/TransactionEntries.d.ts +0 -155
- package/types/V2/MoneyManagement/TransactionEntriesResource.d.ts +0 -82
- package/types/V2/MoneyManagement/Transactions.d.ts +0 -170
- package/types/V2/MoneyManagement/TransactionsResource.d.ts +0 -83
- package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +0 -66
|
@@ -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;
|
|
@@ -305,11 +287,6 @@ declare module 'stripe' {
|
|
|
305
287
|
|
|
306
288
|
namespace PaymentMethodPreview {
|
|
307
289
|
interface AcssDebit {
|
|
308
|
-
/**
|
|
309
|
-
* Account number of the bank account.
|
|
310
|
-
*/
|
|
311
|
-
account_number?: string | null;
|
|
312
|
-
|
|
313
290
|
/**
|
|
314
291
|
* Name of the bank associated with the bank account.
|
|
315
292
|
*/
|
|
@@ -778,7 +755,7 @@ declare module 'stripe' {
|
|
|
778
755
|
|
|
779
756
|
interface Networks {
|
|
780
757
|
/**
|
|
781
|
-
* All networks available for selection via [payment_method_options.card.network](https://stripe.com/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network).
|
|
758
|
+
* All networks available for selection via [payment_method_options.card.network](https://docs.stripe.com/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network).
|
|
782
759
|
*/
|
|
783
760
|
available: Array<string>;
|
|
784
761
|
|
|
@@ -978,7 +955,7 @@ declare module 'stripe' {
|
|
|
978
955
|
namespace CardPresent {
|
|
979
956
|
interface Networks {
|
|
980
957
|
/**
|
|
981
|
-
* All networks available for selection via [payment_method_options.card.network](https://stripe.com/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network).
|
|
958
|
+
* All networks available for selection via [payment_method_options.card.network](https://docs.stripe.com/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network).
|
|
982
959
|
*/
|
|
983
960
|
available: Array<string>;
|
|
984
961
|
|
|
@@ -1114,24 +1091,8 @@ declare module 'stripe' {
|
|
|
1114
1091
|
|
|
1115
1092
|
interface Giropay {}
|
|
1116
1093
|
|
|
1117
|
-
interface Gopay {}
|
|
1118
|
-
|
|
1119
1094
|
interface Grabpay {}
|
|
1120
1095
|
|
|
1121
|
-
interface IdBankTransfer {
|
|
1122
|
-
bank: IdBankTransfer.Bank | null;
|
|
1123
|
-
|
|
1124
|
-
bank_code: string | null;
|
|
1125
|
-
|
|
1126
|
-
bank_name: string | null;
|
|
1127
|
-
|
|
1128
|
-
display_name: string | null;
|
|
1129
|
-
}
|
|
1130
|
-
|
|
1131
|
-
namespace IdBankTransfer {
|
|
1132
|
-
type Bank = 'bca' | 'bni' | 'bri' | 'cimb' | 'permata';
|
|
1133
|
-
}
|
|
1134
|
-
|
|
1135
1096
|
interface Ideal {
|
|
1136
1097
|
/**
|
|
1137
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`.
|
|
@@ -1260,7 +1221,7 @@ declare module 'stripe' {
|
|
|
1260
1221
|
namespace InteracPresent {
|
|
1261
1222
|
interface Networks {
|
|
1262
1223
|
/**
|
|
1263
|
-
* All networks available for selection via [payment_method_options.card.network](https://stripe.com/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network).
|
|
1224
|
+
* All networks available for selection via [payment_method_options.card.network](https://docs.stripe.com/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network).
|
|
1264
1225
|
*/
|
|
1265
1226
|
available: Array<string>;
|
|
1266
1227
|
|
|
@@ -1359,8 +1320,6 @@ declare module 'stripe' {
|
|
|
1359
1320
|
persistent_token?: string;
|
|
1360
1321
|
}
|
|
1361
1322
|
|
|
1362
|
-
interface MbWay {}
|
|
1363
|
-
|
|
1364
1323
|
interface Mobilepay {}
|
|
1365
1324
|
|
|
1366
1325
|
interface Multibanco {}
|
|
@@ -1369,7 +1328,7 @@ declare module 'stripe' {
|
|
|
1369
1328
|
/**
|
|
1370
1329
|
* Uniquely identifies this particular Naver Pay account. You can use this attribute to check whether two Naver Pay accounts are the same.
|
|
1371
1330
|
*/
|
|
1372
|
-
buyer_id
|
|
1331
|
+
buyer_id: string | null;
|
|
1373
1332
|
|
|
1374
1333
|
/**
|
|
1375
1334
|
* Whether to fund this transaction with Naver Pay points or a card.
|
|
@@ -1464,11 +1423,6 @@ declare module 'stripe' {
|
|
|
1464
1423
|
*/
|
|
1465
1424
|
country: string | null;
|
|
1466
1425
|
|
|
1467
|
-
/**
|
|
1468
|
-
* Uniquely identifies this particular PayPal account. You can use this attribute to check whether two PayPal accounts are the same.
|
|
1469
|
-
*/
|
|
1470
|
-
fingerprint?: string | null;
|
|
1471
|
-
|
|
1472
1426
|
/**
|
|
1473
1427
|
* Owner's email. Values are provided by PayPal directly
|
|
1474
1428
|
* (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
|
@@ -1479,60 +1433,12 @@ declare module 'stripe' {
|
|
|
1479
1433
|
* PayPal account PayerID. This identifier uniquely identifies the PayPal customer.
|
|
1480
1434
|
*/
|
|
1481
1435
|
payer_id: string | null;
|
|
1482
|
-
|
|
1483
|
-
/**
|
|
1484
|
-
* Owner's verified email. Values are verified or provided by PayPal directly
|
|
1485
|
-
* (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
|
1486
|
-
*/
|
|
1487
|
-
verified_email?: string | null;
|
|
1488
|
-
}
|
|
1489
|
-
|
|
1490
|
-
interface Payto {
|
|
1491
|
-
/**
|
|
1492
|
-
* Bank-State-Branch number of the bank account.
|
|
1493
|
-
*/
|
|
1494
|
-
bsb_number: string | null;
|
|
1495
|
-
|
|
1496
|
-
/**
|
|
1497
|
-
* Last four digits of the bank account number.
|
|
1498
|
-
*/
|
|
1499
|
-
last4: string | null;
|
|
1500
|
-
|
|
1501
|
-
/**
|
|
1502
|
-
* The PayID alias for the bank account.
|
|
1503
|
-
*/
|
|
1504
|
-
pay_id: string | null;
|
|
1505
1436
|
}
|
|
1506
1437
|
|
|
1507
1438
|
interface Pix {}
|
|
1508
1439
|
|
|
1509
1440
|
interface Promptpay {}
|
|
1510
1441
|
|
|
1511
|
-
interface Qris {}
|
|
1512
|
-
|
|
1513
|
-
interface Rechnung {
|
|
1514
|
-
dob?: Rechnung.Dob;
|
|
1515
|
-
}
|
|
1516
|
-
|
|
1517
|
-
namespace Rechnung {
|
|
1518
|
-
interface Dob {
|
|
1519
|
-
/**
|
|
1520
|
-
* The day of birth, between 1 and 31.
|
|
1521
|
-
*/
|
|
1522
|
-
day: number;
|
|
1523
|
-
|
|
1524
|
-
/**
|
|
1525
|
-
* The month of birth, between 1 and 12.
|
|
1526
|
-
*/
|
|
1527
|
-
month: number;
|
|
1528
|
-
|
|
1529
|
-
/**
|
|
1530
|
-
* The four-digit year of birth.
|
|
1531
|
-
*/
|
|
1532
|
-
year: number;
|
|
1533
|
-
}
|
|
1534
|
-
}
|
|
1535
|
-
|
|
1536
1442
|
interface RevolutPay {}
|
|
1537
1443
|
|
|
1538
1444
|
interface SamsungPay {}
|
|
@@ -1585,8 +1491,6 @@ declare module 'stripe' {
|
|
|
1585
1491
|
}
|
|
1586
1492
|
}
|
|
1587
1493
|
|
|
1588
|
-
interface Shopeepay {}
|
|
1589
|
-
|
|
1590
1494
|
interface Sofort {
|
|
1591
1495
|
/**
|
|
1592
1496
|
* Two-letter ISO code representing the country the bank account is located in.
|
|
@@ -1594,22 +1498,6 @@ declare module 'stripe' {
|
|
|
1594
1498
|
country: string | null;
|
|
1595
1499
|
}
|
|
1596
1500
|
|
|
1597
|
-
interface StripeBalance {
|
|
1598
|
-
/**
|
|
1599
|
-
* The connected account ID whose Stripe balance to use as the source of payment
|
|
1600
|
-
*/
|
|
1601
|
-
account?: string | null;
|
|
1602
|
-
|
|
1603
|
-
/**
|
|
1604
|
-
* The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
|
|
1605
|
-
*/
|
|
1606
|
-
source_type: StripeBalance.SourceType;
|
|
1607
|
-
}
|
|
1608
|
-
|
|
1609
|
-
namespace StripeBalance {
|
|
1610
|
-
type SourceType = 'bank_account' | 'card' | 'fpx';
|
|
1611
|
-
}
|
|
1612
|
-
|
|
1613
1501
|
interface Swish {}
|
|
1614
1502
|
|
|
1615
1503
|
interface Twint {}
|
|
@@ -1634,9 +1522,7 @@ declare module 'stripe' {
|
|
|
1634
1522
|
| 'eps'
|
|
1635
1523
|
| 'fpx'
|
|
1636
1524
|
| 'giropay'
|
|
1637
|
-
| 'gopay'
|
|
1638
1525
|
| 'grabpay'
|
|
1639
|
-
| 'id_bank_transfer'
|
|
1640
1526
|
| 'ideal'
|
|
1641
1527
|
| 'interac_present'
|
|
1642
1528
|
| 'kakao_pay'
|
|
@@ -1644,7 +1530,6 @@ declare module 'stripe' {
|
|
|
1644
1530
|
| 'konbini'
|
|
1645
1531
|
| 'kr_card'
|
|
1646
1532
|
| 'link'
|
|
1647
|
-
| 'mb_way'
|
|
1648
1533
|
| 'mobilepay'
|
|
1649
1534
|
| 'multibanco'
|
|
1650
1535
|
| 'naver_pay'
|
|
@@ -1655,18 +1540,13 @@ declare module 'stripe' {
|
|
|
1655
1540
|
| 'payco'
|
|
1656
1541
|
| 'paynow'
|
|
1657
1542
|
| 'paypal'
|
|
1658
|
-
| 'payto'
|
|
1659
1543
|
| 'pix'
|
|
1660
1544
|
| 'promptpay'
|
|
1661
|
-
| 'qris'
|
|
1662
|
-
| 'rechnung'
|
|
1663
1545
|
| 'revolut_pay'
|
|
1664
1546
|
| 'samsung_pay'
|
|
1665
1547
|
| 'satispay'
|
|
1666
1548
|
| 'sepa_debit'
|
|
1667
|
-
| 'shopeepay'
|
|
1668
1549
|
| 'sofort'
|
|
1669
|
-
| 'stripe_balance'
|
|
1670
1550
|
| 'swish'
|
|
1671
1551
|
| 'twint'
|
|
1672
1552
|
| 'us_bank_account'
|
|
@@ -1679,11 +1559,6 @@ declare module 'stripe' {
|
|
|
1679
1559
|
*/
|
|
1680
1560
|
account_holder_type: UsBankAccount.AccountHolderType | null;
|
|
1681
1561
|
|
|
1682
|
-
/**
|
|
1683
|
-
* Account number of the bank account.
|
|
1684
|
-
*/
|
|
1685
|
-
account_number?: string | null;
|
|
1686
|
-
|
|
1687
1562
|
/**
|
|
1688
1563
|
* Account type: checkings or savings. Defaults to checking if omitted.
|
|
1689
1564
|
*/
|
package/types/CountrySpecs.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ declare module 'stripe' {
|
|
|
8
8
|
* Country Specs API makes these rules available to your integration.
|
|
9
9
|
*
|
|
10
10
|
* You can also view the information from this API call as [an online
|
|
11
|
-
* guide](https://stripe.com/docs/connect/required-verification-information).
|
|
11
|
+
* guide](https://docs.stripe.com/docs/connect/required-verification-information).
|
|
12
12
|
*/
|
|
13
13
|
interface CountrySpec {
|
|
14
14
|
/**
|
package/types/Coupons.d.ts
CHANGED
|
@@ -87,21 +87,11 @@ declare module 'stripe' {
|
|
|
87
87
|
*/
|
|
88
88
|
redeem_by: number | null;
|
|
89
89
|
|
|
90
|
-
/**
|
|
91
|
-
* Configuration of the [script](https://docs.stripe.com/billing/subscriptions/script-coupons) used to calculate the discount.
|
|
92
|
-
*/
|
|
93
|
-
script?: Coupon.Script | null;
|
|
94
|
-
|
|
95
90
|
/**
|
|
96
91
|
* Number of times this coupon has been applied to a customer.
|
|
97
92
|
*/
|
|
98
93
|
times_redeemed: number;
|
|
99
94
|
|
|
100
|
-
/**
|
|
101
|
-
* One of `amount_off`, `percent_off`, or `script`. Describes the type of coupon logic used to calculate the discount.
|
|
102
|
-
*/
|
|
103
|
-
type?: Coupon.Type | null;
|
|
104
|
-
|
|
105
95
|
/**
|
|
106
96
|
* Taking account of the above properties, whether this coupon can still be applied to a customer.
|
|
107
97
|
*/
|
|
@@ -124,29 +114,6 @@ declare module 'stripe' {
|
|
|
124
114
|
}
|
|
125
115
|
|
|
126
116
|
type Duration = 'forever' | 'once' | 'repeating';
|
|
127
|
-
|
|
128
|
-
interface Script {
|
|
129
|
-
/**
|
|
130
|
-
* The configuration values of the script. The keys and values are specific to the script implementation.
|
|
131
|
-
*/
|
|
132
|
-
configuration: Script.Configuration;
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* The name of the script used to calculate the discount.
|
|
136
|
-
*/
|
|
137
|
-
display_name: string;
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* The script implementation ID for this coupon.
|
|
141
|
-
*/
|
|
142
|
-
id: string;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
namespace Script {
|
|
146
|
-
interface Configuration {}
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
type Type = 'amount_off' | 'percent_off' | 'script';
|
|
150
117
|
}
|
|
151
118
|
|
|
152
119
|
/**
|
|
@@ -69,11 +69,6 @@ declare module 'stripe' {
|
|
|
69
69
|
* Unix timestamp specifying the last time at which the coupon can be redeemed. After the redeem_by date, the coupon can no longer be applied to new customers.
|
|
70
70
|
*/
|
|
71
71
|
redeem_by?: number;
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* Configuration of the [script](https://docs.stripe.com/billing/subscriptions/script-coupons) used to calculate the discount.
|
|
75
|
-
*/
|
|
76
|
-
script?: CouponCreateParams.Script;
|
|
77
72
|
}
|
|
78
73
|
|
|
79
74
|
namespace CouponCreateParams {
|
|
@@ -92,22 +87,6 @@ declare module 'stripe' {
|
|
|
92
87
|
}
|
|
93
88
|
|
|
94
89
|
type Duration = 'forever' | 'once' | 'repeating';
|
|
95
|
-
|
|
96
|
-
interface Script {
|
|
97
|
-
/**
|
|
98
|
-
* The configuration values of the script. The keys and values are specific to the script implementation.
|
|
99
|
-
*/
|
|
100
|
-
configuration: Script.Configuration;
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* The script implementation ID for this coupon.
|
|
104
|
-
*/
|
|
105
|
-
id: string;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
namespace Script {
|
|
109
|
-
interface Configuration {}
|
|
110
|
-
}
|
|
111
90
|
}
|
|
112
91
|
|
|
113
92
|
interface CouponRetrieveParams {
|
|
@@ -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,9 +106,15 @@ declare module 'stripe' {
|
|
|
111
106
|
*/
|
|
112
107
|
pdf: string;
|
|
113
108
|
|
|
114
|
-
|
|
109
|
+
/**
|
|
110
|
+
* The amount of the credit note that was refunded to the customer, credited to the customer's balance, credited outside of Stripe, or any combination thereof.
|
|
111
|
+
*/
|
|
112
|
+
post_payment_amount: number;
|
|
115
113
|
|
|
116
|
-
|
|
114
|
+
/**
|
|
115
|
+
* The amount of the credit note by which the invoice's `amount_remaining` and `amount_due` were reduced.
|
|
116
|
+
*/
|
|
117
|
+
pre_payment_amount: number;
|
|
117
118
|
|
|
118
119
|
/**
|
|
119
120
|
* The pretax credit amounts (ex: discount, credit grants, etc) for all line items.
|
|
@@ -270,9 +271,9 @@ declare module 'stripe' {
|
|
|
270
271
|
amount: number;
|
|
271
272
|
|
|
272
273
|
/**
|
|
273
|
-
* Tax rates can be applied to [invoices](https://stripe.com/invoicing/taxes/tax-rates), [subscriptions](https://stripe.com/billing/taxes/tax-rates) and [Checkout Sessions](https://stripe.com/payments/checkout/use-manual-tax-rates) to collect tax.
|
|
274
|
+
* Tax rates can be applied to [invoices](https://docs.stripe.com/invoicing/taxes/tax-rates), [subscriptions](https://docs.stripe.com/billing/taxes/tax-rates) and [Checkout Sessions](https://docs.stripe.com/payments/checkout/use-manual-tax-rates) to collect tax.
|
|
274
275
|
*
|
|
275
|
-
* Related guide: [Tax rates](https://stripe.com/billing/taxes/tax-rates)
|
|
276
|
+
* Related guide: [Tax rates](https://docs.stripe.com/billing/taxes/tax-rates)
|
|
276
277
|
*/
|
|
277
278
|
rate: Stripe.TaxRate;
|
|
278
279
|
|
|
@@ -367,7 +368,7 @@ declare module 'stripe' {
|
|
|
367
368
|
}
|
|
368
369
|
}
|
|
369
370
|
|
|
370
|
-
type Type = 'post_payment' | 'pre_payment';
|
|
371
|
+
type Type = 'mixed' | 'post_payment' | 'pre_payment';
|
|
371
372
|
}
|
|
372
373
|
}
|
|
373
374
|
}
|
|
@@ -206,11 +206,6 @@ declare module 'stripe' {
|
|
|
206
206
|
*/
|
|
207
207
|
customer?: string;
|
|
208
208
|
|
|
209
|
-
/**
|
|
210
|
-
* Only return credit notes for the account specified by this account ID.
|
|
211
|
-
*/
|
|
212
|
-
customer_account?: string;
|
|
213
|
-
|
|
214
209
|
/**
|
|
215
210
|
* Specifies which fields in the response should be expanded.
|
|
216
211
|
*/
|
|
@@ -576,20 +571,19 @@ declare module 'stripe' {
|
|
|
576
571
|
|
|
577
572
|
class CreditNotesResource {
|
|
578
573
|
/**
|
|
579
|
-
* Issue a credit note to adjust the amount of a finalized invoice.
|
|
580
|
-
*
|
|
581
|
-
* in any combination of the following:
|
|
574
|
+
* Issue a credit note to adjust the amount of a finalized invoice. A credit note will first reduce the invoice's amount_remaining (and amount_due), but not below zero.
|
|
575
|
+
* This amount is indicated by the credit note's pre_payment_amount. The excess amount is indicated by post_payment_amount, and it can result in any combination of the following:
|
|
582
576
|
*
|
|
583
577
|
*
|
|
584
|
-
*
|
|
578
|
+
* Refunds: create a new refund (using refund_amount) or link existing refunds (using refunds).
|
|
585
579
|
* Customer balance credit: credit the customer's balance (using credit_amount) which will be automatically applied to their next invoice when it's finalized.
|
|
586
580
|
* Outside of Stripe credit: record the amount that is or will be credited outside of Stripe (using out_of_band_amount).
|
|
587
581
|
*
|
|
588
582
|
*
|
|
589
|
-
*
|
|
583
|
+
* The sum of refunds, customer balance credits, and outside of Stripe credits must equal the post_payment_amount.
|
|
590
584
|
*
|
|
591
|
-
* You may issue multiple credit notes for an invoice. Each credit note
|
|
592
|
-
* or
|
|
585
|
+
* You may issue multiple credit notes for an invoice. Each credit note may increment the invoice's pre_payment_credit_notes_amount,
|
|
586
|
+
* post_payment_credit_notes_amount, or both, depending on the invoice's amount_remaining at the time of credit note creation.
|
|
593
587
|
*/
|
|
594
588
|
create(
|
|
595
589
|
params: CreditNoteCreateParams,
|
|
@@ -657,7 +651,7 @@ declare module 'stripe' {
|
|
|
657
651
|
): Promise<Stripe.Response<Stripe.CreditNote>>;
|
|
658
652
|
|
|
659
653
|
/**
|
|
660
|
-
* Marks a credit note as void. Learn more about [voiding credit notes](https://stripe.com/docs/billing/invoices/credit-notes#voiding).
|
|
654
|
+
* Marks a credit note as void. Learn more about [voiding credit notes](https://docs.stripe.com/docs/billing/invoices/credit-notes#voiding).
|
|
661
655
|
*/
|
|
662
656
|
voidCreditNote(
|
|
663
657
|
id: string,
|
|
@@ -38,8 +38,6 @@ declare module 'stripe' {
|
|
|
38
38
|
*/
|
|
39
39
|
customer: string | Stripe.Customer;
|
|
40
40
|
|
|
41
|
-
customer_account?: string | null;
|
|
42
|
-
|
|
43
41
|
/**
|
|
44
42
|
* The total available cash balance for the specified currency after this transaction was applied. Represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal).
|
|
45
43
|
*/
|
|
@@ -6,9 +6,9 @@ declare module 'stripe' {
|
|
|
6
6
|
* A Customer Session allows you to grant Stripe's frontend SDKs (like Stripe.js) client-side access
|
|
7
7
|
* control over a Customer.
|
|
8
8
|
*
|
|
9
|
-
* Related guides: [Customer Session with the Payment Element](https://stripe.com/payments/accept-a-payment-deferred?platform=web&type=payment#save-payment-methods),
|
|
10
|
-
* [Customer Session with the Pricing Table](https://stripe.com/payments/checkout/pricing-table#customer-session),
|
|
11
|
-
* [Customer Session with the Buy Button](https://stripe.com/payment-links/buy-button#pass-an-existing-customer).
|
|
9
|
+
* Related guides: [Customer Session with the Payment Element](https://docs.stripe.com/payments/accept-a-payment-deferred?platform=web&type=payment#save-payment-methods),
|
|
10
|
+
* [Customer Session with the Pricing Table](https://docs.stripe.com/payments/checkout/pricing-table#customer-session),
|
|
11
|
+
* [Customer Session with the Buy Button](https://docs.stripe.com/payment-links/buy-button#pass-an-existing-customer).
|
|
12
12
|
*/
|
|
13
13
|
interface CustomerSession {
|
|
14
14
|
/**
|
|
@@ -38,11 +38,6 @@ declare module 'stripe' {
|
|
|
38
38
|
*/
|
|
39
39
|
customer: string | Stripe.Customer;
|
|
40
40
|
|
|
41
|
-
/**
|
|
42
|
-
* The Account that the Customer Session was created for.
|
|
43
|
-
*/
|
|
44
|
-
customer_account?: string | null;
|
|
45
|
-
|
|
46
41
|
/**
|
|
47
42
|
* The timestamp at which this Customer Session will expire.
|
|
48
43
|
*/
|
|
@@ -11,12 +11,7 @@ declare module 'stripe' {
|
|
|
11
11
|
/**
|
|
12
12
|
* The ID of an existing customer for which to create the Customer Session.
|
|
13
13
|
*/
|
|
14
|
-
customer
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* The ID of an existing Account for which to create the Customer Session.
|
|
18
|
-
*/
|
|
19
|
-
customer_account?: string;
|
|
14
|
+
customer: string;
|
|
20
15
|
|
|
21
16
|
/**
|
|
22
17
|
* Specifies which fields in the response should be expanded.
|