stripe 20.1.0 → 20.2.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1544 -47
- package/OPENAPI_VERSION +1 -1
- package/README.md +1 -0
- package/VERSION +1 -1
- package/cjs/Error.js +115 -1
- package/cjs/StripeEventNotificationHandler.js +118 -0
- package/cjs/apiVersion.js +2 -3
- package/cjs/resources/AccountNotices.js +21 -0
- package/cjs/resources/Billing/Analytics/MeterUsage.js +12 -0
- package/cjs/resources/Capital/FinancingOffers.js +21 -0
- package/cjs/resources/Capital/FinancingSummary.js +12 -0
- package/cjs/resources/Capital/FinancingTransactions.js +17 -0
- package/cjs/resources/ExternalAccounts.js +23 -0
- package/cjs/resources/FinancialConnections/Accounts.js +5 -0
- package/cjs/resources/FinancialConnections/Institutions.js +17 -0
- package/cjs/resources/FxQuotes.js +15 -0
- package/cjs/resources/Issuing/CreditUnderwritingRecords.js +33 -0
- package/cjs/resources/Issuing/DisputeSettlementDetails.js +17 -0
- package/cjs/resources/Issuing/FraudLiabilityDebits.js +17 -0
- package/cjs/resources/Mandates.js +5 -0
- package/cjs/resources/Margins.js +22 -0
- package/cjs/resources/Orders.js +24 -0
- package/cjs/resources/PaymentIntents.js +8 -0
- package/cjs/resources/Privacy/RedactionJobs.js +42 -0
- package/cjs/resources/Quotes.js +32 -0
- package/cjs/resources/Reserve/Holds.js +14 -0
- package/cjs/resources/Reserve/Plans.js +9 -0
- package/cjs/resources/Reserve/Releases.js +17 -0
- package/cjs/resources/SubscriptionSchedules.js +4 -0
- package/cjs/resources/Subscriptions.js +4 -0
- package/cjs/resources/Tax/Forms.js +20 -0
- package/cjs/resources/Terminal/ReaderCollectedData.js +12 -0
- package/cjs/resources/V2/Billing/BillSettings/Versions.js +17 -0
- package/cjs/resources/V2/Billing/BillSettings.js +27 -0
- package/cjs/resources/V2/Billing/Cadences.js +23 -0
- package/cjs/resources/V2/Billing/CollectionSettings/Versions.js +17 -0
- package/cjs/resources/V2/Billing/CollectionSettings.js +30 -0
- package/cjs/resources/V2/Billing/Profiles.js +19 -0
- package/cjs/resources/V2/Core/Vault/GbBankAccounts.js +33 -0
- package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +37 -0
- package/cjs/resources/V2/MoneyManagement/Adjustments.js +17 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +29 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js +21 -0
- package/cjs/resources/V2/MoneyManagement/InboundTransfers.js +21 -0
- package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +16 -0
- package/cjs/resources/V2/MoneyManagement/OutboundPayments.js +25 -0
- package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js +29 -0
- package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js +25 -0
- package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +25 -0
- package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +12 -0
- package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js +17 -0
- package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js +17 -0
- package/cjs/resources/V2/MoneyManagement/TransactionEntries.js +17 -0
- package/cjs/resources/V2/MoneyManagement/Transactions.js +17 -0
- package/cjs/resources/V2/TestHelpers/FinancialAddresses.js +16 -0
- package/cjs/resources.js +98 -4
- package/cjs/stripe.core.js +5 -1
- package/esm/Error.js +100 -0
- package/esm/StripeEventNotificationHandler.js +114 -0
- package/esm/apiVersion.js +1 -2
- package/esm/resources/AccountNotices.js +18 -0
- package/esm/resources/Billing/Analytics/MeterUsage.js +9 -0
- package/esm/resources/Capital/FinancingOffers.js +18 -0
- package/esm/resources/Capital/FinancingSummary.js +9 -0
- package/esm/resources/Capital/FinancingTransactions.js +14 -0
- package/esm/resources/ExternalAccounts.js +20 -0
- package/esm/resources/FinancialConnections/Accounts.js +5 -0
- package/esm/resources/FinancialConnections/Institutions.js +14 -0
- package/esm/resources/FxQuotes.js +12 -0
- package/esm/resources/Issuing/CreditUnderwritingRecords.js +30 -0
- package/esm/resources/Issuing/DisputeSettlementDetails.js +14 -0
- package/esm/resources/Issuing/FraudLiabilityDebits.js +14 -0
- package/esm/resources/Mandates.js +5 -0
- package/esm/resources/Margins.js +19 -0
- package/esm/resources/Orders.js +21 -0
- package/esm/resources/PaymentIntents.js +8 -0
- package/esm/resources/Privacy/RedactionJobs.js +39 -0
- package/esm/resources/Quotes.js +32 -0
- package/esm/resources/Reserve/Holds.js +11 -0
- package/esm/resources/Reserve/Plans.js +6 -0
- package/esm/resources/Reserve/Releases.js +14 -0
- package/esm/resources/SubscriptionSchedules.js +4 -0
- package/esm/resources/Subscriptions.js +4 -0
- package/esm/resources/Tax/Forms.js +17 -0
- package/esm/resources/Terminal/ReaderCollectedData.js +9 -0
- package/esm/resources/V2/Billing/BillSettings/Versions.js +14 -0
- package/esm/resources/V2/Billing/BillSettings.js +24 -0
- package/esm/resources/V2/Billing/Cadences.js +20 -0
- package/esm/resources/V2/Billing/CollectionSettings/Versions.js +14 -0
- package/esm/resources/V2/Billing/CollectionSettings.js +27 -0
- package/esm/resources/V2/Billing/Profiles.js +16 -0
- package/esm/resources/V2/Core/Vault/GbBankAccounts.js +30 -0
- package/esm/resources/V2/Core/Vault/UsBankAccounts.js +34 -0
- package/esm/resources/V2/MoneyManagement/Adjustments.js +14 -0
- package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +26 -0
- package/esm/resources/V2/MoneyManagement/FinancialAddresses.js +18 -0
- package/esm/resources/V2/MoneyManagement/InboundTransfers.js +18 -0
- package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +13 -0
- package/esm/resources/V2/MoneyManagement/OutboundPayments.js +22 -0
- package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js +26 -0
- package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +22 -0
- package/esm/resources/V2/MoneyManagement/PayoutMethods.js +22 -0
- package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +9 -0
- package/esm/resources/V2/MoneyManagement/ReceivedCredits.js +14 -0
- package/esm/resources/V2/MoneyManagement/ReceivedDebits.js +14 -0
- package/esm/resources/V2/MoneyManagement/TransactionEntries.js +14 -0
- package/esm/resources/V2/MoneyManagement/Transactions.js +14 -0
- package/esm/resources/V2/TestHelpers/FinancialAddresses.js +13 -0
- package/esm/resources.js +89 -0
- package/esm/stripe.core.js +5 -1
- package/package.json +1 -1
- package/types/AccountLinksResource.d.ts +5 -1
- package/types/AccountNotices.d.ts +113 -0
- package/types/AccountNoticesResource.d.ts +98 -0
- package/types/AccountSessions.d.ts +45 -0
- package/types/AccountSessionsResource.d.ts +264 -0
- package/types/Accounts.d.ts +225 -1
- package/types/AccountsResource.d.ts +562 -0
- package/types/BankAccounts.d.ts +2 -0
- package/types/Billing/AlertTriggereds.d.ts +1 -1
- package/types/Billing/Analytics/MeterUsage.d.ts +31 -0
- package/types/Billing/Analytics/MeterUsageResource.d.ts +689 -0
- package/types/Billing/Analytics/MeterUsageRows.d.ts +51 -0
- package/types/Capabilities.d.ts +2 -0
- package/types/Capital/FinancingOffers.d.ts +188 -0
- package/types/Capital/FinancingOffersResource.d.ts +97 -0
- package/types/Capital/FinancingSummary.d.ts +109 -0
- package/types/Capital/FinancingSummaryResource.d.ts +27 -0
- package/types/Capital/FinancingTransactions.d.ts +135 -0
- package/types/Capital/FinancingTransactionsResource.d.ts +68 -0
- package/types/Cards.d.ts +5 -0
- package/types/Charges.d.ts +152 -0
- package/types/ChargesResource.d.ts +3855 -75
- package/types/Checkout/Sessions.d.ts +279 -2
- package/types/Checkout/SessionsResource.d.ts +362 -2
- package/types/ConfirmationTokens.d.ts +103 -0
- package/types/Coupons.d.ts +35 -0
- package/types/CouponsResource.d.ts +23 -0
- package/types/CreditNoteLineItems.d.ts +17 -0
- package/types/CustomerSessions.d.ts +41 -0
- package/types/CustomerSessionsResource.d.ts +41 -0
- package/types/CustomersResource.d.ts +7 -0
- package/types/Disputes.d.ts +40 -0
- package/types/DisputesResource.d.ts +11 -0
- package/types/Errors.d.ts +85 -0
- package/types/EventTypes.d.ts +630 -0
- package/types/Events.d.ts +96 -0
- package/types/ExternalAccountsResource.d.ts +304 -0
- package/types/FinancialConnections/AccountInferredBalances.d.ts +38 -0
- package/types/FinancialConnections/Accounts.d.ts +34 -1
- package/types/FinancialConnections/AccountsResource.d.ts +35 -3
- package/types/FinancialConnections/Institutions.d.ts +98 -0
- package/types/FinancialConnections/InstitutionsResource.d.ts +47 -0
- package/types/FinancialConnections/Sessions.d.ts +49 -1
- package/types/FinancialConnections/SessionsResource.d.ts +38 -1
- package/types/FxQuotes.d.ts +155 -0
- package/types/FxQuotesResource.d.ts +130 -0
- package/types/InvoiceItems.d.ts +5 -0
- package/types/InvoiceItemsResource.d.ts +98 -0
- package/types/InvoiceLineItems.d.ts +45 -1
- package/types/Invoices.d.ts +198 -4
- package/types/InvoicesResource.d.ts +1606 -3
- package/types/Issuing/CardholdersResource.d.ts +2 -1
- package/types/Issuing/CreditUnderwritingRecords.d.ts +451 -0
- package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +1032 -0
- package/types/Issuing/DisputeSettlementDetails.d.ts +85 -0
- package/types/Issuing/DisputeSettlementDetailsResource.d.ts +52 -0
- package/types/Issuing/FraudLiabilityDebits.d.ts +52 -0
- package/types/Issuing/FraudLiabilityDebitsResource.d.ts +52 -0
- package/types/Issuing/Settlements.d.ts +113 -0
- package/types/Issuing/Transactions.d.ts +5 -0
- package/types/Issuing/TransactionsResource.d.ts +5 -0
- package/types/LineItems.d.ts +45 -1
- package/types/Mandates.d.ts +69 -1
- package/types/MandatesResource.d.ts +31 -0
- package/types/Margins.d.ts +56 -0
- package/types/MarginsResource.d.ts +114 -0
- package/types/Orders.d.ts +1163 -0
- package/types/OrdersResource.d.ts +5505 -0
- package/types/PaymentAttemptRecords.d.ts +117 -0
- package/types/PaymentIntents.d.ts +683 -3
- package/types/PaymentIntentsResource.d.ts +19095 -6508
- package/types/PaymentLinks.d.ts +5 -0
- package/types/PaymentLinksResource.d.ts +10 -0
- package/types/PaymentMethodConfigurations.d.ts +180 -0
- package/types/PaymentMethodConfigurationsResource.d.ts +250 -0
- package/types/PaymentMethods.d.ts +108 -0
- package/types/PaymentMethodsResource.d.ts +110 -0
- package/types/PaymentRecords.d.ts +117 -0
- package/types/Persons.d.ts +2 -0
- package/types/Prices.d.ts +22 -0
- package/types/PricesResource.d.ts +22 -0
- package/types/Privacy/RedactionJobValidationErrors.d.ts +60 -0
- package/types/Privacy/RedactionJobs.d.ts +111 -0
- package/types/Privacy/RedactionJobsResource.d.ts +230 -0
- package/types/QuoteLines.d.ts +634 -0
- package/types/QuotePreviewInvoices.d.ts +1821 -0
- package/types/QuotePreviewSubscriptionSchedules.d.ts +908 -0
- package/types/Quotes.d.ts +589 -1
- package/types/QuotesResource.d.ts +2567 -237
- package/types/Refunds.d.ts +14 -0
- package/types/Reserve/Holds.d.ts +104 -0
- package/types/Reserve/HoldsResource.d.ts +76 -0
- package/types/Reserve/Plans.d.ts +103 -0
- package/types/Reserve/PlansResource.d.ts +29 -0
- package/types/Reserve/Releases.d.ts +105 -0
- package/types/Reserve/ReleasesResource.d.ts +60 -0
- package/types/SetupAttempts.d.ts +42 -1
- package/types/SetupIntents.d.ts +138 -2
- package/types/SetupIntentsResource.d.ts +629 -3
- package/types/Sources.d.ts +29 -0
- package/types/SubscriptionItems.d.ts +26 -0
- package/types/SubscriptionItemsResource.d.ts +109 -0
- package/types/SubscriptionSchedules.d.ts +200 -0
- package/types/SubscriptionSchedulesResource.d.ts +1230 -12
- package/types/Subscriptions.d.ts +257 -1
- package/types/SubscriptionsResource.d.ts +726 -2
- package/types/Tax/Forms.d.ts +220 -0
- package/types/Tax/FormsResource.d.ts +107 -0
- package/types/Terminal/Configurations.d.ts +9 -0
- package/types/Terminal/ConfigurationsResource.d.ts +28 -0
- package/types/Terminal/ReaderCollectedData.d.ts +51 -0
- package/types/Terminal/ReaderCollectedDataResource.d.ts +29 -0
- package/types/Terminal/Readers.d.ts +20 -0
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +103 -0
- package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
- package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -0
- package/types/Transfers.d.ts +5 -0
- package/types/TransfersResource.d.ts +5 -0
- package/types/Treasury/FinancialAccountFeatures.d.ts +7 -0
- package/types/Treasury/FinancialAccounts.d.ts +5 -0
- package/types/Treasury/FinancialAccountsResource.d.ts +37 -0
- package/types/Treasury/OutboundTransfers.d.ts +26 -0
- package/types/Treasury/OutboundTransfersResource.d.ts +26 -0
- package/types/Treasury/ReceivedCredits.d.ts +26 -0
- package/types/Treasury/ReceivedDebits.d.ts +31 -0
- package/types/V2/Billing/BillSettingVersions.d.ts +97 -0
- package/types/V2/Billing/BillSettings/VersionsResource.d.ts +58 -0
- package/types/V2/Billing/BillSettings.d.ts +120 -0
- package/types/V2/Billing/BillSettingsResource.d.ts +241 -0
- package/types/V2/Billing/Cadences.d.ts +690 -0
- package/types/V2/Billing/CadencesResource.d.ts +487 -0
- package/types/V2/Billing/CollectionSettingVersions.d.ts +318 -0
- package/types/V2/Billing/CollectionSettings/VersionsResource.d.ts +62 -0
- package/types/V2/Billing/CollectionSettings.d.ts +341 -0
- package/types/V2/Billing/CollectionSettingsResource.d.ts +683 -0
- package/types/V2/Billing/Profiles.d.ts +70 -0
- package/types/V2/Billing/ProfilesResource.d.ts +150 -0
- package/types/V2/Core/AccountLinks.d.ts +10 -2
- package/types/V2/Core/AccountLinksResource.d.ts +10 -2
- package/types/V2/Core/AccountTokensResource.d.ts +12 -0
- package/types/V2/Core/Accounts.d.ts +999 -84
- package/types/V2/Core/AccountsResource.d.ts +523 -2
- package/types/V2/Core/EventTypes.d.ts +1564 -9
- package/types/V2/Core/Vault/GbBankAccounts.d.ts +160 -0
- package/types/V2/Core/Vault/GbBankAccountsResource.d.ts +194 -0
- package/types/V2/Core/Vault/UsBankAccounts.d.ts +121 -0
- package/types/V2/Core/Vault/UsBankAccountsResource.d.ts +198 -0
- package/types/V2/EventMisc.d.ts +37 -0
- package/types/V2/FinancialAddressCreditSimulations.d.ts +27 -0
- package/types/V2/FinancialAddressGeneratedMicrodeposits.d.ts +46 -0
- package/types/V2/MoneyManagement/Adjustments.d.ts +122 -0
- package/types/V2/MoneyManagement/AdjustmentsResource.d.ts +83 -0
- package/types/V2/MoneyManagement/FinancialAccounts.d.ts +186 -0
- package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +172 -0
- package/types/V2/MoneyManagement/FinancialAddresses.d.ts +175 -0
- package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +109 -0
- package/types/V2/MoneyManagement/InboundTransfers.d.ts +250 -0
- package/types/V2/MoneyManagement/InboundTransfersResource.d.ts +156 -0
- package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +222 -0
- package/types/V2/MoneyManagement/OutboundPaymentQuotesResource.d.ts +127 -0
- package/types/V2/MoneyManagement/OutboundPayments.d.ts +318 -0
- package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +254 -0
- package/types/V2/MoneyManagement/OutboundSetupIntents.d.ts +97 -0
- package/types/V2/MoneyManagement/OutboundSetupIntentsResource.d.ts +298 -0
- package/types/V2/MoneyManagement/OutboundTransfers.d.ts +291 -0
- package/types/V2/MoneyManagement/OutboundTransfersResource.d.ts +220 -0
- package/types/V2/MoneyManagement/PayoutMethods.d.ts +165 -0
- package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpec.d.ts +93 -0
- package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecResource.d.ts +41 -0
- package/types/V2/MoneyManagement/PayoutMethodsResource.d.ts +115 -0
- package/types/V2/MoneyManagement/ReceivedCredits.d.ts +323 -0
- package/types/V2/MoneyManagement/ReceivedCreditsResource.d.ts +78 -0
- package/types/V2/MoneyManagement/ReceivedDebits.d.ts +188 -0
- package/types/V2/MoneyManagement/ReceivedDebitsResource.d.ts +48 -0
- package/types/V2/MoneyManagement/TransactionEntries.d.ts +200 -0
- package/types/V2/MoneyManagement/TransactionEntriesResource.d.ts +82 -0
- package/types/V2/MoneyManagement/Transactions.d.ts +227 -0
- package/types/V2/MoneyManagement/TransactionsResource.d.ts +83 -0
- package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +80 -0
- package/types/WebhookEndpointsResource.d.ts +76 -0
- package/types/apiVersion.d.ts +1 -2
- package/types/index.d.ts +160 -0
- package/types/lib.d.ts +10 -0
- package/types/test/typescriptTest.ts +27 -0
package/types/SetupIntents.d.ts
CHANGED
|
@@ -220,7 +220,9 @@ declare module 'stripe' {
|
|
|
220
220
|
| 'eps'
|
|
221
221
|
| 'fpx'
|
|
222
222
|
| 'giropay'
|
|
223
|
+
| 'gopay'
|
|
223
224
|
| 'grabpay'
|
|
225
|
+
| 'id_bank_transfer'
|
|
224
226
|
| 'ideal'
|
|
225
227
|
| 'kakao_pay'
|
|
226
228
|
| 'klarna'
|
|
@@ -237,14 +239,19 @@ declare module 'stripe' {
|
|
|
237
239
|
| 'payco'
|
|
238
240
|
| 'paynow'
|
|
239
241
|
| 'paypal'
|
|
242
|
+
| 'paypay'
|
|
240
243
|
| 'payto'
|
|
241
244
|
| 'pix'
|
|
242
245
|
| 'promptpay'
|
|
246
|
+
| 'qris'
|
|
247
|
+
| 'rechnung'
|
|
243
248
|
| 'revolut_pay'
|
|
244
249
|
| 'samsung_pay'
|
|
245
250
|
| 'satispay'
|
|
246
251
|
| 'sepa_debit'
|
|
252
|
+
| 'shopeepay'
|
|
247
253
|
| 'sofort'
|
|
254
|
+
| 'stripe_balance'
|
|
248
255
|
| 'swish'
|
|
249
256
|
| 'twint'
|
|
250
257
|
| 'us_bank_account'
|
|
@@ -420,6 +427,7 @@ declare module 'stripe' {
|
|
|
420
427
|
| 'financial_connections_account_inactive'
|
|
421
428
|
| 'financial_connections_account_pending_account_numbers'
|
|
422
429
|
| 'financial_connections_account_unavailable_account_numbers'
|
|
430
|
+
| 'financial_connections_institution_unavailable'
|
|
423
431
|
| 'financial_connections_no_successful_transaction_refresh'
|
|
424
432
|
| 'forwarding_api_inactive'
|
|
425
433
|
| 'forwarding_api_invalid_parameter'
|
|
@@ -518,6 +526,7 @@ declare module 'stripe' {
|
|
|
518
526
|
| 'return_intent_already_processed'
|
|
519
527
|
| 'routing_number_invalid'
|
|
520
528
|
| 'secret_key_required'
|
|
529
|
+
| 'sensitive_data_access_expired'
|
|
521
530
|
| 'sepa_unsupported_account'
|
|
522
531
|
| 'setup_attempt_failed'
|
|
523
532
|
| 'setup_intent_authentication_failure'
|
|
@@ -537,6 +546,7 @@ declare module 'stripe' {
|
|
|
537
546
|
| 'taxes_calculation_failed'
|
|
538
547
|
| 'terminal_location_country_unsupported'
|
|
539
548
|
| 'terminal_reader_busy'
|
|
549
|
+
| 'terminal_reader_collected_data_invalid'
|
|
540
550
|
| 'terminal_reader_hardware_fault'
|
|
541
551
|
| 'terminal_reader_invalid_location_for_activation'
|
|
542
552
|
| 'terminal_reader_invalid_location_for_payment'
|
|
@@ -549,7 +559,9 @@ declare module 'stripe' {
|
|
|
549
559
|
| 'token_in_use'
|
|
550
560
|
| 'transfer_source_balance_parameters_mismatch'
|
|
551
561
|
| 'transfers_not_allowed'
|
|
552
|
-
| 'url_invalid'
|
|
562
|
+
| 'url_invalid'
|
|
563
|
+
| 'v2_account_disconnection_unsupported'
|
|
564
|
+
| 'v2_account_missing_configuration';
|
|
553
565
|
|
|
554
566
|
type Type =
|
|
555
567
|
| 'api_error'
|
|
@@ -561,6 +573,8 @@ declare module 'stripe' {
|
|
|
561
573
|
interface NextAction {
|
|
562
574
|
cashapp_handle_redirect_or_display_qr_code?: NextAction.CashappHandleRedirectOrDisplayQrCode;
|
|
563
575
|
|
|
576
|
+
pix_display_qr_code?: NextAction.PixDisplayQrCode;
|
|
577
|
+
|
|
564
578
|
redirect_to_url?: NextAction.RedirectToUrl;
|
|
565
579
|
|
|
566
580
|
/**
|
|
@@ -610,6 +624,33 @@ declare module 'stripe' {
|
|
|
610
624
|
}
|
|
611
625
|
}
|
|
612
626
|
|
|
627
|
+
interface PixDisplayQrCode {
|
|
628
|
+
/**
|
|
629
|
+
* The raw data string used to generate QR code, it should be used together with QR code library.
|
|
630
|
+
*/
|
|
631
|
+
data?: string;
|
|
632
|
+
|
|
633
|
+
/**
|
|
634
|
+
* The date (unix timestamp) when the PIX expires.
|
|
635
|
+
*/
|
|
636
|
+
expires_at?: number;
|
|
637
|
+
|
|
638
|
+
/**
|
|
639
|
+
* The URL to the hosted pix instructions page, which allows customers to view the pix QR code.
|
|
640
|
+
*/
|
|
641
|
+
hosted_instructions_url?: string;
|
|
642
|
+
|
|
643
|
+
/**
|
|
644
|
+
* The image_url_png string used to render png QR code
|
|
645
|
+
*/
|
|
646
|
+
image_url_png?: string;
|
|
647
|
+
|
|
648
|
+
/**
|
|
649
|
+
* The image_url_svg string used to render svg QR code
|
|
650
|
+
*/
|
|
651
|
+
image_url_svg?: string;
|
|
652
|
+
}
|
|
653
|
+
|
|
613
654
|
interface RedirectToUrl {
|
|
614
655
|
/**
|
|
615
656
|
* If the customer does not exit their browser while authenticating, they will be redirected to this specified URL after completion.
|
|
@@ -679,6 +720,8 @@ declare module 'stripe' {
|
|
|
679
720
|
|
|
680
721
|
payto?: PaymentMethodOptions.Payto;
|
|
681
722
|
|
|
723
|
+
pix?: PaymentMethodOptions.Pix;
|
|
724
|
+
|
|
682
725
|
sepa_debit?: PaymentMethodOptions.SepaDebit;
|
|
683
726
|
|
|
684
727
|
us_bank_account?: PaymentMethodOptions.UsBankAccount;
|
|
@@ -876,6 +919,16 @@ declare module 'stripe' {
|
|
|
876
919
|
* The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
|
|
877
920
|
*/
|
|
878
921
|
billing_agreement_id: string | null;
|
|
922
|
+
|
|
923
|
+
/**
|
|
924
|
+
* 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).
|
|
925
|
+
*/
|
|
926
|
+
currency?: string | null;
|
|
927
|
+
|
|
928
|
+
/**
|
|
929
|
+
* The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
|
|
930
|
+
*/
|
|
931
|
+
subsellers?: Array<string>;
|
|
879
932
|
}
|
|
880
933
|
|
|
881
934
|
interface Payto {
|
|
@@ -948,6 +1001,67 @@ declare module 'stripe' {
|
|
|
948
1001
|
}
|
|
949
1002
|
}
|
|
950
1003
|
|
|
1004
|
+
interface Pix {
|
|
1005
|
+
mandate_options?: Pix.MandateOptions;
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
namespace Pix {
|
|
1009
|
+
interface MandateOptions {
|
|
1010
|
+
/**
|
|
1011
|
+
* Amount to be charged for future payments.
|
|
1012
|
+
*/
|
|
1013
|
+
amount?: number;
|
|
1014
|
+
|
|
1015
|
+
/**
|
|
1016
|
+
* Determines if the amount includes the IOF tax.
|
|
1017
|
+
*/
|
|
1018
|
+
amount_includes_iof?: MandateOptions.AmountIncludesIof;
|
|
1019
|
+
|
|
1020
|
+
/**
|
|
1021
|
+
* Type of amount.
|
|
1022
|
+
*/
|
|
1023
|
+
amount_type?: MandateOptions.AmountType;
|
|
1024
|
+
|
|
1025
|
+
/**
|
|
1026
|
+
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase.
|
|
1027
|
+
*/
|
|
1028
|
+
currency?: string;
|
|
1029
|
+
|
|
1030
|
+
/**
|
|
1031
|
+
* Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`.
|
|
1032
|
+
*/
|
|
1033
|
+
end_date?: string;
|
|
1034
|
+
|
|
1035
|
+
/**
|
|
1036
|
+
* Schedule at which the future payments will be charged.
|
|
1037
|
+
*/
|
|
1038
|
+
payment_schedule?: MandateOptions.PaymentSchedule;
|
|
1039
|
+
|
|
1040
|
+
/**
|
|
1041
|
+
* Subscription name displayed to buyers in their bank app.
|
|
1042
|
+
*/
|
|
1043
|
+
reference?: string;
|
|
1044
|
+
|
|
1045
|
+
/**
|
|
1046
|
+
* Start date of the mandate, in `YYYY-MM-DD`.
|
|
1047
|
+
*/
|
|
1048
|
+
start_date?: string;
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
namespace MandateOptions {
|
|
1052
|
+
type AmountIncludesIof = 'always' | 'never';
|
|
1053
|
+
|
|
1054
|
+
type AmountType = 'fixed' | 'maximum';
|
|
1055
|
+
|
|
1056
|
+
type PaymentSchedule =
|
|
1057
|
+
| 'halfyearly'
|
|
1058
|
+
| 'monthly'
|
|
1059
|
+
| 'quarterly'
|
|
1060
|
+
| 'weekly'
|
|
1061
|
+
| 'yearly';
|
|
1062
|
+
}
|
|
1063
|
+
}
|
|
1064
|
+
|
|
951
1065
|
interface SepaDebit {
|
|
952
1066
|
mandate_options?: SepaDebit.MandateOptions;
|
|
953
1067
|
}
|
|
@@ -976,6 +1090,8 @@ declare module 'stripe' {
|
|
|
976
1090
|
interface FinancialConnections {
|
|
977
1091
|
filters?: FinancialConnections.Filters;
|
|
978
1092
|
|
|
1093
|
+
manual_entry?: FinancialConnections.ManualEntry;
|
|
1094
|
+
|
|
979
1095
|
/**
|
|
980
1096
|
* The list of permissions to request. The `payment_method` permission must be included.
|
|
981
1097
|
*/
|
|
@@ -998,19 +1114,39 @@ declare module 'stripe' {
|
|
|
998
1114
|
* The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
|
|
999
1115
|
*/
|
|
1000
1116
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
1117
|
+
|
|
1118
|
+
/**
|
|
1119
|
+
* The institution to use to filter for possible accounts to link.
|
|
1120
|
+
*/
|
|
1121
|
+
institution?: string;
|
|
1001
1122
|
}
|
|
1002
1123
|
|
|
1003
1124
|
namespace Filters {
|
|
1004
1125
|
type AccountSubcategory = 'checking' | 'savings';
|
|
1005
1126
|
}
|
|
1006
1127
|
|
|
1128
|
+
interface ManualEntry {
|
|
1129
|
+
/**
|
|
1130
|
+
* Settings for configuring manual entry of account details.
|
|
1131
|
+
*/
|
|
1132
|
+
mode?: ManualEntry.Mode;
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
namespace ManualEntry {
|
|
1136
|
+
type Mode = 'automatic' | 'custom';
|
|
1137
|
+
}
|
|
1138
|
+
|
|
1007
1139
|
type Permission =
|
|
1008
1140
|
| 'balances'
|
|
1009
1141
|
| 'ownership'
|
|
1010
1142
|
| 'payment_method'
|
|
1011
1143
|
| 'transactions';
|
|
1012
1144
|
|
|
1013
|
-
type Prefetch =
|
|
1145
|
+
type Prefetch =
|
|
1146
|
+
| 'balances'
|
|
1147
|
+
| 'inferred_balances'
|
|
1148
|
+
| 'ownership'
|
|
1149
|
+
| 'transactions';
|
|
1014
1150
|
}
|
|
1015
1151
|
|
|
1016
1152
|
interface MandateOptions {
|