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,87 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
namespace V2 {
|
|
6
|
+
namespace MoneyManagement {
|
|
7
|
+
/**
|
|
8
|
+
* The PayoutMethodsBankAccountSpec object.
|
|
9
|
+
*/
|
|
10
|
+
interface PayoutMethodsBankAccountSpec {
|
|
11
|
+
/**
|
|
12
|
+
* String representing the object's type. Objects of the same type share the same value of the object field.
|
|
13
|
+
*/
|
|
14
|
+
object: 'v2.money_management.payout_methods_bank_account_spec';
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* The list of specs by country.
|
|
18
|
+
*/
|
|
19
|
+
countries: {
|
|
20
|
+
[key: string]: PayoutMethodsBankAccountSpec.Countries;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
25
|
+
*/
|
|
26
|
+
livemode: boolean;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
namespace PayoutMethodsBankAccountSpec {
|
|
30
|
+
interface Countries {
|
|
31
|
+
/**
|
|
32
|
+
* The list of fields for a country, along with associated information.
|
|
33
|
+
*/
|
|
34
|
+
fields: Array<Countries.Field>;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
namespace Countries {
|
|
38
|
+
interface Field {
|
|
39
|
+
/**
|
|
40
|
+
* The local name of the field.
|
|
41
|
+
*/
|
|
42
|
+
local_name: string;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* The human readable local name of the field.
|
|
46
|
+
*/
|
|
47
|
+
local_name_human: Field.LocalNameHuman;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* The maximum length of the field.
|
|
51
|
+
*/
|
|
52
|
+
max_length: number;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* THe minimum length of the field.
|
|
56
|
+
*/
|
|
57
|
+
min_length: number;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* The placeholder value of the field.
|
|
61
|
+
*/
|
|
62
|
+
placeholder: string;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* The stripe name of the field.
|
|
66
|
+
*/
|
|
67
|
+
stripe_name: string;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* The validation regex of the field.
|
|
71
|
+
*/
|
|
72
|
+
validation_regex: string;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
namespace Field {
|
|
76
|
+
interface LocalNameHuman {
|
|
77
|
+
content: string;
|
|
78
|
+
|
|
79
|
+
localization_key: string;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
namespace V2 {
|
|
6
|
+
namespace MoneyManagement {
|
|
7
|
+
interface PayoutMethodRetrieveParams {}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
namespace MoneyManagement {
|
|
11
|
+
interface PayoutMethodListParams {
|
|
12
|
+
/**
|
|
13
|
+
* The page size.
|
|
14
|
+
*/
|
|
15
|
+
limit?: number;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Usage status filter.
|
|
19
|
+
*/
|
|
20
|
+
usage_status?: PayoutMethodListParams.UsageStatus;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
namespace PayoutMethodListParams {
|
|
24
|
+
interface UsageStatus {
|
|
25
|
+
/**
|
|
26
|
+
* List of payments status to filter by.
|
|
27
|
+
*/
|
|
28
|
+
payments?: Array<UsageStatus.Payment>;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* List of transfers status to filter by.
|
|
32
|
+
*/
|
|
33
|
+
transfers?: Array<UsageStatus.Transfer>;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
namespace UsageStatus {
|
|
37
|
+
type Payment = 'eligible' | 'invalid' | 'requires_action';
|
|
38
|
+
|
|
39
|
+
type Transfer = 'eligible' | 'invalid' | 'requires_action';
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
namespace MoneyManagement {
|
|
45
|
+
interface PayoutMethodArchiveParams {}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
namespace MoneyManagement {
|
|
49
|
+
interface PayoutMethodUnarchiveParams {}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
namespace MoneyManagement {
|
|
53
|
+
class PayoutMethodsResource {
|
|
54
|
+
/**
|
|
55
|
+
* Retrieve a PayoutMethod object.
|
|
56
|
+
* @throws Stripe.InvalidPayoutMethodError
|
|
57
|
+
*/
|
|
58
|
+
retrieve(
|
|
59
|
+
id: string,
|
|
60
|
+
params?: PayoutMethodRetrieveParams,
|
|
61
|
+
options?: RequestOptions
|
|
62
|
+
): Promise<Stripe.Response<Stripe.V2.MoneyManagement.PayoutMethod>>;
|
|
63
|
+
retrieve(
|
|
64
|
+
id: string,
|
|
65
|
+
options?: RequestOptions
|
|
66
|
+
): Promise<Stripe.Response<Stripe.V2.MoneyManagement.PayoutMethod>>;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* List objects that adhere to the PayoutMethod interface.
|
|
70
|
+
*/
|
|
71
|
+
list(
|
|
72
|
+
params?: PayoutMethodListParams,
|
|
73
|
+
options?: RequestOptions
|
|
74
|
+
): ApiListPromise<Stripe.V2.MoneyManagement.PayoutMethod>;
|
|
75
|
+
list(
|
|
76
|
+
options?: RequestOptions
|
|
77
|
+
): ApiListPromise<Stripe.V2.MoneyManagement.PayoutMethod>;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Archive a PayoutMethod object. Archived objects cannot be used as payout methods
|
|
81
|
+
* and will not appear in the payout method list.
|
|
82
|
+
* @throws Stripe.ControlledByDashboardError
|
|
83
|
+
* @throws Stripe.InvalidPayoutMethodError
|
|
84
|
+
*/
|
|
85
|
+
archive(
|
|
86
|
+
id: string,
|
|
87
|
+
params?: PayoutMethodArchiveParams,
|
|
88
|
+
options?: RequestOptions
|
|
89
|
+
): Promise<Stripe.Response<Stripe.V2.MoneyManagement.PayoutMethod>>;
|
|
90
|
+
archive(
|
|
91
|
+
id: string,
|
|
92
|
+
options?: RequestOptions
|
|
93
|
+
): Promise<Stripe.Response<Stripe.V2.MoneyManagement.PayoutMethod>>;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Unarchive an PayoutMethod object.
|
|
97
|
+
* @throws Stripe.ControlledByDashboardError
|
|
98
|
+
* @throws Stripe.InvalidPayoutMethodError
|
|
99
|
+
*/
|
|
100
|
+
unarchive(
|
|
101
|
+
id: string,
|
|
102
|
+
params?: PayoutMethodUnarchiveParams,
|
|
103
|
+
options?: RequestOptions
|
|
104
|
+
): Promise<Stripe.Response<Stripe.V2.MoneyManagement.PayoutMethod>>;
|
|
105
|
+
unarchive(
|
|
106
|
+
id: string,
|
|
107
|
+
options?: RequestOptions
|
|
108
|
+
): Promise<Stripe.Response<Stripe.V2.MoneyManagement.PayoutMethod>>;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
namespace V2 {
|
|
6
|
+
namespace MoneyManagement {
|
|
7
|
+
/**
|
|
8
|
+
* Use ReceivedCredits API to retrieve information on when, where, and how funds are sent into your FinancialAccount.
|
|
9
|
+
*/
|
|
10
|
+
interface ReceivedCredit {
|
|
11
|
+
/**
|
|
12
|
+
* Unique identifier for the ReceivedCredit.
|
|
13
|
+
*/
|
|
14
|
+
id: string;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* String representing the object's type. Objects of the same type share the same value of the object field.
|
|
18
|
+
*/
|
|
19
|
+
object: 'v2.money_management.received_credit';
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* The amount and currency of the ReceivedCredit.
|
|
23
|
+
*/
|
|
24
|
+
amount: Amount;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* This object stores details about the originating Stripe transaction that resulted in the ReceivedCredit. Present if `type` field value is `balance_transfer`.
|
|
28
|
+
*/
|
|
29
|
+
balance_transfer: ReceivedCredit.BalanceTransfer | null;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* This object stores details about the originating banking transaction that resulted in the ReceivedCredit. Present if `type` field value is `external_credit`.
|
|
33
|
+
*/
|
|
34
|
+
bank_transfer: ReceivedCredit.BankTransfer | null;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Time at which the ReceivedCredit was created.
|
|
38
|
+
* Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
|
|
39
|
+
*/
|
|
40
|
+
created: string;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Freeform string set by originator of the ReceivedCredit.
|
|
44
|
+
*/
|
|
45
|
+
description: string | null;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Financial Account ID on which funds for ReceivedCredit were received.
|
|
49
|
+
*/
|
|
50
|
+
financial_account: string;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
54
|
+
*/
|
|
55
|
+
livemode: boolean;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* A hosted transaction receipt URL that is provided when money movement is considered regulated under Stripe's money transmission licenses.
|
|
59
|
+
*/
|
|
60
|
+
receipt_url: string | null;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Open Enum. The status of the ReceivedCredit.
|
|
64
|
+
*/
|
|
65
|
+
status: ReceivedCredit.Status;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* This hash contains detailed information that elaborates on the specific status of the ReceivedCredit. e.g the reason behind a failure if the status is marked as `failed`.
|
|
69
|
+
*/
|
|
70
|
+
status_details: ReceivedCredit.StatusDetails | null;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Hash containing timestamps of when the object transitioned to a particular status.
|
|
74
|
+
*/
|
|
75
|
+
status_transitions: ReceivedCredit.StatusTransitions | null;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Open Enum. The type of flow that caused the ReceivedCredit.
|
|
79
|
+
*/
|
|
80
|
+
type: ReceivedCredit.Type;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
namespace ReceivedCredit {
|
|
84
|
+
interface BalanceTransfer {
|
|
85
|
+
/**
|
|
86
|
+
* The ID of the account that owns the source object originated the ReceivedCredit.
|
|
87
|
+
*/
|
|
88
|
+
from_account: string | null;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Open Enum. The type of Stripe Money Movement that originated the ReceivedCredit.
|
|
92
|
+
*/
|
|
93
|
+
type: BalanceTransfer.Type;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* The ID of the outbound payment object that originated the ReceivedCredit.
|
|
97
|
+
*/
|
|
98
|
+
outbound_payment: string | null;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* The ID of the outbound transfer object that originated the ReceivedCredit.
|
|
102
|
+
*/
|
|
103
|
+
outbound_transfer: string | null;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* The ID of the payout object that originated the ReceivedCredit.
|
|
107
|
+
*/
|
|
108
|
+
payout_v1: string | null;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
namespace BalanceTransfer {
|
|
112
|
+
type Type = 'outbound_payment' | 'outbound_transfer' | 'payout_v1';
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
interface BankTransfer {
|
|
116
|
+
/**
|
|
117
|
+
* Financial Address on which funds for ReceivedCredit were received.
|
|
118
|
+
*/
|
|
119
|
+
financial_address: string;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Open Enum. Indicates the type of source via from which external funds originated.
|
|
123
|
+
*/
|
|
124
|
+
payment_method_type: BankTransfer.PaymentMethodType;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Freeform string set by originator of the external ReceivedCredit.
|
|
128
|
+
*/
|
|
129
|
+
statement_descriptor: string | null;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Hash containing the transaction bank details. Present if `payment_method_type` field value is `gb_bank_account`.
|
|
133
|
+
*/
|
|
134
|
+
gb_bank_account: BankTransfer.GbBankAccount | null;
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Hash containing the transaction bank details. Present if `payment_method_type` field value is `us_bank_account`.
|
|
138
|
+
*/
|
|
139
|
+
us_bank_account: BankTransfer.UsBankAccount | null;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
namespace BankTransfer {
|
|
143
|
+
interface GbBankAccount {
|
|
144
|
+
/**
|
|
145
|
+
* The bank name the transfer was received from.
|
|
146
|
+
*/
|
|
147
|
+
account_holder_name: string | null;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* The bank name the transfer was received from.
|
|
151
|
+
*/
|
|
152
|
+
bank_name: string | null;
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* The last 4 digits of the account number that originated the transfer.
|
|
156
|
+
*/
|
|
157
|
+
last4: string | null;
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Open Enum. The money transmission network used to send funds for this ReceivedCredit.
|
|
161
|
+
*/
|
|
162
|
+
network: 'fps';
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* The sort code of the account that originated the transfer.
|
|
166
|
+
*/
|
|
167
|
+
sort_code: string | null;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
type PaymentMethodType = 'gb_bank_account' | 'us_bank_account';
|
|
171
|
+
|
|
172
|
+
interface UsBankAccount {
|
|
173
|
+
/**
|
|
174
|
+
* The bank name the transfer was received from.
|
|
175
|
+
*/
|
|
176
|
+
bank_name: string | null;
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* The last 4 digits of the account number that originated the transfer.
|
|
180
|
+
*/
|
|
181
|
+
last4: string | null;
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* Open Enum. The money transmission network used to send funds for this ReceivedCredit.
|
|
185
|
+
*/
|
|
186
|
+
network: UsBankAccount.Network;
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* The routing number of the account that originated the transfer.
|
|
190
|
+
*/
|
|
191
|
+
routing_number: string | null;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
namespace UsBankAccount {
|
|
195
|
+
type Network = 'ach' | 'rtp' | 'us_domestic_wire';
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
type Status = 'failed' | 'pending' | 'returned' | 'succeeded';
|
|
200
|
+
|
|
201
|
+
interface StatusDetails {
|
|
202
|
+
/**
|
|
203
|
+
* Hash that provides additional information regarding the reason behind a `failed` ReceivedCredit status. It is only present when the ReceivedCredit status is `failed`.
|
|
204
|
+
*/
|
|
205
|
+
failed: StatusDetails.Failed | null;
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Hash that provides additional information regarding the reason behind a `returned` ReceivedCredit status. It is only present when the ReceivedCredit status is `returned`.
|
|
209
|
+
*/
|
|
210
|
+
returned: StatusDetails.Returned | null;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
namespace StatusDetails {
|
|
214
|
+
interface Failed {
|
|
215
|
+
/**
|
|
216
|
+
* Open Enum. The `failed` status reason.
|
|
217
|
+
*/
|
|
218
|
+
reason: Failed.Reason;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
namespace Failed {
|
|
222
|
+
type Reason =
|
|
223
|
+
| 'capability_inactive'
|
|
224
|
+
| 'currency_unsupported_on_financial_address'
|
|
225
|
+
| 'financial_address_inactive'
|
|
226
|
+
| 'stripe_rejected';
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
interface Returned {
|
|
230
|
+
/**
|
|
231
|
+
* Open Enum. The `returned` status reason.
|
|
232
|
+
*/
|
|
233
|
+
reason: 'originator_initiated_reversal';
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
interface StatusTransitions {
|
|
238
|
+
/**
|
|
239
|
+
* Timestamp describing when the ReceivedCredit was marked as `failed`.
|
|
240
|
+
* Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
|
|
241
|
+
*/
|
|
242
|
+
failed_at: string | null;
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* Timestamp describing when the ReceivedCredit changed status to `returned`.
|
|
246
|
+
* Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
|
|
247
|
+
*/
|
|
248
|
+
returned_at: string | null;
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* Timestamp describing when the ReceivedCredit was marked as `succeeded`.
|
|
252
|
+
* Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
|
|
253
|
+
*/
|
|
254
|
+
succeeded_at: string | null;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
type Type = 'balance_transfer' | 'bank_transfer' | 'external_credit';
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
namespace V2 {
|
|
6
|
+
namespace MoneyManagement {
|
|
7
|
+
interface ReceivedCreditRetrieveParams {}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
namespace MoneyManagement {
|
|
11
|
+
interface ReceivedCreditListParams {
|
|
12
|
+
/**
|
|
13
|
+
* Filter for objects created at the specified timestamp.
|
|
14
|
+
* Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
|
|
15
|
+
*/
|
|
16
|
+
created?: string;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Filter for objects created after the specified timestamp.
|
|
20
|
+
* Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
|
|
21
|
+
*/
|
|
22
|
+
created_gt?: string;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Filter for objects created on or after the specified timestamp.
|
|
26
|
+
* Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
|
|
27
|
+
*/
|
|
28
|
+
created_gte?: string;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Filter for objects created before the specified timestamp.
|
|
32
|
+
* Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
|
|
33
|
+
*/
|
|
34
|
+
created_lt?: string;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Filter for objects created on or before the specified timestamp.
|
|
38
|
+
* Must be an RFC 3339 date & time value, for example: 2022-09-18T13:22:00Z.
|
|
39
|
+
*/
|
|
40
|
+
created_lte?: string;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* The page limit.
|
|
44
|
+
*/
|
|
45
|
+
limit?: number;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
namespace MoneyManagement {
|
|
50
|
+
class ReceivedCreditsResource {
|
|
51
|
+
/**
|
|
52
|
+
* Retrieve a ReceivedCredit by ID.
|
|
53
|
+
*/
|
|
54
|
+
retrieve(
|
|
55
|
+
id: string,
|
|
56
|
+
params?: ReceivedCreditRetrieveParams,
|
|
57
|
+
options?: RequestOptions
|
|
58
|
+
): Promise<Stripe.Response<Stripe.V2.MoneyManagement.ReceivedCredit>>;
|
|
59
|
+
retrieve(
|
|
60
|
+
id: string,
|
|
61
|
+
options?: RequestOptions
|
|
62
|
+
): Promise<Stripe.Response<Stripe.V2.MoneyManagement.ReceivedCredit>>;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Retrieves a list of ReceivedCredits.
|
|
66
|
+
*/
|
|
67
|
+
list(
|
|
68
|
+
params?: ReceivedCreditListParams,
|
|
69
|
+
options?: RequestOptions
|
|
70
|
+
): ApiListPromise<Stripe.V2.MoneyManagement.ReceivedCredit>;
|
|
71
|
+
list(
|
|
72
|
+
options?: RequestOptions
|
|
73
|
+
): ApiListPromise<Stripe.V2.MoneyManagement.ReceivedCredit>;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|