stripe 18.3.0 → 18.4.0-beta.2
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 +1296 -12
- package/README.md +1 -0
- package/VERSION +1 -1
- package/cjs/Error.js +107 -1
- package/cjs/apiVersion.js +2 -3
- package/cjs/resources/AccountNotices.js +21 -0
- package/cjs/resources/BalanceSettings.js +10 -0
- package/cjs/resources/Capital/FinancingOffers.js +21 -0
- package/cjs/resources/Capital/FinancingSummary.js +12 -0
- package/cjs/resources/Capital/FinancingTransactions.js +17 -0
- package/cjs/resources/ExternalAccounts.js +23 -0
- package/cjs/resources/FinancialConnections/Accounts.js +5 -0
- package/cjs/resources/FinancialConnections/Institutions.js +17 -0
- package/cjs/resources/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/Margins.js +22 -0
- package/cjs/resources/Orders.js +24 -0
- package/cjs/resources/{InvoicePayments.js → PaymentAttemptRecords.js} +4 -4
- package/cjs/resources/PaymentIntents.js +13 -0
- package/cjs/resources/PaymentRecords.js +29 -0
- package/cjs/resources/Privacy/RedactionJobs.js +42 -0
- package/cjs/resources/Quotes.js +32 -0
- package/cjs/resources/SubscriptionSchedules.js +4 -0
- package/cjs/resources/Tax/Associations.js +9 -0
- package/cjs/resources/Tax/Forms.js +20 -0
- package/cjs/resources/Terminal/ReaderCollectedData.js +12 -0
- package/cjs/resources/V2/Core/AccountLinks.js +9 -0
- package/cjs/resources/V2/Core/Accounts/Persons.js +29 -0
- package/cjs/resources/V2/Core/Accounts.js +25 -0
- package/cjs/resources/V2/Core/Vault/GbBankAccounts.js +28 -0
- package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +24 -0
- package/cjs/resources/V2/MoneyManagement/Adjustments.js +17 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +25 -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/Payments/OffSessionPayments.js +25 -0
- package/cjs/resources/V2/TestHelpers/FinancialAddresses.js +16 -0
- package/cjs/resources.js +98 -10
- package/cjs/stripe.core.js +1 -1
- package/esm/Error.js +93 -0
- package/esm/apiVersion.js +1 -2
- package/esm/resources/AccountNotices.js +18 -0
- package/esm/resources/BalanceSettings.js +7 -0
- package/esm/resources/Capital/FinancingOffers.js +18 -0
- package/esm/resources/Capital/FinancingSummary.js +9 -0
- package/esm/resources/Capital/FinancingTransactions.js +14 -0
- package/esm/resources/ExternalAccounts.js +20 -0
- package/esm/resources/FinancialConnections/Accounts.js +5 -0
- package/esm/resources/FinancialConnections/Institutions.js +14 -0
- package/esm/resources/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/Margins.js +19 -0
- package/esm/resources/Orders.js +21 -0
- package/esm/resources/{InvoicePayments.js → PaymentAttemptRecords.js} +3 -3
- package/esm/resources/PaymentIntents.js +13 -0
- package/esm/resources/PaymentRecords.js +26 -0
- package/esm/resources/Privacy/RedactionJobs.js +39 -0
- package/esm/resources/Quotes.js +32 -0
- package/esm/resources/SubscriptionSchedules.js +4 -0
- package/esm/resources/Tax/Associations.js +6 -0
- package/esm/resources/Tax/Forms.js +17 -0
- package/esm/resources/Terminal/ReaderCollectedData.js +9 -0
- package/esm/resources/V2/Core/AccountLinks.js +6 -0
- package/esm/resources/V2/Core/Accounts/Persons.js +26 -0
- package/esm/resources/V2/Core/Accounts.js +22 -0
- package/esm/resources/V2/Core/Vault/GbBankAccounts.js +25 -0
- package/esm/resources/V2/Core/Vault/UsBankAccounts.js +21 -0
- package/esm/resources/V2/MoneyManagement/Adjustments.js +14 -0
- package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +22 -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/Payments/OffSessionPayments.js +22 -0
- package/esm/resources/V2/TestHelpers/FinancialAddresses.js +13 -0
- package/esm/resources.js +82 -1
- package/esm/stripe.core.js +1 -1
- package/package.json +1 -1
- package/types/AccountLinksResource.d.ts +5 -1
- package/types/AccountNotices.d.ts +113 -0
- package/types/AccountNoticesResource.d.ts +98 -0
- package/types/AccountSessions.d.ts +45 -0
- package/types/AccountSessionsResource.d.ts +264 -0
- package/types/Accounts.d.ts +212 -1
- package/types/AccountsResource.d.ts +544 -0
- package/types/BalanceSettings.d.ts +89 -0
- package/types/BalanceSettingsResource.d.ts +108 -0
- package/types/Billing/CreditBalanceSummary.d.ts +5 -0
- package/types/Billing/CreditBalanceSummaryResource.d.ts +8 -3
- package/types/Billing/CreditBalanceTransactionsResource.d.ts +12 -4
- package/types/Billing/CreditGrants.d.ts +5 -0
- package/types/Billing/CreditGrantsResource.d.ts +11 -1
- package/types/BillingPortal/Sessions.d.ts +5 -0
- package/types/BillingPortal/SessionsResource.d.ts +12 -4
- package/types/Capital/FinancingOffers.d.ts +188 -0
- package/types/Capital/FinancingOffersResource.d.ts +97 -0
- package/types/Capital/FinancingSummary.d.ts +106 -0
- package/types/Capital/FinancingSummaryResource.d.ts +27 -0
- package/types/Capital/FinancingTransactions.d.ts +135 -0
- package/types/Capital/FinancingTransactionsResource.d.ts +68 -0
- package/types/Cards.d.ts +5 -0
- package/types/CashBalances.d.ts +5 -0
- package/types/Charges.d.ts +166 -0
- package/types/ChargesResource.d.ts +1406 -0
- package/types/Checkout/Sessions.d.ts +314 -1
- package/types/Checkout/SessionsResource.d.ts +333 -1
- package/types/ConfirmationTokens.d.ts +125 -0
- package/types/Coupons.d.ts +33 -0
- package/types/CouponsResource.d.ts +21 -0
- package/types/CreditNoteLineItems.d.ts +17 -0
- package/types/CreditNotes.d.ts +5 -0
- package/types/CreditNotesResource.d.ts +5 -0
- package/types/CustomerBalanceTransactions.d.ts +2 -0
- package/types/CustomerCashBalanceTransactions.d.ts +2 -0
- package/types/CustomerSessions.d.ts +5 -0
- package/types/CustomerSessionsResource.d.ts +6 -1
- package/types/Customers.d.ts +2 -0
- package/types/CustomersResource.d.ts +8 -0
- package/types/Discounts.d.ts +10 -0
- package/types/Disputes.d.ts +7 -0
- package/types/Errors.d.ts +81 -2
- package/types/EventTypes.d.ts +664 -0
- package/types/Events.d.ts +97 -0
- package/types/ExternalAccountsResource.d.ts +304 -0
- package/types/FinancialConnections/AccountInferredBalances.d.ts +38 -0
- package/types/FinancialConnections/Accounts.d.ts +36 -1
- package/types/FinancialConnections/AccountsResource.d.ts +40 -3
- package/types/FinancialConnections/Institutions.d.ts +98 -0
- package/types/FinancialConnections/InstitutionsResource.d.ts +47 -0
- package/types/FinancialConnections/Sessions.d.ts +51 -1
- package/types/FinancialConnections/SessionsResource.d.ts +43 -1
- package/types/FxQuotes.d.ts +153 -0
- package/types/FxQuotesResource.d.ts +130 -0
- package/types/Identity/VerificationSessions.d.ts +5 -0
- package/types/Identity/VerificationSessionsResource.d.ts +7 -0
- package/types/InvoiceItems.d.ts +10 -0
- package/types/InvoiceItemsResource.d.ts +117 -6
- package/types/InvoiceLineItems.d.ts +45 -1
- package/types/InvoicePayments.d.ts +5 -0
- package/types/Invoices.d.ts +133 -3
- package/types/InvoicesResource.d.ts +1447 -16
- package/types/Issuing/CardholdersResource.d.ts +2 -1
- package/types/Issuing/CreditUnderwritingRecords.d.ts +451 -0
- package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +1032 -0
- package/types/Issuing/DisputeSettlementDetails.d.ts +85 -0
- package/types/Issuing/DisputeSettlementDetailsResource.d.ts +52 -0
- package/types/Issuing/FraudLiabilityDebits.d.ts +52 -0
- package/types/Issuing/FraudLiabilityDebitsResource.d.ts +52 -0
- package/types/Issuing/Settlements.d.ts +113 -0
- package/types/Issuing/Transactions.d.ts +5 -0
- package/types/Issuing/TransactionsResource.d.ts +5 -0
- package/types/LineItems.d.ts +49 -0
- package/types/Mandates.d.ts +77 -0
- package/types/Margins.d.ts +56 -0
- package/types/MarginsResource.d.ts +114 -0
- package/types/Orders.d.ts +1163 -0
- package/types/OrdersResource.d.ts +3139 -0
- package/types/PaymentAttemptRecords.d.ts +2161 -0
- package/types/PaymentAttemptRecordsResource.d.ts +47 -0
- package/types/PaymentIntentAmountDetailsLineItems.d.ts +116 -0
- package/types/PaymentIntents.d.ts +768 -2
- package/types/PaymentIntentsResource.d.ts +8808 -4088
- package/types/PaymentLinks.d.ts +6 -0
- package/types/PaymentLinksResource.d.ts +12 -0
- package/types/PaymentMethodConfigurations.d.ts +180 -0
- package/types/PaymentMethodConfigurationsResource.d.ts +250 -0
- package/types/PaymentMethods.d.ts +125 -0
- package/types/PaymentMethodsResource.d.ts +167 -2
- package/types/PaymentRecords.d.ts +2154 -0
- package/types/PaymentRecordsResource.d.ts +455 -0
- package/types/Payouts.d.ts +5 -0
- package/types/PayoutsResource.d.ts +5 -0
- package/types/Prices.d.ts +22 -0
- package/types/PricesResource.d.ts +22 -0
- package/types/Privacy/RedactionJobValidationErrors.d.ts +60 -0
- package/types/Privacy/RedactionJobs.d.ts +111 -0
- package/types/Privacy/RedactionJobsResource.d.ts +230 -0
- package/types/PromotionCodes.d.ts +5 -0
- package/types/PromotionCodesResource.d.ts +10 -0
- package/types/QuoteLines.d.ts +634 -0
- package/types/QuotePreviewInvoices.d.ts +1696 -0
- package/types/QuotePreviewSubscriptionSchedules.d.ts +845 -0
- package/types/Quotes.d.ts +594 -1
- package/types/QuotesResource.d.ts +2577 -232
- package/types/Refunds.d.ts +14 -0
- package/types/SetupAttempts.d.ts +47 -1
- package/types/SetupIntents.d.ts +118 -2
- package/types/SetupIntentsResource.d.ts +730 -3
- package/types/Sources.d.ts +29 -0
- package/types/SubscriptionItems.d.ts +21 -0
- package/types/SubscriptionItemsResource.d.ts +109 -0
- package/types/SubscriptionSchedules.d.ts +205 -0
- package/types/SubscriptionSchedulesResource.d.ts +1237 -9
- package/types/Subscriptions.d.ts +97 -1
- package/types/SubscriptionsResource.d.ts +396 -10
- package/types/Tax/Associations.d.ts +82 -0
- package/types/Tax/AssociationsResource.d.ts +29 -0
- package/types/Tax/Forms.d.ts +220 -0
- package/types/Tax/FormsResource.d.ts +107 -0
- package/types/TaxIds.d.ts +10 -0
- package/types/TaxIdsResource.d.ts +10 -0
- package/types/Terminal/ReaderCollectedData.d.ts +51 -0
- package/types/Terminal/ReaderCollectedDataResource.d.ts +29 -0
- package/types/Terminal/Readers.d.ts +20 -0
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +126 -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/Core/AccountLinks.d.ts +106 -0
- package/types/V2/Core/AccountLinksResource.d.ts +90 -0
- package/types/V2/Core/Accounts/PersonsResource.d.ts +3780 -0
- package/types/V2/Core/Accounts.d.ts +8791 -0
- package/types/V2/Core/AccountsResource.d.ts +10582 -0
- package/types/V2/Core/Persons.d.ts +1872 -0
- package/types/V2/Core/Vault/GbBankAccounts.d.ts +160 -0
- package/types/V2/Core/Vault/GbBankAccountsResource.d.ts +172 -0
- package/types/V2/Core/Vault/UsBankAccounts.d.ts +70 -0
- package/types/V2/Core/Vault/UsBankAccountsResource.d.ts +123 -0
- package/types/V2/EventTypes.d.ts +958 -5
- package/types/V2/FinancialAddressCreditSimulations.d.ts +27 -0
- package/types/V2/FinancialAddressGeneratedMicrodeposits.d.ts +32 -0
- package/types/V2/MoneyManagement/Adjustments.d.ts +110 -0
- package/types/V2/MoneyManagement/AdjustmentsResource.d.ts +83 -0
- package/types/V2/MoneyManagement/FinancialAccounts.d.ts +580 -0
- package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +326 -0
- package/types/V2/MoneyManagement/FinancialAddresses.d.ts +314 -0
- package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +289 -0
- package/types/V2/MoneyManagement/InboundTransfers.d.ts +206 -0
- package/types/V2/MoneyManagement/InboundTransfersResource.d.ts +144 -0
- package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +168 -0
- package/types/V2/MoneyManagement/OutboundPaymentQuotesResource.d.ts +115 -0
- package/types/V2/MoneyManagement/OutboundPayments.d.ts +278 -0
- package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +242 -0
- package/types/V2/MoneyManagement/OutboundSetupIntents.d.ts +97 -0
- package/types/V2/MoneyManagement/OutboundSetupIntentsResource.d.ts +296 -0
- package/types/V2/MoneyManagement/OutboundTransfers.d.ts +251 -0
- package/types/V2/MoneyManagement/OutboundTransfersResource.d.ts +208 -0
- package/types/V2/MoneyManagement/PayoutMethods.d.ts +151 -0
- package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecResource.d.ts +41 -0
- package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecs.d.ts +87 -0
- package/types/V2/MoneyManagement/PayoutMethodsResource.d.ts +113 -0
- package/types/V2/MoneyManagement/ReceivedCredits.d.ts +262 -0
- package/types/V2/MoneyManagement/ReceivedCreditsResource.d.ts +78 -0
- package/types/V2/MoneyManagement/ReceivedDebits.d.ts +176 -0
- package/types/V2/MoneyManagement/ReceivedDebitsResource.d.ts +48 -0
- package/types/V2/MoneyManagement/TransactionEntries.d.ts +155 -0
- package/types/V2/MoneyManagement/TransactionEntriesResource.d.ts +82 -0
- package/types/V2/MoneyManagement/Transactions.d.ts +170 -0
- package/types/V2/MoneyManagement/TransactionsResource.d.ts +83 -0
- package/types/V2/Payments/OffSessionPayments.d.ts +162 -0
- package/types/V2/Payments/OffSessionPaymentsResource.d.ts +159 -0
- package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +66 -0
- package/types/WebhookEndpointsResource.d.ts +78 -0
- package/types/index.d.ts +138 -2
- package/types/lib.d.ts +11 -1
- package/types/test/typescriptTest.ts +3 -3
- package/types/InvoicePaymentsResource.d.ts +0 -74
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
namespace V2 {
|
|
6
|
+
namespace MoneyManagement {
|
|
7
|
+
interface FinancialAddressCreateParams {
|
|
8
|
+
/**
|
|
9
|
+
* Open Enum. The currency the FinancialAddress should support. Currently, only the `usd` and `gbp` values are supported.
|
|
10
|
+
*/
|
|
11
|
+
currency: FinancialAddressCreateParams.Currency;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* The ID of the FinancialAccount the new FinancialAddress should be associated with.
|
|
15
|
+
*/
|
|
16
|
+
financial_account: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
namespace FinancialAddressCreateParams {
|
|
20
|
+
type Currency =
|
|
21
|
+
| 'aed'
|
|
22
|
+
| 'afn'
|
|
23
|
+
| 'all'
|
|
24
|
+
| 'amd'
|
|
25
|
+
| 'ang'
|
|
26
|
+
| 'aoa'
|
|
27
|
+
| 'ars'
|
|
28
|
+
| 'aud'
|
|
29
|
+
| 'awg'
|
|
30
|
+
| 'azn'
|
|
31
|
+
| 'bam'
|
|
32
|
+
| 'bbd'
|
|
33
|
+
| 'bdt'
|
|
34
|
+
| 'bgn'
|
|
35
|
+
| 'bhd'
|
|
36
|
+
| 'bif'
|
|
37
|
+
| 'bmd'
|
|
38
|
+
| 'bnd'
|
|
39
|
+
| 'bob'
|
|
40
|
+
| 'bov'
|
|
41
|
+
| 'brl'
|
|
42
|
+
| 'bsd'
|
|
43
|
+
| 'btn'
|
|
44
|
+
| 'bwp'
|
|
45
|
+
| 'byn'
|
|
46
|
+
| 'byr'
|
|
47
|
+
| 'bzd'
|
|
48
|
+
| 'cad'
|
|
49
|
+
| 'cdf'
|
|
50
|
+
| 'che'
|
|
51
|
+
| 'chf'
|
|
52
|
+
| 'chw'
|
|
53
|
+
| 'clf'
|
|
54
|
+
| 'clp'
|
|
55
|
+
| 'cny'
|
|
56
|
+
| 'cop'
|
|
57
|
+
| 'cou'
|
|
58
|
+
| 'crc'
|
|
59
|
+
| 'cuc'
|
|
60
|
+
| 'cup'
|
|
61
|
+
| 'cve'
|
|
62
|
+
| 'czk'
|
|
63
|
+
| 'djf'
|
|
64
|
+
| 'dkk'
|
|
65
|
+
| 'dop'
|
|
66
|
+
| 'dzd'
|
|
67
|
+
| 'eek'
|
|
68
|
+
| 'egp'
|
|
69
|
+
| 'ern'
|
|
70
|
+
| 'etb'
|
|
71
|
+
| 'eur'
|
|
72
|
+
| 'fjd'
|
|
73
|
+
| 'fkp'
|
|
74
|
+
| 'gbp'
|
|
75
|
+
| 'gel'
|
|
76
|
+
| 'ghc'
|
|
77
|
+
| 'ghs'
|
|
78
|
+
| 'gip'
|
|
79
|
+
| 'gmd'
|
|
80
|
+
| 'gnf'
|
|
81
|
+
| 'gtq'
|
|
82
|
+
| 'gyd'
|
|
83
|
+
| 'hkd'
|
|
84
|
+
| 'hnl'
|
|
85
|
+
| 'hrk'
|
|
86
|
+
| 'htg'
|
|
87
|
+
| 'huf'
|
|
88
|
+
| 'idr'
|
|
89
|
+
| 'ils'
|
|
90
|
+
| 'inr'
|
|
91
|
+
| 'iqd'
|
|
92
|
+
| 'irr'
|
|
93
|
+
| 'isk'
|
|
94
|
+
| 'jmd'
|
|
95
|
+
| 'jod'
|
|
96
|
+
| 'jpy'
|
|
97
|
+
| 'kes'
|
|
98
|
+
| 'kgs'
|
|
99
|
+
| 'khr'
|
|
100
|
+
| 'kmf'
|
|
101
|
+
| 'kpw'
|
|
102
|
+
| 'krw'
|
|
103
|
+
| 'kwd'
|
|
104
|
+
| 'kyd'
|
|
105
|
+
| 'kzt'
|
|
106
|
+
| 'lak'
|
|
107
|
+
| 'lbp'
|
|
108
|
+
| 'lkr'
|
|
109
|
+
| 'lrd'
|
|
110
|
+
| 'lsl'
|
|
111
|
+
| 'ltl'
|
|
112
|
+
| 'lvl'
|
|
113
|
+
| 'lyd'
|
|
114
|
+
| 'mad'
|
|
115
|
+
| 'mdl'
|
|
116
|
+
| 'mga'
|
|
117
|
+
| 'mkd'
|
|
118
|
+
| 'mmk'
|
|
119
|
+
| 'mnt'
|
|
120
|
+
| 'mop'
|
|
121
|
+
| 'mro'
|
|
122
|
+
| 'mru'
|
|
123
|
+
| 'mur'
|
|
124
|
+
| 'mvr'
|
|
125
|
+
| 'mwk'
|
|
126
|
+
| 'mxn'
|
|
127
|
+
| 'mxv'
|
|
128
|
+
| 'myr'
|
|
129
|
+
| 'mzn'
|
|
130
|
+
| 'nad'
|
|
131
|
+
| 'ngn'
|
|
132
|
+
| 'nio'
|
|
133
|
+
| 'nok'
|
|
134
|
+
| 'npr'
|
|
135
|
+
| 'nzd'
|
|
136
|
+
| 'omr'
|
|
137
|
+
| 'pab'
|
|
138
|
+
| 'pen'
|
|
139
|
+
| 'pgk'
|
|
140
|
+
| 'php'
|
|
141
|
+
| 'pkr'
|
|
142
|
+
| 'pln'
|
|
143
|
+
| 'pyg'
|
|
144
|
+
| 'qar'
|
|
145
|
+
| 'ron'
|
|
146
|
+
| 'rsd'
|
|
147
|
+
| 'rub'
|
|
148
|
+
| 'rwf'
|
|
149
|
+
| 'sar'
|
|
150
|
+
| 'sbd'
|
|
151
|
+
| 'scr'
|
|
152
|
+
| 'sdg'
|
|
153
|
+
| 'sek'
|
|
154
|
+
| 'sgd'
|
|
155
|
+
| 'shp'
|
|
156
|
+
| 'sle'
|
|
157
|
+
| 'sll'
|
|
158
|
+
| 'sos'
|
|
159
|
+
| 'srd'
|
|
160
|
+
| 'ssp'
|
|
161
|
+
| 'std'
|
|
162
|
+
| 'stn'
|
|
163
|
+
| 'svc'
|
|
164
|
+
| 'syp'
|
|
165
|
+
| 'szl'
|
|
166
|
+
| 'thb'
|
|
167
|
+
| 'tjs'
|
|
168
|
+
| 'tmt'
|
|
169
|
+
| 'tnd'
|
|
170
|
+
| 'top'
|
|
171
|
+
| 'try'
|
|
172
|
+
| 'ttd'
|
|
173
|
+
| 'twd'
|
|
174
|
+
| 'tzs'
|
|
175
|
+
| 'uah'
|
|
176
|
+
| 'ugx'
|
|
177
|
+
| 'usd'
|
|
178
|
+
| 'usdb'
|
|
179
|
+
| 'usdc'
|
|
180
|
+
| 'usn'
|
|
181
|
+
| 'uyi'
|
|
182
|
+
| 'uyu'
|
|
183
|
+
| 'uzs'
|
|
184
|
+
| 'vef'
|
|
185
|
+
| 'ves'
|
|
186
|
+
| 'vnd'
|
|
187
|
+
| 'vuv'
|
|
188
|
+
| 'wst'
|
|
189
|
+
| 'xaf'
|
|
190
|
+
| 'xcd'
|
|
191
|
+
| 'xcg'
|
|
192
|
+
| 'xof'
|
|
193
|
+
| 'xpf'
|
|
194
|
+
| 'yer'
|
|
195
|
+
| 'zar'
|
|
196
|
+
| 'zmk'
|
|
197
|
+
| 'zmw'
|
|
198
|
+
| 'zwd'
|
|
199
|
+
| 'zwg'
|
|
200
|
+
| 'zwl';
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
namespace MoneyManagement {
|
|
205
|
+
interface FinancialAddressRetrieveParams {
|
|
206
|
+
/**
|
|
207
|
+
* Open Enum. A list of fields to reveal in the FinancialAddresses returned.
|
|
208
|
+
*/
|
|
209
|
+
include?: Array<FinancialAddressRetrieveParams.Include>;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
namespace FinancialAddressRetrieveParams {
|
|
213
|
+
type Include =
|
|
214
|
+
| 'credentials.gb_bank_account.account_number'
|
|
215
|
+
| 'credentials.us_bank_account.account_number';
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
namespace MoneyManagement {
|
|
220
|
+
interface FinancialAddressListParams {
|
|
221
|
+
/**
|
|
222
|
+
* The ID of the FinancialAccount for which FinancialAddresses are to be returned.
|
|
223
|
+
*/
|
|
224
|
+
financial_account?: string;
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* Open Enum. A list of fields to reveal in the FinancialAddresses returned.
|
|
228
|
+
*/
|
|
229
|
+
include?: Array<FinancialAddressListParams.Include>;
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* The page limit.
|
|
233
|
+
*/
|
|
234
|
+
limit?: number;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
namespace FinancialAddressListParams {
|
|
238
|
+
type Include =
|
|
239
|
+
| 'credentials.gb_bank_account.account_number'
|
|
240
|
+
| 'credentials.us_bank_account.account_number';
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
namespace MoneyManagement {
|
|
245
|
+
class FinancialAddressesResource {
|
|
246
|
+
/**
|
|
247
|
+
* Create a new FinancialAddress for a FinancialAccount.
|
|
248
|
+
* @throws Stripe.FinancialAccountNotOpenError
|
|
249
|
+
* @throws Stripe.FeatureNotEnabledError
|
|
250
|
+
*/
|
|
251
|
+
create(
|
|
252
|
+
params: FinancialAddressCreateParams,
|
|
253
|
+
options?: RequestOptions
|
|
254
|
+
): Promise<
|
|
255
|
+
Stripe.Response<Stripe.V2.MoneyManagement.FinancialAddress>
|
|
256
|
+
>;
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* Retrieve a FinancialAddress. By default, the FinancialAddress will be returned in its unexpanded state, revealing only the last 4 digits of the account number.
|
|
260
|
+
*/
|
|
261
|
+
retrieve(
|
|
262
|
+
id: string,
|
|
263
|
+
params?: FinancialAddressRetrieveParams,
|
|
264
|
+
options?: RequestOptions
|
|
265
|
+
): Promise<
|
|
266
|
+
Stripe.Response<Stripe.V2.MoneyManagement.FinancialAddress>
|
|
267
|
+
>;
|
|
268
|
+
retrieve(
|
|
269
|
+
id: string,
|
|
270
|
+
options?: RequestOptions
|
|
271
|
+
): Promise<
|
|
272
|
+
Stripe.Response<Stripe.V2.MoneyManagement.FinancialAddress>
|
|
273
|
+
>;
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* List all FinancialAddresses for a FinancialAccount.
|
|
277
|
+
*/
|
|
278
|
+
list(
|
|
279
|
+
params?: FinancialAddressListParams,
|
|
280
|
+
options?: RequestOptions
|
|
281
|
+
): ApiListPromise<Stripe.V2.MoneyManagement.FinancialAddress>;
|
|
282
|
+
list(
|
|
283
|
+
options?: RequestOptions
|
|
284
|
+
): ApiListPromise<Stripe.V2.MoneyManagement.FinancialAddress>;
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
}
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
namespace V2 {
|
|
6
|
+
namespace MoneyManagement {
|
|
7
|
+
/**
|
|
8
|
+
* An InboundTransfer object, representing a money movement from a
|
|
9
|
+
* user owned PaymentMethod to a FinancialAccount belonging to the same user.
|
|
10
|
+
*/
|
|
11
|
+
interface InboundTransfer {
|
|
12
|
+
/**
|
|
13
|
+
* Unique identifier for the InboundTransfer.
|
|
14
|
+
*/
|
|
15
|
+
id: string;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* String representing the object's type. Objects of the same type share the same value of the object field.
|
|
19
|
+
*/
|
|
20
|
+
object: 'v2.money_management.inbound_transfer';
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* The amount in specified currency that will land in the FinancialAccount balance.
|
|
24
|
+
*/
|
|
25
|
+
amount: Amount;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Creation time of the InboundTransfer. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
|
|
29
|
+
*/
|
|
30
|
+
created: string;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* A freeform text field provided by user, containing metadata.
|
|
34
|
+
*/
|
|
35
|
+
description: string;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* A nested object containing information about the origin of the InboundTransfer.
|
|
39
|
+
*/
|
|
40
|
+
from: InboundTransfer.From;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
44
|
+
*/
|
|
45
|
+
livemode: boolean;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* A hosted transaction receipt URL that is provided when money movement is considered regulated under Stripe's money transmission licenses.
|
|
49
|
+
*/
|
|
50
|
+
receipt_url: string | null;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* A nested object containing information about the destination of the InboundTransfer.
|
|
54
|
+
*/
|
|
55
|
+
to: InboundTransfer.To;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* A list of history objects, representing changes in the state of the InboundTransfer.
|
|
59
|
+
*/
|
|
60
|
+
transfer_history: Array<InboundTransfer.TransferHistory>;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
namespace InboundTransfer {
|
|
64
|
+
interface From {
|
|
65
|
+
/**
|
|
66
|
+
* The amount in specified currency that was debited from the Payment Method.
|
|
67
|
+
*/
|
|
68
|
+
debited: Amount;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* The Payment Method object used to create the InboundTransfer.
|
|
72
|
+
*/
|
|
73
|
+
payment_method: From.PaymentMethod;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
namespace From {
|
|
77
|
+
interface PaymentMethod {
|
|
78
|
+
/**
|
|
79
|
+
* The type of object this destination represents. For a us bank account, we expect us_bank_account.
|
|
80
|
+
*/
|
|
81
|
+
type: string;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* The destination US bank account identifier. eg "usba_***".
|
|
85
|
+
*/
|
|
86
|
+
us_bank_account: string | null;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
interface To {
|
|
91
|
+
/**
|
|
92
|
+
* The amount by which the FinancialAccount balance is credited.
|
|
93
|
+
*/
|
|
94
|
+
credited: Amount;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* The FinancialAccount that funds will land in.
|
|
98
|
+
*/
|
|
99
|
+
financial_account: string;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
interface TransferHistory {
|
|
103
|
+
/**
|
|
104
|
+
* Creation time of the HistoryEntry in RFC 3339 format and UTC.
|
|
105
|
+
*/
|
|
106
|
+
created: string;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Effective at time of the HistoryEntry in RFC 3339 format and UTC.
|
|
110
|
+
*/
|
|
111
|
+
effective_at: string;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* A unique ID for the HistoryEntry.
|
|
115
|
+
*/
|
|
116
|
+
id: string;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Open Enum. The Level of the HistoryEntry.
|
|
120
|
+
*/
|
|
121
|
+
level: TransferHistory.Level;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Open Enum. The type of the HistoryEntry.
|
|
125
|
+
*/
|
|
126
|
+
type: TransferHistory.Type;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* The history entry for a failed InboundTransfer.
|
|
130
|
+
*/
|
|
131
|
+
bank_debit_failed: TransferHistory.BankDebitFailed | null;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* The history entry for a processing InboundTransfer.
|
|
135
|
+
*/
|
|
136
|
+
bank_debit_processing: TransferHistory.BankDebitProcessing | null;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* The history entry for a queued InboundTransfer.
|
|
140
|
+
*/
|
|
141
|
+
bank_debit_queued: TransferHistory.BankDebitQueued | null;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* The history entry for a returned InboundTransfer.
|
|
145
|
+
*/
|
|
146
|
+
bank_debit_returned: TransferHistory.BankDebitReturned | null;
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* The history entry for a succeeded InboundTransfer.
|
|
150
|
+
*/
|
|
151
|
+
bank_debit_succeeded: TransferHistory.BankDebitSucceeded | null;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
namespace TransferHistory {
|
|
155
|
+
interface BankDebitFailed {
|
|
156
|
+
/**
|
|
157
|
+
* Open Enum. The return reason for the failed InboundTransfer.
|
|
158
|
+
*/
|
|
159
|
+
failure_reason: BankDebitFailed.FailureReason;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
namespace BankDebitFailed {
|
|
163
|
+
type FailureReason =
|
|
164
|
+
| 'bank_account_closed'
|
|
165
|
+
| 'bank_account_not_found'
|
|
166
|
+
| 'bank_debit_could_not_be_processed'
|
|
167
|
+
| 'bank_debit_not_authorized'
|
|
168
|
+
| 'insufficient_funds';
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
interface BankDebitProcessing {}
|
|
172
|
+
|
|
173
|
+
interface BankDebitQueued {}
|
|
174
|
+
|
|
175
|
+
interface BankDebitReturned {
|
|
176
|
+
/**
|
|
177
|
+
* Open Enum. The return reason for the returned InboundTransfer.
|
|
178
|
+
*/
|
|
179
|
+
return_reason: BankDebitReturned.ReturnReason;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
namespace BankDebitReturned {
|
|
183
|
+
type ReturnReason =
|
|
184
|
+
| 'bank_account_closed'
|
|
185
|
+
| 'bank_account_not_found'
|
|
186
|
+
| 'bank_debit_could_not_be_processed'
|
|
187
|
+
| 'bank_debit_not_authorized'
|
|
188
|
+
| 'insufficient_funds';
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
interface BankDebitSucceeded {}
|
|
192
|
+
|
|
193
|
+
type Level = 'canonical' | 'debug';
|
|
194
|
+
|
|
195
|
+
type Type =
|
|
196
|
+
| 'bank_debit_failed'
|
|
197
|
+
| 'bank_debit_processing'
|
|
198
|
+
| 'bank_debit_queued'
|
|
199
|
+
| 'bank_debit_returned'
|
|
200
|
+
| 'bank_debit_succeeded';
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
namespace V2 {
|
|
6
|
+
namespace MoneyManagement {
|
|
7
|
+
interface InboundTransferCreateParams {
|
|
8
|
+
/**
|
|
9
|
+
* The amount, in specified currency, by which the FinancialAccount balance will increase due to the InboundTransfer.
|
|
10
|
+
*/
|
|
11
|
+
amount: Amount;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Object containing details about where the funds will originate from.
|
|
15
|
+
*/
|
|
16
|
+
from: InboundTransferCreateParams.From;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Object containing details about where the funds will land.
|
|
20
|
+
*/
|
|
21
|
+
to: InboundTransferCreateParams.To;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* An optional, freeform description field intended to store metadata.
|
|
25
|
+
*/
|
|
26
|
+
description?: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
namespace InboundTransferCreateParams {
|
|
30
|
+
interface From {
|
|
31
|
+
/**
|
|
32
|
+
* An optional currency field used to specify which currency is debited from the Payment Method.
|
|
33
|
+
* Since many Payment Methods support only one currency, this field is optional.
|
|
34
|
+
*/
|
|
35
|
+
currency?: string;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* ID of the Payment Method using which IBT will be made.
|
|
39
|
+
*/
|
|
40
|
+
payment_method: string;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
interface To {
|
|
44
|
+
/**
|
|
45
|
+
* The currency in which funds will land in.
|
|
46
|
+
*/
|
|
47
|
+
currency: string;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* The FinancialAccount that funds will land in.
|
|
51
|
+
*/
|
|
52
|
+
financial_account: string;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
namespace MoneyManagement {
|
|
58
|
+
interface InboundTransferRetrieveParams {}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
namespace MoneyManagement {
|
|
62
|
+
interface InboundTransferListParams {
|
|
63
|
+
/**
|
|
64
|
+
* Filter for objects created at the specified timestamp.
|
|
65
|
+
* Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
|
|
66
|
+
*/
|
|
67
|
+
created?: string;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Filter for objects created after the specified timestamp.
|
|
71
|
+
* Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
|
|
72
|
+
*/
|
|
73
|
+
created_gt?: string;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Filter for objects created on or after the specified timestamp.
|
|
77
|
+
* Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
|
|
78
|
+
*/
|
|
79
|
+
created_gte?: string;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Filter for objects created before the specified timestamp.
|
|
83
|
+
* Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
|
|
84
|
+
*/
|
|
85
|
+
created_lt?: string;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Filter for objects created on or before the specified timestamp.
|
|
89
|
+
* Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
|
|
90
|
+
*/
|
|
91
|
+
created_lte?: string;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* The page limit.
|
|
95
|
+
*/
|
|
96
|
+
limit?: number;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
namespace MoneyManagement {
|
|
101
|
+
class InboundTransfersResource {
|
|
102
|
+
/**
|
|
103
|
+
* InboundTransfers APIs are used to create, retrieve or list InboundTransfers.
|
|
104
|
+
* @throws Stripe.BlockedByStripeError
|
|
105
|
+
*/
|
|
106
|
+
create(
|
|
107
|
+
params: InboundTransferCreateParams,
|
|
108
|
+
options?: RequestOptions
|
|
109
|
+
): Promise<
|
|
110
|
+
Stripe.Response<Stripe.V2.MoneyManagement.InboundTransfer>
|
|
111
|
+
>;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Retrieve an InboundTransfer by ID.
|
|
115
|
+
*/
|
|
116
|
+
retrieve(
|
|
117
|
+
id: string,
|
|
118
|
+
params?: InboundTransferRetrieveParams,
|
|
119
|
+
options?: RequestOptions
|
|
120
|
+
): Promise<
|
|
121
|
+
Stripe.Response<Stripe.V2.MoneyManagement.InboundTransfer>
|
|
122
|
+
>;
|
|
123
|
+
retrieve(
|
|
124
|
+
id: string,
|
|
125
|
+
options?: RequestOptions
|
|
126
|
+
): Promise<
|
|
127
|
+
Stripe.Response<Stripe.V2.MoneyManagement.InboundTransfer>
|
|
128
|
+
>;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Retrieves a list of InboundTransfers.
|
|
132
|
+
*/
|
|
133
|
+
list(
|
|
134
|
+
params?: InboundTransferListParams,
|
|
135
|
+
options?: RequestOptions
|
|
136
|
+
): ApiListPromise<Stripe.V2.MoneyManagement.InboundTransfer>;
|
|
137
|
+
list(
|
|
138
|
+
options?: RequestOptions
|
|
139
|
+
): ApiListPromise<Stripe.V2.MoneyManagement.InboundTransfer>;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|