stripe 20.2.0-alpha.1 → 20.2.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +45 -460
- package/OPENAPI_VERSION +1 -1
- package/VERSION +1 -1
- package/cjs/Error.js +1 -9
- package/cjs/StripeEventNotificationHandler.js +118 -0
- package/cjs/resources/PaymentMethods.js +0 -4
- package/cjs/resources/Reserve/Holds.js +14 -0
- package/cjs/resources/{ProductCatalog/TrialOffers.js → Reserve/Plans.js} +3 -6
- package/cjs/resources/{SharedPayment/GrantedTokens.js → Reserve/Releases.js} +8 -3
- package/cjs/resources.js +11 -77
- package/cjs/stripe.core.js +5 -1
- package/esm/Error.js +0 -7
- package/esm/StripeEventNotificationHandler.js +114 -0
- package/esm/resources/PaymentMethods.js +0 -4
- package/esm/resources/Reserve/Holds.js +11 -0
- package/esm/resources/Reserve/Plans.js +6 -0
- package/esm/resources/Reserve/Releases.js +14 -0
- package/esm/resources.js +7 -72
- package/esm/stripe.core.js +5 -1
- package/package.json +1 -1
- package/types/AccountSessions.d.ts +0 -18
- package/types/AccountSessionsResource.d.ts +0 -21
- package/types/AccountsResource.d.ts +12 -136
- package/types/ApplicationFees.d.ts +1 -6
- package/types/Balance.d.ts +0 -82
- package/types/BalanceTransactions.d.ts +1 -2
- package/types/Billing/AlertTriggereds.d.ts +0 -15
- package/types/Billing/Alerts.d.ts +1 -116
- package/types/Billing/AlertsResource.d.ts +2 -149
- package/types/Billing/Analytics/MeterUsageResource.d.ts +0 -5
- package/types/Billing/Analytics/MeterUsageRows.d.ts +0 -7
- package/types/Billing/CreditBalanceSummary.d.ts +2 -118
- package/types/Billing/CreditBalanceSummaryResource.d.ts +0 -12
- package/types/Billing/CreditBalanceTransactions.d.ts +2 -118
- package/types/Billing/CreditGrants.d.ts +1 -71
- package/types/Billing/CreditGrantsResource.d.ts +1 -32
- package/types/Billing/MeterEventSummaries.d.ts +0 -7
- package/types/Billing/Meters.d.ts +0 -5
- package/types/Billing/MetersResource.d.ts +0 -17
- package/types/Cards.d.ts +0 -14
- package/types/Charges.d.ts +0 -14
- package/types/Checkout/Sessions.d.ts +0 -58
- package/types/Checkout/SessionsResource.d.ts +0 -78
- package/types/ConfirmationTokens.d.ts +0 -14
- package/types/Discounts.d.ts +0 -10
- package/types/Errors.d.ts +0 -6
- package/types/Identity/VerificationReports.d.ts +0 -10
- package/types/Identity/VerificationReportsResource.d.ts +0 -5
- package/types/InvoiceItems.d.ts +3 -118
- package/types/InvoiceLineItems.d.ts +8 -127
- package/types/Invoices.d.ts +0 -13
- package/types/InvoicesResource.d.ts +0 -201
- package/types/Issuing/Cards.d.ts +0 -10
- package/types/Issuing/CardsResource.d.ts +0 -33
- package/types/PaymentIntents.d.ts +1 -45
- package/types/PaymentIntentsResource.d.ts +5 -126
- package/types/PaymentLinksResource.d.ts +0 -14
- package/types/PaymentMethods.d.ts +0 -14
- package/types/PaymentMethodsResource.d.ts +0 -20
- package/types/Persons.d.ts +0 -28
- package/types/ProductsResource.d.ts +0 -24
- package/types/QuoteLines.d.ts +0 -17
- package/types/QuotePreviewInvoices.d.ts +0 -13
- package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -126
- package/types/Quotes.d.ts +0 -282
- package/types/QuotesResource.d.ts +44 -662
- package/types/Reserve/Holds.d.ts +104 -0
- package/types/Reserve/HoldsResource.d.ts +76 -0
- package/types/Reserve/Plans.d.ts +103 -0
- package/types/{SharedPayment/GrantedTokensResource.d.ts → Reserve/PlansResource.d.ts} +7 -7
- package/types/Reserve/Releases.d.ts +105 -0
- package/types/Reserve/ReleasesResource.d.ts +60 -0
- package/types/SetupIntents.d.ts +0 -21
- package/types/SetupIntentsResource.d.ts +0 -90
- package/types/SubscriptionItems.d.ts +0 -13
- package/types/SubscriptionItemsResource.d.ts +0 -34
- package/types/SubscriptionSchedules.d.ts +0 -124
- package/types/SubscriptionSchedulesResource.d.ts +0 -238
- package/types/Subscriptions.d.ts +0 -22
- package/types/SubscriptionsResource.d.ts +0 -34
- package/types/TokensResource.d.ts +0 -68
- package/types/Transfers.d.ts +0 -4
- package/types/TransfersResource.d.ts +0 -2
- package/types/V2/Billing/Cadences.d.ts +0 -45
- package/types/V2/Billing/CadencesResource.d.ts +3 -32
- package/types/V2/Core/AccountTokensResource.d.ts +0 -245
- package/types/V2/Core/Accounts.d.ts +1 -1473
- package/types/V2/Core/AccountsResource.d.ts +0 -1644
- package/types/V2/Core/EventTypes.d.ts +702 -4551
- package/types/V2/Core/Events.d.ts +0 -61
- package/types/V2/Core/EventsResource.d.ts +1 -11
- package/types/V2/Core/Vault/GbBankAccounts.d.ts +0 -21
- package/types/V2/Core/Vault/UsBankAccounts.d.ts +0 -21
- package/types/V2/EventMisc.d.ts +37 -0
- package/types/V2/MoneyManagement/FinancialAccounts.d.ts +1 -31
- package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +0 -7
- package/types/V2/MoneyManagement/FinancialAddresses.d.ts +1 -4
- package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +1 -18
- package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +0 -8
- package/types/V2/MoneyManagement/OutboundPaymentQuotesResource.d.ts +0 -7
- package/types/V2/MoneyManagement/OutboundPayments.d.ts +0 -12
- package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +0 -12
- package/types/V2/MoneyManagement/OutboundSetupIntentsResource.d.ts +0 -34
- package/types/V2/MoneyManagement/OutboundTransfers.d.ts +0 -5
- package/types/V2/MoneyManagement/OutboundTransfersResource.d.ts +0 -5
- package/types/V2/MoneyManagement/PayoutMethods.d.ts +0 -62
- package/types/V2/MoneyManagement/ReceivedCredits.d.ts +1 -34
- package/types/V2/MoneyManagement/ReceivedDebits.d.ts +1 -61
- package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +1 -6
- package/types/WebhookEndpointsResource.d.ts +2 -1
- package/types/Webhooks.d.ts +0 -2
- package/types/index.d.ts +25 -122
- package/types/test/typescriptTest.ts +27 -0
- package/cjs/resources/BalanceTransfers.js +0 -9
- package/cjs/resources/DelegatedCheckout/RequestedSessions.js +0 -28
- package/cjs/resources/Identity/BlocklistEntries.js +0 -25
- package/cjs/resources/Issuing/Programs.js +0 -22
- package/cjs/resources/Radar/AccountEvaluations.js +0 -20
- package/cjs/resources/TestHelpers/Capital/FinancingOffers.js +0 -16
- package/cjs/resources/TestHelpers/SharedPayment/GrantedTokens.js +0 -16
- package/cjs/resources/V2/Billing/CustomPricingUnits.js +0 -25
- package/cjs/resources/V2/Billing/Intents/Actions.js +0 -17
- package/cjs/resources/V2/Billing/Intents.js +0 -36
- package/cjs/resources/V2/Billing/LicenseFeeSubscriptions.js +0 -12
- package/cjs/resources/V2/Billing/LicenseFees/Versions.js +0 -17
- package/cjs/resources/V2/Billing/LicenseFees.js +0 -27
- package/cjs/resources/V2/Billing/LicensedItems.js +0 -25
- package/cjs/resources/V2/Billing/MeteredItems.js +0 -22
- package/cjs/resources/V2/Billing/PricingPlanSubscriptions/Components.js +0 -12
- package/cjs/resources/V2/Billing/PricingPlanSubscriptions.js +0 -26
- package/cjs/resources/V2/Billing/PricingPlans/Components.js +0 -29
- package/cjs/resources/V2/Billing/PricingPlans/Versions.js +0 -17
- package/cjs/resources/V2/Billing/PricingPlans.js +0 -29
- package/cjs/resources/V2/Billing/RateCardSubscriptions.js +0 -29
- package/cjs/resources/V2/Billing/RateCards/Rates.js +0 -25
- package/cjs/resources/V2/Billing/RateCards/Versions.js +0 -17
- package/cjs/resources/V2/Billing/RateCards.js +0 -29
- package/cjs/resources/V2/Billing/ServiceActions.js +0 -20
- package/cjs/resources/V2/Core/ClaimableSandboxes.js +0 -16
- package/cjs/resources/V2/Iam/ApiKeys.js +0 -24
- package/cjs/resources/V2/MoneyManagement/CurrencyConversions.js +0 -21
- package/cjs/resources/V2/MoneyManagement/RecipientVerifications.js +0 -20
- package/cjs/resources/V2/Payments/OffSessionPayments.js +0 -29
- package/cjs/resources/V2/Payments/SettlementAllocationIntents/Splits.js +0 -20
- package/cjs/resources/V2/Payments/SettlementAllocationIntents.js +0 -33
- package/cjs/resources/V2/Reporting/ReportRuns.js +0 -13
- package/cjs/resources/V2/Reporting/Reports.js +0 -12
- package/cjs/resources/V2/Tax/ManualRules.js +0 -23
- package/cjs/resources/V2/TestHelpers/MoneyManagement.js +0 -12
- package/esm/resources/BalanceTransfers.js +0 -6
- package/esm/resources/DelegatedCheckout/RequestedSessions.js +0 -25
- package/esm/resources/Identity/BlocklistEntries.js +0 -22
- package/esm/resources/Issuing/Programs.js +0 -19
- package/esm/resources/ProductCatalog/TrialOffers.js +0 -9
- package/esm/resources/Radar/AccountEvaluations.js +0 -17
- package/esm/resources/SharedPayment/GrantedTokens.js +0 -9
- package/esm/resources/TestHelpers/Capital/FinancingOffers.js +0 -13
- package/esm/resources/TestHelpers/SharedPayment/GrantedTokens.js +0 -13
- package/esm/resources/V2/Billing/CustomPricingUnits.js +0 -22
- package/esm/resources/V2/Billing/Intents/Actions.js +0 -14
- package/esm/resources/V2/Billing/Intents.js +0 -33
- package/esm/resources/V2/Billing/LicenseFeeSubscriptions.js +0 -9
- package/esm/resources/V2/Billing/LicenseFees/Versions.js +0 -14
- package/esm/resources/V2/Billing/LicenseFees.js +0 -24
- package/esm/resources/V2/Billing/LicensedItems.js +0 -22
- package/esm/resources/V2/Billing/MeteredItems.js +0 -19
- package/esm/resources/V2/Billing/PricingPlanSubscriptions/Components.js +0 -9
- package/esm/resources/V2/Billing/PricingPlanSubscriptions.js +0 -23
- package/esm/resources/V2/Billing/PricingPlans/Components.js +0 -26
- package/esm/resources/V2/Billing/PricingPlans/Versions.js +0 -14
- package/esm/resources/V2/Billing/PricingPlans.js +0 -26
- package/esm/resources/V2/Billing/RateCardSubscriptions.js +0 -26
- package/esm/resources/V2/Billing/RateCards/Rates.js +0 -22
- package/esm/resources/V2/Billing/RateCards/Versions.js +0 -14
- package/esm/resources/V2/Billing/RateCards.js +0 -26
- package/esm/resources/V2/Billing/ServiceActions.js +0 -17
- package/esm/resources/V2/Core/ClaimableSandboxes.js +0 -13
- package/esm/resources/V2/Iam/ApiKeys.js +0 -21
- package/esm/resources/V2/MoneyManagement/CurrencyConversions.js +0 -18
- package/esm/resources/V2/MoneyManagement/RecipientVerifications.js +0 -17
- package/esm/resources/V2/Payments/OffSessionPayments.js +0 -26
- package/esm/resources/V2/Payments/SettlementAllocationIntents/Splits.js +0 -17
- package/esm/resources/V2/Payments/SettlementAllocationIntents.js +0 -30
- package/esm/resources/V2/Reporting/ReportRuns.js +0 -10
- package/esm/resources/V2/Reporting/Reports.js +0 -9
- package/esm/resources/V2/Tax/ManualRules.js +0 -20
- package/esm/resources/V2/TestHelpers/MoneyManagement.js +0 -9
- package/types/BalanceTransfers.d.ts +0 -122
- package/types/BalanceTransfersResource.d.ts +0 -87
- package/types/DelegatedCheckout/RequestedSessions.d.ts +0 -465
- package/types/DelegatedCheckout/RequestedSessionsResource.d.ts +0 -701
- package/types/Identity/BlocklistEntries.d.ts +0 -78
- package/types/Identity/BlocklistEntriesResource.d.ts +0 -146
- package/types/Issuing/Programs.d.ts +0 -42
- package/types/Issuing/ProgramsResource.d.ts +0 -96
- package/types/PaymentMethodBalances.d.ts +0 -63
- package/types/ProductCatalog/TrialOffers.d.ts +0 -77
- package/types/ProductCatalog/TrialOffersResource.d.ts +0 -80
- package/types/Radar/AccountEvaluations.d.ts +0 -88
- package/types/Radar/AccountEvaluationsResource.d.ts +0 -148
- package/types/SharedPayment/GrantedTokens.d.ts +0 -102
- package/types/TestHelpers/Capital/FinancingOffersResource.d.ts +0 -130
- package/types/TestHelpers/SharedPayment/GrantedTokensResource.d.ts +0 -87
- package/types/TransitBalances.d.ts +0 -40
- package/types/V2/Billing/CustomPricingUnits.d.ts +0 -56
- package/types/V2/Billing/CustomPricingUnitsResource.d.ts +0 -122
- package/types/V2/Billing/IntentActions.d.ts +0 -564
- package/types/V2/Billing/Intents/ActionsResource.d.ts +0 -58
- package/types/V2/Billing/Intents.d.ts +0 -117
- package/types/V2/Billing/IntentsResource.d.ts +0 -674
- package/types/V2/Billing/LicenseFeeSubscriptions.d.ts +0 -64
- package/types/V2/Billing/LicenseFeeSubscriptionsResource.d.ts +0 -28
- package/types/V2/Billing/LicenseFeeVersions.d.ts +0 -106
- package/types/V2/Billing/LicenseFees/VersionsResource.d.ts +0 -58
- package/types/V2/Billing/LicenseFees.d.ts +0 -164
- package/types/V2/Billing/LicenseFeesResource.d.ts +0 -290
- package/types/V2/Billing/LicensedItems.d.ts +0 -73
- package/types/V2/Billing/LicensedItemsResource.d.ts +0 -157
- package/types/V2/Billing/MeteredItems.d.ts +0 -101
- package/types/V2/Billing/MeteredItemsResource.d.ts +0 -189
- package/types/V2/Billing/PricingPlanComponents.d.ts +0 -109
- package/types/V2/Billing/PricingPlanSubscriptionComponents.d.ts +0 -57
- package/types/V2/Billing/PricingPlanSubscriptions/ComponentsResource.d.ts +0 -40
- package/types/V2/Billing/PricingPlanSubscriptions.d.ts +0 -144
- package/types/V2/Billing/PricingPlanSubscriptionsResource.d.ts +0 -120
- package/types/V2/Billing/PricingPlanVersions.d.ts +0 -49
- package/types/V2/Billing/PricingPlans/ComponentsResource.d.ts +0 -197
- package/types/V2/Billing/PricingPlans/VersionsResource.d.ts +0 -58
- package/types/V2/Billing/PricingPlans.d.ts +0 -84
- package/types/V2/Billing/PricingPlansResource.d.ts +0 -151
- package/types/V2/Billing/RateCardRates.d.ts +0 -144
- package/types/V2/Billing/RateCardSubscriptions.d.ts +0 -144
- package/types/V2/Billing/RateCardSubscriptionsResource.d.ts +0 -157
- package/types/V2/Billing/RateCardVersions.d.ts +0 -39
- package/types/V2/Billing/RateCards/RatesResource.d.ts +0 -203
- package/types/V2/Billing/RateCards/VersionsResource.d.ts +0 -58
- package/types/V2/Billing/RateCards.d.ts +0 -98
- package/types/V2/Billing/RateCardsResource.d.ts +0 -162
- package/types/V2/Billing/ServiceActions.d.ts +0 -298
- package/types/V2/Billing/ServiceActionsResource.d.ts +0 -394
- package/types/V2/Core/ClaimableSandboxes.d.ts +0 -132
- package/types/V2/Core/ClaimableSandboxesResource.d.ts +0 -74
- package/types/V2/Iam/ApiKeys.d.ts +0 -154
- package/types/V2/Iam/ApiKeysResource.d.ts +0 -215
- package/types/V2/MoneyManagement/CurrencyConversions.d.ts +0 -98
- package/types/V2/MoneyManagement/CurrencyConversionsResource.d.ts +0 -141
- package/types/V2/MoneyManagement/RecipientVerifications.d.ts +0 -112
- package/types/V2/MoneyManagement/RecipientVerificationsResource.d.ts +0 -77
- package/types/V2/Payments/OffSessionPayments.d.ts +0 -249
- package/types/V2/Payments/OffSessionPaymentsResource.d.ts +0 -306
- package/types/V2/Payments/SettlementAllocationIntentSplits.d.ts +0 -111
- package/types/V2/Payments/SettlementAllocationIntents/SplitsResource.d.ts +0 -126
- package/types/V2/Payments/SettlementAllocationIntents.d.ts +0 -122
- package/types/V2/Payments/SettlementAllocationIntentsResource.d.ts +0 -168
- package/types/V2/Reporting/ReportRuns.d.ts +0 -154
- package/types/V2/Reporting/ReportRunsResource.d.ts +0 -75
- package/types/V2/Reporting/Reports.d.ts +0 -120
- package/types/V2/Reporting/ReportsResource.d.ts +0 -30
- package/types/V2/Tax/ManualRules.d.ts +0 -142
- package/types/V2/Tax/ManualRulesResource.d.ts +0 -292
- package/types/V2/TestHelpers/MoneyManagementResource.d.ts +0 -49
|
@@ -1553,6 +1553,9 @@ declare module 'stripe' {
|
|
|
1553
1553
|
*/
|
|
1554
1554
|
files?: Array<string>;
|
|
1555
1555
|
|
|
1556
|
+
/**
|
|
1557
|
+
* Information regarding the person signing the document if applicable.
|
|
1558
|
+
*/
|
|
1556
1559
|
signer?: ProofOfRegistration.Signer;
|
|
1557
1560
|
}
|
|
1558
1561
|
|
|
@@ -1571,6 +1574,9 @@ declare module 'stripe' {
|
|
|
1571
1574
|
*/
|
|
1572
1575
|
files?: Array<string>;
|
|
1573
1576
|
|
|
1577
|
+
/**
|
|
1578
|
+
* Information regarding the person signing the document if applicable.
|
|
1579
|
+
*/
|
|
1574
1580
|
signer?: ProofOfUltimateBeneficialOwnership.Signer;
|
|
1575
1581
|
}
|
|
1576
1582
|
|
|
@@ -1734,16 +1740,6 @@ declare module 'stripe' {
|
|
|
1734
1740
|
*/
|
|
1735
1741
|
relationship?: Individual.Relationship;
|
|
1736
1742
|
|
|
1737
|
-
/**
|
|
1738
|
-
* The credit applicant's self-reported yearly income in minor units.
|
|
1739
|
-
*/
|
|
1740
|
-
self_reported_income?: Individual.SelfReportedIncome;
|
|
1741
|
-
|
|
1742
|
-
/**
|
|
1743
|
-
* The credit applicant's self-reported monthly housing payment in minor units.
|
|
1744
|
-
*/
|
|
1745
|
-
self_reported_monthly_housing_payment?: Individual.SelfReportedMonthlyHousingPayment;
|
|
1746
|
-
|
|
1747
1743
|
/**
|
|
1748
1744
|
* The last four digits of the individual's Social Security Number (U.S. only).
|
|
1749
1745
|
*/
|
|
@@ -1802,30 +1798,6 @@ declare module 'stripe' {
|
|
|
1802
1798
|
title?: string;
|
|
1803
1799
|
}
|
|
1804
1800
|
|
|
1805
|
-
interface SelfReportedIncome {
|
|
1806
|
-
/**
|
|
1807
|
-
* The amount in the minor currency unit (for example, cents for USD).
|
|
1808
|
-
*/
|
|
1809
|
-
amount: number;
|
|
1810
|
-
|
|
1811
|
-
/**
|
|
1812
|
-
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
1813
|
-
*/
|
|
1814
|
-
currency: string;
|
|
1815
|
-
}
|
|
1816
|
-
|
|
1817
|
-
interface SelfReportedMonthlyHousingPayment {
|
|
1818
|
-
/**
|
|
1819
|
-
* The amount in the minor currency unit (for example, cents for USD).
|
|
1820
|
-
*/
|
|
1821
|
-
amount: number;
|
|
1822
|
-
|
|
1823
|
-
/**
|
|
1824
|
-
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
1825
|
-
*/
|
|
1826
|
-
currency: string;
|
|
1827
|
-
}
|
|
1828
|
-
|
|
1829
1801
|
interface Verification {
|
|
1830
1802
|
/**
|
|
1831
1803
|
* A document showing address, either a passport, local ID card, or utility bill from a well-known utility company.
|
|
@@ -3775,6 +3747,9 @@ declare module 'stripe' {
|
|
|
3775
3747
|
*/
|
|
3776
3748
|
files?: Array<string>;
|
|
3777
3749
|
|
|
3750
|
+
/**
|
|
3751
|
+
* Information regarding the person signing the document if applicable.
|
|
3752
|
+
*/
|
|
3778
3753
|
signer?: ProofOfRegistration.Signer;
|
|
3779
3754
|
}
|
|
3780
3755
|
|
|
@@ -3793,6 +3768,9 @@ declare module 'stripe' {
|
|
|
3793
3768
|
*/
|
|
3794
3769
|
files?: Array<string>;
|
|
3795
3770
|
|
|
3771
|
+
/**
|
|
3772
|
+
* Information regarding the person signing the document if applicable.
|
|
3773
|
+
*/
|
|
3796
3774
|
signer?: ProofOfUltimateBeneficialOwnership.Signer;
|
|
3797
3775
|
}
|
|
3798
3776
|
|
|
@@ -3919,16 +3897,6 @@ declare module 'stripe' {
|
|
|
3919
3897
|
*/
|
|
3920
3898
|
relationship?: Individual.Relationship;
|
|
3921
3899
|
|
|
3922
|
-
/**
|
|
3923
|
-
* The credit applicant's self-reported yearly income in minor units.
|
|
3924
|
-
*/
|
|
3925
|
-
self_reported_income?: Individual.SelfReportedIncome;
|
|
3926
|
-
|
|
3927
|
-
/**
|
|
3928
|
-
* The credit applicant's self-reported monthly housing payment in minor units.
|
|
3929
|
-
*/
|
|
3930
|
-
self_reported_monthly_housing_payment?: Individual.SelfReportedMonthlyHousingPayment;
|
|
3931
|
-
|
|
3932
3900
|
/**
|
|
3933
3901
|
* The last four digits of the individual's Social Security Number (U.S. only).
|
|
3934
3902
|
*/
|
|
@@ -3987,30 +3955,6 @@ declare module 'stripe' {
|
|
|
3987
3955
|
title?: string;
|
|
3988
3956
|
}
|
|
3989
3957
|
|
|
3990
|
-
interface SelfReportedIncome {
|
|
3991
|
-
/**
|
|
3992
|
-
* The amount in the minor currency unit (for example, cents for USD).
|
|
3993
|
-
*/
|
|
3994
|
-
amount: number;
|
|
3995
|
-
|
|
3996
|
-
/**
|
|
3997
|
-
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
3998
|
-
*/
|
|
3999
|
-
currency: string;
|
|
4000
|
-
}
|
|
4001
|
-
|
|
4002
|
-
interface SelfReportedMonthlyHousingPayment {
|
|
4003
|
-
/**
|
|
4004
|
-
* The amount in the minor currency unit (for example, cents for USD).
|
|
4005
|
-
*/
|
|
4006
|
-
amount: number;
|
|
4007
|
-
|
|
4008
|
-
/**
|
|
4009
|
-
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
4010
|
-
*/
|
|
4011
|
-
currency: string;
|
|
4012
|
-
}
|
|
4013
|
-
|
|
4014
3958
|
interface Verification {
|
|
4015
3959
|
/**
|
|
4016
3960
|
* A document showing address, either a passport, local ID card, or utility bill from a well-known utility company.
|
|
@@ -4693,16 +4637,6 @@ declare module 'stripe' {
|
|
|
4693
4637
|
*/
|
|
4694
4638
|
relationship?: AccountCreatePersonParams.Relationship;
|
|
4695
4639
|
|
|
4696
|
-
/**
|
|
4697
|
-
* The credit applicant's self-reported yearly income in minor units.
|
|
4698
|
-
*/
|
|
4699
|
-
self_reported_income?: AccountCreatePersonParams.SelfReportedIncome;
|
|
4700
|
-
|
|
4701
|
-
/**
|
|
4702
|
-
* The credit applicant's self-reported monthly housing payment in minor units.
|
|
4703
|
-
*/
|
|
4704
|
-
self_reported_monthly_housing_payment?: AccountCreatePersonParams.SelfReportedMonthlyHousingPayment;
|
|
4705
|
-
|
|
4706
4640
|
/**
|
|
4707
4641
|
* The last four digits of the person's Social Security number (U.S. only).
|
|
4708
4642
|
*/
|
|
@@ -4847,30 +4781,6 @@ declare module 'stripe' {
|
|
|
4847
4781
|
title?: string;
|
|
4848
4782
|
}
|
|
4849
4783
|
|
|
4850
|
-
interface SelfReportedIncome {
|
|
4851
|
-
/**
|
|
4852
|
-
* The amount in the minor currency unit (for example, cents for USD).
|
|
4853
|
-
*/
|
|
4854
|
-
amount: number;
|
|
4855
|
-
|
|
4856
|
-
/**
|
|
4857
|
-
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
4858
|
-
*/
|
|
4859
|
-
currency: string;
|
|
4860
|
-
}
|
|
4861
|
-
|
|
4862
|
-
interface SelfReportedMonthlyHousingPayment {
|
|
4863
|
-
/**
|
|
4864
|
-
* The amount in the minor currency unit (for example, cents for USD).
|
|
4865
|
-
*/
|
|
4866
|
-
amount: number;
|
|
4867
|
-
|
|
4868
|
-
/**
|
|
4869
|
-
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
4870
|
-
*/
|
|
4871
|
-
currency: string;
|
|
4872
|
-
}
|
|
4873
|
-
|
|
4874
4784
|
interface UsCfpbData {
|
|
4875
4785
|
/**
|
|
4876
4786
|
* The persons ethnicity details
|
|
@@ -5356,16 +5266,6 @@ declare module 'stripe' {
|
|
|
5356
5266
|
*/
|
|
5357
5267
|
relationship?: AccountUpdatePersonParams.Relationship;
|
|
5358
5268
|
|
|
5359
|
-
/**
|
|
5360
|
-
* The credit applicant's self-reported yearly income in minor units.
|
|
5361
|
-
*/
|
|
5362
|
-
self_reported_income?: AccountUpdatePersonParams.SelfReportedIncome;
|
|
5363
|
-
|
|
5364
|
-
/**
|
|
5365
|
-
* The credit applicant's self-reported monthly housing payment in minor units.
|
|
5366
|
-
*/
|
|
5367
|
-
self_reported_monthly_housing_payment?: AccountUpdatePersonParams.SelfReportedMonthlyHousingPayment;
|
|
5368
|
-
|
|
5369
5269
|
/**
|
|
5370
5270
|
* The last four digits of the person's Social Security number (U.S. only).
|
|
5371
5271
|
*/
|
|
@@ -5510,30 +5410,6 @@ declare module 'stripe' {
|
|
|
5510
5410
|
title?: string;
|
|
5511
5411
|
}
|
|
5512
5412
|
|
|
5513
|
-
interface SelfReportedIncome {
|
|
5514
|
-
/**
|
|
5515
|
-
* The amount in the minor currency unit (for example, cents for USD).
|
|
5516
|
-
*/
|
|
5517
|
-
amount: number;
|
|
5518
|
-
|
|
5519
|
-
/**
|
|
5520
|
-
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
5521
|
-
*/
|
|
5522
|
-
currency: string;
|
|
5523
|
-
}
|
|
5524
|
-
|
|
5525
|
-
interface SelfReportedMonthlyHousingPayment {
|
|
5526
|
-
/**
|
|
5527
|
-
* The amount in the minor currency unit (for example, cents for USD).
|
|
5528
|
-
*/
|
|
5529
|
-
amount: number;
|
|
5530
|
-
|
|
5531
|
-
/**
|
|
5532
|
-
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
5533
|
-
*/
|
|
5534
|
-
currency: string;
|
|
5535
|
-
}
|
|
5536
|
-
|
|
5537
5413
|
interface UsCfpbData {
|
|
5538
5414
|
/**
|
|
5539
5415
|
* The persons ethnicity details
|
|
@@ -94,11 +94,6 @@ declare module 'stripe' {
|
|
|
94
94
|
*/
|
|
95
95
|
payout?: string;
|
|
96
96
|
|
|
97
|
-
/**
|
|
98
|
-
* Transfer ID that created this application fee.
|
|
99
|
-
*/
|
|
100
|
-
transfer?: string;
|
|
101
|
-
|
|
102
97
|
/**
|
|
103
98
|
* Type of object that created the application fee.
|
|
104
99
|
*/
|
|
@@ -106,7 +101,7 @@ declare module 'stripe' {
|
|
|
106
101
|
}
|
|
107
102
|
|
|
108
103
|
namespace FeeSource {
|
|
109
|
-
type Type = 'charge' | 'payout'
|
|
104
|
+
type Type = 'charge' | 'payout';
|
|
110
105
|
}
|
|
111
106
|
}
|
|
112
107
|
}
|
package/types/Balance.d.ts
CHANGED
|
@@ -44,8 +44,6 @@ declare module 'stripe' {
|
|
|
44
44
|
pending: Array<Balance.Pending>;
|
|
45
45
|
|
|
46
46
|
refund_and_dispute_prefunding?: Balance.RefundAndDisputePrefunding;
|
|
47
|
-
|
|
48
|
-
transit_balances_total?: Balance.TransitBalancesTotal;
|
|
49
47
|
}
|
|
50
48
|
|
|
51
49
|
namespace Balance {
|
|
@@ -340,86 +338,6 @@ declare module 'stripe' {
|
|
|
340
338
|
}
|
|
341
339
|
}
|
|
342
340
|
}
|
|
343
|
-
|
|
344
|
-
interface TransitBalancesTotal {
|
|
345
|
-
/**
|
|
346
|
-
* Funds that are available for use.
|
|
347
|
-
*/
|
|
348
|
-
available: Array<TransitBalancesTotal.Available>;
|
|
349
|
-
|
|
350
|
-
/**
|
|
351
|
-
* Funds that are pending
|
|
352
|
-
*/
|
|
353
|
-
pending: Array<TransitBalancesTotal.Pending>;
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
namespace TransitBalancesTotal {
|
|
357
|
-
interface Available {
|
|
358
|
-
/**
|
|
359
|
-
* Balance amount.
|
|
360
|
-
*/
|
|
361
|
-
amount: number;
|
|
362
|
-
|
|
363
|
-
/**
|
|
364
|
-
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
365
|
-
*/
|
|
366
|
-
currency: string;
|
|
367
|
-
|
|
368
|
-
source_types?: Available.SourceTypes;
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
namespace Available {
|
|
372
|
-
interface SourceTypes {
|
|
373
|
-
/**
|
|
374
|
-
* Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
|
|
375
|
-
*/
|
|
376
|
-
bank_account?: number;
|
|
377
|
-
|
|
378
|
-
/**
|
|
379
|
-
* Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits).
|
|
380
|
-
*/
|
|
381
|
-
card?: number;
|
|
382
|
-
|
|
383
|
-
/**
|
|
384
|
-
* Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
|
|
385
|
-
*/
|
|
386
|
-
fpx?: number;
|
|
387
|
-
}
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
interface Pending {
|
|
391
|
-
/**
|
|
392
|
-
* Balance amount.
|
|
393
|
-
*/
|
|
394
|
-
amount: number;
|
|
395
|
-
|
|
396
|
-
/**
|
|
397
|
-
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
398
|
-
*/
|
|
399
|
-
currency: string;
|
|
400
|
-
|
|
401
|
-
source_types?: Pending.SourceTypes;
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
namespace Pending {
|
|
405
|
-
interface SourceTypes {
|
|
406
|
-
/**
|
|
407
|
-
* Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
|
|
408
|
-
*/
|
|
409
|
-
bank_account?: number;
|
|
410
|
-
|
|
411
|
-
/**
|
|
412
|
-
* Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits).
|
|
413
|
-
*/
|
|
414
|
-
card?: number;
|
|
415
|
-
|
|
416
|
-
/**
|
|
417
|
-
* Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
|
|
418
|
-
*/
|
|
419
|
-
fpx?: number;
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
341
|
}
|
|
424
342
|
}
|
|
425
343
|
}
|
|
@@ -22,26 +22,11 @@ declare module 'stripe' {
|
|
|
22
22
|
*/
|
|
23
23
|
created: number;
|
|
24
24
|
|
|
25
|
-
/**
|
|
26
|
-
* Currency for the threshold value
|
|
27
|
-
*/
|
|
28
|
-
currency?: string | null;
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Custom pricing unit for the threshold value
|
|
32
|
-
*/
|
|
33
|
-
custom_pricing_unit?: string | null;
|
|
34
|
-
|
|
35
25
|
/**
|
|
36
26
|
* ID of customer for which the alert triggered
|
|
37
27
|
*/
|
|
38
28
|
customer: string;
|
|
39
29
|
|
|
40
|
-
/**
|
|
41
|
-
* External customer ID for the customer for which the alert triggered
|
|
42
|
-
*/
|
|
43
|
-
external_customer_id?: string | null;
|
|
44
|
-
|
|
45
30
|
/**
|
|
46
31
|
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
47
32
|
*/
|
|
@@ -20,12 +20,7 @@ declare module 'stripe' {
|
|
|
20
20
|
/**
|
|
21
21
|
* Defines the type of the alert.
|
|
22
22
|
*/
|
|
23
|
-
alert_type:
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Encapsulates configuration of the alert to monitor billing credit balance.
|
|
27
|
-
*/
|
|
28
|
-
credit_balance_threshold?: Alert.CreditBalanceThreshold | null;
|
|
23
|
+
alert_type: 'usage_threshold';
|
|
29
24
|
|
|
30
25
|
/**
|
|
31
26
|
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
@@ -49,116 +44,6 @@ declare module 'stripe' {
|
|
|
49
44
|
}
|
|
50
45
|
|
|
51
46
|
namespace Alert {
|
|
52
|
-
type AlertType = 'credit_balance_threshold' | 'usage_threshold';
|
|
53
|
-
|
|
54
|
-
interface CreditBalanceThreshold {
|
|
55
|
-
/**
|
|
56
|
-
* The filters allow limiting the scope of this credit balance alert. You must specify only a customer filter at this time.
|
|
57
|
-
*/
|
|
58
|
-
filters: Array<CreditBalanceThreshold.Filter> | null;
|
|
59
|
-
|
|
60
|
-
lte: CreditBalanceThreshold.Lte;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
namespace CreditBalanceThreshold {
|
|
64
|
-
interface Filter {
|
|
65
|
-
/**
|
|
66
|
-
* Limit the scope of the alert to this customer ID
|
|
67
|
-
*/
|
|
68
|
-
customer: string | Stripe.Customer | null;
|
|
69
|
-
|
|
70
|
-
type: Filter.Type;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
namespace Filter {
|
|
74
|
-
type Type = 'customer' | 'tenant';
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
interface Lte {
|
|
78
|
-
/**
|
|
79
|
-
* The type of this balance. We currently only support `monetary` amounts.
|
|
80
|
-
*/
|
|
81
|
-
balance_type: Lte.BalanceType;
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* The custom pricing unit amount.
|
|
85
|
-
*/
|
|
86
|
-
custom_pricing_unit?: Lte.CustomPricingUnit | null;
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* The monetary amount.
|
|
90
|
-
*/
|
|
91
|
-
monetary: Lte.Monetary | null;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
namespace Lte {
|
|
95
|
-
type BalanceType = 'custom_pricing_unit' | 'monetary';
|
|
96
|
-
|
|
97
|
-
interface CustomPricingUnit {
|
|
98
|
-
/**
|
|
99
|
-
* The custom pricing unit object.
|
|
100
|
-
*/
|
|
101
|
-
custom_pricing_unit_details: CustomPricingUnit.CustomPricingUnitDetails | null;
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* Unique identifier for the object.
|
|
105
|
-
*/
|
|
106
|
-
id: string;
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* A positive decimal string representing the amount.
|
|
110
|
-
*/
|
|
111
|
-
value: string;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
namespace CustomPricingUnit {
|
|
115
|
-
interface CustomPricingUnitDetails {
|
|
116
|
-
/**
|
|
117
|
-
* Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
118
|
-
*/
|
|
119
|
-
created: number;
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
* The name of the custom pricing unit.
|
|
123
|
-
*/
|
|
124
|
-
display_name: string;
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
* Unique identifier for the object.
|
|
128
|
-
*/
|
|
129
|
-
id: string;
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* A lookup key for the custom pricing unit.
|
|
133
|
-
*/
|
|
134
|
-
lookup_key: string | null;
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
138
|
-
*/
|
|
139
|
-
metadata: Stripe.Metadata;
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* The status of the custom pricing unit.
|
|
143
|
-
*/
|
|
144
|
-
status: string;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
interface Monetary {
|
|
149
|
-
/**
|
|
150
|
-
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
151
|
-
*/
|
|
152
|
-
currency: string;
|
|
153
|
-
|
|
154
|
-
/**
|
|
155
|
-
* A positive integer representing the amount.
|
|
156
|
-
*/
|
|
157
|
-
value: number;
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
|
|
162
47
|
type Status = 'active' | 'archived' | 'inactive';
|
|
163
48
|
|
|
164
49
|
interface UsageThreshold {
|
|
@@ -7,18 +7,13 @@ declare module 'stripe' {
|
|
|
7
7
|
/**
|
|
8
8
|
* The type of alert to create.
|
|
9
9
|
*/
|
|
10
|
-
alert_type:
|
|
10
|
+
alert_type: 'usage_threshold';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* The title of the alert.
|
|
14
14
|
*/
|
|
15
15
|
title: string;
|
|
16
16
|
|
|
17
|
-
/**
|
|
18
|
-
* The configuration of the credit balance threshold.
|
|
19
|
-
*/
|
|
20
|
-
credit_balance_threshold?: AlertCreateParams.CreditBalanceThreshold;
|
|
21
|
-
|
|
22
17
|
/**
|
|
23
18
|
* Specifies which fields in the response should be expanded.
|
|
24
19
|
*/
|
|
@@ -31,139 +26,6 @@ declare module 'stripe' {
|
|
|
31
26
|
}
|
|
32
27
|
|
|
33
28
|
namespace AlertCreateParams {
|
|
34
|
-
type AlertType = 'credit_balance_threshold' | 'usage_threshold';
|
|
35
|
-
|
|
36
|
-
interface CreditBalanceThreshold {
|
|
37
|
-
/**
|
|
38
|
-
* The filters allows limiting the scope of this credit balance alert. You must specify a customer filter at this time.
|
|
39
|
-
*/
|
|
40
|
-
filters?: Array<CreditBalanceThreshold.Filter>;
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Defines at which value the alert will fire.
|
|
44
|
-
*/
|
|
45
|
-
lte: CreditBalanceThreshold.Lte;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
namespace CreditBalanceThreshold {
|
|
49
|
-
interface Filter {
|
|
50
|
-
/**
|
|
51
|
-
* The credit grants for which to configure the credit balance alert.
|
|
52
|
-
*/
|
|
53
|
-
credit_grants?: Filter.CreditGrants;
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Limit the scope to this credit balance alert only to this customer.
|
|
57
|
-
*/
|
|
58
|
-
customer?: string;
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* What type of filter is being applied to this credit balance alert.
|
|
62
|
-
*/
|
|
63
|
-
type: Filter.Type;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
namespace Filter {
|
|
67
|
-
interface CreditGrants {
|
|
68
|
-
/**
|
|
69
|
-
* The applicability configuration for this credit grants filter.
|
|
70
|
-
*/
|
|
71
|
-
applicability_config: CreditGrants.ApplicabilityConfig;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
namespace CreditGrants {
|
|
75
|
-
interface ApplicabilityConfig {
|
|
76
|
-
/**
|
|
77
|
-
* Specify the scope of this applicability config.
|
|
78
|
-
*/
|
|
79
|
-
scope: ApplicabilityConfig.Scope;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
namespace ApplicabilityConfig {
|
|
83
|
-
interface Scope {
|
|
84
|
-
/**
|
|
85
|
-
* A list of billable items that the credit grant can apply to. We currently only support metered billable items. Cannot be used in combination with `price_type` or `prices`.
|
|
86
|
-
*/
|
|
87
|
-
billable_items?: Array<Scope.BillableItem>;
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* The price type that credit grants can apply to. We currently only support the `metered` price type. Cannot be used in combination with `prices`.
|
|
91
|
-
*/
|
|
92
|
-
price_type?: 'metered';
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* A list of prices that the credit grant can apply to. We currently only support the `metered` prices. Cannot be used in combination with `price_type`.
|
|
96
|
-
*/
|
|
97
|
-
prices?: Array<Scope.Price>;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
namespace Scope {
|
|
101
|
-
interface BillableItem {
|
|
102
|
-
/**
|
|
103
|
-
* The billable item ID this credit grant should apply to.
|
|
104
|
-
*/
|
|
105
|
-
id: string;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
interface Price {
|
|
109
|
-
/**
|
|
110
|
-
* The price ID this credit grant should apply to.
|
|
111
|
-
*/
|
|
112
|
-
id: string;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
type Type = 'customer' | 'tenant';
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
interface Lte {
|
|
122
|
-
/**
|
|
123
|
-
* Specify the type of this balance. We currently only support `monetary` billing credits.
|
|
124
|
-
*/
|
|
125
|
-
balance_type: Lte.BalanceType;
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* The custom pricing unit amount.
|
|
129
|
-
*/
|
|
130
|
-
custom_pricing_unit?: Lte.CustomPricingUnit;
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* The monetary amount.
|
|
134
|
-
*/
|
|
135
|
-
monetary?: Lte.Monetary;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
namespace Lte {
|
|
139
|
-
type BalanceType = 'custom_pricing_unit' | 'monetary';
|
|
140
|
-
|
|
141
|
-
interface CustomPricingUnit {
|
|
142
|
-
/**
|
|
143
|
-
* The ID of the custom pricing unit.
|
|
144
|
-
*/
|
|
145
|
-
id: string;
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* A positive decimal string representing the amount of the custom pricing unit threshold.
|
|
149
|
-
*/
|
|
150
|
-
value: string;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
interface Monetary {
|
|
154
|
-
/**
|
|
155
|
-
* Three-letter [ISO code for the currency](https://stripe.com/docs/currencies) of the `value` parameter.
|
|
156
|
-
*/
|
|
157
|
-
currency: string;
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
* An integer representing the amount of the threshold.
|
|
161
|
-
*/
|
|
162
|
-
value: number;
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
|
|
167
29
|
interface UsageThreshold {
|
|
168
30
|
/**
|
|
169
31
|
* The filters allows limiting the scope of this usage alert. You can only specify up to one filter at this time.
|
|
@@ -212,12 +74,7 @@ declare module 'stripe' {
|
|
|
212
74
|
/**
|
|
213
75
|
* Filter results to only include this type of alert.
|
|
214
76
|
*/
|
|
215
|
-
alert_type?:
|
|
216
|
-
|
|
217
|
-
/**
|
|
218
|
-
* Filter results to only include alerts for the given customer.
|
|
219
|
-
*/
|
|
220
|
-
customer?: string;
|
|
77
|
+
alert_type?: 'usage_threshold';
|
|
221
78
|
|
|
222
79
|
/**
|
|
223
80
|
* Specifies which fields in the response should be expanded.
|
|
@@ -230,10 +87,6 @@ declare module 'stripe' {
|
|
|
230
87
|
meter?: string;
|
|
231
88
|
}
|
|
232
89
|
|
|
233
|
-
namespace AlertListParams {
|
|
234
|
-
type AlertType = 'credit_balance_threshold' | 'usage_threshold';
|
|
235
|
-
}
|
|
236
|
-
|
|
237
90
|
interface AlertActivateParams {
|
|
238
91
|
/**
|
|
239
92
|
* Specifies which fields in the response should be expanded.
|