stripe 19.2.0-alpha.1 → 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 +1 -106
- package/OPENAPI_VERSION +1 -1
- package/VERSION +1 -1
- package/cjs/resources.js +0 -30
- package/cjs/stripe.core.js +1 -1
- package/esm/resources.js +0 -30
- package/esm/stripe.core.js +1 -1
- package/package.json +1 -1
- 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/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/Checkout/Sessions.d.ts +0 -58
- package/types/Checkout/SessionsResource.d.ts +0 -50
- package/types/CreditNotes.d.ts +0 -26
- package/types/CreditNotesResource.d.ts +0 -78
- package/types/InvoiceItems.d.ts +2 -104
- package/types/InvoiceLineItems.d.ts +2 -113
- package/types/InvoicesResource.d.ts +0 -5
- package/types/V2/Billing/Cadences.d.ts +0 -45
- package/types/V2/Billing/CadencesResource.d.ts +3 -32
- package/types/V2/Core/Accounts.d.ts +0 -59
- package/types/V2/Core/AccountsResource.d.ts +0 -24
- package/types/V2/Core/EventTypes.d.ts +375 -7180
- package/types/V2/Core/Events.d.ts +0 -12
- package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +0 -14
- package/types/V2/MoneyManagement/OutboundPayments.d.ts +0 -5
- package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +0 -5
- 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 -41
- package/types/V2/MoneyManagement/ReceivedDebits.d.ts +0 -5
- package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +1 -6
- package/types/Webhooks.d.ts +0 -2
- package/types/index.d.ts +0 -58
- 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.js +0 -21
- 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/MoneyManagement/RecipientVerifications.js +0 -20
- package/cjs/resources/V2/Tax/AutomaticRules.js +0 -22
- package/cjs/resources/V2/TestHelpers/MoneyManagement.js +0 -12
- 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.js +0 -18
- 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/MoneyManagement/RecipientVerifications.js +0 -17
- package/esm/resources/V2/Tax/AutomaticRules.js +0 -19
- package/esm/resources/V2/TestHelpers/MoneyManagement.js +0 -9
- 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 -459
- 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 -575
- 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/PricingPlanSubscriptions.d.ts +0 -144
- package/types/V2/Billing/PricingPlanSubscriptionsResource.d.ts +0 -118
- 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 -274
- package/types/V2/Billing/ServiceActionsResource.d.ts +0 -370
- package/types/V2/Core/ClaimableSandboxes.d.ts +0 -132
- package/types/V2/Core/ClaimableSandboxesResource.d.ts +0 -74
- package/types/V2/MoneyManagement/RecipientVerifications.d.ts +0 -112
- package/types/V2/MoneyManagement/RecipientVerificationsResource.d.ts +0 -77
- package/types/V2/Tax/AutomaticRules.d.ts +0 -53
- package/types/V2/Tax/AutomaticRulesResource.d.ts +0 -102
- package/types/V2/TestHelpers/MoneyManagementResource.d.ts +0 -48
|
@@ -1,370 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec
|
|
2
|
-
|
|
3
|
-
declare module 'stripe' {
|
|
4
|
-
namespace Stripe {
|
|
5
|
-
namespace V2 {
|
|
6
|
-
namespace Billing {
|
|
7
|
-
interface ServiceActionCreateParams {
|
|
8
|
-
/**
|
|
9
|
-
* The interval for assessing service.
|
|
10
|
-
*/
|
|
11
|
-
service_interval: ServiceActionCreateParams.ServiceInterval;
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* The length of the interval for assessing service.
|
|
15
|
-
*/
|
|
16
|
-
service_interval_count: number;
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* The type of the service action.
|
|
20
|
-
*/
|
|
21
|
-
type: ServiceActionCreateParams.Type;
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Details for the credit grant. Required if `type` is `credit_grant`.
|
|
25
|
-
*/
|
|
26
|
-
credit_grant?: ServiceActionCreateParams.CreditGrant;
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Details for the credit grant per tenant. Required if `type` is `credit_grant_per_tenant`.
|
|
30
|
-
*/
|
|
31
|
-
credit_grant_per_tenant?: ServiceActionCreateParams.CreditGrantPerTenant;
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* An internal key you can use to search for this service action. Maximum length of 200 characters.
|
|
35
|
-
*/
|
|
36
|
-
lookup_key?: string;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
namespace ServiceActionCreateParams {
|
|
40
|
-
interface CreditGrant {
|
|
41
|
-
/**
|
|
42
|
-
* The amount of the credit grant.
|
|
43
|
-
*/
|
|
44
|
-
amount: CreditGrant.Amount;
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Defines the scope where the credit grant is applicable.
|
|
48
|
-
*/
|
|
49
|
-
applicability_config: CreditGrant.ApplicabilityConfig;
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* The category of the credit grant.
|
|
53
|
-
*/
|
|
54
|
-
category?: CreditGrant.Category;
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* The expiry configuration for the credit grant.
|
|
58
|
-
*/
|
|
59
|
-
expiry_config: CreditGrant.ExpiryConfig;
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* A descriptive name shown in dashboard.
|
|
63
|
-
*/
|
|
64
|
-
name: string;
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* The desired priority for applying this credit grant. If not specified, it will be set to the default value of 50. The highest priority is 0 and the lowest is 100.
|
|
68
|
-
*/
|
|
69
|
-
priority?: number;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
namespace CreditGrant {
|
|
73
|
-
interface Amount {
|
|
74
|
-
/**
|
|
75
|
-
* The type of the credit grant amount. We currently support `monetary` and `custom_pricing_unit` billing credits.
|
|
76
|
-
*/
|
|
77
|
-
type: Amount.Type;
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* The custom pricing unit amount of the credit grant. Required if `type` is `custom_pricing_unit`.
|
|
81
|
-
*/
|
|
82
|
-
custom_pricing_unit?: Amount.CustomPricingUnit;
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* The monetary amount of the credit grant. Required if `type` is `monetary`.
|
|
86
|
-
*/
|
|
87
|
-
monetary?: V2.Amount;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
namespace Amount {
|
|
91
|
-
interface CustomPricingUnit {
|
|
92
|
-
/**
|
|
93
|
-
* The id of the custom pricing unit.
|
|
94
|
-
*/
|
|
95
|
-
id: string;
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* The value of the credit grant, decimal value represented as a string.
|
|
99
|
-
*/
|
|
100
|
-
value: string;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
type Type = 'custom_pricing_unit' | 'monetary';
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
interface ApplicabilityConfig {
|
|
107
|
-
/**
|
|
108
|
-
* The applicability scope of the credit grant.
|
|
109
|
-
*/
|
|
110
|
-
scope: ApplicabilityConfig.Scope;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
namespace ApplicabilityConfig {
|
|
114
|
-
interface Scope {
|
|
115
|
-
/**
|
|
116
|
-
* The billable items to apply the credit grant to.
|
|
117
|
-
*/
|
|
118
|
-
billable_items?: Array<string>;
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* The price type that credit grants can apply to. We currently only support the `metered` price type. This will apply to metered prices and rate cards. Cannot be used in combination with `billable_items`.
|
|
122
|
-
*/
|
|
123
|
-
price_type?: 'metered';
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
type Category = 'paid' | 'promotional';
|
|
128
|
-
|
|
129
|
-
interface ExpiryConfig {
|
|
130
|
-
/**
|
|
131
|
-
* The type of the expiry configuration. We currently support `end_of_service_period`.
|
|
132
|
-
*/
|
|
133
|
-
type: 'end_of_service_period';
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
interface CreditGrantPerTenant {
|
|
138
|
-
/**
|
|
139
|
-
* The amount of the credit grant.
|
|
140
|
-
*/
|
|
141
|
-
amount: CreditGrantPerTenant.Amount;
|
|
142
|
-
|
|
143
|
-
/**
|
|
144
|
-
* Defines the scope where the credit grant is applicable.
|
|
145
|
-
*/
|
|
146
|
-
applicability_config: CreditGrantPerTenant.ApplicabilityConfig;
|
|
147
|
-
|
|
148
|
-
/**
|
|
149
|
-
* The category of the credit grant.
|
|
150
|
-
*/
|
|
151
|
-
category?: CreditGrantPerTenant.Category;
|
|
152
|
-
|
|
153
|
-
/**
|
|
154
|
-
* The expiry configuration for the credit grant.
|
|
155
|
-
*/
|
|
156
|
-
expiry_config: CreditGrantPerTenant.ExpiryConfig;
|
|
157
|
-
|
|
158
|
-
/**
|
|
159
|
-
* The grant condition for the credit grant.
|
|
160
|
-
*/
|
|
161
|
-
grant_condition: CreditGrantPerTenant.GrantCondition;
|
|
162
|
-
|
|
163
|
-
/**
|
|
164
|
-
* Customer-facing name for the credit grant.
|
|
165
|
-
*/
|
|
166
|
-
name: string;
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* The desired priority for applying this credit grant. If not specified, it will be set to the default value of 50. The highest priority is 0 and the lowest is 100.
|
|
170
|
-
*/
|
|
171
|
-
priority?: number;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
namespace CreditGrantPerTenant {
|
|
175
|
-
interface Amount {
|
|
176
|
-
/**
|
|
177
|
-
* The type of the credit grant amount. We currently support `monetary` and `custom_pricing_unit` billing credits.
|
|
178
|
-
*/
|
|
179
|
-
type: Amount.Type;
|
|
180
|
-
|
|
181
|
-
/**
|
|
182
|
-
* The custom pricing unit amount of the credit grant. Required if `type` is `custom_pricing_unit`.
|
|
183
|
-
*/
|
|
184
|
-
custom_pricing_unit?: Amount.CustomPricingUnit;
|
|
185
|
-
|
|
186
|
-
/**
|
|
187
|
-
* The monetary amount of the credit grant. Required if `type` is `monetary`.
|
|
188
|
-
*/
|
|
189
|
-
monetary?: V2.Amount;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
namespace Amount {
|
|
193
|
-
interface CustomPricingUnit {
|
|
194
|
-
/**
|
|
195
|
-
* The id of the custom pricing unit.
|
|
196
|
-
*/
|
|
197
|
-
id: string;
|
|
198
|
-
|
|
199
|
-
/**
|
|
200
|
-
* The value of the credit grant, decimal value represented as a string.
|
|
201
|
-
*/
|
|
202
|
-
value: string;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
type Type = 'custom_pricing_unit' | 'monetary';
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
interface ApplicabilityConfig {
|
|
209
|
-
/**
|
|
210
|
-
* The applicability scope of the credit grant.
|
|
211
|
-
*/
|
|
212
|
-
scope: ApplicabilityConfig.Scope;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
namespace ApplicabilityConfig {
|
|
216
|
-
interface Scope {
|
|
217
|
-
/**
|
|
218
|
-
* The billable items to apply the credit grant to.
|
|
219
|
-
*/
|
|
220
|
-
billable_items?: Array<string>;
|
|
221
|
-
|
|
222
|
-
/**
|
|
223
|
-
* The price type that credit grants can apply to. We currently only support the `metered` price type. This will apply to metered prices and rate cards. Cannot be used in combination with `billable_items`.
|
|
224
|
-
*/
|
|
225
|
-
price_type?: 'metered';
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
type Category = 'paid' | 'promotional';
|
|
230
|
-
|
|
231
|
-
interface ExpiryConfig {
|
|
232
|
-
/**
|
|
233
|
-
* The type of the expiry configuration. We currently support `end_of_service_period`.
|
|
234
|
-
*/
|
|
235
|
-
type: 'end_of_service_period';
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
interface GrantCondition {
|
|
239
|
-
/**
|
|
240
|
-
* The type of the grant condition. We currently support `meter_event_first_per_period`.
|
|
241
|
-
*/
|
|
242
|
-
type: 'meter_event_first_per_period';
|
|
243
|
-
|
|
244
|
-
/**
|
|
245
|
-
* The grant condition for the meter event first per period.
|
|
246
|
-
*/
|
|
247
|
-
meter_event_first_per_period?: GrantCondition.MeterEventFirstPerPeriod;
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
namespace GrantCondition {
|
|
251
|
-
interface MeterEventFirstPerPeriod {
|
|
252
|
-
/**
|
|
253
|
-
* The meter segment conditions for the grant condition.
|
|
254
|
-
*/
|
|
255
|
-
meter_segment_conditions: Array<
|
|
256
|
-
MeterEventFirstPerPeriod.MeterSegmentCondition
|
|
257
|
-
>;
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
namespace MeterEventFirstPerPeriod {
|
|
261
|
-
interface MeterSegmentCondition {
|
|
262
|
-
/**
|
|
263
|
-
* The type of the meter segment condition. We currently support `dimension`.
|
|
264
|
-
*/
|
|
265
|
-
type: 'dimension';
|
|
266
|
-
|
|
267
|
-
/**
|
|
268
|
-
* Dimension-based meter segment condition.
|
|
269
|
-
*/
|
|
270
|
-
dimension?: MeterSegmentCondition.Dimension;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
namespace MeterSegmentCondition {
|
|
274
|
-
interface Dimension {
|
|
275
|
-
/**
|
|
276
|
-
* The payload key for the dimension.
|
|
277
|
-
*/
|
|
278
|
-
payload_key: string;
|
|
279
|
-
|
|
280
|
-
/**
|
|
281
|
-
* The value for the dimension.
|
|
282
|
-
*/
|
|
283
|
-
value: string;
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
type ServiceInterval = 'day' | 'month' | 'week' | 'year';
|
|
291
|
-
|
|
292
|
-
type Type = 'credit_grant' | 'credit_grant_per_tenant';
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
namespace Billing {
|
|
297
|
-
interface ServiceActionRetrieveParams {}
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
namespace Billing {
|
|
301
|
-
interface ServiceActionUpdateParams {
|
|
302
|
-
/**
|
|
303
|
-
* Details for the credit grant. Can only be set if the service action's `type` is `credit_grant`.
|
|
304
|
-
*/
|
|
305
|
-
credit_grant?: ServiceActionUpdateParams.CreditGrant;
|
|
306
|
-
|
|
307
|
-
/**
|
|
308
|
-
* Details for the credit grant per tenant. Can only be set if the service action's `type` is `credit_grant_per_tenant`.
|
|
309
|
-
*/
|
|
310
|
-
credit_grant_per_tenant?: ServiceActionUpdateParams.CreditGrantPerTenant;
|
|
311
|
-
|
|
312
|
-
/**
|
|
313
|
-
* An internal key you can use to search for this service action. Maximum length of 200 characters.
|
|
314
|
-
*/
|
|
315
|
-
lookup_key?: string;
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
namespace ServiceActionUpdateParams {
|
|
319
|
-
interface CreditGrant {
|
|
320
|
-
/**
|
|
321
|
-
* A descriptive name shown in dashboard.
|
|
322
|
-
*/
|
|
323
|
-
name?: string;
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
interface CreditGrantPerTenant {
|
|
327
|
-
/**
|
|
328
|
-
* A descriptive name shown in dashboard.
|
|
329
|
-
*/
|
|
330
|
-
name?: string;
|
|
331
|
-
}
|
|
332
|
-
}
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
namespace Billing {
|
|
336
|
-
class ServiceActionsResource {
|
|
337
|
-
/**
|
|
338
|
-
* Create a Service Action object.
|
|
339
|
-
*/
|
|
340
|
-
create(
|
|
341
|
-
params: ServiceActionCreateParams,
|
|
342
|
-
options?: RequestOptions
|
|
343
|
-
): Promise<Stripe.Response<Stripe.V2.Billing.ServiceAction>>;
|
|
344
|
-
|
|
345
|
-
/**
|
|
346
|
-
* Retrieve a Service Action object.
|
|
347
|
-
*/
|
|
348
|
-
retrieve(
|
|
349
|
-
id: string,
|
|
350
|
-
params?: ServiceActionRetrieveParams,
|
|
351
|
-
options?: RequestOptions
|
|
352
|
-
): Promise<Stripe.Response<Stripe.V2.Billing.ServiceAction>>;
|
|
353
|
-
retrieve(
|
|
354
|
-
id: string,
|
|
355
|
-
options?: RequestOptions
|
|
356
|
-
): Promise<Stripe.Response<Stripe.V2.Billing.ServiceAction>>;
|
|
357
|
-
|
|
358
|
-
/**
|
|
359
|
-
* Update a ServiceAction object.
|
|
360
|
-
*/
|
|
361
|
-
update(
|
|
362
|
-
id: string,
|
|
363
|
-
params?: ServiceActionUpdateParams,
|
|
364
|
-
options?: RequestOptions
|
|
365
|
-
): Promise<Stripe.Response<Stripe.V2.Billing.ServiceAction>>;
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
}
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec
|
|
2
|
-
|
|
3
|
-
declare module 'stripe' {
|
|
4
|
-
namespace Stripe {
|
|
5
|
-
namespace V2 {
|
|
6
|
-
namespace Core {
|
|
7
|
-
/**
|
|
8
|
-
* A claimable sandbox represents a Stripe sandbox that is anonymous.
|
|
9
|
-
* When it is created, it can be prefilled with specific metadata, such as email, name, or country.
|
|
10
|
-
* Claimable sandboxes can be claimed through a URL. When a user claims a sandbox through this URL,
|
|
11
|
-
* it will prompt them to create a new Stripe account. Or, it will allow them to claim this sandbox in their
|
|
12
|
-
* existing Stripe account.
|
|
13
|
-
* Claimable sandboxes have 60 days to be claimed. After this expiration time has passed,
|
|
14
|
-
* if the sandbox is not claimed, it will be deleted.
|
|
15
|
-
*/
|
|
16
|
-
interface ClaimableSandbox {
|
|
17
|
-
/**
|
|
18
|
-
* Unique identifier for the Claimable sandbox.
|
|
19
|
-
*/
|
|
20
|
-
id: string;
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* String representing the object's type. Objects of the same type share the same value of the object field.
|
|
24
|
-
*/
|
|
25
|
-
object: 'v2.core.claimable_sandbox';
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* URL for user to claim sandbox into their existing Stripe account.
|
|
29
|
-
* The value will be null if the sandbox status is `claimed` or `expired`.
|
|
30
|
-
*/
|
|
31
|
-
claim_url?: string;
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* The timestamp the sandbox was claimed. The value will be null if the sandbox status is not `claimed`.
|
|
35
|
-
*/
|
|
36
|
-
claimed_at?: string;
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* When the sandbox is created.
|
|
40
|
-
*/
|
|
41
|
-
created: string;
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* The timestamp the sandbox will expire. The value will be null if the sandbox is `claimed`.
|
|
45
|
-
*/
|
|
46
|
-
expires_at?: string;
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
50
|
-
*/
|
|
51
|
-
livemode: boolean;
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* Values prefilled during the creation of the sandbox. When a user claims the sandbox, they will be able to update these values.
|
|
55
|
-
*/
|
|
56
|
-
prefill: ClaimableSandbox.Prefill;
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* Data about the Stripe sandbox object.
|
|
60
|
-
*/
|
|
61
|
-
sandbox_details: ClaimableSandbox.SandboxDetails;
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* Status of the sandbox. One of `unclaimed`, `expired`, `claimed`.
|
|
65
|
-
*/
|
|
66
|
-
status: ClaimableSandbox.Status;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
namespace ClaimableSandbox {
|
|
70
|
-
interface Prefill {
|
|
71
|
-
/**
|
|
72
|
-
* Country in which the account holder resides, or in which the business is legally established.
|
|
73
|
-
* Use two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
74
|
-
*/
|
|
75
|
-
country: string;
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* Email that this sandbox is meant to be claimed by. Stripe will
|
|
79
|
-
* send an email to this email address before the sandbox expires.
|
|
80
|
-
*/
|
|
81
|
-
email: string;
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* Name for the sandbox.
|
|
85
|
-
*/
|
|
86
|
-
name: string;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
interface SandboxDetails {
|
|
90
|
-
/**
|
|
91
|
-
* The sandbox's Stripe account ID.
|
|
92
|
-
*/
|
|
93
|
-
account: string;
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* Keys that can be used to set up an integration for this sandbox and operate on the account. This will be present only in the create response, and will be null in subsequent retrieve responses.
|
|
97
|
-
*/
|
|
98
|
-
api_keys?: SandboxDetails.ApiKeys;
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* The livemode sandbox Stripe account ID. This field is only set if the user activates their sandbox
|
|
102
|
-
* and chooses to install your platform's Stripe App in their live account.
|
|
103
|
-
*/
|
|
104
|
-
owner_account?: string;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
namespace SandboxDetails {
|
|
108
|
-
interface ApiKeys {
|
|
109
|
-
/**
|
|
110
|
-
* Used to communicate with [Stripe's MCP server](https://docs.stripe.com/mcp).
|
|
111
|
-
* This allows LLM agents to securely operate on a Stripe account.
|
|
112
|
-
*/
|
|
113
|
-
mcp?: string;
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* Publicly accessible in a web or mobile app client-side code.
|
|
117
|
-
*/
|
|
118
|
-
publishable: string;
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* Should be stored securely in server-side code (such as an environment variable).
|
|
122
|
-
*/
|
|
123
|
-
secret: string;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
type Status = 'claimed' | 'expired' | 'unclaimed';
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec
|
|
2
|
-
|
|
3
|
-
declare module 'stripe' {
|
|
4
|
-
namespace Stripe {
|
|
5
|
-
namespace V2 {
|
|
6
|
-
namespace Core {
|
|
7
|
-
interface ClaimableSandboxCreateParams {
|
|
8
|
-
/**
|
|
9
|
-
* If true, returns a key that can be used with [Stripe's MCP server](https://docs.stripe.com/mcp).
|
|
10
|
-
*/
|
|
11
|
-
enable_mcp_access: boolean;
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Values that are prefilled when a user claims the sandbox. When a user claims the sandbox, they will be able to update these values.
|
|
15
|
-
*/
|
|
16
|
-
prefill: ClaimableSandboxCreateParams.Prefill;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
namespace ClaimableSandboxCreateParams {
|
|
20
|
-
interface Prefill {
|
|
21
|
-
/**
|
|
22
|
-
* Country in which the account holder resides, or in which the business is legally established.
|
|
23
|
-
* Use two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
24
|
-
*/
|
|
25
|
-
country: string;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Email that this sandbox is meant to be claimed by. Stripe will
|
|
29
|
-
* notify this email address before the sandbox expires.
|
|
30
|
-
*/
|
|
31
|
-
email: string;
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Name for the sandbox. If not provided, this will be generated.
|
|
35
|
-
*/
|
|
36
|
-
name?: string;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
namespace Core {
|
|
42
|
-
interface ClaimableSandboxRetrieveParams {}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
namespace Core {
|
|
46
|
-
class ClaimableSandboxesResource {
|
|
47
|
-
/**
|
|
48
|
-
* Create an anonymous, claimable sandbox. This sandbox can be prefilled with data. The response will include
|
|
49
|
-
* a claim URL that allow a user to claim the account.
|
|
50
|
-
*/
|
|
51
|
-
create(
|
|
52
|
-
params: ClaimableSandboxCreateParams,
|
|
53
|
-
options?: RequestOptions
|
|
54
|
-
): Promise<Stripe.Response<Stripe.V2.Core.ClaimableSandbox>>;
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* Retrieves the details of a claimable sandbox that was previously been created.
|
|
58
|
-
* Supply the unique claimable sandbox ID that was returned from your creation request,
|
|
59
|
-
* and Stripe will return the corresponding sandbox information.
|
|
60
|
-
*/
|
|
61
|
-
retrieve(
|
|
62
|
-
id: string,
|
|
63
|
-
params?: ClaimableSandboxRetrieveParams,
|
|
64
|
-
options?: RequestOptions
|
|
65
|
-
): Promise<Stripe.Response<Stripe.V2.Core.ClaimableSandbox>>;
|
|
66
|
-
retrieve(
|
|
67
|
-
id: string,
|
|
68
|
-
options?: RequestOptions
|
|
69
|
-
): Promise<Stripe.Response<Stripe.V2.Core.ClaimableSandbox>>;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec
|
|
2
|
-
|
|
3
|
-
declare module 'stripe' {
|
|
4
|
-
namespace Stripe {
|
|
5
|
-
namespace V2 {
|
|
6
|
-
namespace MoneyManagement {
|
|
7
|
-
/**
|
|
8
|
-
* RecipientVerification represents a verification of recipient you intend to send funds to.
|
|
9
|
-
*/
|
|
10
|
-
interface RecipientVerification {
|
|
11
|
-
/**
|
|
12
|
-
* The ID of the RecipientVerification.
|
|
13
|
-
*/
|
|
14
|
-
id: string;
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* String representing the object's type. Objects of the same type share the same value of the object field.
|
|
18
|
-
*/
|
|
19
|
-
object: 'v2.money_management.recipient_verification';
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* The OBP/OBT ID that consumed this verification, present if one is successfully created.
|
|
23
|
-
*/
|
|
24
|
-
consumed_by?: string;
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Time at which the RecipientVerification was created.
|
|
28
|
-
* Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
|
|
29
|
-
*/
|
|
30
|
-
created: string;
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Time at which the RecipientVerification expires, 5 minutes after the creation.
|
|
34
|
-
* Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
|
|
35
|
-
*/
|
|
36
|
-
expires_at: string;
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
40
|
-
*/
|
|
41
|
-
livemode: boolean;
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Closed Enum. Match level of the RecipientVerification: `match`, `close_match`, `no_match`, `unavailable`.
|
|
45
|
-
*/
|
|
46
|
-
match_result: RecipientVerification.MatchResult;
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Details for the match result.
|
|
50
|
-
*/
|
|
51
|
-
match_result_details: RecipientVerification.MatchResultDetails;
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* Closed Enum. Current status of the RecipientVerification: `verified`, `consumed`, `expired`, `awaiting_acknowledgement`, `acknowledged`.
|
|
55
|
-
*/
|
|
56
|
-
status: RecipientVerification.Status;
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* Hash containing timestamps of when the object transitioned to a particular status.
|
|
60
|
-
*/
|
|
61
|
-
status_transitions?: RecipientVerification.StatusTransitions;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
namespace RecipientVerification {
|
|
65
|
-
type MatchResult =
|
|
66
|
-
| 'close_match'
|
|
67
|
-
| 'match'
|
|
68
|
-
| 'no_match'
|
|
69
|
-
| 'unavailable';
|
|
70
|
-
|
|
71
|
-
interface MatchResultDetails {
|
|
72
|
-
/**
|
|
73
|
-
* The account name associated with the bank account as provided by the VoP provider, only present if there is a match or close match.
|
|
74
|
-
*/
|
|
75
|
-
matched_name?: string;
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* A message describing the match result.
|
|
79
|
-
*/
|
|
80
|
-
message: string;
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* The name associated with the provided recipient.
|
|
84
|
-
*/
|
|
85
|
-
provided_name: string;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
type Status =
|
|
89
|
-
| 'acknowledged'
|
|
90
|
-
| 'awaiting_acknowledgement'
|
|
91
|
-
| 'consumed'
|
|
92
|
-
| 'expired'
|
|
93
|
-
| 'verified';
|
|
94
|
-
|
|
95
|
-
interface StatusTransitions {
|
|
96
|
-
/**
|
|
97
|
-
* Timestamp describing when a RecipientVerification changed status to `acknowledged`.
|
|
98
|
-
* Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
|
|
99
|
-
*/
|
|
100
|
-
acknowledged_at?: string;
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* Timestamp describing when a RecipientVerification changed status to `consumed`.
|
|
104
|
-
* Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
|
|
105
|
-
*/
|
|
106
|
-
consumed_at?: string;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
}
|