stripe 18.2.1 → 18.3.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 +1243 -14
- package/README.md +1 -0
- package/VERSION +1 -1
- package/cjs/Error.js +91 -1
- package/cjs/RequestSender.js +1 -1
- package/cjs/apiVersion.js +1 -1
- 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/Subscriptions.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/Terminal/Readers.js +8 -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 +17 -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 +79 -0
- package/esm/RequestSender.js +1 -1
- package/esm/apiVersion.js +1 -1
- 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/Subscriptions.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/Terminal/Readers.js +8 -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 +14 -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 +340 -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/Errors.d.ts +69 -2
- package/types/EventTypes.d.ts +681 -0
- package/types/Events.d.ts +98 -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 +1458 -13
- 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 +1159 -0
- package/types/OrdersResource.d.ts +2967 -0
- package/types/PaymentAttemptRecords.d.ts +2132 -0
- package/types/PaymentAttemptRecordsResource.d.ts +47 -0
- package/types/PaymentIntentAmountDetailsLineItems.d.ts +116 -0
- package/types/PaymentIntents.d.ts +764 -2
- package/types/PaymentIntentsResource.d.ts +8819 -4111
- 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 +2125 -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 +1695 -0
- package/types/QuotePreviewSubscriptionSchedules.d.ts +831 -0
- package/types/Quotes.d.ts +603 -1
- package/types/QuotesResource.d.ts +2572 -218
- 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 +30 -0
- package/types/SubscriptionItemsResource.d.ts +109 -0
- package/types/SubscriptionSchedules.d.ts +212 -0
- package/types/SubscriptionSchedulesResource.d.ts +1240 -5
- package/types/Subscriptions.d.ts +116 -1
- package/types/SubscriptionsResource.d.ts +424 -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 +102 -0
- package/types/Terminal/ReadersResource.d.ts +96 -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 +3770 -0
- package/types/V2/Core/Accounts.d.ts +8169 -0
- package/types/V2/Core/AccountsResource.d.ts +10203 -0
- package/types/V2/Core/Persons.d.ts +1867 -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 +907 -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 +546 -0
- package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +52 -0
- package/types/V2/MoneyManagement/FinancialAddresses.d.ts +314 -0
- package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +288 -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 +207 -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 +243 -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 +80 -0
- package/types/index.d.ts +141 -5
- package/types/lib.d.ts +11 -1
- package/types/test/typescriptTest.ts +3 -3
- package/types/InvoicePaymentsResource.d.ts +0 -74
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
/**
|
|
6
|
+
* Options for customizing account balances and payout settings for a Stripe platform's connected accounts.
|
|
7
|
+
*
|
|
8
|
+
* This API is only available for users enrolled in the public preview for Accounts v2 on Stripe Connect.
|
|
9
|
+
* If you are not in this preview, please use the [Accounts v1 API](https://docs.stripe.com/api/accounts?api-version=2025-03-31.basil)
|
|
10
|
+
* to manage your connected accounts' balance settings instead.
|
|
11
|
+
*/
|
|
12
|
+
interface BalanceSettings {
|
|
13
|
+
/**
|
|
14
|
+
* String representing the object's type. Objects of the same type share the same value.
|
|
15
|
+
*/
|
|
16
|
+
object: 'balance_settings';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* A Boolean indicating if Stripe should try to reclaim negative balances from an attached bank account. See [Understanding Connect account balances](https://docs.stripe.com/connect/account-balances) for details. The default value is `false` when [controller.requirement_collection](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts, otherwise `true`.
|
|
20
|
+
*/
|
|
21
|
+
debit_negative_balances: boolean | null;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Settings specific to the account's payouts.
|
|
25
|
+
*/
|
|
26
|
+
payouts: BalanceSettings.Payouts | null;
|
|
27
|
+
|
|
28
|
+
settlement_timing: BalanceSettings.SettlementTiming;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
namespace BalanceSettings {
|
|
32
|
+
interface Payouts {
|
|
33
|
+
/**
|
|
34
|
+
* Details on when funds from charges are available, and when they are paid out to an external account. See our [Setting Bank and Debit Card Payouts](https://stripe.com/docs/connect/bank-transfers#payout-information) documentation for details.
|
|
35
|
+
*/
|
|
36
|
+
schedule: Payouts.Schedule | null;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* The text that appears on the bank account statement for payouts. If not set, this defaults to the platform's bank descriptor as set in the Dashboard.
|
|
40
|
+
*/
|
|
41
|
+
statement_descriptor: string | null;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Whether the funds in this account can be paid out.
|
|
45
|
+
*/
|
|
46
|
+
status: Payouts.Status;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
namespace Payouts {
|
|
50
|
+
interface Schedule {
|
|
51
|
+
/**
|
|
52
|
+
* How frequently funds will be paid out. One of `manual` (payouts only created via API call), `daily`, `weekly`, or `monthly`.
|
|
53
|
+
*/
|
|
54
|
+
interval: Schedule.Interval | null;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* The day of the month funds will be paid out. Only shown if `interval` is monthly. Payouts scheduled between the 29th and 31st of the month are sent on the last day of shorter months.
|
|
58
|
+
*/
|
|
59
|
+
monthly_anchor?: number;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* The day of the week funds will be paid out, of the style 'monday', 'tuesday', etc. Only shown if `interval` is weekly.
|
|
63
|
+
*/
|
|
64
|
+
weekly_anchor?: Schedule.WeeklyAnchor;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
namespace Schedule {
|
|
68
|
+
type Interval = 'daily' | 'manual' | 'monthly' | 'weekly';
|
|
69
|
+
|
|
70
|
+
type WeeklyAnchor =
|
|
71
|
+
| 'friday'
|
|
72
|
+
| 'monday'
|
|
73
|
+
| 'thursday'
|
|
74
|
+
| 'tuesday'
|
|
75
|
+
| 'wednesday';
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
type Status = 'disabled' | 'enabled';
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
interface SettlementTiming {
|
|
82
|
+
/**
|
|
83
|
+
* The number of days charge funds are held before becoming available.
|
|
84
|
+
*/
|
|
85
|
+
delay_days: number;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
interface BalanceSettingsRetrieveParams {
|
|
6
|
+
/**
|
|
7
|
+
* Specifies which fields in the response should be expanded.
|
|
8
|
+
*/
|
|
9
|
+
expand?: Array<string>;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
interface BalanceSettingsUpdateParams {
|
|
13
|
+
/**
|
|
14
|
+
* A Boolean indicating whether Stripe should try to reclaim negative balances from an attached bank account. For details, see [Understanding Connect Account Balances](https://docs.stripe.com/connect/account-balances).
|
|
15
|
+
*/
|
|
16
|
+
debit_negative_balances?: boolean;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Specifies which fields in the response should be expanded.
|
|
20
|
+
*/
|
|
21
|
+
expand?: Array<string>;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Settings specific to the account's payouts.
|
|
25
|
+
*/
|
|
26
|
+
payouts?: BalanceSettingsUpdateParams.Payouts;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Settings related to the account's balance settlement timing.
|
|
30
|
+
*/
|
|
31
|
+
settlement_timing?: BalanceSettingsUpdateParams.SettlementTiming;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
namespace BalanceSettingsUpdateParams {
|
|
35
|
+
interface Payouts {
|
|
36
|
+
/**
|
|
37
|
+
* Details on when funds from charges are available, and when they are paid out to an external account. For details, see our [Setting Bank and Debit Card Payouts](https://docs.stripe.com/connect/bank-transfers#payout-information) documentation.
|
|
38
|
+
*/
|
|
39
|
+
schedule?: Payouts.Schedule;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* The text that appears on the bank account statement for payouts. If not set, this defaults to the platform's bank descriptor as set in the Dashboard.
|
|
43
|
+
*/
|
|
44
|
+
statement_descriptor?: string;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
namespace Payouts {
|
|
48
|
+
interface Schedule {
|
|
49
|
+
/**
|
|
50
|
+
* How frequently available funds are paid out. One of: `daily`, `manual`, `weekly`, or `monthly`. Default is `daily`.
|
|
51
|
+
*/
|
|
52
|
+
interval?: Schedule.Interval;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* The day of the month when available funds are paid out, specified as a number between 1--31. Payouts nominally scheduled between the 29th and 31st of the month are instead sent on the last day of a shorter month. Required and applicable only if `interval` is `monthly`.
|
|
56
|
+
*/
|
|
57
|
+
monthly_anchor?: number;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* The day of the week when available funds are paid out (required and applicable only if `interval` is `weekly`.)
|
|
61
|
+
*/
|
|
62
|
+
weekly_anchor?: Schedule.WeeklyAnchor;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
namespace Schedule {
|
|
66
|
+
type Interval = 'daily' | 'manual' | 'monthly' | 'weekly';
|
|
67
|
+
|
|
68
|
+
type WeeklyAnchor =
|
|
69
|
+
| 'friday'
|
|
70
|
+
| 'monday'
|
|
71
|
+
| 'thursday'
|
|
72
|
+
| 'tuesday'
|
|
73
|
+
| 'wednesday';
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
interface SettlementTiming {
|
|
78
|
+
/**
|
|
79
|
+
* The number of days charge funds are held before becoming available. May also be set to `minimum`, representing the lowest available value for the account country. Default is `minimum`. The `delay_days` parameter remains at the last configured value if `payouts.schedule.interval` is `manual`. [Learn more about controlling payout delay days](https://docs.stripe.com/connect/manage-payout-schedule).
|
|
80
|
+
*/
|
|
81
|
+
delay_days?: number;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
class BalanceSettingsResource {
|
|
86
|
+
/**
|
|
87
|
+
* Retrieves balance settings for a given connected account.
|
|
88
|
+
* Related guide: [Making API calls for connected accounts](https://docs.stripe.com/connect/authentication)
|
|
89
|
+
*/
|
|
90
|
+
retrieve(
|
|
91
|
+
params?: BalanceSettingsRetrieveParams,
|
|
92
|
+
options?: RequestOptions
|
|
93
|
+
): Promise<Stripe.Response<Stripe.BalanceSettings>>;
|
|
94
|
+
retrieve(
|
|
95
|
+
options?: RequestOptions
|
|
96
|
+
): Promise<Stripe.Response<Stripe.BalanceSettings>>;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Updates balance settings for a given connected account.
|
|
100
|
+
* Related guide: [Making API calls for connected accounts](https://docs.stripe.com/connect/authentication)
|
|
101
|
+
*/
|
|
102
|
+
update(
|
|
103
|
+
params?: BalanceSettingsUpdateParams,
|
|
104
|
+
options?: RequestOptions
|
|
105
|
+
): Promise<Stripe.Response<Stripe.BalanceSettings>>;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
@@ -22,6 +22,11 @@ declare module 'stripe' {
|
|
|
22
22
|
*/
|
|
23
23
|
customer: string | Stripe.Customer | Stripe.DeletedCustomer;
|
|
24
24
|
|
|
25
|
+
/**
|
|
26
|
+
* The account the balance is for.
|
|
27
|
+
*/
|
|
28
|
+
customer_account?: string | null;
|
|
29
|
+
|
|
25
30
|
/**
|
|
26
31
|
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
27
32
|
*/
|
|
@@ -4,15 +4,20 @@ declare module 'stripe' {
|
|
|
4
4
|
namespace Stripe {
|
|
5
5
|
namespace Billing {
|
|
6
6
|
interface CreditBalanceSummaryRetrieveParams {
|
|
7
|
+
/**
|
|
8
|
+
* The filter criteria for the credit balance summary.
|
|
9
|
+
*/
|
|
10
|
+
filter: CreditBalanceSummaryRetrieveParams.Filter;
|
|
11
|
+
|
|
7
12
|
/**
|
|
8
13
|
* The customer for which to fetch credit balance summary.
|
|
9
14
|
*/
|
|
10
|
-
customer
|
|
15
|
+
customer?: string;
|
|
11
16
|
|
|
12
17
|
/**
|
|
13
|
-
* The
|
|
18
|
+
* The account for which to fetch credit balance summary.
|
|
14
19
|
*/
|
|
15
|
-
|
|
20
|
+
customer_account?: string;
|
|
16
21
|
|
|
17
22
|
/**
|
|
18
23
|
* Specifies which fields in the response should be expanded.
|
|
@@ -11,15 +11,20 @@ declare module 'stripe' {
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
interface CreditBalanceTransactionListParams extends PaginationParams {
|
|
14
|
+
/**
|
|
15
|
+
* The credit grant for which to fetch credit balance transactions.
|
|
16
|
+
*/
|
|
17
|
+
credit_grant?: string;
|
|
18
|
+
|
|
14
19
|
/**
|
|
15
20
|
* The customer for which to fetch credit balance transactions.
|
|
16
21
|
*/
|
|
17
|
-
customer
|
|
22
|
+
customer?: string;
|
|
18
23
|
|
|
19
24
|
/**
|
|
20
|
-
* The
|
|
25
|
+
* The account for which to fetch credit balance transactions.
|
|
21
26
|
*/
|
|
22
|
-
|
|
27
|
+
customer_account?: string;
|
|
23
28
|
|
|
24
29
|
/**
|
|
25
30
|
* Specifies which fields in the response should be expanded.
|
|
@@ -45,7 +50,10 @@ declare module 'stripe' {
|
|
|
45
50
|
* Retrieve a list of credit balance transactions.
|
|
46
51
|
*/
|
|
47
52
|
list(
|
|
48
|
-
params
|
|
53
|
+
params?: CreditBalanceTransactionListParams,
|
|
54
|
+
options?: RequestOptions
|
|
55
|
+
): ApiListPromise<Stripe.Billing.CreditBalanceTransaction>;
|
|
56
|
+
list(
|
|
49
57
|
options?: RequestOptions
|
|
50
58
|
): ApiListPromise<Stripe.Billing.CreditBalanceTransaction>;
|
|
51
59
|
}
|
|
@@ -38,6 +38,11 @@ declare module 'stripe' {
|
|
|
38
38
|
*/
|
|
39
39
|
customer: string | Stripe.Customer | Stripe.DeletedCustomer;
|
|
40
40
|
|
|
41
|
+
/**
|
|
42
|
+
* ID of the account receiving the billing credits
|
|
43
|
+
*/
|
|
44
|
+
customer_account?: string | null;
|
|
45
|
+
|
|
41
46
|
/**
|
|
42
47
|
* The time when the billing credits become effective-when they're eligible for use.
|
|
43
48
|
*/
|
|
@@ -22,7 +22,12 @@ declare module 'stripe' {
|
|
|
22
22
|
/**
|
|
23
23
|
* ID of the customer to receive the billing credits.
|
|
24
24
|
*/
|
|
25
|
-
customer
|
|
25
|
+
customer?: string;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* ID of the account to receive the billing credits.
|
|
29
|
+
*/
|
|
30
|
+
customer_account?: string;
|
|
26
31
|
|
|
27
32
|
/**
|
|
28
33
|
* The time when the billing credits become effective-when they're eligible for use. It defaults to the current timestamp if not specified.
|
|
@@ -145,6 +150,11 @@ declare module 'stripe' {
|
|
|
145
150
|
*/
|
|
146
151
|
customer?: string;
|
|
147
152
|
|
|
153
|
+
/**
|
|
154
|
+
* Only return credit grants for this account.
|
|
155
|
+
*/
|
|
156
|
+
customer_account?: string;
|
|
157
|
+
|
|
148
158
|
/**
|
|
149
159
|
* Specifies which fields in the response should be expanded.
|
|
150
160
|
*/
|
|
@@ -45,6 +45,11 @@ declare module 'stripe' {
|
|
|
45
45
|
*/
|
|
46
46
|
customer: string;
|
|
47
47
|
|
|
48
|
+
/**
|
|
49
|
+
* The ID of the account for this session.
|
|
50
|
+
*/
|
|
51
|
+
customer_account?: string | null;
|
|
52
|
+
|
|
48
53
|
/**
|
|
49
54
|
* Information about a specific flow for the customer to go through. See the [docs](https://stripe.com/docs/customer-management/portal-deep-links) to learn more about using customer portal deep links and flows.
|
|
50
55
|
*/
|
|
@@ -4,15 +4,20 @@ declare module 'stripe' {
|
|
|
4
4
|
namespace Stripe {
|
|
5
5
|
namespace BillingPortal {
|
|
6
6
|
interface SessionCreateParams {
|
|
7
|
+
/**
|
|
8
|
+
* The ID of an existing [configuration](https://stripe.com/docs/api/customer_portal/configuration) to use for this session, describing its functionality and features. If not specified, the session uses the default configuration.
|
|
9
|
+
*/
|
|
10
|
+
configuration?: string;
|
|
11
|
+
|
|
7
12
|
/**
|
|
8
13
|
* The ID of an existing customer.
|
|
9
14
|
*/
|
|
10
|
-
customer
|
|
15
|
+
customer?: string;
|
|
11
16
|
|
|
12
17
|
/**
|
|
13
|
-
* The ID of an existing
|
|
18
|
+
* The ID of an existing account.
|
|
14
19
|
*/
|
|
15
|
-
|
|
20
|
+
customer_account?: string;
|
|
16
21
|
|
|
17
22
|
/**
|
|
18
23
|
* Specifies which fields in the response should be expanded.
|
|
@@ -256,7 +261,10 @@ declare module 'stripe' {
|
|
|
256
261
|
* Creates a session of the customer portal.
|
|
257
262
|
*/
|
|
258
263
|
create(
|
|
259
|
-
params
|
|
264
|
+
params?: SessionCreateParams,
|
|
265
|
+
options?: RequestOptions
|
|
266
|
+
): Promise<Stripe.Response<Stripe.BillingPortal.Session>>;
|
|
267
|
+
create(
|
|
260
268
|
options?: RequestOptions
|
|
261
269
|
): Promise<Stripe.Response<Stripe.BillingPortal.Session>>;
|
|
262
270
|
}
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
namespace Capital {
|
|
6
|
+
/**
|
|
7
|
+
* This is an object representing an offer of financing from
|
|
8
|
+
* Stripe Capital to a Connect subaccount.
|
|
9
|
+
*/
|
|
10
|
+
interface FinancingOffer {
|
|
11
|
+
/**
|
|
12
|
+
* A unique identifier for the financing object.
|
|
13
|
+
*/
|
|
14
|
+
id: string;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* The object type: financing_offer.
|
|
18
|
+
*/
|
|
19
|
+
object: 'capital.financing_offer';
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* This is an object representing the terms of an offer of financing from
|
|
23
|
+
* Stripe Capital to a Connected account. This resource represents
|
|
24
|
+
* the terms accepted by the Connected account, which may differ from those
|
|
25
|
+
* offered.
|
|
26
|
+
*/
|
|
27
|
+
accepted_terms?: FinancingOffer.AcceptedTerms;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* The ID of the merchant associated with this financing object.
|
|
31
|
+
*/
|
|
32
|
+
account: string;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* The time at which this financing offer was charged off, if applicable. Given in seconds since unix epoch.
|
|
36
|
+
*/
|
|
37
|
+
charged_off_at?: number;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Time at which the offer was created. Given in seconds since unix epoch.
|
|
41
|
+
*/
|
|
42
|
+
created: number;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Time at which the offer expires. Given in seconds since unix epoch.
|
|
46
|
+
*/
|
|
47
|
+
expires_after: number;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* The type of financing being offered.
|
|
51
|
+
*/
|
|
52
|
+
financing_type?: FinancingOffer.FinancingType;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
56
|
+
*/
|
|
57
|
+
livemode: boolean;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
61
|
+
*/
|
|
62
|
+
metadata?: Stripe.Metadata;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* This is an object representing the terms of an offer of financing from
|
|
66
|
+
* Stripe Capital to a Connected account. This resource represents
|
|
67
|
+
* both the terms offered to the Connected account.
|
|
68
|
+
*/
|
|
69
|
+
offered_terms?: FinancingOffer.OfferedTerms;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Financing product identifier.
|
|
73
|
+
*/
|
|
74
|
+
product_type?: FinancingOffer.ProductType;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* The ID of the financing offer that replaced this offer.
|
|
78
|
+
*/
|
|
79
|
+
replacement?: string;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* The ID of the financing offer that this offer is a replacement for.
|
|
83
|
+
*/
|
|
84
|
+
replacement_for?: string;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* The current status of the offer.
|
|
88
|
+
*/
|
|
89
|
+
status: FinancingOffer.Status;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* See [financing_type](https://stripe.com/docs/api/capital/connect_financing_object#financing_offer_object-financing_type).
|
|
93
|
+
*/
|
|
94
|
+
type?: FinancingOffer.Type;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
namespace FinancingOffer {
|
|
98
|
+
interface AcceptedTerms {
|
|
99
|
+
/**
|
|
100
|
+
* Amount of financing offered, in minor units. For example, $1,000 USD will be represented as 100000.
|
|
101
|
+
*/
|
|
102
|
+
advance_amount: number;
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Currency that the financing offer is transacted in. For example, `usd`.
|
|
106
|
+
*/
|
|
107
|
+
currency: string;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Fixed fee amount, in minor units. For example, $100 USD will be represented as 10000.
|
|
111
|
+
*/
|
|
112
|
+
fee_amount: number;
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Populated when the `product_type` of the `financingoffer` is `refill`.
|
|
116
|
+
* Represents the discount amount on remaining premium for the existing loan at payout time.
|
|
117
|
+
*/
|
|
118
|
+
previous_financing_fee_discount_amount: number | null;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Per-transaction rate at which Stripe will withhold funds to repay the financing.
|
|
122
|
+
*/
|
|
123
|
+
withhold_rate: number;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
type FinancingType = 'cash_advance' | 'flex_loan';
|
|
127
|
+
|
|
128
|
+
interface OfferedTerms {
|
|
129
|
+
/**
|
|
130
|
+
* Amount of financing offered, in minor units. For example, $1,000 USD will be represented as 100000.
|
|
131
|
+
*/
|
|
132
|
+
advance_amount: number;
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Describes the type of user the offer is being extended to.
|
|
136
|
+
*/
|
|
137
|
+
campaign_type: OfferedTerms.CampaignType;
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Currency that the financing offer is transacted in. For example, `usd`.
|
|
141
|
+
*/
|
|
142
|
+
currency: string;
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Fixed fee amount, in minor units. For example, $100 USD will be represented as 10000.
|
|
146
|
+
*/
|
|
147
|
+
fee_amount: number;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Populated when the `product_type` of the `financingoffer` is `refill`.
|
|
151
|
+
* Represents the discount rate percentage on remaining fee on the existing loan. When the `financing_offer`
|
|
152
|
+
* is paid out, the `previous_financing_fee_discount_amount` will be computed as the multiple of this rate
|
|
153
|
+
* and the remaining fee.
|
|
154
|
+
*/
|
|
155
|
+
previous_financing_fee_discount_rate: number | null;
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Per-transaction rate at which Stripe will withhold funds to repay the financing.
|
|
159
|
+
*/
|
|
160
|
+
withhold_rate: number;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
namespace OfferedTerms {
|
|
164
|
+
type CampaignType =
|
|
165
|
+
| 'newly_eligible_user'
|
|
166
|
+
| 'previously_eligible_user'
|
|
167
|
+
| 'repeat_user';
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
type ProductType = 'refill' | 'standard';
|
|
171
|
+
|
|
172
|
+
type Status =
|
|
173
|
+
| 'accepted'
|
|
174
|
+
| 'canceled'
|
|
175
|
+
| 'completed'
|
|
176
|
+
| 'delivered'
|
|
177
|
+
| 'expired'
|
|
178
|
+
| 'fully_repaid'
|
|
179
|
+
| 'paid_out'
|
|
180
|
+
| 'rejected'
|
|
181
|
+
| 'replaced'
|
|
182
|
+
| 'undelivered';
|
|
183
|
+
|
|
184
|
+
type Type = 'cash_advance' | 'fixed_term_loan' | 'flex_loan';
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
namespace Capital {
|
|
6
|
+
interface FinancingOfferRetrieveParams {
|
|
7
|
+
/**
|
|
8
|
+
* Specifies which fields in the response should be expanded.
|
|
9
|
+
*/
|
|
10
|
+
expand?: Array<string>;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
interface FinancingOfferListParams extends PaginationParams {
|
|
14
|
+
/**
|
|
15
|
+
* limit list to offers belonging to given connected account
|
|
16
|
+
*/
|
|
17
|
+
connected_account?: string;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Only return offers that were created during the given date interval.
|
|
21
|
+
*/
|
|
22
|
+
created?: Stripe.RangeQueryParam | number;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Specifies which fields in the response should be expanded.
|
|
26
|
+
*/
|
|
27
|
+
expand?: Array<string>;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* limit list to offers with given status
|
|
31
|
+
*/
|
|
32
|
+
status?: FinancingOfferListParams.Status;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
namespace FinancingOfferListParams {
|
|
36
|
+
type Status =
|
|
37
|
+
| 'accepted'
|
|
38
|
+
| 'canceled'
|
|
39
|
+
| 'completed'
|
|
40
|
+
| 'delivered'
|
|
41
|
+
| 'expired'
|
|
42
|
+
| 'fully_repaid'
|
|
43
|
+
| 'paid_out'
|
|
44
|
+
| 'rejected'
|
|
45
|
+
| 'revoked'
|
|
46
|
+
| 'undelivered';
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
interface FinancingOfferMarkDeliveredParams {
|
|
50
|
+
/**
|
|
51
|
+
* Specifies which fields in the response should be expanded.
|
|
52
|
+
*/
|
|
53
|
+
expand?: Array<string>;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
class FinancingOffersResource {
|
|
57
|
+
/**
|
|
58
|
+
* Get the details of the financing offer
|
|
59
|
+
*/
|
|
60
|
+
retrieve(
|
|
61
|
+
id: string,
|
|
62
|
+
params?: FinancingOfferRetrieveParams,
|
|
63
|
+
options?: RequestOptions
|
|
64
|
+
): Promise<Stripe.Response<Stripe.Capital.FinancingOffer>>;
|
|
65
|
+
retrieve(
|
|
66
|
+
id: string,
|
|
67
|
+
options?: RequestOptions
|
|
68
|
+
): Promise<Stripe.Response<Stripe.Capital.FinancingOffer>>;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Retrieves the financing offers available for Connected accounts that belong to your platform.
|
|
72
|
+
*/
|
|
73
|
+
list(
|
|
74
|
+
params?: FinancingOfferListParams,
|
|
75
|
+
options?: RequestOptions
|
|
76
|
+
): ApiListPromise<Stripe.Capital.FinancingOffer>;
|
|
77
|
+
list(
|
|
78
|
+
options?: RequestOptions
|
|
79
|
+
): ApiListPromise<Stripe.Capital.FinancingOffer>;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Acknowledges that platform has received and delivered the financing_offer to
|
|
83
|
+
* the intended merchant recipient.
|
|
84
|
+
*/
|
|
85
|
+
markDelivered(
|
|
86
|
+
id: string,
|
|
87
|
+
params?: FinancingOfferMarkDeliveredParams,
|
|
88
|
+
options?: RequestOptions
|
|
89
|
+
): Promise<Stripe.Response<Stripe.Capital.FinancingOffer>>;
|
|
90
|
+
markDelivered(
|
|
91
|
+
id: string,
|
|
92
|
+
options?: RequestOptions
|
|
93
|
+
): Promise<Stripe.Response<Stripe.Capital.FinancingOffer>>;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|