stripe 19.1.0 → 19.2.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1433 -18
- package/OPENAPI_VERSION +1 -1
- package/README.md +1 -0
- package/VERSION +1 -1
- package/cjs/Error.js +115 -1
- package/cjs/apiVersion.js +2 -3
- package/cjs/resources/AccountNotices.js +21 -0
- package/cjs/resources/Billing/Analytics/MeterUsage.js +12 -0
- package/cjs/resources/Capital/FinancingOffers.js +21 -0
- package/cjs/resources/Capital/FinancingSummary.js +12 -0
- package/cjs/resources/Capital/FinancingTransactions.js +17 -0
- package/cjs/resources/ExternalAccounts.js +23 -0
- package/cjs/resources/FinancialConnections/Accounts.js +5 -0
- package/cjs/resources/FinancialConnections/Institutions.js +17 -0
- package/cjs/resources/FxQuotes.js +15 -0
- package/cjs/resources/Issuing/CreditUnderwritingRecords.js +33 -0
- package/cjs/resources/Issuing/DisputeSettlementDetails.js +17 -0
- package/cjs/resources/Issuing/FraudLiabilityDebits.js +17 -0
- package/cjs/resources/Mandates.js +5 -0
- package/cjs/resources/Margins.js +22 -0
- package/cjs/resources/Orders.js +24 -0
- package/cjs/resources/PaymentAttemptRecords.js +17 -0
- package/cjs/resources/PaymentIntents.js +13 -0
- package/cjs/resources/PaymentRecords.js +33 -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/OnboardingLinks.js +12 -0
- package/cjs/resources/Terminal/ReaderCollectedData.js +12 -0
- package/cjs/resources/V2/Billing/BillSettings/Versions.js +17 -0
- package/cjs/resources/V2/Billing/BillSettings.js +27 -0
- package/cjs/resources/V2/Billing/Cadences.js +23 -0
- package/cjs/resources/V2/Billing/CollectionSettings/Versions.js +17 -0
- package/cjs/resources/V2/Billing/CollectionSettings.js +30 -0
- package/cjs/resources/V2/Billing/Profiles.js +19 -0
- package/cjs/resources/V2/Core/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 +29 -0
- package/cjs/resources/V2/TestHelpers/FinancialAddresses.js +16 -0
- package/cjs/resources.js +110 -8
- package/cjs/stripe.core.js +1 -1
- package/esm/Error.js +100 -0
- package/esm/apiVersion.js +1 -2
- package/esm/resources/AccountNotices.js +18 -0
- package/esm/resources/Billing/Analytics/MeterUsage.js +9 -0
- package/esm/resources/Capital/FinancingOffers.js +18 -0
- package/esm/resources/Capital/FinancingSummary.js +9 -0
- package/esm/resources/Capital/FinancingTransactions.js +14 -0
- package/esm/resources/ExternalAccounts.js +20 -0
- package/esm/resources/FinancialConnections/Accounts.js +5 -0
- package/esm/resources/FinancialConnections/Institutions.js +14 -0
- package/esm/resources/FxQuotes.js +12 -0
- package/esm/resources/Issuing/CreditUnderwritingRecords.js +30 -0
- package/esm/resources/Issuing/DisputeSettlementDetails.js +14 -0
- package/esm/resources/Issuing/FraudLiabilityDebits.js +14 -0
- package/esm/resources/Mandates.js +5 -0
- package/esm/resources/Margins.js +19 -0
- package/esm/resources/Orders.js +21 -0
- package/esm/resources/PaymentAttemptRecords.js +14 -0
- package/esm/resources/PaymentIntents.js +13 -0
- package/esm/resources/PaymentRecords.js +30 -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/OnboardingLinks.js +9 -0
- package/esm/resources/Terminal/ReaderCollectedData.js +9 -0
- package/esm/resources/V2/Billing/BillSettings/Versions.js +14 -0
- package/esm/resources/V2/Billing/BillSettings.js +24 -0
- package/esm/resources/V2/Billing/Cadences.js +20 -0
- package/esm/resources/V2/Billing/CollectionSettings/Versions.js +14 -0
- package/esm/resources/V2/Billing/CollectionSettings.js +27 -0
- package/esm/resources/V2/Billing/Profiles.js +16 -0
- package/esm/resources/V2/Core/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 +26 -0
- package/esm/resources/V2/TestHelpers/FinancialAddresses.js +13 -0
- package/esm/resources.js +95 -0
- 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/Billing/AlertTriggereds.d.ts +1 -1
- package/types/Billing/Analytics/MeterUsage.d.ts +31 -0
- package/types/Billing/Analytics/MeterUsageResource.d.ts +689 -0
- package/types/Billing/Analytics/MeterUsageRows.d.ts +51 -0
- package/types/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 +171 -0
- package/types/ChargesResource.d.ts +1406 -0
- package/types/Checkout/Sessions.d.ts +369 -2
- package/types/Checkout/SessionsResource.d.ts +634 -2
- 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 +40 -0
- package/types/DisputesResource.d.ts +11 -0
- package/types/Errors.d.ts +85 -0
- 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 +155 -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/InvoicePaymentsResource.d.ts +10 -1
- package/types/Invoices.d.ts +204 -4
- package/types/InvoicesResource.d.ts +1646 -21
- 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 +135 -1
- package/types/MandatesResource.d.ts +31 -0
- package/types/Margins.d.ts +56 -0
- package/types/MarginsResource.d.ts +114 -0
- package/types/Orders.d.ts +1163 -0
- package/types/OrdersResource.d.ts +3139 -0
- package/types/PaymentAttemptRecords.d.ts +2360 -0
- package/types/PaymentAttemptRecordsResource.d.ts +52 -0
- package/types/PaymentIntentAmountDetailsLineItems.d.ts +116 -0
- package/types/PaymentIntents.d.ts +825 -3
- package/types/PaymentIntentsResource.d.ts +11753 -5914
- package/types/PaymentLinks.d.ts +7 -0
- package/types/PaymentLinksResource.d.ts +14 -0
- package/types/PaymentMethodConfigurations.d.ts +216 -0
- package/types/PaymentMethodConfigurationsResource.d.ts +300 -0
- package/types/PaymentMethods.d.ts +130 -0
- package/types/PaymentMethodsResource.d.ts +167 -2
- package/types/PaymentRecords.d.ts +2353 -0
- package/types/PaymentRecordsResource.d.ts +559 -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 +1770 -0
- package/types/QuotePreviewSubscriptionSchedules.d.ts +908 -0
- package/types/Quotes.d.ts +594 -1
- package/types/QuotesResource.d.ts +2588 -243
- package/types/Refunds.d.ts +14 -0
- package/types/SetupAttempts.d.ts +51 -1
- package/types/SetupIntents.d.ts +210 -2
- package/types/SetupIntentsResource.d.ts +938 -4
- package/types/Sources.d.ts +29 -0
- package/types/SubscriptionItems.d.ts +26 -0
- package/types/SubscriptionItemsResource.d.ts +109 -0
- package/types/SubscriptionSchedules.d.ts +205 -0
- package/types/SubscriptionSchedulesResource.d.ts +1233 -5
- package/types/Subscriptions.d.ts +263 -1
- package/types/SubscriptionsResource.d.ts +747 -8
- 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/Configurations.d.ts +9 -0
- package/types/Terminal/ConfigurationsResource.d.ts +28 -0
- package/types/Terminal/OnboardingLinks.d.ts +57 -0
- package/types/Terminal/OnboardingLinksResource.d.ts +62 -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/Billing/BillSettingVersions.d.ts +97 -0
- package/types/V2/Billing/BillSettings/VersionsResource.d.ts +58 -0
- package/types/V2/Billing/BillSettings.d.ts +120 -0
- package/types/V2/Billing/BillSettingsResource.d.ts +241 -0
- package/types/V2/Billing/Cadences.d.ts +686 -0
- package/types/V2/Billing/CadencesResource.d.ts +487 -0
- package/types/V2/Billing/CollectionSettingVersions.d.ts +314 -0
- package/types/V2/Billing/CollectionSettings/VersionsResource.d.ts +62 -0
- package/types/V2/Billing/CollectionSettings.d.ts +337 -0
- package/types/V2/Billing/CollectionSettingsResource.d.ts +675 -0
- package/types/V2/Billing/Profiles.d.ts +70 -0
- package/types/V2/Billing/ProfilesResource.d.ts +150 -0
- package/types/V2/Core/AccountLinks.d.ts +168 -0
- package/types/V2/Core/AccountLinksResource.d.ts +152 -0
- package/types/V2/Core/AccountPersons.d.ts +615 -0
- package/types/V2/Core/Accounts/PersonsResource.d.ts +1153 -0
- package/types/V2/Core/Accounts.d.ts +5919 -0
- package/types/V2/Core/AccountsResource.d.ts +4999 -0
- package/types/V2/Core/EventTypes.d.ts +1646 -9
- 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/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 +148 -0
- package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +147 -0
- package/types/V2/MoneyManagement/FinancialAddresses.d.ts +178 -0
- package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +112 -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 +170 -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 +160 -0
- package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpec.d.ts +93 -0
- package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecResource.d.ts +41 -0
- package/types/V2/MoneyManagement/PayoutMethodsResource.d.ts +113 -0
- package/types/V2/MoneyManagement/ReceivedCredits.d.ts +302 -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 +162 -0
- package/types/V2/MoneyManagement/TransactionEntriesResource.d.ts +82 -0
- package/types/V2/MoneyManagement/Transactions.d.ts +177 -0
- package/types/V2/MoneyManagement/TransactionsResource.d.ts +83 -0
- package/types/V2/Payments/OffSessionPayments.d.ts +326 -0
- package/types/V2/Payments/OffSessionPaymentsResource.d.ts +401 -0
- package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +68 -0
- package/types/WebhookEndpointsResource.d.ts +78 -0
- package/types/apiVersion.d.ts +1 -2
- package/types/index.d.ts +160 -0
- package/types/lib.d.ts +10 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
namespace Billing {
|
|
6
|
+
namespace Analytics {
|
|
7
|
+
/**
|
|
8
|
+
* The MeterUsageRow object.
|
|
9
|
+
*/
|
|
10
|
+
interface MeterUsageRow {
|
|
11
|
+
/**
|
|
12
|
+
* Unique identifier for the object.
|
|
13
|
+
*/
|
|
14
|
+
id: string;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* String representing the object's type. Objects of the same type share the same value.
|
|
18
|
+
*/
|
|
19
|
+
object: 'billing.analytics.meter_usage_row';
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* A set of key-value pairs representing the dimensions of the meter usage.
|
|
23
|
+
*/
|
|
24
|
+
dimensions: {
|
|
25
|
+
[key: string]: string;
|
|
26
|
+
} | null;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Timestamp indicating the end of the bucket. Measured in seconds since the Unix epoch.
|
|
30
|
+
*/
|
|
31
|
+
ends_at: number;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* The unique identifier for the meter. Null if no meters were provided and usage was aggregated across all meters.
|
|
35
|
+
*/
|
|
36
|
+
meter: string | null;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Timestamp indicating the start of the bucket. Measured in seconds since the Unix epoch.
|
|
40
|
+
*/
|
|
41
|
+
starts_at: number;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* The aggregated meter usage value for the specified bucket.
|
|
45
|
+
*/
|
|
46
|
+
value: number;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
namespace Capital {
|
|
6
|
+
/**
|
|
7
|
+
* A financing object describes an account's current financing state. Used by Connect
|
|
8
|
+
* platforms to read the state of Capital offered to their connected accounts.
|
|
9
|
+
*/
|
|
10
|
+
interface FinancingSummary {
|
|
11
|
+
/**
|
|
12
|
+
* The object type: financing_summary
|
|
13
|
+
*/
|
|
14
|
+
object: 'capital.financing_summary';
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Additional information about the financing summary. Describes currency, advance amount,
|
|
18
|
+
* fee amount, withhold rate, remaining amount, paid amount, current repayment interval,
|
|
19
|
+
* repayment start date, and advance payout date.
|
|
20
|
+
*/
|
|
21
|
+
details: FinancingSummary.Details | null;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* The Financing Offer ID this Financing Summary corresponds to
|
|
25
|
+
*/
|
|
26
|
+
financing_offer: string | null;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Status of the Connected Account's financing. [/v1/capital/financing_summary](https://stripe.com/docs/api/capital/financing_summary) will only return `details` for `paid_out` financing.
|
|
30
|
+
*/
|
|
31
|
+
status: FinancingSummary.Status | null;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
namespace FinancingSummary {
|
|
35
|
+
interface Details {
|
|
36
|
+
/**
|
|
37
|
+
* Amount of financing offered, in minor units. For example, $1,000 USD will be represented as 100000.
|
|
38
|
+
*/
|
|
39
|
+
advance_amount: number;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* The time at which the funds were paid out to the connected account's Stripe balance. Given in milliseconds since unix epoch.
|
|
43
|
+
*/
|
|
44
|
+
advance_paid_out_at: number | null;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Currency that the financing offer is transacted in. For example, `usd`.
|
|
48
|
+
*/
|
|
49
|
+
currency: string;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* The chronologically current repayment interval for the financing offer.
|
|
53
|
+
*/
|
|
54
|
+
current_repayment_interval: Details.CurrentRepaymentInterval | null;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Fixed fee amount, in minor units. For example, $100 USD will be represented as 10000.
|
|
58
|
+
*/
|
|
59
|
+
fee_amount: number;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* The amount the Connected account has paid toward the financing debt so far, in minor units. For example, $1,000 USD will be represented as 100000.
|
|
63
|
+
*/
|
|
64
|
+
paid_amount: number;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* The balance remaining to be paid on the financing, in minor units. For example, $1,000 USD will be represented as 100000.
|
|
68
|
+
*/
|
|
69
|
+
remaining_amount: number;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* The time at which Capital will begin withholding from payments. Given in seconds since unix epoch.
|
|
73
|
+
*/
|
|
74
|
+
repayments_begin_at: number | null;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Per-transaction rate at which Stripe will withhold funds to repay the financing.
|
|
78
|
+
*/
|
|
79
|
+
withhold_rate: number;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
namespace Details {
|
|
83
|
+
interface CurrentRepaymentInterval {
|
|
84
|
+
/**
|
|
85
|
+
* The time at which the minimum payment amount will be due. If not met through withholding, the Connected account's linked bank account or account balance will be debited.
|
|
86
|
+
* Given in seconds since unix epoch.
|
|
87
|
+
*/
|
|
88
|
+
due_at: number;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* The amount that has already been paid in the current repayment interval, in minor units. For example, $100 USD will be represented as 10000.
|
|
92
|
+
*/
|
|
93
|
+
paid_amount: number | null;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* The amount that is yet to be paid in the current repayment interval, in minor units. For example, $100 USD will be represented as 10000.
|
|
97
|
+
*/
|
|
98
|
+
remaining_amount: number;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
type Status = 'accepted' | 'delivered' | 'none';
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
namespace Capital {
|
|
6
|
+
interface FinancingSummaryRetrieveParams {
|
|
7
|
+
/**
|
|
8
|
+
* Specifies which fields in the response should be expanded.
|
|
9
|
+
*/
|
|
10
|
+
expand?: Array<string>;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
class FinancingSummaryResource {
|
|
14
|
+
/**
|
|
15
|
+
* Retrieve the financing state for the account that was authenticated in the request.
|
|
16
|
+
*/
|
|
17
|
+
retrieve(
|
|
18
|
+
params?: FinancingSummaryRetrieveParams,
|
|
19
|
+
options?: RequestOptions
|
|
20
|
+
): Promise<Stripe.Response<Stripe.Capital.FinancingSummary>>;
|
|
21
|
+
retrieve(
|
|
22
|
+
options?: RequestOptions
|
|
23
|
+
): Promise<Stripe.Response<Stripe.Capital.FinancingSummary>>;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|