stripe 20.1.0-beta.1 → 20.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 +47 -1500
- package/OPENAPI_VERSION +1 -1
- package/README.md +0 -1
- package/VERSION +1 -1
- package/cjs/Error.js +1 -115
- package/cjs/apiVersion.js +3 -2
- package/cjs/resources/FinancialConnections/Accounts.js +0 -5
- package/cjs/resources/Mandates.js +0 -5
- package/cjs/resources/PaymentIntents.js +0 -8
- package/cjs/resources/Quotes.js +0 -32
- package/cjs/resources/SubscriptionSchedules.js +0 -4
- package/cjs/resources/Subscriptions.js +0 -4
- package/cjs/resources.js +2 -88
- package/cjs/stripe.core.js +1 -1
- package/esm/Error.js +0 -100
- package/esm/apiVersion.js +2 -1
- package/esm/resources/FinancialConnections/Accounts.js +0 -5
- package/esm/resources/Mandates.js +0 -5
- package/esm/resources/PaymentIntents.js +0 -8
- package/esm/resources/Quotes.js +0 -32
- package/esm/resources/SubscriptionSchedules.js +0 -4
- package/esm/resources/Subscriptions.js +0 -4
- package/esm/resources.js +0 -81
- package/esm/stripe.core.js +1 -1
- package/package.json +1 -1
- package/types/AccountLinks.d.ts +1 -1
- package/types/AccountLinksResource.d.ts +1 -5
- package/types/AccountSessions.d.ts +2 -47
- package/types/AccountSessionsResource.d.ts +0 -264
- package/types/Accounts.d.ts +25 -249
- package/types/AccountsResource.d.ts +114 -620
- package/types/ApplicationFeesResource.d.ts +2 -2
- package/types/Apps/Secrets.d.ts +1 -1
- package/types/Balance.d.ts +2 -2
- package/types/BalanceSettings.d.ts +1 -1
- package/types/BalanceTransactions.d.ts +1 -1
- package/types/BankAccounts.d.ts +10 -12
- package/types/Billing/AlertTriggereds.d.ts +1 -1
- package/types/Billing/Alerts.d.ts +1 -1
- package/types/Billing/CreditBalanceSummary.d.ts +1 -1
- package/types/Billing/CreditBalanceSummaryResource.d.ts +2 -2
- package/types/Billing/CreditBalanceTransactionsResource.d.ts +2 -2
- package/types/Billing/CreditGrants.d.ts +3 -3
- package/types/Billing/CreditGrantsResource.d.ts +3 -3
- package/types/Billing/MeterEvents.d.ts +1 -1
- package/types/Billing/MeterEventsResource.d.ts +1 -1
- package/types/BillingPortal/Configurations.d.ts +10 -3
- package/types/BillingPortal/ConfigurationsResource.d.ts +20 -6
- package/types/BillingPortal/Sessions.d.ts +7 -7
- package/types/BillingPortal/SessionsResource.d.ts +7 -7
- package/types/Capabilities.d.ts +16 -18
- package/types/Cards.d.ts +2 -7
- package/types/CashBalances.d.ts +3 -3
- package/types/Charges.d.ts +59 -179
- package/types/ChargesResource.d.ts +88 -3868
- package/types/Checkout/Sessions.d.ts +20 -297
- package/types/Checkout/SessionsResource.d.ts +59 -417
- package/types/Climate/Orders.d.ts +1 -1
- package/types/Climate/OrdersResource.d.ts +2 -2
- package/types/ConfirmationTokens.d.ts +8 -109
- package/types/Coupons.d.ts +3 -38
- package/types/CouponsResource.d.ts +2 -25
- package/types/CreditNoteLineItems.d.ts +3 -17
- package/types/CreditNotes.d.ts +8 -5
- package/types/CreditNotesResource.d.ts +5 -5
- package/types/CustomerBalanceTransactions.d.ts +9 -6
- package/types/CustomerCashBalanceTransactions.d.ts +13 -10
- package/types/CustomerSessions.d.ts +1 -42
- package/types/CustomerSessionsResource.d.ts +0 -41
- package/types/Customers.d.ts +8 -5
- package/types/CustomersResource.d.ts +21 -23
- package/types/Discounts.d.ts +6 -6
- package/types/Disputes.d.ts +3 -43
- package/types/DisputesResource.d.ts +1 -12
- package/types/Entitlements/ActiveEntitlements.d.ts +1 -1
- package/types/Errors.d.ts +0 -85
- package/types/EventTypes.d.ts +0 -630
- package/types/Events.d.ts +1 -97
- package/types/ExchangeRates.d.ts +2 -2
- package/types/FeeRefunds.d.ts +2 -2
- package/types/FileLinks.d.ts +1 -1
- package/types/FileLinksResource.d.ts +2 -2
- package/types/Files.d.ts +4 -4
- package/types/FilesResource.d.ts +3 -3
- package/types/FinancialConnections/Accounts.d.ts +4 -37
- package/types/FinancialConnections/AccountsResource.d.ts +6 -38
- package/types/FinancialConnections/Sessions.d.ts +3 -51
- package/types/FinancialConnections/SessionsResource.d.ts +4 -41
- package/types/Forwarding/Requests.d.ts +1 -1
- package/types/Forwarding/RequestsResource.d.ts +1 -1
- package/types/FundingInstructions.d.ts +2 -2
- package/types/Identity/VerificationReports.d.ts +8 -8
- package/types/Identity/VerificationSessions.d.ts +11 -11
- package/types/Identity/VerificationSessionsResource.d.ts +18 -12
- package/types/InvoiceItems.d.ts +8 -13
- package/types/InvoiceItemsResource.d.ts +16 -114
- package/types/InvoiceLineItems.d.ts +10 -46
- package/types/InvoicePayments.d.ts +1 -1
- package/types/InvoiceRenderingTemplates.d.ts +1 -1
- package/types/Invoices.d.ts +60 -204
- package/types/InvoicesResource.d.ts +132 -1651
- package/types/Issuing/Authorizations.d.ts +20 -20
- package/types/Issuing/AuthorizationsResource.d.ts +4 -4
- package/types/Issuing/Cardholders.d.ts +13 -13
- package/types/Issuing/CardholdersResource.d.ts +21 -22
- package/types/Issuing/Cards.d.ts +10 -10
- package/types/Issuing/CardsResource.d.ts +13 -13
- package/types/Issuing/Disputes.d.ts +7 -7
- package/types/Issuing/DisputesResource.d.ts +5 -5
- package/types/Issuing/PersonalizationDesigns.d.ts +1 -1
- package/types/Issuing/PersonalizationDesignsResource.d.ts +2 -2
- package/types/Issuing/Tokens.d.ts +1 -1
- package/types/Issuing/Transactions.d.ts +12 -17
- package/types/Issuing/TransactionsResource.d.ts +1 -6
- package/types/LineItems.d.ts +4 -48
- package/types/LoginLinks.d.ts +1 -1
- package/types/Mandates.d.ts +1 -69
- package/types/MandatesResource.d.ts +0 -31
- package/types/PaymentAttemptRecords.d.ts +119 -135
- package/types/PaymentIntentAmountDetailsLineItems.d.ts +3 -3
- package/types/PaymentIntents.d.ts +48 -705
- package/types/PaymentIntentsResource.d.ts +6867 -19451
- package/types/PaymentLinks.d.ts +7 -12
- package/types/PaymentLinksResource.d.ts +28 -38
- package/types/PaymentMethodConfigurations.d.ts +4 -184
- package/types/PaymentMethodConfigurationsResource.d.ts +76 -326
- package/types/PaymentMethodDomains.d.ts +1 -1
- package/types/PaymentMethods.d.ts +10 -116
- package/types/PaymentMethodsResource.d.ts +7 -116
- package/types/PaymentRecords.d.ts +126 -135
- package/types/PaymentRecordsResource.d.ts +7 -7
- package/types/Payouts.d.ts +7 -7
- package/types/PayoutsResource.d.ts +3 -3
- package/types/Persons.d.ts +21 -23
- package/types/Plans.d.ts +5 -5
- package/types/PlansResource.d.ts +6 -6
- package/types/Prices.d.ts +6 -28
- package/types/PricesResource.d.ts +10 -32
- package/types/Products.d.ts +10 -10
- package/types/ProductsResource.d.ts +14 -14
- package/types/PromotionCodes.d.ts +5 -5
- package/types/PromotionCodesResource.d.ts +5 -5
- package/types/Quotes.d.ts +14 -602
- package/types/QuotesResource.d.ts +298 -2628
- package/types/Radar/EarlyFraudWarnings.d.ts +1 -1
- package/types/Radar/ValueListItems.d.ts +1 -1
- package/types/Radar/ValueLists.d.ts +2 -2
- package/types/Radar/ValueListsResource.d.ts +2 -2
- package/types/Refunds.d.ts +3 -17
- package/types/RefundsResource.d.ts +3 -3
- package/types/Reporting/ReportRuns.d.ts +3 -3
- package/types/Reporting/ReportRunsResource.d.ts +2 -2
- package/types/Reporting/ReportTypes.d.ts +3 -3
- package/types/Reviews.d.ts +1 -1
- package/types/SetupAttempts.d.ts +22 -60
- package/types/SetupIntents.d.ts +22 -157
- package/types/SetupIntentsResource.d.ts +50 -673
- package/types/ShippingRates.d.ts +3 -3
- package/types/ShippingRatesResource.d.ts +3 -3
- package/types/Sigma/ScheduledQueryRuns.d.ts +1 -1
- package/types/SourceMandateNotifications.d.ts +3 -3
- package/types/Sources.d.ts +5 -34
- package/types/SourcesResource.d.ts +2 -2
- package/types/SubscriptionItems.d.ts +7 -33
- package/types/SubscriptionItemsResource.d.ts +22 -131
- package/types/SubscriptionSchedules.d.ts +9 -209
- package/types/SubscriptionSchedulesResource.d.ts +39 -1257
- package/types/Subscriptions.d.ts +41 -251
- package/types/SubscriptionsResource.d.ts +94 -734
- package/types/Tax/Associations.d.ts +3 -3
- package/types/Tax/AssociationsResource.d.ts +1 -1
- package/types/Tax/CalculationLineItems.d.ts +7 -7
- package/types/Tax/Calculations.d.ts +12 -12
- package/types/Tax/CalculationsResource.d.ts +7 -7
- package/types/Tax/Registrations.d.ts +3 -3
- package/types/Tax/Settings.d.ts +1 -1
- package/types/Tax/SettingsResource.d.ts +1 -1
- package/types/Tax/TransactionLineItems.d.ts +5 -5
- package/types/Tax/Transactions.d.ts +9 -9
- package/types/Tax/TransactionsResource.d.ts +10 -10
- package/types/TaxIds.d.ts +6 -6
- package/types/TaxIdsResource.d.ts +4 -4
- package/types/TaxRates.d.ts +1 -1
- package/types/TaxRatesResource.d.ts +2 -2
- package/types/Terminal/Configurations.d.ts +0 -9
- package/types/Terminal/ConfigurationsResource.d.ts +0 -28
- package/types/Terminal/ConnectionTokens.d.ts +1 -1
- package/types/Terminal/Locations.d.ts +2 -2
- package/types/Terminal/LocationsResource.d.ts +3 -3
- package/types/Terminal/Readers.d.ts +10 -30
- package/types/Terminal/ReadersResource.d.ts +7 -7
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +5 -107
- package/types/TestHelpers/CustomersResource.d.ts +2 -2
- package/types/TestHelpers/Issuing/AuthorizationsResource.d.ts +10 -10
- package/types/TestHelpers/Issuing/TransactionsResource.d.ts +5 -5
- package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +1 -27
- package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +1 -27
- package/types/Tokens.d.ts +4 -4
- package/types/TokensResource.d.ts +17 -17
- package/types/Topups.d.ts +3 -3
- package/types/TopupsResource.d.ts +3 -3
- package/types/TransferReversals.d.ts +4 -4
- package/types/Transfers.d.ts +5 -10
- package/types/TransfersResource.d.ts +6 -11
- package/types/Treasury/CreditReversals.d.ts +3 -3
- package/types/Treasury/CreditReversalsResource.d.ts +1 -1
- package/types/Treasury/DebitReversals.d.ts +3 -3
- package/types/Treasury/DebitReversalsResource.d.ts +1 -1
- package/types/Treasury/FinancialAccountFeatures.d.ts +0 -7
- package/types/Treasury/FinancialAccounts.d.ts +1 -6
- package/types/Treasury/FinancialAccountsResource.d.ts +2 -39
- package/types/Treasury/InboundTransfers.d.ts +4 -4
- package/types/Treasury/InboundTransfersResource.d.ts +2 -2
- package/types/Treasury/OutboundPayments.d.ts +5 -5
- package/types/Treasury/OutboundPaymentsResource.d.ts +4 -4
- package/types/Treasury/OutboundTransfers.d.ts +4 -30
- package/types/Treasury/OutboundTransfersResource.d.ts +3 -29
- package/types/Treasury/ReceivedCredits.d.ts +9 -35
- package/types/Treasury/ReceivedDebits.d.ts +6 -37
- package/types/Treasury/TransactionEntries.d.ts +11 -11
- package/types/Treasury/Transactions.d.ts +11 -11
- package/types/V2/Core/AccountLinks.d.ts +13 -21
- package/types/V2/Core/AccountLinksResource.d.ts +8 -16
- package/types/V2/Core/AccountPersons.d.ts +55 -10
- package/types/V2/Core/AccountTokensResource.d.ts +129 -24
- package/types/V2/Core/Accounts/PersonTokensResource.d.ts +48 -3
- package/types/V2/Core/Accounts/PersonsResource.d.ts +101 -11
- package/types/V2/Core/Accounts.d.ts +256 -1349
- package/types/V2/Core/AccountsResource.d.ts +282 -567
- package/types/V2/Core/EventTypes.d.ts +10 -1542
- package/types/WebhookEndpoints.d.ts +1 -1
- package/types/WebhookEndpointsResource.d.ts +5 -79
- package/types/apiVersion.d.ts +2 -1
- package/types/index.d.ts +0 -134
- package/types/lib.d.ts +0 -10
- package/cjs/resources/AccountNotices.js +0 -21
- package/cjs/resources/Billing/Analytics/MeterUsage.js +0 -12
- 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/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/Privacy/RedactionJobs.js +0 -42
- package/cjs/resources/Tax/Forms.js +0 -20
- package/cjs/resources/Terminal/ReaderCollectedData.js +0 -12
- package/cjs/resources/V2/Billing/BillSettings/Versions.js +0 -17
- package/cjs/resources/V2/Billing/BillSettings.js +0 -27
- package/cjs/resources/V2/Billing/Cadences.js +0 -23
- package/cjs/resources/V2/Billing/CollectionSettings/Versions.js +0 -17
- package/cjs/resources/V2/Billing/CollectionSettings.js +0 -30
- package/cjs/resources/V2/Billing/Profiles.js +0 -19
- package/cjs/resources/V2/Core/Vault/GbBankAccounts.js +0 -33
- package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +0 -37
- package/cjs/resources/V2/MoneyManagement/Adjustments.js +0 -17
- package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +0 -29
- 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/Billing/Analytics/MeterUsage.js +0 -9
- 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/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/Privacy/RedactionJobs.js +0 -39
- package/esm/resources/Tax/Forms.js +0 -17
- package/esm/resources/Terminal/ReaderCollectedData.js +0 -9
- package/esm/resources/V2/Billing/BillSettings/Versions.js +0 -14
- package/esm/resources/V2/Billing/BillSettings.js +0 -24
- package/esm/resources/V2/Billing/Cadences.js +0 -20
- package/esm/resources/V2/Billing/CollectionSettings/Versions.js +0 -14
- package/esm/resources/V2/Billing/CollectionSettings.js +0 -27
- package/esm/resources/V2/Billing/Profiles.js +0 -16
- package/esm/resources/V2/Core/Vault/GbBankAccounts.js +0 -30
- package/esm/resources/V2/Core/Vault/UsBankAccounts.js +0 -34
- package/esm/resources/V2/MoneyManagement/Adjustments.js +0 -14
- package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +0 -26
- 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/Billing/Analytics/MeterUsage.d.ts +0 -31
- package/types/Billing/Analytics/MeterUsageResource.d.ts +0 -689
- package/types/Billing/Analytics/MeterUsageRows.d.ts +0 -51
- 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 -98
- package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
- package/types/FxQuotes.d.ts +0 -155
- package/types/FxQuotesResource.d.ts +0 -130
- 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 -1163
- package/types/OrdersResource.d.ts +0 -5505
- package/types/Privacy/RedactionJobValidationErrors.d.ts +0 -60
- package/types/Privacy/RedactionJobs.d.ts +0 -111
- package/types/Privacy/RedactionJobsResource.d.ts +0 -230
- package/types/QuoteLines.d.ts +0 -634
- package/types/QuotePreviewInvoices.d.ts +0 -1771
- package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -908
- 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/Billing/BillSettingVersions.d.ts +0 -97
- package/types/V2/Billing/BillSettings/VersionsResource.d.ts +0 -58
- package/types/V2/Billing/BillSettings.d.ts +0 -120
- package/types/V2/Billing/BillSettingsResource.d.ts +0 -241
- package/types/V2/Billing/Cadences.d.ts +0 -690
- package/types/V2/Billing/CadencesResource.d.ts +0 -487
- package/types/V2/Billing/CollectionSettingVersions.d.ts +0 -318
- package/types/V2/Billing/CollectionSettings/VersionsResource.d.ts +0 -62
- package/types/V2/Billing/CollectionSettings.d.ts +0 -341
- package/types/V2/Billing/CollectionSettingsResource.d.ts +0 -683
- package/types/V2/Billing/Profiles.d.ts +0 -70
- package/types/V2/Billing/ProfilesResource.d.ts +0 -150
- package/types/V2/Core/Vault/GbBankAccounts.d.ts +0 -160
- package/types/V2/Core/Vault/GbBankAccountsResource.d.ts +0 -194
- package/types/V2/Core/Vault/UsBankAccounts.d.ts +0 -116
- package/types/V2/Core/Vault/UsBankAccountsResource.d.ts +0 -198
- 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 -148
- package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +0 -172
- package/types/V2/MoneyManagement/FinancialAddresses.d.ts +0 -175
- package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +0 -109
- package/types/V2/MoneyManagement/InboundTransfers.d.ts +0 -212
- package/types/V2/MoneyManagement/InboundTransfersResource.d.ts +0 -144
- package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +0 -170
- 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 -208
- package/types/V2/MoneyManagement/PayoutMethods.d.ts +0 -160
- package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpec.d.ts +0 -93
- package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecResource.d.ts +0 -41
- package/types/V2/MoneyManagement/PayoutMethodsResource.d.ts +0 -113
- package/types/V2/MoneyManagement/ReceivedCredits.d.ts +0 -302
- package/types/V2/MoneyManagement/ReceivedCreditsResource.d.ts +0 -78
- package/types/V2/MoneyManagement/ReceivedDebits.d.ts +0 -176
- package/types/V2/MoneyManagement/ReceivedDebitsResource.d.ts +0 -48
- package/types/V2/MoneyManagement/TransactionEntries.d.ts +0 -162
- package/types/V2/MoneyManagement/TransactionEntriesResource.d.ts +0 -82
- package/types/V2/MoneyManagement/Transactions.d.ts +0 -177
- package/types/V2/MoneyManagement/TransactionsResource.d.ts +0 -83
- package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +0 -68
|
@@ -38,10 +38,13 @@ declare module 'stripe' {
|
|
|
38
38
|
*/
|
|
39
39
|
customer: string | Stripe.Customer;
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
/**
|
|
42
|
+
* The ID of an Account representing a customer whose available cash balance changed as a result of this transaction.
|
|
43
|
+
*/
|
|
44
|
+
customer_account: string | null;
|
|
42
45
|
|
|
43
46
|
/**
|
|
44
|
-
* The total available cash balance for the specified currency after this transaction was applied. Represented in the [smallest currency unit](https://stripe.com/
|
|
47
|
+
* The total available cash balance for the specified currency after this transaction was applied. Represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
|
|
45
48
|
*/
|
|
46
49
|
ending_balance: number;
|
|
47
50
|
|
|
@@ -53,7 +56,7 @@ declare module 'stripe' {
|
|
|
53
56
|
livemode: boolean;
|
|
54
57
|
|
|
55
58
|
/**
|
|
56
|
-
* The amount by which the cash balance changed, represented in the [smallest currency unit](https://stripe.com/
|
|
59
|
+
* The amount by which the cash balance changed, represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). A positive value represents funds being added to the cash balance, a negative value represents funds being removed from the cash balance.
|
|
57
60
|
*/
|
|
58
61
|
net_amount: number;
|
|
59
62
|
|
|
@@ -62,7 +65,7 @@ declare module 'stripe' {
|
|
|
62
65
|
transferred_to_balance?: CustomerCashBalanceTransaction.TransferredToBalance;
|
|
63
66
|
|
|
64
67
|
/**
|
|
65
|
-
* The type of the cash balance transaction. New types may be added in future. See [Customer Balance](https://stripe.com/
|
|
68
|
+
* The type of the cash balance transaction. New types may be added in future. See [Customer Balance](https://docs.stripe.com/payments/customer-balance#types) to learn more about these types.
|
|
66
69
|
*/
|
|
67
70
|
type: CustomerCashBalanceTransaction.Type;
|
|
68
71
|
|
|
@@ -72,19 +75,19 @@ declare module 'stripe' {
|
|
|
72
75
|
namespace CustomerCashBalanceTransaction {
|
|
73
76
|
interface AdjustedForOverdraft {
|
|
74
77
|
/**
|
|
75
|
-
* The [Balance Transaction](https://stripe.com/
|
|
78
|
+
* The [Balance Transaction](https://docs.stripe.com/api/balance_transactions/object) that corresponds to funds taken out of your Stripe balance.
|
|
76
79
|
*/
|
|
77
80
|
balance_transaction: string | Stripe.BalanceTransaction;
|
|
78
81
|
|
|
79
82
|
/**
|
|
80
|
-
* The [Cash Balance Transaction](https://stripe.com/
|
|
83
|
+
* The [Cash Balance Transaction](https://docs.stripe.com/api/cash_balance_transactions/object) that brought the customer balance negative, triggering the clawback of funds.
|
|
81
84
|
*/
|
|
82
85
|
linked_transaction: string | Stripe.CustomerCashBalanceTransaction;
|
|
83
86
|
}
|
|
84
87
|
|
|
85
88
|
interface AppliedToPayment {
|
|
86
89
|
/**
|
|
87
|
-
* The [Payment Intent](https://stripe.com/
|
|
90
|
+
* The [Payment Intent](https://docs.stripe.com/api/payment_intents/object) that funds were applied to.
|
|
88
91
|
*/
|
|
89
92
|
payment_intent: string | Stripe.PaymentIntent;
|
|
90
93
|
}
|
|
@@ -193,14 +196,14 @@ declare module 'stripe' {
|
|
|
193
196
|
|
|
194
197
|
interface RefundedFromPayment {
|
|
195
198
|
/**
|
|
196
|
-
* The [Refund](https://stripe.com/
|
|
199
|
+
* The [Refund](https://docs.stripe.com/api/refunds/object) that moved these funds into the customer's cash balance.
|
|
197
200
|
*/
|
|
198
201
|
refund: string | Stripe.Refund;
|
|
199
202
|
}
|
|
200
203
|
|
|
201
204
|
interface TransferredToBalance {
|
|
202
205
|
/**
|
|
203
|
-
* The [Balance Transaction](https://stripe.com/
|
|
206
|
+
* The [Balance Transaction](https://docs.stripe.com/api/balance_transactions/object) that corresponds to funds transferred to your Stripe balance.
|
|
204
207
|
*/
|
|
205
208
|
balance_transaction: string | Stripe.BalanceTransaction;
|
|
206
209
|
}
|
|
@@ -218,7 +221,7 @@ declare module 'stripe' {
|
|
|
218
221
|
|
|
219
222
|
interface UnappliedFromPayment {
|
|
220
223
|
/**
|
|
221
|
-
* The [Payment Intent](https://stripe.com/
|
|
224
|
+
* The [Payment Intent](https://docs.stripe.com/api/payment_intents/object) that funds were unapplied from.
|
|
222
225
|
*/
|
|
223
226
|
payment_intent: string | Stripe.PaymentIntent;
|
|
224
227
|
}
|
|
@@ -41,7 +41,7 @@ declare module 'stripe' {
|
|
|
41
41
|
/**
|
|
42
42
|
* The Account that the Customer Session was created for.
|
|
43
43
|
*/
|
|
44
|
-
customer_account
|
|
44
|
+
customer_account: string | null;
|
|
45
45
|
|
|
46
46
|
/**
|
|
47
47
|
* The timestamp at which this Customer Session will expire.
|
|
@@ -80,11 +80,6 @@ declare module 'stripe' {
|
|
|
80
80
|
* This hash contains whether the pricing table is enabled.
|
|
81
81
|
*/
|
|
82
82
|
pricing_table: Components.PricingTable;
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* This hash contains whether the Tax ID Element is enabled and the features it supports.
|
|
86
|
-
*/
|
|
87
|
-
tax_id_element?: Components.TaxIdElement;
|
|
88
83
|
}
|
|
89
84
|
|
|
90
85
|
namespace Components {
|
|
@@ -282,42 +277,6 @@ declare module 'stripe' {
|
|
|
282
277
|
*/
|
|
283
278
|
enabled: boolean;
|
|
284
279
|
}
|
|
285
|
-
|
|
286
|
-
interface TaxIdElement {
|
|
287
|
-
/**
|
|
288
|
-
* Whether the Tax ID Element is enabled.
|
|
289
|
-
*/
|
|
290
|
-
enabled: boolean;
|
|
291
|
-
|
|
292
|
-
/**
|
|
293
|
-
* This hash defines whether the Tax ID Element supports certain features.
|
|
294
|
-
*/
|
|
295
|
-
features: TaxIdElement.Features | null;
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
namespace TaxIdElement {
|
|
299
|
-
interface Features {
|
|
300
|
-
/**
|
|
301
|
-
* Controls whether the Tax ID Element displays saved tax IDs for the customer. This parameter defaults to `disabled`.
|
|
302
|
-
*
|
|
303
|
-
* When enabled, the Tax ID Element will show existing tax IDs associated with the customer, allowing them to select from previously saved tax identification numbers.
|
|
304
|
-
*/
|
|
305
|
-
tax_id_redisplay: Features.TaxIdRedisplay;
|
|
306
|
-
|
|
307
|
-
/**
|
|
308
|
-
* Controls whether the Tax ID Element allows merchants to save new tax IDs for their customer. This parameter defaults to `disabled`.
|
|
309
|
-
*
|
|
310
|
-
* When enabled, customers can enter and save new tax identification numbers during the payment flow, which will be stored securely and associated with their customer object for future use.
|
|
311
|
-
*/
|
|
312
|
-
tax_id_save: Features.TaxIdSave;
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
namespace Features {
|
|
316
|
-
type TaxIdRedisplay = 'disabled' | 'enabled';
|
|
317
|
-
|
|
318
|
-
type TaxIdSave = 'disabled' | 'enabled';
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
280
|
}
|
|
322
281
|
}
|
|
323
282
|
}
|
|
@@ -50,11 +50,6 @@ declare module 'stripe' {
|
|
|
50
50
|
* Configuration for the pricing table.
|
|
51
51
|
*/
|
|
52
52
|
pricing_table?: Components.PricingTable;
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* Configuration for the Tax ID Element.
|
|
56
|
-
*/
|
|
57
|
-
tax_id_element?: Components.TaxIdElement;
|
|
58
53
|
}
|
|
59
54
|
|
|
60
55
|
namespace Components {
|
|
@@ -252,42 +247,6 @@ declare module 'stripe' {
|
|
|
252
247
|
*/
|
|
253
248
|
enabled: boolean;
|
|
254
249
|
}
|
|
255
|
-
|
|
256
|
-
interface TaxIdElement {
|
|
257
|
-
/**
|
|
258
|
-
* Whether the Tax ID Element is enabled.
|
|
259
|
-
*/
|
|
260
|
-
enabled: boolean;
|
|
261
|
-
|
|
262
|
-
/**
|
|
263
|
-
* This hash defines whether the Tax ID Element supports certain features.
|
|
264
|
-
*/
|
|
265
|
-
features?: TaxIdElement.Features;
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
namespace TaxIdElement {
|
|
269
|
-
interface Features {
|
|
270
|
-
/**
|
|
271
|
-
* Controls whether the Tax ID Element displays saved tax IDs for the customer. This parameter defaults to `disabled`.
|
|
272
|
-
*
|
|
273
|
-
* When enabled, the Tax ID Element will show existing tax IDs associated with the customer, allowing them to select from previously saved tax identification numbers.
|
|
274
|
-
*/
|
|
275
|
-
tax_id_redisplay?: Features.TaxIdRedisplay;
|
|
276
|
-
|
|
277
|
-
/**
|
|
278
|
-
* Controls whether the Tax ID Element allows merchants to save new tax IDs for their customer. This parameter defaults to `disabled`.
|
|
279
|
-
*
|
|
280
|
-
* When enabled, customers can enter and save new tax identification numbers during the payment flow, which will be stored securely and associated with their customer object for future use.
|
|
281
|
-
*/
|
|
282
|
-
tax_id_save?: Features.TaxIdSave;
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
namespace Features {
|
|
286
|
-
type TaxIdRedisplay = 'disabled' | 'enabled';
|
|
287
|
-
|
|
288
|
-
type TaxIdSave = 'disabled' | 'enabled';
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
250
|
}
|
|
292
251
|
}
|
|
293
252
|
|
package/types/Customers.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
declare module 'stripe' {
|
|
4
4
|
namespace Stripe {
|
|
5
5
|
/**
|
|
6
|
-
* This object represents a customer of your business. Use it to [create recurring charges](https://stripe.com/
|
|
6
|
+
* This object represents a customer of your business. Use it to [create recurring charges](https://docs.stripe.com/invoicing/customer), [save payment](https://docs.stripe.com/payments/save-during-payment) and contact information,
|
|
7
7
|
* and track payments that belong to the same customer.
|
|
8
8
|
*/
|
|
9
9
|
interface Customer {
|
|
@@ -23,7 +23,7 @@ declare module 'stripe' {
|
|
|
23
23
|
address?: Stripe.Address | null;
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
|
-
* The current balance, if any, that's stored on the customer in their default currency. If negative, the customer has credit to apply to their next invoice. If positive, the customer has an amount owed that's added to their next invoice. The balance only considers amounts that Stripe hasn't successfully applied to any invoice. It doesn't reflect unpaid invoices. This balance is only taken into account after invoices finalize. For multi-currency balances, see [invoice_credit_balance](https://stripe.com/
|
|
26
|
+
* The current balance, if any, that's stored on the customer in their default currency. If negative, the customer has credit to apply to their next invoice. If positive, the customer has an amount owed that's added to their next invoice. The balance only considers amounts that Stripe hasn't successfully applied to any invoice. It doesn't reflect unpaid invoices. This balance is only taken into account after invoices finalize. For multi-currency balances, see [invoice_credit_balance](https://docs.stripe.com/api/customers/object#customer_object-invoice_credit_balance).
|
|
27
27
|
*/
|
|
28
28
|
balance: number;
|
|
29
29
|
|
|
@@ -47,12 +47,15 @@ declare module 'stripe' {
|
|
|
47
47
|
*/
|
|
48
48
|
currency?: string | null;
|
|
49
49
|
|
|
50
|
+
/**
|
|
51
|
+
* The ID of an Account representing a customer. You can use this ID with any v1 API that accepts a customer_account parameter.
|
|
52
|
+
*/
|
|
50
53
|
customer_account?: string | null;
|
|
51
54
|
|
|
52
55
|
/**
|
|
53
56
|
* ID of the default payment source for the customer.
|
|
54
57
|
*
|
|
55
|
-
* If you use payment methods created through the PaymentMethods API, see the [invoice_settings.default_payment_method](https://stripe.com/
|
|
58
|
+
* If you use payment methods created through the PaymentMethods API, see the [invoice_settings.default_payment_method](https://docs.stripe.com/api/customers/object#customer_object-invoice_settings-default_payment_method) field instead.
|
|
56
59
|
*/
|
|
57
60
|
default_source: string | Stripe.CustomerSource | null;
|
|
58
61
|
|
|
@@ -64,7 +67,7 @@ declare module 'stripe' {
|
|
|
64
67
|
/**
|
|
65
68
|
* Tracks the most recent state change on any invoice belonging to the customer. Paying an invoice or marking it uncollectible via the API will set this field to false. An automatic payment failure or passing the `invoice.due_date` will set this field to `true`.
|
|
66
69
|
*
|
|
67
|
-
* If an invoice becomes uncollectible by [dunning](https://stripe.com/
|
|
70
|
+
* If an invoice becomes uncollectible by [dunning](https://docs.stripe.com/billing/automatic-collection), `delinquent` doesn't reset to `false`.
|
|
68
71
|
*
|
|
69
72
|
* If you care whether the customer has paid their most recent subscription invoice, use `subscription.status` instead. Paying or marking uncollectible any customer invoice regardless of whether it is the latest invoice for a subscription will always set this field to `false`.
|
|
70
73
|
*/
|
|
@@ -110,7 +113,7 @@ declare module 'stripe' {
|
|
|
110
113
|
livemode: boolean;
|
|
111
114
|
|
|
112
115
|
/**
|
|
113
|
-
* Set of [key-value pairs](https://stripe.com/
|
|
116
|
+
* Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
114
117
|
*/
|
|
115
118
|
metadata: Stripe.Metadata;
|
|
116
119
|
|
|
@@ -4,7 +4,7 @@ declare module 'stripe' {
|
|
|
4
4
|
namespace Stripe {
|
|
5
5
|
interface CustomerCreateParams {
|
|
6
6
|
/**
|
|
7
|
-
* The customer's address.
|
|
7
|
+
* The customer's address. Learn about [country-specific requirements for calculating tax](https://docs.stripe.com/invoicing/taxes?dashboard-or-api=dashboard#set-up-customer).
|
|
8
8
|
*/
|
|
9
9
|
address?: Stripe.Emptyable<Stripe.AddressParam>;
|
|
10
10
|
|
|
@@ -54,7 +54,7 @@ declare module 'stripe' {
|
|
|
54
54
|
invoice_settings?: CustomerCreateParams.InvoiceSettings;
|
|
55
55
|
|
|
56
56
|
/**
|
|
57
|
-
* Set of [key-value pairs](https://stripe.com/
|
|
57
|
+
* Set of [key-value pairs](https://docs.stripe.com/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`.
|
|
58
58
|
*/
|
|
59
59
|
metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
|
|
60
60
|
|
|
@@ -122,7 +122,7 @@ declare module 'stripe' {
|
|
|
122
122
|
namespace CashBalance {
|
|
123
123
|
interface Settings {
|
|
124
124
|
/**
|
|
125
|
-
* Controls how funds transferred by the customer are applied to payment intents and invoices. Valid options are `automatic`, `manual`, or `merchant_default`. For more information about these reconciliation modes, see [Reconciliation](https://stripe.com/
|
|
125
|
+
* Controls how funds transferred by the customer are applied to payment intents and invoices. Valid options are `automatic`, `manual`, or `merchant_default`. For more information about these reconciliation modes, see [Reconciliation](https://docs.stripe.com/payments/customer-balance/reconciliation).
|
|
126
126
|
*/
|
|
127
127
|
reconciliation_mode?: Settings.ReconciliationMode;
|
|
128
128
|
}
|
|
@@ -357,7 +357,7 @@ declare module 'stripe' {
|
|
|
357
357
|
|
|
358
358
|
interface CustomerUpdateParams {
|
|
359
359
|
/**
|
|
360
|
-
* The customer's address.
|
|
360
|
+
* The customer's address. Learn about [country-specific requirements for calculating tax](https://docs.stripe.com/invoicing/taxes?dashboard-or-api=dashboard#set-up-customer).
|
|
361
361
|
*/
|
|
362
362
|
address?: Stripe.Emptyable<Stripe.AddressParam>;
|
|
363
363
|
|
|
@@ -377,11 +377,11 @@ declare module 'stripe' {
|
|
|
377
377
|
cash_balance?: CustomerUpdateParams.CashBalance;
|
|
378
378
|
|
|
379
379
|
/**
|
|
380
|
-
* If you are using payment methods created via the PaymentMethods API, see the [invoice_settings.default_payment_method](https://stripe.com/
|
|
380
|
+
* If you are using payment methods created via the PaymentMethods API, see the [invoice_settings.default_payment_method](https://docs.stripe.com/api/customers/update#update_customer-invoice_settings-default_payment_method) parameter.
|
|
381
381
|
*
|
|
382
382
|
* Provide the ID of a payment source already attached to this customer to make it this customer's default payment source.
|
|
383
383
|
*
|
|
384
|
-
* If you want to add a new payment source and make it the default, see the [source](https://stripe.com/
|
|
384
|
+
* If you want to add a new payment source and make it the default, see the [source](https://docs.stripe.com/api/customers/update#update_customer-source) property.
|
|
385
385
|
*/
|
|
386
386
|
default_source?: string;
|
|
387
387
|
|
|
@@ -416,7 +416,7 @@ declare module 'stripe' {
|
|
|
416
416
|
invoice_settings?: CustomerUpdateParams.InvoiceSettings;
|
|
417
417
|
|
|
418
418
|
/**
|
|
419
|
-
* Set of [key-value pairs](https://stripe.com/
|
|
419
|
+
* Set of [key-value pairs](https://docs.stripe.com/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`.
|
|
420
420
|
*/
|
|
421
421
|
metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
|
|
422
422
|
|
|
@@ -472,7 +472,7 @@ declare module 'stripe' {
|
|
|
472
472
|
namespace CashBalance {
|
|
473
473
|
interface Settings {
|
|
474
474
|
/**
|
|
475
|
-
* Controls how funds transferred by the customer are applied to payment intents and invoices. Valid options are `automatic`, `manual`, or `merchant_default`. For more information about these reconciliation modes, see [Reconciliation](https://stripe.com/
|
|
475
|
+
* Controls how funds transferred by the customer are applied to payment intents and invoices. Valid options are `automatic`, `manual`, or `merchant_default`. For more information about these reconciliation modes, see [Reconciliation](https://docs.stripe.com/payments/customer-balance/reconciliation).
|
|
476
476
|
*/
|
|
477
477
|
reconciliation_mode?: Settings.ReconciliationMode;
|
|
478
478
|
}
|
|
@@ -603,7 +603,7 @@ declare module 'stripe' {
|
|
|
603
603
|
amount: number;
|
|
604
604
|
|
|
605
605
|
/**
|
|
606
|
-
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). Specifies the [`invoice_credit_balance`](https://stripe.com/
|
|
606
|
+
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). Specifies the [`invoice_credit_balance`](https://docs.stripe.com/api/customers/object#customer_object-invoice_credit_balance) that this transaction will apply to. If the customer's `currency` is not set, it will be updated to this value.
|
|
607
607
|
*/
|
|
608
608
|
currency: string;
|
|
609
609
|
|
|
@@ -618,7 +618,7 @@ declare module 'stripe' {
|
|
|
618
618
|
expand?: Array<string>;
|
|
619
619
|
|
|
620
620
|
/**
|
|
621
|
-
* Set of [key-value pairs](https://stripe.com/
|
|
621
|
+
* Set of [key-value pairs](https://docs.stripe.com/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`.
|
|
622
622
|
*/
|
|
623
623
|
metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
|
|
624
624
|
}
|
|
@@ -686,7 +686,7 @@ declare module 'stripe' {
|
|
|
686
686
|
|
|
687
687
|
interface CustomerCreateSourceParams {
|
|
688
688
|
/**
|
|
689
|
-
* Please refer to full [documentation](https://stripe.com
|
|
689
|
+
* Please refer to full [documentation](https://api.stripe.com) instead.
|
|
690
690
|
*/
|
|
691
691
|
source: string;
|
|
692
692
|
|
|
@@ -696,7 +696,7 @@ declare module 'stripe' {
|
|
|
696
696
|
expand?: Array<string>;
|
|
697
697
|
|
|
698
698
|
/**
|
|
699
|
-
* Set of [key-value pairs](https://stripe.com/
|
|
699
|
+
* Set of [key-value pairs](https://docs.stripe.com/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`.
|
|
700
700
|
*/
|
|
701
701
|
metadata?: Stripe.MetadataParam;
|
|
702
702
|
|
|
@@ -855,6 +855,11 @@ declare module 'stripe' {
|
|
|
855
855
|
* Specifies which fields in the response should be expanded.
|
|
856
856
|
*/
|
|
857
857
|
expand?: Array<string>;
|
|
858
|
+
|
|
859
|
+
/**
|
|
860
|
+
* Only return transactions that are related to the specified invoice.
|
|
861
|
+
*/
|
|
862
|
+
invoice?: string;
|
|
858
863
|
}
|
|
859
864
|
|
|
860
865
|
interface CustomerListCashBalanceTransactionsParams
|
|
@@ -906,9 +911,7 @@ declare module 'stripe' {
|
|
|
906
911
|
| 'eps'
|
|
907
912
|
| 'fpx'
|
|
908
913
|
| 'giropay'
|
|
909
|
-
| 'gopay'
|
|
910
914
|
| 'grabpay'
|
|
911
|
-
| 'id_bank_transfer'
|
|
912
915
|
| 'ideal'
|
|
913
916
|
| 'kakao_pay'
|
|
914
917
|
| 'klarna'
|
|
@@ -926,19 +929,14 @@ declare module 'stripe' {
|
|
|
926
929
|
| 'payco'
|
|
927
930
|
| 'paynow'
|
|
928
931
|
| 'paypal'
|
|
929
|
-
| 'paypay'
|
|
930
932
|
| 'payto'
|
|
931
933
|
| 'pix'
|
|
932
934
|
| 'promptpay'
|
|
933
|
-
| 'qris'
|
|
934
|
-
| 'rechnung'
|
|
935
935
|
| 'revolut_pay'
|
|
936
936
|
| 'samsung_pay'
|
|
937
937
|
| 'satispay'
|
|
938
938
|
| 'sepa_debit'
|
|
939
|
-
| 'shopeepay'
|
|
940
939
|
| 'sofort'
|
|
941
|
-
| 'stripe_balance'
|
|
942
940
|
| 'swish'
|
|
943
941
|
| 'twint'
|
|
944
942
|
| 'us_bank_account'
|
|
@@ -1009,7 +1007,7 @@ declare module 'stripe' {
|
|
|
1009
1007
|
|
|
1010
1008
|
interface CustomerSearchParams {
|
|
1011
1009
|
/**
|
|
1012
|
-
* The search query string. See [search query language](https://stripe.com/
|
|
1010
|
+
* The search query string. See [search query language](https://docs.stripe.com/search#search-query-language) and the list of supported [query fields for customers](https://docs.stripe.com/search#query-fields-for-customers).
|
|
1013
1011
|
*/
|
|
1014
1012
|
query: string;
|
|
1015
1013
|
|
|
@@ -1041,7 +1039,7 @@ declare module 'stripe' {
|
|
|
1041
1039
|
expand?: Array<string>;
|
|
1042
1040
|
|
|
1043
1041
|
/**
|
|
1044
|
-
* Set of [key-value pairs](https://stripe.com/
|
|
1042
|
+
* Set of [key-value pairs](https://docs.stripe.com/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`.
|
|
1045
1043
|
*/
|
|
1046
1044
|
metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
|
|
1047
1045
|
}
|
|
@@ -1061,7 +1059,7 @@ declare module 'stripe' {
|
|
|
1061
1059
|
namespace CustomerUpdateCashBalanceParams {
|
|
1062
1060
|
interface Settings {
|
|
1063
1061
|
/**
|
|
1064
|
-
* Controls how funds transferred by the customer are applied to payment intents and invoices. Valid options are `automatic`, `manual`, or `merchant_default`. For more information about these reconciliation modes, see [Reconciliation](https://stripe.com/
|
|
1062
|
+
* Controls how funds transferred by the customer are applied to payment intents and invoices. Valid options are `automatic`, `manual`, or `merchant_default`. For more information about these reconciliation modes, see [Reconciliation](https://docs.stripe.com/payments/customer-balance/reconciliation).
|
|
1065
1063
|
*/
|
|
1066
1064
|
reconciliation_mode?: Settings.ReconciliationMode;
|
|
1067
1065
|
}
|
|
@@ -1128,7 +1126,7 @@ declare module 'stripe' {
|
|
|
1128
1126
|
expand?: Array<string>;
|
|
1129
1127
|
|
|
1130
1128
|
/**
|
|
1131
|
-
* Set of [key-value pairs](https://stripe.com/
|
|
1129
|
+
* Set of [key-value pairs](https://docs.stripe.com/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`.
|
|
1132
1130
|
*/
|
|
1133
1131
|
metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
|
|
1134
1132
|
|
package/types/Discounts.d.ts
CHANGED
|
@@ -27,9 +27,9 @@ declare module 'stripe' {
|
|
|
27
27
|
customer: string | Stripe.Customer | Stripe.DeletedCustomer | null;
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
* The ID of the account associated with this discount.
|
|
30
|
+
* The ID of the account representing the customer associated with this discount.
|
|
31
31
|
*/
|
|
32
|
-
customer_account
|
|
32
|
+
customer_account: string | null;
|
|
33
33
|
|
|
34
34
|
/**
|
|
35
35
|
* Always true for a deleted object
|
|
@@ -84,10 +84,10 @@ declare module 'stripe' {
|
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
/**
|
|
87
|
-
* A discount represents the actual application of a [coupon](https://stripe.com
|
|
87
|
+
* A discount represents the actual application of a [coupon](https://api.stripe.com#coupons) or [promotion code](https://api.stripe.com#promotion_codes).
|
|
88
88
|
* It contains information about when the discount began, when it will end, and what it is applied to.
|
|
89
89
|
*
|
|
90
|
-
* Related guide: [Applying discounts to subscriptions](https://stripe.com/
|
|
90
|
+
* Related guide: [Applying discounts to subscriptions](https://docs.stripe.com/billing/subscriptions/discounts)
|
|
91
91
|
*/
|
|
92
92
|
interface Discount {
|
|
93
93
|
/**
|
|
@@ -111,9 +111,9 @@ declare module 'stripe' {
|
|
|
111
111
|
customer: string | Stripe.Customer | Stripe.DeletedCustomer | null;
|
|
112
112
|
|
|
113
113
|
/**
|
|
114
|
-
* The ID of the account associated with this discount.
|
|
114
|
+
* The ID of the account representing the customer associated with this discount.
|
|
115
115
|
*/
|
|
116
|
-
customer_account
|
|
116
|
+
customer_account: string | null;
|
|
117
117
|
|
|
118
118
|
/**
|
|
119
119
|
* Always true for a deleted object
|
package/types/Disputes.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ declare module 'stripe' {
|
|
|
7
7
|
* When this happens, you have the opportunity to respond to the dispute with
|
|
8
8
|
* evidence that shows that the charge is legitimate.
|
|
9
9
|
*
|
|
10
|
-
* Related guide: [Disputes and fraud](https://stripe.com/
|
|
10
|
+
* Related guide: [Disputes and fraud](https://docs.stripe.com/disputes)
|
|
11
11
|
*/
|
|
12
12
|
interface Dispute {
|
|
13
13
|
/**
|
|
@@ -54,11 +54,6 @@ declare module 'stripe' {
|
|
|
54
54
|
|
|
55
55
|
evidence_details: Dispute.EvidenceDetails;
|
|
56
56
|
|
|
57
|
-
/**
|
|
58
|
-
* Intended submission method for the dispute.
|
|
59
|
-
*/
|
|
60
|
-
intended_submission_method?: Dispute.IntendedSubmissionMethod | null;
|
|
61
|
-
|
|
62
57
|
/**
|
|
63
58
|
* If true, it's still possible to refund the disputed payment. After the payment has been fully refunded, no further funds are withdrawn from your Stripe account as a result of this dispute.
|
|
64
59
|
*/
|
|
@@ -70,7 +65,7 @@ declare module 'stripe' {
|
|
|
70
65
|
livemode: boolean;
|
|
71
66
|
|
|
72
67
|
/**
|
|
73
|
-
* Set of [key-value pairs](https://stripe.com/
|
|
68
|
+
* Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
74
69
|
*/
|
|
75
70
|
metadata: Stripe.Metadata;
|
|
76
71
|
|
|
@@ -87,12 +82,10 @@ declare module 'stripe' {
|
|
|
87
82
|
payment_method_details?: Dispute.PaymentMethodDetails;
|
|
88
83
|
|
|
89
84
|
/**
|
|
90
|
-
* Reason given by cardholder for dispute. Possible values are `bank_cannot_process`, `check_returned`, `credit_not_processed`, `customer_initiated`, `debit_not_authorized`, `duplicate`, `fraudulent`, `general`, `incorrect_account_details`, `insufficient_funds`, `noncompliant`, `product_not_received`, `product_unacceptable`, `subscription_canceled`, or `unrecognized`. Learn more about [dispute reasons](https://stripe.com/
|
|
85
|
+
* Reason given by cardholder for dispute. Possible values are `bank_cannot_process`, `check_returned`, `credit_not_processed`, `customer_initiated`, `debit_not_authorized`, `duplicate`, `fraudulent`, `general`, `incorrect_account_details`, `insufficient_funds`, `noncompliant`, `product_not_received`, `product_unacceptable`, `subscription_canceled`, or `unrecognized`. Learn more about [dispute reasons](https://docs.stripe.com/disputes/categories).
|
|
91
86
|
*/
|
|
92
87
|
reason: string;
|
|
93
88
|
|
|
94
|
-
smart_disputes?: Dispute.SmartDisputes;
|
|
95
|
-
|
|
96
89
|
/**
|
|
97
90
|
* The current status of a dispute. Possible values include:`warning_needs_response`, `warning_under_review`, `warning_closed`, `needs_response`, `under_review`, `won`, `lost`, or `prevented`.
|
|
98
91
|
*/
|
|
@@ -386,11 +379,6 @@ declare module 'stripe' {
|
|
|
386
379
|
* The number of times evidence has been submitted. Typically, you may only submit evidence once.
|
|
387
380
|
*/
|
|
388
381
|
submission_count: number;
|
|
389
|
-
|
|
390
|
-
/**
|
|
391
|
-
* Whether the dispute was submitted manually, with Smart Disputes, or not submitted.
|
|
392
|
-
*/
|
|
393
|
-
submission_method?: EvidenceDetails.SubmissionMethod;
|
|
394
382
|
}
|
|
395
383
|
|
|
396
384
|
namespace EvidenceDetails {
|
|
@@ -435,16 +423,8 @@ declare module 'stripe' {
|
|
|
435
423
|
type Status = 'fee_acknowledged' | 'requires_fee_acknowledgement';
|
|
436
424
|
}
|
|
437
425
|
}
|
|
438
|
-
|
|
439
|
-
type SubmissionMethod = 'manual' | 'not_submitted' | 'smart_disputes';
|
|
440
426
|
}
|
|
441
427
|
|
|
442
|
-
type IntendedSubmissionMethod =
|
|
443
|
-
| 'manual'
|
|
444
|
-
| 'prefer_manual'
|
|
445
|
-
| 'prefer_smart_disputes'
|
|
446
|
-
| 'smart_disputes';
|
|
447
|
-
|
|
448
428
|
interface PaymentMethodDetails {
|
|
449
429
|
amazon_pay?: PaymentMethodDetails.AmazonPay;
|
|
450
430
|
|
|
@@ -525,26 +505,6 @@ declare module 'stripe' {
|
|
|
525
505
|
type Type = 'amazon_pay' | 'card' | 'klarna' | 'paypal';
|
|
526
506
|
}
|
|
527
507
|
|
|
528
|
-
interface SmartDisputes {
|
|
529
|
-
/**
|
|
530
|
-
* Evidence that could be provided to improve the SmartDisputes packet
|
|
531
|
-
*/
|
|
532
|
-
recommended_evidence: Array<Array<string>> | null;
|
|
533
|
-
|
|
534
|
-
/**
|
|
535
|
-
* Smart Disputes auto representment packet availability status.
|
|
536
|
-
*/
|
|
537
|
-
status: SmartDisputes.Status;
|
|
538
|
-
}
|
|
539
|
-
|
|
540
|
-
namespace SmartDisputes {
|
|
541
|
-
type Status =
|
|
542
|
-
| 'available'
|
|
543
|
-
| 'processing'
|
|
544
|
-
| 'requires_evidence'
|
|
545
|
-
| 'unavailable';
|
|
546
|
-
}
|
|
547
|
-
|
|
548
508
|
type Status =
|
|
549
509
|
| 'lost'
|
|
550
510
|
| 'needs_response'
|
|
@@ -21,12 +21,7 @@ declare module 'stripe' {
|
|
|
21
21
|
expand?: Array<string>;
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
26
|
-
intended_submission_method?: DisputeUpdateParams.IntendedSubmissionMethod;
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* 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`.
|
|
24
|
+
* Set of [key-value pairs](https://docs.stripe.com/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`.
|
|
30
25
|
*/
|
|
31
26
|
metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
|
|
32
27
|
|
|
@@ -305,12 +300,6 @@ declare module 'stripe' {
|
|
|
305
300
|
}
|
|
306
301
|
}
|
|
307
302
|
}
|
|
308
|
-
|
|
309
|
-
type IntendedSubmissionMethod =
|
|
310
|
-
| 'manual'
|
|
311
|
-
| 'prefer_manual'
|
|
312
|
-
| 'prefer_smart_disputes'
|
|
313
|
-
| 'smart_disputes';
|
|
314
303
|
}
|
|
315
304
|
|
|
316
305
|
interface DisputeListParams extends PaginationParams {
|
|
@@ -18,7 +18,7 @@ declare module 'stripe' {
|
|
|
18
18
|
object: 'entitlements.active_entitlement';
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
|
-
* The [Feature](https://stripe.com/
|
|
21
|
+
* The [Feature](https://docs.stripe.com/api/entitlements/feature) that the customer is entitled to.
|
|
22
22
|
*/
|
|
23
23
|
feature: string | Stripe.Entitlements.Feature;
|
|
24
24
|
|