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
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
namespace Reserve {
|
|
6
|
+
/**
|
|
7
|
+
* ReserveHolds are used to place a temporary ReserveHold on a merchant's funds.
|
|
8
|
+
*/
|
|
9
|
+
interface Hold {
|
|
10
|
+
/**
|
|
11
|
+
* Unique identifier for the object.
|
|
12
|
+
*/
|
|
13
|
+
id: string;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* String representing the object's type. Objects of the same type share the same value.
|
|
17
|
+
*/
|
|
18
|
+
object: 'reserve.hold';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Amount reserved. A positive integer representing how much is reserved in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
|
|
22
|
+
*/
|
|
23
|
+
amount: number;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Amount in cents that can be released from this ReserveHold
|
|
27
|
+
*/
|
|
28
|
+
amount_releasable?: number;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
32
|
+
*/
|
|
33
|
+
created: number;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Indicates which party created this ReserveHold.
|
|
37
|
+
*/
|
|
38
|
+
created_by: Hold.CreatedBy;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* 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).
|
|
42
|
+
*/
|
|
43
|
+
currency: string;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Whether there are any funds available to release on this ReserveHold. Note that if the ReserveHold is in the process of being released, this could be false, even though the funds haven't been fully released yet.
|
|
47
|
+
*/
|
|
48
|
+
is_releasable?: boolean;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
52
|
+
*/
|
|
53
|
+
livemode: boolean;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* 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.
|
|
57
|
+
*/
|
|
58
|
+
metadata?: Stripe.Metadata;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* The reason for the ReserveHold.
|
|
62
|
+
*/
|
|
63
|
+
reason: Hold.Reason;
|
|
64
|
+
|
|
65
|
+
release_schedule: Hold.ReleaseSchedule;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* The ReservePlan which produced this ReserveHold (i.e., resplan_123)
|
|
69
|
+
*/
|
|
70
|
+
reserve_plan: string | Stripe.Reserve.Plan | null;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* The Charge which funded this ReserveHold (e.g., ch_123)
|
|
74
|
+
*/
|
|
75
|
+
source_charge: string | Stripe.Charge | null;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Which source balance type this ReserveHold reserves funds from. One of `bank_account`, `card`, or `fpx`.
|
|
79
|
+
*/
|
|
80
|
+
source_type: Hold.SourceType;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
namespace Hold {
|
|
84
|
+
type CreatedBy = 'application' | 'stripe';
|
|
85
|
+
|
|
86
|
+
type Reason = 'charge' | 'standalone';
|
|
87
|
+
|
|
88
|
+
interface ReleaseSchedule {
|
|
89
|
+
/**
|
|
90
|
+
* The time after which the ReserveHold is requested to be released.
|
|
91
|
+
*/
|
|
92
|
+
release_after: number | null;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* The time at which the ReserveHold is scheduled to be released, automatically set to midnight UTC of the day after `release_after`.
|
|
96
|
+
*/
|
|
97
|
+
scheduled_release: number | null;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
type SourceType = 'bank_account' | 'card' | 'fpx';
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
namespace Reserve {
|
|
6
|
+
interface HoldRetrieveParams {
|
|
7
|
+
/**
|
|
8
|
+
* Specifies which fields in the response should be expanded.
|
|
9
|
+
*/
|
|
10
|
+
expand?: Array<string>;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
interface HoldListParams extends PaginationParams {
|
|
14
|
+
/**
|
|
15
|
+
* Only return ReserveHolds associated with the currency specified by this currency code. 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).
|
|
16
|
+
*/
|
|
17
|
+
currency?: string;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Specifies which fields in the response should be expanded.
|
|
21
|
+
*/
|
|
22
|
+
expand?: Array<string>;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Only return ReserveHolds that are releasable.
|
|
26
|
+
*/
|
|
27
|
+
is_releasable?: boolean;
|
|
28
|
+
|
|
29
|
+
reason?: HoldListParams.Reason;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Only return ReserveHolds associated with the ReservePlan specified by this ReservePlan ID.
|
|
33
|
+
*/
|
|
34
|
+
reserve_plan?: string;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Only return ReserveHolds associated with the ReserveRelease specified by this ReserveRelease ID.
|
|
38
|
+
*/
|
|
39
|
+
reserve_release?: string;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Only return ReserveHolds associated with the Charge specified by this source charge ID.
|
|
43
|
+
*/
|
|
44
|
+
source_charge?: string;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
namespace HoldListParams {
|
|
48
|
+
type Reason = 'charge' | 'standalone';
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
class HoldsResource {
|
|
52
|
+
/**
|
|
53
|
+
* Retrieve a ReserveHold.
|
|
54
|
+
*/
|
|
55
|
+
retrieve(
|
|
56
|
+
id: string,
|
|
57
|
+
params?: HoldRetrieveParams,
|
|
58
|
+
options?: RequestOptions
|
|
59
|
+
): Promise<Stripe.Response<Stripe.Reserve.Hold>>;
|
|
60
|
+
retrieve(
|
|
61
|
+
id: string,
|
|
62
|
+
options?: RequestOptions
|
|
63
|
+
): Promise<Stripe.Response<Stripe.Reserve.Hold>>;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Returns a list of ReserveHolds previously created. The ReserveHolds are returned in sorted order, with the most recent ReserveHolds appearing first.
|
|
67
|
+
*/
|
|
68
|
+
list(
|
|
69
|
+
params?: HoldListParams,
|
|
70
|
+
options?: RequestOptions
|
|
71
|
+
): ApiListPromise<Stripe.Reserve.Hold>;
|
|
72
|
+
list(options?: RequestOptions): ApiListPromise<Stripe.Reserve.Hold>;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
namespace Reserve {
|
|
6
|
+
/**
|
|
7
|
+
* ReservePlans are used to automatically place holds on a merchant's funds until the plan expires. It takes a portion of each incoming Charge (including those resulting from a Transfer from a platform account).
|
|
8
|
+
*/
|
|
9
|
+
interface Plan {
|
|
10
|
+
/**
|
|
11
|
+
* Unique identifier for the object.
|
|
12
|
+
*/
|
|
13
|
+
id: string;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* String representing the object's type. Objects of the same type share the same value.
|
|
17
|
+
*/
|
|
18
|
+
object: 'reserve.plan';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
22
|
+
*/
|
|
23
|
+
created: number;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Indicates which party created this ReservePlan.
|
|
27
|
+
*/
|
|
28
|
+
created_by: Plan.CreatedBy;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* 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). An unset currency indicates that the plan applies to all currencies.
|
|
32
|
+
*/
|
|
33
|
+
currency: string | null;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Time at which the ReservePlan was disabled.
|
|
37
|
+
*/
|
|
38
|
+
disabled_at: number | null;
|
|
39
|
+
|
|
40
|
+
fixed_release?: Plan.FixedRelease;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
44
|
+
*/
|
|
45
|
+
livemode: boolean;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* 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.
|
|
49
|
+
*/
|
|
50
|
+
metadata?: Stripe.Metadata;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* The percent of each Charge to reserve.
|
|
54
|
+
*/
|
|
55
|
+
percent: number;
|
|
56
|
+
|
|
57
|
+
rolling_release?: Plan.RollingRelease;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* The current status of the ReservePlan. The ReservePlan only affects charges if it is `active`.
|
|
61
|
+
*/
|
|
62
|
+
status: Plan.Status;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* The type of the ReservePlan.
|
|
66
|
+
*/
|
|
67
|
+
type: Plan.Type;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
namespace Plan {
|
|
71
|
+
type CreatedBy = 'application' | 'stripe';
|
|
72
|
+
|
|
73
|
+
interface FixedRelease {
|
|
74
|
+
/**
|
|
75
|
+
* The time after which all reserved funds are requested for release.
|
|
76
|
+
*/
|
|
77
|
+
release_after: number;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* The time at which reserved funds are scheduled for release, automatically set to midnight UTC of the day after `release_after`.
|
|
81
|
+
*/
|
|
82
|
+
scheduled_release: number;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
interface RollingRelease {
|
|
86
|
+
/**
|
|
87
|
+
* The number of days to reserve funds before releasing.
|
|
88
|
+
*/
|
|
89
|
+
days_after_charge: number;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* The time at which the ReservePlan expires.
|
|
93
|
+
*/
|
|
94
|
+
expires_on: number | null;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
type Status = 'active' | 'disabled' | 'expired';
|
|
98
|
+
|
|
99
|
+
type Type = 'fixed_release' | 'rolling_release';
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
@@ -2,27 +2,27 @@
|
|
|
2
2
|
|
|
3
3
|
declare module 'stripe' {
|
|
4
4
|
namespace Stripe {
|
|
5
|
-
namespace
|
|
6
|
-
interface
|
|
5
|
+
namespace Reserve {
|
|
6
|
+
interface PlanRetrieveParams {
|
|
7
7
|
/**
|
|
8
8
|
* Specifies which fields in the response should be expanded.
|
|
9
9
|
*/
|
|
10
10
|
expand?: Array<string>;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
class
|
|
13
|
+
class PlansResource {
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Retrieve a ReservePlan.
|
|
16
16
|
*/
|
|
17
17
|
retrieve(
|
|
18
18
|
id: string,
|
|
19
|
-
params?:
|
|
19
|
+
params?: PlanRetrieveParams,
|
|
20
20
|
options?: RequestOptions
|
|
21
|
-
): Promise<Stripe.Response<Stripe.
|
|
21
|
+
): Promise<Stripe.Response<Stripe.Reserve.Plan>>;
|
|
22
22
|
retrieve(
|
|
23
23
|
id: string,
|
|
24
24
|
options?: RequestOptions
|
|
25
|
-
): Promise<Stripe.Response<Stripe.
|
|
25
|
+
): Promise<Stripe.Response<Stripe.Reserve.Plan>>;
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
namespace Reserve {
|
|
6
|
+
/**
|
|
7
|
+
* ReserveReleases represent the release of funds from a ReserveHold.
|
|
8
|
+
*/
|
|
9
|
+
interface Release {
|
|
10
|
+
/**
|
|
11
|
+
* Unique identifier for the object.
|
|
12
|
+
*/
|
|
13
|
+
id: string;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* String representing the object's type. Objects of the same type share the same value.
|
|
17
|
+
*/
|
|
18
|
+
object: 'reserve.release';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Amount released. A positive integer representing how much is released in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
|
|
22
|
+
*/
|
|
23
|
+
amount: number;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
27
|
+
*/
|
|
28
|
+
created: number;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Indicates which party created this ReserveRelease.
|
|
32
|
+
*/
|
|
33
|
+
created_by: Release.CreatedBy;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* 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).
|
|
37
|
+
*/
|
|
38
|
+
currency: string;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
42
|
+
*/
|
|
43
|
+
livemode: boolean;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* 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.
|
|
47
|
+
*/
|
|
48
|
+
metadata?: Stripe.Metadata;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* The reason for the ReserveRelease, indicating why the funds were released.
|
|
52
|
+
*/
|
|
53
|
+
reason: Release.Reason;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* The release timestamp of the funds.
|
|
57
|
+
*/
|
|
58
|
+
released_at: number;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* The ReserveHold this ReserveRelease is associated with.
|
|
62
|
+
*/
|
|
63
|
+
reserve_hold: string | Stripe.Reserve.Hold | null;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* The ReservePlan ID this ReserveRelease is associated with. This field is only populated if a ReserveRelease is created by a ReservePlan disable operation, or from a scheduled ReservedHold expiry.
|
|
67
|
+
*/
|
|
68
|
+
reserve_plan: string | Stripe.Reserve.Plan | null;
|
|
69
|
+
|
|
70
|
+
source_transaction?: Release.SourceTransaction;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
namespace Release {
|
|
74
|
+
type CreatedBy = 'application' | 'stripe';
|
|
75
|
+
|
|
76
|
+
type Reason =
|
|
77
|
+
| 'bulk_hold_expiry'
|
|
78
|
+
| 'hold_released_early'
|
|
79
|
+
| 'hold_reversed'
|
|
80
|
+
| 'plan_disabled';
|
|
81
|
+
|
|
82
|
+
interface SourceTransaction {
|
|
83
|
+
/**
|
|
84
|
+
* The ID of the dispute.
|
|
85
|
+
*/
|
|
86
|
+
dispute?: string | Stripe.Dispute;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* The ID of the refund.
|
|
90
|
+
*/
|
|
91
|
+
refund?: string | Stripe.Refund;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* The type of source transaction.
|
|
95
|
+
*/
|
|
96
|
+
type: SourceTransaction.Type;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
namespace SourceTransaction {
|
|
100
|
+
type Type = 'dispute' | 'refund';
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
namespace Reserve {
|
|
6
|
+
interface ReleaseRetrieveParams {
|
|
7
|
+
/**
|
|
8
|
+
* Specifies which fields in the response should be expanded.
|
|
9
|
+
*/
|
|
10
|
+
expand?: Array<string>;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
interface ReleaseListParams extends PaginationParams {
|
|
14
|
+
/**
|
|
15
|
+
* Only return ReserveReleases associated with the currency specified by this currency code. 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).
|
|
16
|
+
*/
|
|
17
|
+
currency?: string;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Specifies which fields in the response should be expanded.
|
|
21
|
+
*/
|
|
22
|
+
expand?: Array<string>;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Only return ReserveReleases associated with the ReserveHold specified by this ReserveHold ID.
|
|
26
|
+
*/
|
|
27
|
+
reserve_hold?: string;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Only return ReserveReleases associated with the ReservePlan specified by this ReservePlan ID.
|
|
31
|
+
*/
|
|
32
|
+
reserve_plan?: string;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
class ReleasesResource {
|
|
36
|
+
/**
|
|
37
|
+
* Retrieve a ReserveRelease.
|
|
38
|
+
*/
|
|
39
|
+
retrieve(
|
|
40
|
+
id: string,
|
|
41
|
+
params?: ReleaseRetrieveParams,
|
|
42
|
+
options?: RequestOptions
|
|
43
|
+
): Promise<Stripe.Response<Stripe.Reserve.Release>>;
|
|
44
|
+
retrieve(
|
|
45
|
+
id: string,
|
|
46
|
+
options?: RequestOptions
|
|
47
|
+
): Promise<Stripe.Response<Stripe.Reserve.Release>>;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Returns a list of ReserveReleases previously created. The ReserveReleases are returned in sorted order, with the most recent ReserveReleases appearing first.
|
|
51
|
+
*/
|
|
52
|
+
list(
|
|
53
|
+
params?: ReleaseListParams,
|
|
54
|
+
options?: RequestOptions
|
|
55
|
+
): ApiListPromise<Stripe.Reserve.Release>;
|
|
56
|
+
list(options?: RequestOptions): ApiListPromise<Stripe.Reserve.Release>;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
package/types/SetupIntents.d.ts
CHANGED
|
@@ -158,8 +158,6 @@ declare module 'stripe' {
|
|
|
158
158
|
*/
|
|
159
159
|
payment_method_types: Array<string>;
|
|
160
160
|
|
|
161
|
-
setup_details?: SetupIntent.SetupDetails;
|
|
162
|
-
|
|
163
161
|
/**
|
|
164
162
|
* ID of the single_use Mandate generated by the SetupIntent.
|
|
165
163
|
*/
|
|
@@ -1162,25 +1160,6 @@ declare module 'stripe' {
|
|
|
1162
1160
|
}
|
|
1163
1161
|
}
|
|
1164
1162
|
|
|
1165
|
-
interface SetupDetails {
|
|
1166
|
-
benefit?: SetupDetails.Benefit;
|
|
1167
|
-
}
|
|
1168
|
-
|
|
1169
|
-
namespace SetupDetails {
|
|
1170
|
-
interface Benefit {
|
|
1171
|
-
fr_meal_voucher?: Benefit.FrMealVoucher;
|
|
1172
|
-
}
|
|
1173
|
-
|
|
1174
|
-
namespace Benefit {
|
|
1175
|
-
interface FrMealVoucher {
|
|
1176
|
-
/**
|
|
1177
|
-
* The 14-digit SIRET of the meal voucher acceptor.
|
|
1178
|
-
*/
|
|
1179
|
-
siret?: string;
|
|
1180
|
-
}
|
|
1181
|
-
}
|
|
1182
|
-
}
|
|
1183
|
-
|
|
1184
1163
|
type Status =
|
|
1185
1164
|
| 'canceled'
|
|
1186
1165
|
| 'processing'
|
|
@@ -111,11 +111,6 @@ declare module 'stripe' {
|
|
|
111
111
|
*/
|
|
112
112
|
return_url?: string;
|
|
113
113
|
|
|
114
|
-
/**
|
|
115
|
-
* Provides industry-specific information about the SetupIntent.
|
|
116
|
-
*/
|
|
117
|
-
setup_details?: SetupIntentCreateParams.SetupDetails;
|
|
118
|
-
|
|
119
114
|
/**
|
|
120
115
|
* If you populate this hash, this SetupIntent generates a `single_use` mandate after successful completion.
|
|
121
116
|
*
|
|
@@ -1902,31 +1897,6 @@ declare module 'stripe' {
|
|
|
1902
1897
|
}
|
|
1903
1898
|
}
|
|
1904
1899
|
|
|
1905
|
-
interface SetupDetails {
|
|
1906
|
-
/**
|
|
1907
|
-
* Benefit details for this SetupIntent
|
|
1908
|
-
*/
|
|
1909
|
-
benefit?: SetupDetails.Benefit;
|
|
1910
|
-
}
|
|
1911
|
-
|
|
1912
|
-
namespace SetupDetails {
|
|
1913
|
-
interface Benefit {
|
|
1914
|
-
/**
|
|
1915
|
-
* French meal voucher benefit details for this SetupIntent.
|
|
1916
|
-
*/
|
|
1917
|
-
fr_meal_voucher?: Benefit.FrMealVoucher;
|
|
1918
|
-
}
|
|
1919
|
-
|
|
1920
|
-
namespace Benefit {
|
|
1921
|
-
interface FrMealVoucher {
|
|
1922
|
-
/**
|
|
1923
|
-
* The 14-digit SIRET of the meal voucher acceptor.
|
|
1924
|
-
*/
|
|
1925
|
-
siret: string;
|
|
1926
|
-
}
|
|
1927
|
-
}
|
|
1928
|
-
}
|
|
1929
|
-
|
|
1930
1900
|
interface SingleUse {
|
|
1931
1901
|
/**
|
|
1932
1902
|
* Amount the customer is granting permission to collect later. A positive integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://docs.stripe.com/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
|
|
@@ -2030,11 +2000,6 @@ declare module 'stripe' {
|
|
|
2030
2000
|
* The list of payment method types (for example, card) that this SetupIntent can set up. If you don't provide this, Stripe will dynamically show relevant payment methods from your [payment method settings](https://dashboard.stripe.com/settings/payment_methods). A list of valid payment method types can be found [here](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type).
|
|
2031
2001
|
*/
|
|
2032
2002
|
payment_method_types?: Array<string>;
|
|
2033
|
-
|
|
2034
|
-
/**
|
|
2035
|
-
* Provides industry-specific information about the SetupIntent.
|
|
2036
|
-
*/
|
|
2037
|
-
setup_details?: SetupIntentUpdateParams.SetupDetails;
|
|
2038
2003
|
}
|
|
2039
2004
|
|
|
2040
2005
|
namespace SetupIntentUpdateParams {
|
|
@@ -3737,31 +3702,6 @@ declare module 'stripe' {
|
|
|
3737
3702
|
type VerificationMethod = 'automatic' | 'instant' | 'microdeposits';
|
|
3738
3703
|
}
|
|
3739
3704
|
}
|
|
3740
|
-
|
|
3741
|
-
interface SetupDetails {
|
|
3742
|
-
/**
|
|
3743
|
-
* Benefit details for this SetupIntent
|
|
3744
|
-
*/
|
|
3745
|
-
benefit?: SetupDetails.Benefit;
|
|
3746
|
-
}
|
|
3747
|
-
|
|
3748
|
-
namespace SetupDetails {
|
|
3749
|
-
interface Benefit {
|
|
3750
|
-
/**
|
|
3751
|
-
* French meal voucher benefit details for this SetupIntent.
|
|
3752
|
-
*/
|
|
3753
|
-
fr_meal_voucher?: Benefit.FrMealVoucher;
|
|
3754
|
-
}
|
|
3755
|
-
|
|
3756
|
-
namespace Benefit {
|
|
3757
|
-
interface FrMealVoucher {
|
|
3758
|
-
/**
|
|
3759
|
-
* The 14-digit SIRET of the meal voucher acceptor.
|
|
3760
|
-
*/
|
|
3761
|
-
siret: string;
|
|
3762
|
-
}
|
|
3763
|
-
}
|
|
3764
|
-
}
|
|
3765
3705
|
}
|
|
3766
3706
|
|
|
3767
3707
|
interface SetupIntentListParams extends PaginationParams {
|
|
@@ -3855,11 +3795,6 @@ declare module 'stripe' {
|
|
|
3855
3795
|
*/
|
|
3856
3796
|
return_url?: string;
|
|
3857
3797
|
|
|
3858
|
-
/**
|
|
3859
|
-
* Provides industry-specific information about the SetupIntent.
|
|
3860
|
-
*/
|
|
3861
|
-
setup_details?: SetupIntentConfirmParams.SetupDetails;
|
|
3862
|
-
|
|
3863
3798
|
/**
|
|
3864
3799
|
* Set to `true` when confirming server-side and using Stripe.js, iOS, or Android client-side SDKs to handle the next actions.
|
|
3865
3800
|
*/
|
|
@@ -5555,31 +5490,6 @@ declare module 'stripe' {
|
|
|
5555
5490
|
type VerificationMethod = 'automatic' | 'instant' | 'microdeposits';
|
|
5556
5491
|
}
|
|
5557
5492
|
}
|
|
5558
|
-
|
|
5559
|
-
interface SetupDetails {
|
|
5560
|
-
/**
|
|
5561
|
-
* Benefit details for this SetupIntent
|
|
5562
|
-
*/
|
|
5563
|
-
benefit?: SetupDetails.Benefit;
|
|
5564
|
-
}
|
|
5565
|
-
|
|
5566
|
-
namespace SetupDetails {
|
|
5567
|
-
interface Benefit {
|
|
5568
|
-
/**
|
|
5569
|
-
* French meal voucher benefit details for this SetupIntent.
|
|
5570
|
-
*/
|
|
5571
|
-
fr_meal_voucher?: Benefit.FrMealVoucher;
|
|
5572
|
-
}
|
|
5573
|
-
|
|
5574
|
-
namespace Benefit {
|
|
5575
|
-
interface FrMealVoucher {
|
|
5576
|
-
/**
|
|
5577
|
-
* The 14-digit SIRET of the meal voucher acceptor.
|
|
5578
|
-
*/
|
|
5579
|
-
siret: string;
|
|
5580
|
-
}
|
|
5581
|
-
}
|
|
5582
|
-
}
|
|
5583
5493
|
}
|
|
5584
5494
|
|
|
5585
5495
|
interface SetupIntentVerifyMicrodepositsParams {
|
|
@@ -62,11 +62,6 @@ declare module 'stripe' {
|
|
|
62
62
|
*/
|
|
63
63
|
current_period_start: number;
|
|
64
64
|
|
|
65
|
-
/**
|
|
66
|
-
* The current trial that is applied to this subscription item.
|
|
67
|
-
*/
|
|
68
|
-
current_trial?: SubscriptionItem.CurrentTrial | null;
|
|
69
|
-
|
|
70
65
|
/**
|
|
71
66
|
* Always true for a deleted object
|
|
72
67
|
*/
|
|
@@ -133,14 +128,6 @@ declare module 'stripe' {
|
|
|
133
128
|
usage_gte: number | null;
|
|
134
129
|
}
|
|
135
130
|
|
|
136
|
-
interface CurrentTrial {
|
|
137
|
-
end_date: number;
|
|
138
|
-
|
|
139
|
-
start_date: number;
|
|
140
|
-
|
|
141
|
-
trial_offer: string;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
131
|
interface Trial {
|
|
145
132
|
/**
|
|
146
133
|
* List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial.
|