@leaflow/sdk 0.0.0-dev.21.g192ee50 → 0.0.0-dev.212.gea1bf06
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/README.md +13 -1
- package/dist/account/v1/client.d.ts +4 -0
- package/dist/account/v1/client.js +7 -0
- package/dist/account/v1/index.d.ts +33 -22
- package/dist/account/v1/index.js +4 -4
- package/dist/account/v1/schema.d.ts +307 -89
- package/dist/assistant/v1/client.d.ts +4 -0
- package/dist/assistant/v1/client.js +7 -0
- package/dist/assistant/v1/index.d.ts +71 -40
- package/dist/assistant/v1/index.js +4 -4
- package/dist/assistant/v1/schema.d.ts +1204 -139
- package/dist/billing/v1/client.d.ts +4 -0
- package/dist/billing/v1/client.js +7 -0
- package/dist/billing/v1/index.d.ts +45 -0
- package/dist/billing/v1/index.js +5 -0
- package/dist/billing/v1/schema.d.ts +1404 -0
- package/dist/billing/v1/schema.js +5 -0
- package/dist/billingaccount/v1/client.d.ts +4 -0
- package/dist/billingaccount/v1/client.js +7 -0
- package/dist/billingaccount/v1/index.d.ts +151 -0
- package/dist/billingaccount/v1/index.js +5 -0
- package/dist/billingaccount/v1/schema.d.ts +4265 -0
- package/dist/billingaccount/v1/schema.js +5 -0
- package/dist/canopy/v1/client.d.ts +4 -0
- package/dist/canopy/v1/client.js +7 -0
- package/dist/canopy/v1/index.d.ts +24 -23
- package/dist/canopy/v1/index.js +4 -4
- package/dist/canopy/v1/schema.d.ts +113 -109
- package/dist/compute/v1/client.d.ts +4 -0
- package/dist/compute/v1/client.js +7 -0
- package/dist/compute/v1/index.d.ts +188 -125
- package/dist/compute/v1/index.js +4 -4
- package/dist/compute/v1/schema.d.ts +1953 -281
- package/dist/dns/v1/client.d.ts +4 -0
- package/dist/dns/v1/client.js +7 -0
- package/dist/dns/v1/index.d.ts +43 -0
- package/dist/dns/v1/index.js +5 -0
- package/dist/dns/v1/schema.d.ts +887 -0
- package/dist/dns/v1/schema.js +5 -0
- package/dist/iam/v1/client.d.ts +4 -0
- package/dist/iam/v1/client.js +7 -0
- package/dist/iam/v1/index.d.ts +55 -32
- package/dist/iam/v1/index.js +4 -4
- package/dist/iam/v1/schema.d.ts +521 -88
- package/dist/index.d.ts +12 -7
- package/dist/index.js +20 -5
- package/dist/monitoring/v1/client.d.ts +4 -0
- package/dist/monitoring/v1/client.js +7 -0
- package/dist/monitoring/v1/index.d.ts +130 -49
- package/dist/monitoring/v1/index.js +4 -4
- package/dist/monitoring/v1/schema.d.ts +2420 -527
- package/dist/notification/v1/client.d.ts +4 -0
- package/dist/notification/v1/client.js +7 -0
- package/dist/notification/v1/index.d.ts +77 -0
- package/dist/notification/v1/index.js +5 -0
- package/dist/notification/v1/schema.d.ts +2048 -0
- package/dist/notification/v1/schema.js +5 -0
- package/dist/support/v1/client.d.ts +4 -0
- package/dist/support/v1/client.js +7 -0
- package/dist/support/v1/index.d.ts +51 -0
- package/dist/support/v1/index.js +5 -0
- package/dist/support/v1/schema.d.ts +1082 -0
- package/dist/support/v1/schema.js +5 -0
- package/dist/tunnel/v1/client.d.ts +4 -0
- package/dist/tunnel/v1/client.js +7 -0
- package/dist/tunnel/v1/index.d.ts +8 -7
- package/dist/tunnel/v1/index.js +4 -4
- package/dist/tunnel/v1/schema.d.ts +40 -34
- package/package.json +26 -10
|
@@ -0,0 +1,4265 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by openapi-typescript.
|
|
3
|
+
* Do not make direct changes to the file.
|
|
4
|
+
*/
|
|
5
|
+
export interface paths {
|
|
6
|
+
"/api/v1/prices": {
|
|
7
|
+
parameters: {
|
|
8
|
+
query?: never;
|
|
9
|
+
header?: never;
|
|
10
|
+
path?: never;
|
|
11
|
+
cookie?: never;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* List what is on sale, with prices
|
|
15
|
+
* @description Every sellable thing and what it costs, in one request. A plan appears once per price.
|
|
16
|
+
*
|
|
17
|
+
* `currency` is required: a plan has a price in each currency it is sold in, so "what does
|
|
18
|
+
* this cost" has no answer without one.
|
|
19
|
+
*
|
|
20
|
+
* Retired prices are left out. Existing subscriptions still reference them, so this is not
|
|
21
|
+
* the place to look up what an existing purchase is paying.
|
|
22
|
+
*/
|
|
23
|
+
get: operations["list-prices"];
|
|
24
|
+
put?: never;
|
|
25
|
+
post?: never;
|
|
26
|
+
delete?: never;
|
|
27
|
+
options?: never;
|
|
28
|
+
head?: never;
|
|
29
|
+
patch?: never;
|
|
30
|
+
trace?: never;
|
|
31
|
+
};
|
|
32
|
+
"/api/v1/products": {
|
|
33
|
+
parameters: {
|
|
34
|
+
query?: never;
|
|
35
|
+
header?: never;
|
|
36
|
+
path?: never;
|
|
37
|
+
cookie?: never;
|
|
38
|
+
};
|
|
39
|
+
/** List catalog products */
|
|
40
|
+
get: operations["list-products"];
|
|
41
|
+
put?: never;
|
|
42
|
+
post?: never;
|
|
43
|
+
delete?: never;
|
|
44
|
+
options?: never;
|
|
45
|
+
head?: never;
|
|
46
|
+
patch?: never;
|
|
47
|
+
trace?: never;
|
|
48
|
+
};
|
|
49
|
+
"/api/v1/products/{productId}": {
|
|
50
|
+
parameters: {
|
|
51
|
+
query?: never;
|
|
52
|
+
header?: never;
|
|
53
|
+
path: {
|
|
54
|
+
productId: components["schemas"]["ProductID"];
|
|
55
|
+
};
|
|
56
|
+
cookie?: never;
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* Get a service
|
|
60
|
+
* @description Resolves an identifier that was stored elsewhere — on an order line, an invoice line, or
|
|
61
|
+
* the terms of a credit — into something that can be displayed.
|
|
62
|
+
*/
|
|
63
|
+
get: operations["get-product"];
|
|
64
|
+
put?: never;
|
|
65
|
+
post?: never;
|
|
66
|
+
delete?: never;
|
|
67
|
+
options?: never;
|
|
68
|
+
head?: never;
|
|
69
|
+
patch?: never;
|
|
70
|
+
trace?: never;
|
|
71
|
+
};
|
|
72
|
+
"/api/v1/plans/{planId}": {
|
|
73
|
+
parameters: {
|
|
74
|
+
query?: never;
|
|
75
|
+
header?: never;
|
|
76
|
+
path: {
|
|
77
|
+
planId: string;
|
|
78
|
+
};
|
|
79
|
+
cookie?: never;
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* Get a sellable item
|
|
83
|
+
* @description Resolves a stored identifier into something that can be displayed. Returns items that are
|
|
84
|
+
* no longer on sale: an existing purchase still refers to one.
|
|
85
|
+
*/
|
|
86
|
+
get: operations["get-plan"];
|
|
87
|
+
put?: never;
|
|
88
|
+
post?: never;
|
|
89
|
+
delete?: never;
|
|
90
|
+
options?: never;
|
|
91
|
+
head?: never;
|
|
92
|
+
patch?: never;
|
|
93
|
+
trace?: never;
|
|
94
|
+
};
|
|
95
|
+
"/api/v1/prices/{priceId}": {
|
|
96
|
+
parameters: {
|
|
97
|
+
query?: never;
|
|
98
|
+
header?: never;
|
|
99
|
+
path: {
|
|
100
|
+
priceId: string;
|
|
101
|
+
};
|
|
102
|
+
cookie?: never;
|
|
103
|
+
};
|
|
104
|
+
/**
|
|
105
|
+
* Get a price
|
|
106
|
+
* @description Returns the catalog price, including retired prices. Fixed purchase history and renewal agreements are shown on orders and subscriptions rather than reconstructed from today's catalog.
|
|
107
|
+
*/
|
|
108
|
+
get: operations["get-price"];
|
|
109
|
+
put?: never;
|
|
110
|
+
post?: never;
|
|
111
|
+
delete?: never;
|
|
112
|
+
options?: never;
|
|
113
|
+
head?: never;
|
|
114
|
+
patch?: never;
|
|
115
|
+
trace?: never;
|
|
116
|
+
};
|
|
117
|
+
"/api/v1/plans": {
|
|
118
|
+
parameters: {
|
|
119
|
+
query: {
|
|
120
|
+
product_id: components["schemas"]["ProductID"];
|
|
121
|
+
};
|
|
122
|
+
header?: never;
|
|
123
|
+
path?: never;
|
|
124
|
+
cookie?: never;
|
|
125
|
+
};
|
|
126
|
+
/** List catalog plans */
|
|
127
|
+
get: operations["list-plans"];
|
|
128
|
+
put?: never;
|
|
129
|
+
post?: never;
|
|
130
|
+
delete?: never;
|
|
131
|
+
options?: never;
|
|
132
|
+
head?: never;
|
|
133
|
+
patch?: never;
|
|
134
|
+
trace?: never;
|
|
135
|
+
};
|
|
136
|
+
"/api/v1/plans/{planId}/prices": {
|
|
137
|
+
parameters: {
|
|
138
|
+
query?: never;
|
|
139
|
+
header?: never;
|
|
140
|
+
path: {
|
|
141
|
+
planId: components["parameters"]["PlanId"];
|
|
142
|
+
};
|
|
143
|
+
cookie?: never;
|
|
144
|
+
};
|
|
145
|
+
/**
|
|
146
|
+
* List catalog prices
|
|
147
|
+
* @description Public list prices only. An account holding a negotiated agreement may be charged less;
|
|
148
|
+
* it is never charged more.
|
|
149
|
+
*/
|
|
150
|
+
get: operations["list-prices-by-plan"];
|
|
151
|
+
put?: never;
|
|
152
|
+
post?: never;
|
|
153
|
+
delete?: never;
|
|
154
|
+
options?: never;
|
|
155
|
+
head?: never;
|
|
156
|
+
patch?: never;
|
|
157
|
+
trace?: never;
|
|
158
|
+
};
|
|
159
|
+
"/api/v1/rate-cards/{rateCardId}/rules": {
|
|
160
|
+
parameters: {
|
|
161
|
+
query?: never;
|
|
162
|
+
header?: never;
|
|
163
|
+
path: {
|
|
164
|
+
rateCardId: components["parameters"]["RateCardId"];
|
|
165
|
+
};
|
|
166
|
+
cookie?: never;
|
|
167
|
+
};
|
|
168
|
+
/**
|
|
169
|
+
* List catalog rates
|
|
170
|
+
* @description Only public price lists are readable here. A list written for a single agreement is not,
|
|
171
|
+
* and its identifier cannot be used to reach it.
|
|
172
|
+
*/
|
|
173
|
+
get: operations["list-rates"];
|
|
174
|
+
put?: never;
|
|
175
|
+
post?: never;
|
|
176
|
+
delete?: never;
|
|
177
|
+
options?: never;
|
|
178
|
+
head?: never;
|
|
179
|
+
patch?: never;
|
|
180
|
+
trace?: never;
|
|
181
|
+
};
|
|
182
|
+
"/api/v1/estimates": {
|
|
183
|
+
parameters: {
|
|
184
|
+
query?: never;
|
|
185
|
+
header?: never;
|
|
186
|
+
path?: never;
|
|
187
|
+
cookie?: never;
|
|
188
|
+
};
|
|
189
|
+
get?: never;
|
|
190
|
+
put?: never;
|
|
191
|
+
/**
|
|
192
|
+
* Estimate a basket
|
|
193
|
+
* @description Uses public list prices. Nothing is reserved and nothing is recorded, so this may be
|
|
194
|
+
* called as often as required.
|
|
195
|
+
*
|
|
196
|
+
* `POST` is used because the set of items to price does not fit in a query string. There is
|
|
197
|
+
* no corresponding `GET`, and no estimate is stored to retrieve.
|
|
198
|
+
*
|
|
199
|
+
* An account holding a negotiated agreement may be charged less than this. Tax and
|
|
200
|
+
* discounts are not included.
|
|
201
|
+
*/
|
|
202
|
+
post: operations["create-estimate"];
|
|
203
|
+
delete?: never;
|
|
204
|
+
options?: never;
|
|
205
|
+
head?: never;
|
|
206
|
+
patch?: never;
|
|
207
|
+
trace?: never;
|
|
208
|
+
};
|
|
209
|
+
"/account/v1/currencies": {
|
|
210
|
+
parameters: {
|
|
211
|
+
query?: never;
|
|
212
|
+
header?: never;
|
|
213
|
+
path?: never;
|
|
214
|
+
cookie?: never;
|
|
215
|
+
};
|
|
216
|
+
/**
|
|
217
|
+
* List currencies accounts can be opened in
|
|
218
|
+
* @description The currencies a new billing account can be opened in. A retired currency is not listed,
|
|
219
|
+
* although accounts already opened in it keep working. Not paged: the set is a few rows.
|
|
220
|
+
*/
|
|
221
|
+
get: operations["list-currencies"];
|
|
222
|
+
put?: never;
|
|
223
|
+
post?: never;
|
|
224
|
+
delete?: never;
|
|
225
|
+
options?: never;
|
|
226
|
+
head?: never;
|
|
227
|
+
patch?: never;
|
|
228
|
+
trace?: never;
|
|
229
|
+
};
|
|
230
|
+
"/account/v1/billing-accounts": {
|
|
231
|
+
parameters: {
|
|
232
|
+
query?: never;
|
|
233
|
+
header?: never;
|
|
234
|
+
path?: never;
|
|
235
|
+
cookie?: never;
|
|
236
|
+
};
|
|
237
|
+
/** List billing accounts */
|
|
238
|
+
get: operations["list-billing-accounts"];
|
|
239
|
+
put?: never;
|
|
240
|
+
/**
|
|
241
|
+
* Create billing account
|
|
242
|
+
* @description The currency is chosen here and cannot be changed afterwards. Everything charged to the
|
|
243
|
+
* account — prices, orders, invoices, balance — is denominated in it.
|
|
244
|
+
*
|
|
245
|
+
* One person may hold several accounts, for example a personal one and one for a team.
|
|
246
|
+
*/
|
|
247
|
+
post: operations["create-billing-account"];
|
|
248
|
+
delete?: never;
|
|
249
|
+
options?: never;
|
|
250
|
+
head?: never;
|
|
251
|
+
patch?: never;
|
|
252
|
+
trace?: never;
|
|
253
|
+
};
|
|
254
|
+
"/account/v1/billing-accounts/{accountId}": {
|
|
255
|
+
parameters: {
|
|
256
|
+
query?: never;
|
|
257
|
+
header?: never;
|
|
258
|
+
path: {
|
|
259
|
+
accountId: components["parameters"]["AccountId"];
|
|
260
|
+
};
|
|
261
|
+
cookie?: never;
|
|
262
|
+
};
|
|
263
|
+
/** Get billing account */
|
|
264
|
+
get: operations["get-billing-account"];
|
|
265
|
+
put?: never;
|
|
266
|
+
post?: never;
|
|
267
|
+
delete?: never;
|
|
268
|
+
options?: never;
|
|
269
|
+
head?: never;
|
|
270
|
+
/**
|
|
271
|
+
* Update billing account
|
|
272
|
+
* @description The legal name, address and tax identifier are copied onto each invoice when it is
|
|
273
|
+
* issued. Changing them here affects invoices issued afterwards, not those already sent.
|
|
274
|
+
*
|
|
275
|
+
* The currency cannot be changed.
|
|
276
|
+
*/
|
|
277
|
+
patch: operations["update-billing-account"];
|
|
278
|
+
trace?: never;
|
|
279
|
+
};
|
|
280
|
+
"/account/v1/billing-accounts/{accountId}/balance": {
|
|
281
|
+
parameters: {
|
|
282
|
+
query?: never;
|
|
283
|
+
header?: never;
|
|
284
|
+
path: {
|
|
285
|
+
accountId: components["parameters"]["AccountId"];
|
|
286
|
+
};
|
|
287
|
+
cookie?: never;
|
|
288
|
+
};
|
|
289
|
+
/** Get account balance */
|
|
290
|
+
get: operations["get-account-balance"];
|
|
291
|
+
put?: never;
|
|
292
|
+
post?: never;
|
|
293
|
+
delete?: never;
|
|
294
|
+
options?: never;
|
|
295
|
+
head?: never;
|
|
296
|
+
patch?: never;
|
|
297
|
+
trace?: never;
|
|
298
|
+
};
|
|
299
|
+
"/account/v1/billing-accounts/{accountId}/payment-options": {
|
|
300
|
+
parameters: {
|
|
301
|
+
query?: never;
|
|
302
|
+
header?: never;
|
|
303
|
+
path: {
|
|
304
|
+
accountId: components["parameters"]["AccountId"];
|
|
305
|
+
};
|
|
306
|
+
cookie?: never;
|
|
307
|
+
};
|
|
308
|
+
/**
|
|
309
|
+
* List payment options
|
|
310
|
+
* @description Lists the payment gateways and methods that currently accept payment in this account's currency, the
|
|
311
|
+
* preferred gateway first. Top-ups and invoice payments must name a gateway and method listed here;
|
|
312
|
+
* others are refused. An empty list means no online payment is available for this account. Not paged: the
|
|
313
|
+
* set is a few rows.
|
|
314
|
+
*/
|
|
315
|
+
get: operations["list-payment-options"];
|
|
316
|
+
put?: never;
|
|
317
|
+
post?: never;
|
|
318
|
+
delete?: never;
|
|
319
|
+
options?: never;
|
|
320
|
+
head?: never;
|
|
321
|
+
patch?: never;
|
|
322
|
+
trace?: never;
|
|
323
|
+
};
|
|
324
|
+
"/account/v1/projects": {
|
|
325
|
+
parameters: {
|
|
326
|
+
query?: never;
|
|
327
|
+
header?: never;
|
|
328
|
+
path?: never;
|
|
329
|
+
cookie?: never;
|
|
330
|
+
};
|
|
331
|
+
/** List projects linked to billing accounts */
|
|
332
|
+
get: operations["list-billing-account-projects"];
|
|
333
|
+
put?: never;
|
|
334
|
+
post?: never;
|
|
335
|
+
delete?: never;
|
|
336
|
+
options?: never;
|
|
337
|
+
head?: never;
|
|
338
|
+
patch?: never;
|
|
339
|
+
trace?: never;
|
|
340
|
+
};
|
|
341
|
+
"/account/v1/projects/{projectId}/billing-account": {
|
|
342
|
+
parameters: {
|
|
343
|
+
query?: never;
|
|
344
|
+
header?: never;
|
|
345
|
+
path: {
|
|
346
|
+
projectId: components["parameters"]["ProjectId"];
|
|
347
|
+
};
|
|
348
|
+
cookie?: never;
|
|
349
|
+
};
|
|
350
|
+
/**
|
|
351
|
+
* Get project billing account
|
|
352
|
+
* @description Returns 404 when the project has no billing account. No resources can be created until one is linked.
|
|
353
|
+
*/
|
|
354
|
+
get: operations["get-project-billing-account"];
|
|
355
|
+
/**
|
|
356
|
+
* Set project billing account
|
|
357
|
+
* @description Charges already incurred remain with the billing account that was linked when they
|
|
358
|
+
* occurred, and are still invoiced to it. Metered resources are settled up to the moment of
|
|
359
|
+
* the change. Amounts owed by the previous billing account remain owed by it and do not
|
|
360
|
+
* prevent the change.
|
|
361
|
+
*
|
|
362
|
+
* Orders keep the billing account they were placed with and are fulfilled as placed. Periods
|
|
363
|
+
* already paid for are unaffected; renewals are charged to the new billing account.
|
|
364
|
+
*
|
|
365
|
+
* The request is refused once the project no longer accepts purchases because it is being
|
|
366
|
+
* deleted, and while a subscription or an order in progress in the project uses a currency
|
|
367
|
+
* other than that of the new billing account.
|
|
368
|
+
*/
|
|
369
|
+
put: operations["set-project-billing-account"];
|
|
370
|
+
post?: never;
|
|
371
|
+
/**
|
|
372
|
+
* Unlink project billing account
|
|
373
|
+
* @description Permitted only when nothing in the project is still running or in progress: no metered
|
|
374
|
+
* resources, no subscriptions that have not ended, and no orders in progress, including
|
|
375
|
+
* changes scheduled for the end of a period. Orders are not modified by this request; wait
|
|
376
|
+
* for them to complete, and have the service that scheduled a change call it off.
|
|
377
|
+
*
|
|
378
|
+
* Charges already incurred remain with the billing account and are invoiced to it as usual.
|
|
379
|
+
* Amounts the billing account owes do not prevent unlinking.
|
|
380
|
+
*
|
|
381
|
+
* After this the project cannot make purchases until a billing account is linked again.
|
|
382
|
+
*/
|
|
383
|
+
delete: operations["unlink-project-billing-account"];
|
|
384
|
+
options?: never;
|
|
385
|
+
head?: never;
|
|
386
|
+
patch?: never;
|
|
387
|
+
trace?: never;
|
|
388
|
+
};
|
|
389
|
+
"/account/v1/top-ups": {
|
|
390
|
+
parameters: {
|
|
391
|
+
query?: never;
|
|
392
|
+
header?: never;
|
|
393
|
+
path?: never;
|
|
394
|
+
cookie?: never;
|
|
395
|
+
};
|
|
396
|
+
/**
|
|
397
|
+
* List top ups
|
|
398
|
+
* @description Lists only the authenticated user's top-ups. Includes pending, failed and canceled attempts; no invoice is
|
|
399
|
+
* created for a top-up. Items carry no `action`; read a pending top-up with get-top-up to continue its payment.
|
|
400
|
+
*/
|
|
401
|
+
get: operations["list-top-ups"];
|
|
402
|
+
put?: never;
|
|
403
|
+
/**
|
|
404
|
+
* Create top up
|
|
405
|
+
* @description Creates a top-up for an account owned by the authenticated user and returns its payment information.
|
|
406
|
+
* The balance increases only after the payment gateway confirms receipt. A top-up has no invoice.
|
|
407
|
+
* Keep the supplied ID to query the original attempt after a lost response; duplicate creation conflicts.
|
|
408
|
+
*/
|
|
409
|
+
post: operations["create-top-up"];
|
|
410
|
+
delete?: never;
|
|
411
|
+
options?: never;
|
|
412
|
+
head?: never;
|
|
413
|
+
patch?: never;
|
|
414
|
+
trace?: never;
|
|
415
|
+
};
|
|
416
|
+
"/account/v1/top-ups/{topUpId}": {
|
|
417
|
+
parameters: {
|
|
418
|
+
query?: never;
|
|
419
|
+
header?: never;
|
|
420
|
+
path: {
|
|
421
|
+
topUpId: string;
|
|
422
|
+
};
|
|
423
|
+
cookie?: never;
|
|
424
|
+
};
|
|
425
|
+
/**
|
|
426
|
+
* Get top up
|
|
427
|
+
* @description Reads a top-up owned by the authenticated user, including its outcome and the part of it not yet spent.
|
|
428
|
+
* It is not an invoice.
|
|
429
|
+
*
|
|
430
|
+
* While the top-up is pending, the answer includes the customer's next step as the payment gateway
|
|
431
|
+
* currently reports it, so that a payment interrupted by a closed page can be continued. When the gateway
|
|
432
|
+
* cannot be reached, the top-up is returned without `action`; read it again later.
|
|
433
|
+
*/
|
|
434
|
+
get: operations["get-top-up"];
|
|
435
|
+
put?: never;
|
|
436
|
+
post?: never;
|
|
437
|
+
delete?: never;
|
|
438
|
+
options?: never;
|
|
439
|
+
head?: never;
|
|
440
|
+
patch?: never;
|
|
441
|
+
trace?: never;
|
|
442
|
+
};
|
|
443
|
+
"/account/v1/top-ups/{topUpId}/cancel": {
|
|
444
|
+
parameters: {
|
|
445
|
+
query?: never;
|
|
446
|
+
header?: never;
|
|
447
|
+
path: {
|
|
448
|
+
topUpId: string;
|
|
449
|
+
};
|
|
450
|
+
cookie?: never;
|
|
451
|
+
};
|
|
452
|
+
get?: never;
|
|
453
|
+
put?: never;
|
|
454
|
+
/**
|
|
455
|
+
* Cancel top up
|
|
456
|
+
* @description Withdraws a pending top-up owned by the authenticated user at the payment gateway. It becomes
|
|
457
|
+
* `canceled` with `cancellation_reason` `requested_by_customer`, and no money is collected for it. Canceling a
|
|
458
|
+
* top-up that is already canceled returns it unchanged.
|
|
459
|
+
*
|
|
460
|
+
* If the gateway has already collected the payment, nothing is withdrawn and the top-up is returned
|
|
461
|
+
* as `succeeded` with the balance increased. Check `status` in the answer rather than assuming the
|
|
462
|
+
* cancellation took effect.
|
|
463
|
+
*
|
|
464
|
+
* Fails with 409 and BILLING_TOPUP_NOT_CANCELABLE when the top-up has already succeeded or failed,
|
|
465
|
+
* with `status` naming that outcome, and while the gateway is processing the payment and can no
|
|
466
|
+
* longer withdraw it, with `status` set to `pending`; read the top-up again later in that case.
|
|
467
|
+
*/
|
|
468
|
+
post: operations["cancel-top-up"];
|
|
469
|
+
delete?: never;
|
|
470
|
+
options?: never;
|
|
471
|
+
head?: never;
|
|
472
|
+
patch?: never;
|
|
473
|
+
trace?: never;
|
|
474
|
+
};
|
|
475
|
+
"/account/v1/payment-methods": {
|
|
476
|
+
parameters: {
|
|
477
|
+
query?: never;
|
|
478
|
+
header?: never;
|
|
479
|
+
path?: never;
|
|
480
|
+
cookie?: never;
|
|
481
|
+
};
|
|
482
|
+
/** List payment methods */
|
|
483
|
+
get: operations["list-payment-methods"];
|
|
484
|
+
put?: never;
|
|
485
|
+
post?: never;
|
|
486
|
+
delete?: never;
|
|
487
|
+
options?: never;
|
|
488
|
+
head?: never;
|
|
489
|
+
patch?: never;
|
|
490
|
+
trace?: never;
|
|
491
|
+
};
|
|
492
|
+
"/account/v1/payment-methods/setup": {
|
|
493
|
+
parameters: {
|
|
494
|
+
query?: never;
|
|
495
|
+
header?: never;
|
|
496
|
+
path?: never;
|
|
497
|
+
cookie?: never;
|
|
498
|
+
};
|
|
499
|
+
get?: never;
|
|
500
|
+
put?: never;
|
|
501
|
+
/**
|
|
502
|
+
* Create payment method setup
|
|
503
|
+
* @description Returns what is needed to hand the browser over to the payment gateway's own card
|
|
504
|
+
* form. Nothing is charged, and the method appears in the list once the gateway
|
|
505
|
+
* confirms it.
|
|
506
|
+
*
|
|
507
|
+
* Card numbers are never sent to or stored by this service.
|
|
508
|
+
*/
|
|
509
|
+
post: operations["create-payment-method-setup"];
|
|
510
|
+
delete?: never;
|
|
511
|
+
options?: never;
|
|
512
|
+
head?: never;
|
|
513
|
+
patch?: never;
|
|
514
|
+
trace?: never;
|
|
515
|
+
};
|
|
516
|
+
"/account/v1/payment-methods/{paymentMethodId}/default": {
|
|
517
|
+
parameters: {
|
|
518
|
+
query?: never;
|
|
519
|
+
header?: never;
|
|
520
|
+
path: {
|
|
521
|
+
paymentMethodId: components["parameters"]["PaymentMethodId"];
|
|
522
|
+
};
|
|
523
|
+
cookie?: never;
|
|
524
|
+
};
|
|
525
|
+
get?: never;
|
|
526
|
+
/** Set default payment method */
|
|
527
|
+
put: operations["set-default-payment-method"];
|
|
528
|
+
post?: never;
|
|
529
|
+
delete?: never;
|
|
530
|
+
options?: never;
|
|
531
|
+
head?: never;
|
|
532
|
+
patch?: never;
|
|
533
|
+
trace?: never;
|
|
534
|
+
};
|
|
535
|
+
"/account/v1/payment-methods/{paymentMethodId}": {
|
|
536
|
+
parameters: {
|
|
537
|
+
query?: never;
|
|
538
|
+
header?: never;
|
|
539
|
+
path: {
|
|
540
|
+
paymentMethodId: components["parameters"]["PaymentMethodId"];
|
|
541
|
+
};
|
|
542
|
+
cookie?: never;
|
|
543
|
+
};
|
|
544
|
+
get?: never;
|
|
545
|
+
put?: never;
|
|
546
|
+
post?: never;
|
|
547
|
+
/**
|
|
548
|
+
* Delete payment method
|
|
549
|
+
* @description Refused when it is the only method on an account that has resources billed by the hour,
|
|
550
|
+
* as there would be nothing left to charge when the balance runs out.
|
|
551
|
+
*/
|
|
552
|
+
delete: operations["delete-payment-method"];
|
|
553
|
+
options?: never;
|
|
554
|
+
head?: never;
|
|
555
|
+
patch?: never;
|
|
556
|
+
trace?: never;
|
|
557
|
+
};
|
|
558
|
+
"/account/v1/invoices/{invoiceId}/pay": {
|
|
559
|
+
parameters: {
|
|
560
|
+
query?: never;
|
|
561
|
+
header?: never;
|
|
562
|
+
path: {
|
|
563
|
+
invoiceId: components["parameters"]["InvoiceId"];
|
|
564
|
+
};
|
|
565
|
+
cookie?: never;
|
|
566
|
+
};
|
|
567
|
+
get?: never;
|
|
568
|
+
put?: never;
|
|
569
|
+
/**
|
|
570
|
+
* Pay invoice
|
|
571
|
+
* @description Applies the account balance first, then charges the remainder to a payment method. Give
|
|
572
|
+
* `payment_method_id` to choose one, or omit it to use the default.
|
|
573
|
+
*
|
|
574
|
+
* Returns a checkout address when the gateway requires the cardholder to confirm the
|
|
575
|
+
* payment; the invoice is marked paid once the gateway confirms it.
|
|
576
|
+
*
|
|
577
|
+
* Calling this on an invoice that is already paid returns the invoice unchanged.
|
|
578
|
+
*/
|
|
579
|
+
post: operations["pay-invoice"];
|
|
580
|
+
delete?: never;
|
|
581
|
+
options?: never;
|
|
582
|
+
head?: never;
|
|
583
|
+
patch?: never;
|
|
584
|
+
trace?: never;
|
|
585
|
+
};
|
|
586
|
+
"/account/v1/payments": {
|
|
587
|
+
parameters: {
|
|
588
|
+
query?: never;
|
|
589
|
+
header?: never;
|
|
590
|
+
path?: never;
|
|
591
|
+
cookie?: never;
|
|
592
|
+
};
|
|
593
|
+
get?: never;
|
|
594
|
+
put?: never;
|
|
595
|
+
/**
|
|
596
|
+
* Pay together
|
|
597
|
+
* @description Pays outstanding invoices, including invoices associated with the listed orders. Gateway collection creates a top-up transaction applied to the original invoices. Paid invoices are not charged again. Unknown gateway results remain pending and are recovered through the original transaction and task.
|
|
598
|
+
*/
|
|
599
|
+
post: operations["pay-together"];
|
|
600
|
+
delete?: never;
|
|
601
|
+
options?: never;
|
|
602
|
+
head?: never;
|
|
603
|
+
patch?: never;
|
|
604
|
+
trace?: never;
|
|
605
|
+
};
|
|
606
|
+
"/account/v1/invoices": {
|
|
607
|
+
parameters: {
|
|
608
|
+
query?: never;
|
|
609
|
+
header?: never;
|
|
610
|
+
path?: never;
|
|
611
|
+
cookie?: never;
|
|
612
|
+
};
|
|
613
|
+
/** List invoices */
|
|
614
|
+
get: operations["list-invoices"];
|
|
615
|
+
put?: never;
|
|
616
|
+
post?: never;
|
|
617
|
+
delete?: never;
|
|
618
|
+
options?: never;
|
|
619
|
+
head?: never;
|
|
620
|
+
patch?: never;
|
|
621
|
+
trace?: never;
|
|
622
|
+
};
|
|
623
|
+
"/account/v1/invoices/{invoiceId}": {
|
|
624
|
+
parameters: {
|
|
625
|
+
query?: never;
|
|
626
|
+
header?: never;
|
|
627
|
+
path: {
|
|
628
|
+
invoiceId: components["parameters"]["InvoiceId"];
|
|
629
|
+
};
|
|
630
|
+
cookie?: never;
|
|
631
|
+
};
|
|
632
|
+
/** Get invoice */
|
|
633
|
+
get: operations["get-invoice"];
|
|
634
|
+
put?: never;
|
|
635
|
+
post?: never;
|
|
636
|
+
delete?: never;
|
|
637
|
+
options?: never;
|
|
638
|
+
head?: never;
|
|
639
|
+
patch?: never;
|
|
640
|
+
trace?: never;
|
|
641
|
+
};
|
|
642
|
+
"/account/v1/invoices/{invoiceId}/items": {
|
|
643
|
+
parameters: {
|
|
644
|
+
query?: never;
|
|
645
|
+
header?: never;
|
|
646
|
+
path: {
|
|
647
|
+
invoiceId: components["parameters"]["InvoiceId"];
|
|
648
|
+
};
|
|
649
|
+
cookie?: never;
|
|
650
|
+
};
|
|
651
|
+
/** List invoice items */
|
|
652
|
+
get: operations["list-invoice-items"];
|
|
653
|
+
put?: never;
|
|
654
|
+
post?: never;
|
|
655
|
+
delete?: never;
|
|
656
|
+
options?: never;
|
|
657
|
+
head?: never;
|
|
658
|
+
patch?: never;
|
|
659
|
+
trace?: never;
|
|
660
|
+
};
|
|
661
|
+
"/account/v1/transactions": {
|
|
662
|
+
parameters: {
|
|
663
|
+
query?: never;
|
|
664
|
+
header?: never;
|
|
665
|
+
path?: never;
|
|
666
|
+
cookie?: never;
|
|
667
|
+
};
|
|
668
|
+
/** List transactions */
|
|
669
|
+
get: operations["list-transactions"];
|
|
670
|
+
put?: never;
|
|
671
|
+
post?: never;
|
|
672
|
+
delete?: never;
|
|
673
|
+
options?: never;
|
|
674
|
+
head?: never;
|
|
675
|
+
patch?: never;
|
|
676
|
+
trace?: never;
|
|
677
|
+
};
|
|
678
|
+
"/account/v1/discounts": {
|
|
679
|
+
parameters: {
|
|
680
|
+
query?: never;
|
|
681
|
+
header?: never;
|
|
682
|
+
path?: never;
|
|
683
|
+
cookie?: never;
|
|
684
|
+
};
|
|
685
|
+
/**
|
|
686
|
+
* List the coupons held on this account
|
|
687
|
+
* @description Coupons placed on the account directly, which apply at checkout without a code being
|
|
688
|
+
* entered. A coupon reached through a code is not listed here.
|
|
689
|
+
*/
|
|
690
|
+
get: operations["list-account-discounts"];
|
|
691
|
+
put?: never;
|
|
692
|
+
post?: never;
|
|
693
|
+
delete?: never;
|
|
694
|
+
options?: never;
|
|
695
|
+
head?: never;
|
|
696
|
+
patch?: never;
|
|
697
|
+
trace?: never;
|
|
698
|
+
};
|
|
699
|
+
"/account/v1/credit-grants": {
|
|
700
|
+
parameters: {
|
|
701
|
+
query?: never;
|
|
702
|
+
header?: never;
|
|
703
|
+
path?: never;
|
|
704
|
+
cookie?: never;
|
|
705
|
+
};
|
|
706
|
+
/**
|
|
707
|
+
* List credit grants
|
|
708
|
+
* @description Each grant shows what remains and what it may be used for. Credit is spent before the balance
|
|
709
|
+
* and cannot be withdrawn.
|
|
710
|
+
*/
|
|
711
|
+
get: operations["list-credit-grants"];
|
|
712
|
+
put?: never;
|
|
713
|
+
post?: never;
|
|
714
|
+
delete?: never;
|
|
715
|
+
options?: never;
|
|
716
|
+
head?: never;
|
|
717
|
+
patch?: never;
|
|
718
|
+
trace?: never;
|
|
719
|
+
};
|
|
720
|
+
"/account/v1/refunds": {
|
|
721
|
+
parameters: {
|
|
722
|
+
query?: never;
|
|
723
|
+
header?: never;
|
|
724
|
+
path?: never;
|
|
725
|
+
cookie?: never;
|
|
726
|
+
};
|
|
727
|
+
/** List refunds */
|
|
728
|
+
get: operations["list-refunds"];
|
|
729
|
+
put?: never;
|
|
730
|
+
post?: never;
|
|
731
|
+
delete?: never;
|
|
732
|
+
options?: never;
|
|
733
|
+
head?: never;
|
|
734
|
+
patch?: never;
|
|
735
|
+
trace?: never;
|
|
736
|
+
};
|
|
737
|
+
"/account/v1/usage-charges": {
|
|
738
|
+
parameters: {
|
|
739
|
+
query?: never;
|
|
740
|
+
header?: never;
|
|
741
|
+
path?: never;
|
|
742
|
+
cookie?: never;
|
|
743
|
+
};
|
|
744
|
+
/**
|
|
745
|
+
* List usage charges
|
|
746
|
+
* @description Each charge is added to the month's usage invoice as it is priced, summed into one line per
|
|
747
|
+
* subscription, project, resource, meter and rate. Filter by `invoice_item_id` to see the
|
|
748
|
+
* charges behind a line. Charges still waiting to be priced are included too.
|
|
749
|
+
*/
|
|
750
|
+
get: operations["list-usage-charges"];
|
|
751
|
+
put?: never;
|
|
752
|
+
post?: never;
|
|
753
|
+
delete?: never;
|
|
754
|
+
options?: never;
|
|
755
|
+
head?: never;
|
|
756
|
+
patch?: never;
|
|
757
|
+
trace?: never;
|
|
758
|
+
};
|
|
759
|
+
"/account/v1/subscriptions": {
|
|
760
|
+
parameters: {
|
|
761
|
+
query?: never;
|
|
762
|
+
header?: never;
|
|
763
|
+
path?: never;
|
|
764
|
+
cookie?: never;
|
|
765
|
+
};
|
|
766
|
+
/** List subscriptions */
|
|
767
|
+
get: operations["list-subscriptions"];
|
|
768
|
+
put?: never;
|
|
769
|
+
post?: never;
|
|
770
|
+
delete?: never;
|
|
771
|
+
options?: never;
|
|
772
|
+
head?: never;
|
|
773
|
+
patch?: never;
|
|
774
|
+
trace?: never;
|
|
775
|
+
};
|
|
776
|
+
"/account/v1/subscriptions/{subscriptionId}": {
|
|
777
|
+
parameters: {
|
|
778
|
+
query?: never;
|
|
779
|
+
header?: never;
|
|
780
|
+
path: {
|
|
781
|
+
subscriptionId: components["parameters"]["SubscriptionId"];
|
|
782
|
+
};
|
|
783
|
+
cookie?: never;
|
|
784
|
+
};
|
|
785
|
+
/** Get subscription */
|
|
786
|
+
get: operations["get-subscription"];
|
|
787
|
+
put?: never;
|
|
788
|
+
post?: never;
|
|
789
|
+
delete?: never;
|
|
790
|
+
options?: never;
|
|
791
|
+
head?: never;
|
|
792
|
+
patch?: never;
|
|
793
|
+
trace?: never;
|
|
794
|
+
};
|
|
795
|
+
"/account/v1/subscriptions/{subscriptionId}/cancellation-preview": {
|
|
796
|
+
parameters: {
|
|
797
|
+
query?: never;
|
|
798
|
+
header?: never;
|
|
799
|
+
path: {
|
|
800
|
+
subscriptionId: components["parameters"]["SubscriptionId"];
|
|
801
|
+
};
|
|
802
|
+
cookie?: never;
|
|
803
|
+
};
|
|
804
|
+
/**
|
|
805
|
+
* Preview cancellation
|
|
806
|
+
* @description Reads confirmed terms and paid-period value without recording a request or locking a refund amount.
|
|
807
|
+
*/
|
|
808
|
+
get: operations["preview-cancellation"];
|
|
809
|
+
put?: never;
|
|
810
|
+
post?: never;
|
|
811
|
+
delete?: never;
|
|
812
|
+
options?: never;
|
|
813
|
+
head?: never;
|
|
814
|
+
patch?: never;
|
|
815
|
+
trace?: never;
|
|
816
|
+
};
|
|
817
|
+
"/account/v1/subscriptions/{subscriptionId}/cancellation-requests": {
|
|
818
|
+
parameters: {
|
|
819
|
+
query?: never;
|
|
820
|
+
header?: never;
|
|
821
|
+
path: {
|
|
822
|
+
subscriptionId: components["parameters"]["SubscriptionId"];
|
|
823
|
+
};
|
|
824
|
+
cookie?: never;
|
|
825
|
+
};
|
|
826
|
+
get?: never;
|
|
827
|
+
put?: never;
|
|
828
|
+
/**
|
|
829
|
+
* Request subscription cancellation
|
|
830
|
+
* @description Ends the whole subscription under confirmed terms. The request does not itself stop service; actual end is confirmed by the owning service. Refund processing is separate.
|
|
831
|
+
*/
|
|
832
|
+
post: operations["create-cancellation-request"];
|
|
833
|
+
delete?: never;
|
|
834
|
+
options?: never;
|
|
835
|
+
head?: never;
|
|
836
|
+
patch?: never;
|
|
837
|
+
trace?: never;
|
|
838
|
+
};
|
|
839
|
+
"/account/v1/cancellation-requests/{cancellationRequestId}": {
|
|
840
|
+
parameters: {
|
|
841
|
+
query?: never;
|
|
842
|
+
header?: never;
|
|
843
|
+
path: {
|
|
844
|
+
cancellationRequestId: components["parameters"]["CancellationRequestId"];
|
|
845
|
+
};
|
|
846
|
+
cookie?: never;
|
|
847
|
+
};
|
|
848
|
+
/** Get cancellation request */
|
|
849
|
+
get: operations["get-cancellation-request"];
|
|
850
|
+
put?: never;
|
|
851
|
+
post?: never;
|
|
852
|
+
delete?: never;
|
|
853
|
+
options?: never;
|
|
854
|
+
head?: never;
|
|
855
|
+
patch?: never;
|
|
856
|
+
trace?: never;
|
|
857
|
+
};
|
|
858
|
+
"/account/v1/cancellation-requests/{cancellationRequestId}/cancel": {
|
|
859
|
+
parameters: {
|
|
860
|
+
query?: never;
|
|
861
|
+
header?: never;
|
|
862
|
+
path: {
|
|
863
|
+
cancellationRequestId: components["parameters"]["CancellationRequestId"];
|
|
864
|
+
};
|
|
865
|
+
cookie?: never;
|
|
866
|
+
};
|
|
867
|
+
get?: never;
|
|
868
|
+
put?: never;
|
|
869
|
+
/**
|
|
870
|
+
* Cancel a cancellation request
|
|
871
|
+
* @description Allowed only before release starts. Does not resume a previously suspended subscription.
|
|
872
|
+
*/
|
|
873
|
+
post: operations["cancel-cancellation-request"];
|
|
874
|
+
delete?: never;
|
|
875
|
+
options?: never;
|
|
876
|
+
head?: never;
|
|
877
|
+
patch?: never;
|
|
878
|
+
trace?: never;
|
|
879
|
+
};
|
|
880
|
+
"/account/v1/subscriptions/{subscriptionId}/renewal-prices": {
|
|
881
|
+
parameters: {
|
|
882
|
+
query?: never;
|
|
883
|
+
header?: never;
|
|
884
|
+
path: {
|
|
885
|
+
subscriptionId: string;
|
|
886
|
+
};
|
|
887
|
+
cookie?: never;
|
|
888
|
+
};
|
|
889
|
+
/**
|
|
890
|
+
* List the terms this item can be renewed for
|
|
891
|
+
* @description Lists the current renewal agreement and available intervals. The current option preserves recurring_amount; other options use current prices. Amounts cover the whole subscription quantity and exclude tax.
|
|
892
|
+
*/
|
|
893
|
+
get: operations["list-renewal-prices"];
|
|
894
|
+
put?: never;
|
|
895
|
+
post?: never;
|
|
896
|
+
delete?: never;
|
|
897
|
+
options?: never;
|
|
898
|
+
head?: never;
|
|
899
|
+
patch?: never;
|
|
900
|
+
trace?: never;
|
|
901
|
+
};
|
|
902
|
+
"/account/v1/subscriptions/{subscriptionId}/renew": {
|
|
903
|
+
parameters: {
|
|
904
|
+
query?: never;
|
|
905
|
+
header?: never;
|
|
906
|
+
path: {
|
|
907
|
+
subscriptionId: components["parameters"]["SubscriptionId"];
|
|
908
|
+
};
|
|
909
|
+
cookie?: never;
|
|
910
|
+
};
|
|
911
|
+
get?: never;
|
|
912
|
+
put?: never;
|
|
913
|
+
/**
|
|
914
|
+
* Renew subscription
|
|
915
|
+
* @description Purchases prepaid periods from paid_until using the agreed recurring amount. A changed interval selects a current price and freezes new terms on the order, applied only after fulfillment. Existing paid periods keep their value. Save order_id before submitting and query the order after an unknown outcome; duplicate creation conflicts.
|
|
916
|
+
*/
|
|
917
|
+
post: operations["renew-subscription"];
|
|
918
|
+
delete?: never;
|
|
919
|
+
options?: never;
|
|
920
|
+
head?: never;
|
|
921
|
+
patch?: never;
|
|
922
|
+
trace?: never;
|
|
923
|
+
};
|
|
924
|
+
"/account/v1/subscriptions/{subscriptionId}/auto-renew": {
|
|
925
|
+
parameters: {
|
|
926
|
+
query?: never;
|
|
927
|
+
header?: never;
|
|
928
|
+
path: {
|
|
929
|
+
subscriptionId: components["parameters"]["SubscriptionId"];
|
|
930
|
+
};
|
|
931
|
+
cookie?: never;
|
|
932
|
+
};
|
|
933
|
+
get?: never;
|
|
934
|
+
/**
|
|
935
|
+
* Set auto renew
|
|
936
|
+
* @description Controls automatic prepaid renewal. Disabling it does not shorten paid_until and still permits manual renewal. Postpaid subscriptions do not renew and keep this false.
|
|
937
|
+
*/
|
|
938
|
+
put: operations["set-auto-renew"];
|
|
939
|
+
post?: never;
|
|
940
|
+
delete?: never;
|
|
941
|
+
options?: never;
|
|
942
|
+
head?: never;
|
|
943
|
+
patch?: never;
|
|
944
|
+
trace?: never;
|
|
945
|
+
};
|
|
946
|
+
"/account/v1/promotion-codes/preview": {
|
|
947
|
+
parameters: {
|
|
948
|
+
query?: never;
|
|
949
|
+
header?: never;
|
|
950
|
+
path?: never;
|
|
951
|
+
cookie?: never;
|
|
952
|
+
};
|
|
953
|
+
get?: never;
|
|
954
|
+
put?: never;
|
|
955
|
+
/**
|
|
956
|
+
* Preview promotion code
|
|
957
|
+
* @description Nothing is recorded and the code is not consumed. Use it to show the customer the effect
|
|
958
|
+
* before they commit.
|
|
959
|
+
*/
|
|
960
|
+
post: operations["preview-promotion-code"];
|
|
961
|
+
delete?: never;
|
|
962
|
+
options?: never;
|
|
963
|
+
head?: never;
|
|
964
|
+
patch?: never;
|
|
965
|
+
trace?: never;
|
|
966
|
+
};
|
|
967
|
+
"/account/v1/allowances": {
|
|
968
|
+
parameters: {
|
|
969
|
+
query?: never;
|
|
970
|
+
header?: never;
|
|
971
|
+
path?: never;
|
|
972
|
+
cookie?: never;
|
|
973
|
+
};
|
|
974
|
+
/**
|
|
975
|
+
* List allowances
|
|
976
|
+
* @description Lists remaining usage quantities, such as bytes, seconds or tokens. Applicable allowances are
|
|
977
|
+
* consumed before usage is charged. Lower priority values are consumed first, followed by earlier
|
|
978
|
+
* expiry and earlier issuance.
|
|
979
|
+
*
|
|
980
|
+
* Unused quantity expires without a refund or carry-over. Promotional allowances apply to usage paid
|
|
981
|
+
* by their holding account. Included allowances apply only to the associated subscription, including
|
|
982
|
+
* after its project moves to another billing account.
|
|
983
|
+
*/
|
|
984
|
+
get: operations["list-allowances"];
|
|
985
|
+
put?: never;
|
|
986
|
+
post?: never;
|
|
987
|
+
delete?: never;
|
|
988
|
+
options?: never;
|
|
989
|
+
head?: never;
|
|
990
|
+
patch?: never;
|
|
991
|
+
trace?: never;
|
|
992
|
+
};
|
|
993
|
+
"/account/v1/orders": {
|
|
994
|
+
parameters: {
|
|
995
|
+
query?: never;
|
|
996
|
+
header?: never;
|
|
997
|
+
path?: never;
|
|
998
|
+
cookie?: never;
|
|
999
|
+
};
|
|
1000
|
+
/**
|
|
1001
|
+
* List orders
|
|
1002
|
+
* @description Lists acceptance status and associated invoice amounts. Pending may be unpaid or paid; active means accepted, not delivered. Only pending orders expire at expires_at.
|
|
1003
|
+
*/
|
|
1004
|
+
get: operations["list-orders"];
|
|
1005
|
+
put?: never;
|
|
1006
|
+
post?: never;
|
|
1007
|
+
delete?: never;
|
|
1008
|
+
options?: never;
|
|
1009
|
+
head?: never;
|
|
1010
|
+
patch?: never;
|
|
1011
|
+
trace?: never;
|
|
1012
|
+
};
|
|
1013
|
+
"/account/v1/orders/{orderId}": {
|
|
1014
|
+
parameters: {
|
|
1015
|
+
query?: never;
|
|
1016
|
+
header?: never;
|
|
1017
|
+
path: {
|
|
1018
|
+
orderId: components["parameters"]["OrderId"];
|
|
1019
|
+
};
|
|
1020
|
+
cookie?: never;
|
|
1021
|
+
};
|
|
1022
|
+
/** Get order */
|
|
1023
|
+
get: operations["get-order"];
|
|
1024
|
+
put?: never;
|
|
1025
|
+
post?: never;
|
|
1026
|
+
delete?: never;
|
|
1027
|
+
options?: never;
|
|
1028
|
+
head?: never;
|
|
1029
|
+
patch?: never;
|
|
1030
|
+
trace?: never;
|
|
1031
|
+
};
|
|
1032
|
+
"/account/v1/orders/{orderId}/items": {
|
|
1033
|
+
parameters: {
|
|
1034
|
+
query?: never;
|
|
1035
|
+
header?: never;
|
|
1036
|
+
path: {
|
|
1037
|
+
orderId: components["parameters"]["OrderId"];
|
|
1038
|
+
};
|
|
1039
|
+
cookie?: never;
|
|
1040
|
+
};
|
|
1041
|
+
/**
|
|
1042
|
+
* List order items
|
|
1043
|
+
* @description One entry per item bought, with the price charged and the period it covers.
|
|
1044
|
+
*/
|
|
1045
|
+
get: operations["list-order-items"];
|
|
1046
|
+
put?: never;
|
|
1047
|
+
post?: never;
|
|
1048
|
+
delete?: never;
|
|
1049
|
+
options?: never;
|
|
1050
|
+
head?: never;
|
|
1051
|
+
patch?: never;
|
|
1052
|
+
trace?: never;
|
|
1053
|
+
};
|
|
1054
|
+
"/account/v1/entitlements": {
|
|
1055
|
+
parameters: {
|
|
1056
|
+
query?: never;
|
|
1057
|
+
header?: never;
|
|
1058
|
+
path?: never;
|
|
1059
|
+
cookie?: never;
|
|
1060
|
+
};
|
|
1061
|
+
/**
|
|
1062
|
+
* List entitlements
|
|
1063
|
+
* @description Capabilities that come with what has been bought. A capability that is not held simply
|
|
1064
|
+
* does not appear, so that "this does not exist" and "this has not been bought" cannot be
|
|
1065
|
+
* confused.
|
|
1066
|
+
*
|
|
1067
|
+
* Derived from live subscriptions rather than stored, so this always agrees with what is
|
|
1068
|
+
* being paid for. It stops being listed as soon as the subscription providing it ends.
|
|
1069
|
+
*/
|
|
1070
|
+
get: operations["list-entitlements"];
|
|
1071
|
+
put?: never;
|
|
1072
|
+
post?: never;
|
|
1073
|
+
delete?: never;
|
|
1074
|
+
options?: never;
|
|
1075
|
+
head?: never;
|
|
1076
|
+
patch?: never;
|
|
1077
|
+
trace?: never;
|
|
1078
|
+
};
|
|
1079
|
+
}
|
|
1080
|
+
export type webhooks = Record<string, never>;
|
|
1081
|
+
export interface components {
|
|
1082
|
+
schemas: {
|
|
1083
|
+
/**
|
|
1084
|
+
* @description Whether a fulfilled purchase may end immediately or only after its paid term. Does not grant a refund. When absent, the terms are not configured and termination requires review.
|
|
1085
|
+
* @enum {string}
|
|
1086
|
+
*/
|
|
1087
|
+
TerminationPolicy: "immediate" | "period_end";
|
|
1088
|
+
/**
|
|
1089
|
+
* @description Prorated returns the unused value of paid service periods using integer-second duration ratios. Setup fees are excluded. Tax and funds follow the original invoice and payment sources.
|
|
1090
|
+
* @enum {string}
|
|
1091
|
+
*/
|
|
1092
|
+
RefundPolicy: "none" | "prorated";
|
|
1093
|
+
CancellationPreview: {
|
|
1094
|
+
/** Format: uuid */
|
|
1095
|
+
subscription_id: string;
|
|
1096
|
+
mode: components["schemas"]["TerminationPolicy"];
|
|
1097
|
+
/** Format: date-time */
|
|
1098
|
+
scheduled_at?: string;
|
|
1099
|
+
refundable_amount: string;
|
|
1100
|
+
currency: string;
|
|
1101
|
+
};
|
|
1102
|
+
CancellationRequestCreate: {
|
|
1103
|
+
mode?: components["schemas"]["TerminationPolicy"];
|
|
1104
|
+
/** @default false */
|
|
1105
|
+
forfeit_remaining_value?: boolean;
|
|
1106
|
+
reason: string;
|
|
1107
|
+
};
|
|
1108
|
+
/** @description A cancellation request for the original purchase. scheduled_at is the intended time; effective_at is the confirmed end of service. The request alone does not stop metering or issue a refund. */
|
|
1109
|
+
CancellationRequest: {
|
|
1110
|
+
reason?: string;
|
|
1111
|
+
/** Format: uuid */
|
|
1112
|
+
id: string;
|
|
1113
|
+
/** Format: uuid */
|
|
1114
|
+
subscription_id: string;
|
|
1115
|
+
/** @enum {string} */
|
|
1116
|
+
status: "requested" | "scheduled" | "releasing" | "failed" | "completed" | "canceled";
|
|
1117
|
+
/** @enum {string} */
|
|
1118
|
+
mode: "immediate" | "period_end";
|
|
1119
|
+
/** Format: date-time */
|
|
1120
|
+
requested_at: string;
|
|
1121
|
+
/** Format: date-time */
|
|
1122
|
+
scheduled_at?: string;
|
|
1123
|
+
/** Format: date-time */
|
|
1124
|
+
effective_at?: string;
|
|
1125
|
+
/** Format: date-time */
|
|
1126
|
+
completed_at?: string;
|
|
1127
|
+
/** Format: date-time */
|
|
1128
|
+
release_started_at?: string;
|
|
1129
|
+
/** Format: date-time */
|
|
1130
|
+
canceled_at?: string;
|
|
1131
|
+
forfeit_remaining_value: boolean;
|
|
1132
|
+
failure_code?: string;
|
|
1133
|
+
failure_reason?: string;
|
|
1134
|
+
};
|
|
1135
|
+
Error: {
|
|
1136
|
+
code?: string;
|
|
1137
|
+
message: string;
|
|
1138
|
+
/**
|
|
1139
|
+
* @description What a given `code` carries alongside the message. The keys depend on the code,
|
|
1140
|
+
* and a client that does not recognise one ignores it.
|
|
1141
|
+
*/
|
|
1142
|
+
meta?: {
|
|
1143
|
+
[key: string]: unknown;
|
|
1144
|
+
};
|
|
1145
|
+
/** Format: int64 */
|
|
1146
|
+
status: number;
|
|
1147
|
+
};
|
|
1148
|
+
Product: {
|
|
1149
|
+
id: components["schemas"]["ProductID"];
|
|
1150
|
+
name: string;
|
|
1151
|
+
description?: string;
|
|
1152
|
+
};
|
|
1153
|
+
/** @description Immutable platform service identifier, such as compute, canopy or assistant. */
|
|
1154
|
+
ProductID: string;
|
|
1155
|
+
ProductList: {
|
|
1156
|
+
items: components["schemas"]["Product"][];
|
|
1157
|
+
/** Format: int64 */
|
|
1158
|
+
total_count?: number;
|
|
1159
|
+
};
|
|
1160
|
+
Plan: {
|
|
1161
|
+
enabled: boolean;
|
|
1162
|
+
lookup_key?: string;
|
|
1163
|
+
product: components["schemas"]["Product"];
|
|
1164
|
+
features: components["schemas"]["PlanFeature"][];
|
|
1165
|
+
/** Format: uuid */
|
|
1166
|
+
id: string;
|
|
1167
|
+
product_id: components["schemas"]["ProductID"];
|
|
1168
|
+
name: string;
|
|
1169
|
+
description?: string;
|
|
1170
|
+
};
|
|
1171
|
+
PlanList: {
|
|
1172
|
+
items: components["schemas"]["Plan"][];
|
|
1173
|
+
/** Format: int64 */
|
|
1174
|
+
total_count?: number;
|
|
1175
|
+
};
|
|
1176
|
+
Price: {
|
|
1177
|
+
rate_card?: components["schemas"]["ObjectIdentity"];
|
|
1178
|
+
lookup_key?: string;
|
|
1179
|
+
product: components["schemas"]["Product"];
|
|
1180
|
+
plan: components["schemas"]["ObjectIdentity"];
|
|
1181
|
+
/** Format: uuid */
|
|
1182
|
+
meter_id?: string;
|
|
1183
|
+
meter?: components["schemas"]["ObjectIdentity"];
|
|
1184
|
+
unit_quantity: string;
|
|
1185
|
+
enabled?: boolean;
|
|
1186
|
+
termination_policy?: components["schemas"]["TerminationPolicy"];
|
|
1187
|
+
refund_policy?: components["schemas"]["RefundPolicy"];
|
|
1188
|
+
product_id?: components["schemas"]["ProductID"];
|
|
1189
|
+
/** Format: uuid */
|
|
1190
|
+
id: string;
|
|
1191
|
+
/** Format: uuid */
|
|
1192
|
+
plan_id: string;
|
|
1193
|
+
currency: string;
|
|
1194
|
+
/**
|
|
1195
|
+
* @description `postpaid` charges for what is used, `prepaid` buys a period in advance, `one_time`
|
|
1196
|
+
* charges once.
|
|
1197
|
+
* @enum {string}
|
|
1198
|
+
*/
|
|
1199
|
+
type: "postpaid" | "prepaid" | "one_time";
|
|
1200
|
+
/**
|
|
1201
|
+
* @description How the amount is arrived at. `rated` means the rate depends on attributes such as
|
|
1202
|
+
* region or machine type, and is looked up on a price list.
|
|
1203
|
+
* @enum {string}
|
|
1204
|
+
*/
|
|
1205
|
+
billing_scheme: "per_unit" | "tiered" | "rated";
|
|
1206
|
+
/** @description Present for `per_unit`. */
|
|
1207
|
+
unit_amount?: components["schemas"]["Money"];
|
|
1208
|
+
/**
|
|
1209
|
+
* @description `none` for a price that is not tiered, which is most of them.
|
|
1210
|
+
*
|
|
1211
|
+
* Otherwise `graduated` charges each band at its own rate, and `volume` charges
|
|
1212
|
+
* everything at the rate of the band the total falls in.
|
|
1213
|
+
* @enum {string}
|
|
1214
|
+
*/
|
|
1215
|
+
tiers_mode?: "none" | "graduated" | "volume";
|
|
1216
|
+
/** @description Present for `tiered`, in ascending order. */
|
|
1217
|
+
tiers?: components["schemas"]["Tier"][];
|
|
1218
|
+
/**
|
|
1219
|
+
* Format: uuid
|
|
1220
|
+
* @description For `rated` prices, the price list the rates are read from.
|
|
1221
|
+
*/
|
|
1222
|
+
rate_card_id?: string;
|
|
1223
|
+
/** @description The smallest quantity that can be bought. Absent means no lower bound. */
|
|
1224
|
+
min_quantity?: string;
|
|
1225
|
+
/**
|
|
1226
|
+
* @description The largest purchasable quantity. Omitted when no maximum applies. A quantity above this limit is
|
|
1227
|
+
* rejected with BILLING_PRICE_INVALID and field=max_quantity.
|
|
1228
|
+
*/
|
|
1229
|
+
max_quantity?: string;
|
|
1230
|
+
/** @description Quantities must be a multiple of this. Absent means any quantity within the bounds. */
|
|
1231
|
+
quantity_step?: string;
|
|
1232
|
+
/** @description For prepaid prices, how many periods one purchase covers. */
|
|
1233
|
+
interval_count?: number;
|
|
1234
|
+
/** @enum {string} */
|
|
1235
|
+
interval: "none" | "day" | "month" | "year";
|
|
1236
|
+
setup_fee?: components["schemas"]["Money"];
|
|
1237
|
+
};
|
|
1238
|
+
PriceList: {
|
|
1239
|
+
items: components["schemas"]["Price"][];
|
|
1240
|
+
/** Format: int64 */
|
|
1241
|
+
total_count?: number;
|
|
1242
|
+
};
|
|
1243
|
+
Rate: {
|
|
1244
|
+
meter: components["schemas"]["ObjectIdentity"];
|
|
1245
|
+
/** @description The unit readings arrive in, such as `core-second`. */
|
|
1246
|
+
unit?: string;
|
|
1247
|
+
/** @description The attributes this rate applies to, such as region and machine type. */
|
|
1248
|
+
dimensions: {
|
|
1249
|
+
[key: string]: string;
|
|
1250
|
+
};
|
|
1251
|
+
/** @enum {string} */
|
|
1252
|
+
pricing_model: "per_unit" | "graduated" | "volume";
|
|
1253
|
+
/** @description Present for `per_unit`. Tiered rates carry their amounts on the tiers. */
|
|
1254
|
+
unit_amount?: components["schemas"]["Money"];
|
|
1255
|
+
/** @description Present for `graduated` and `volume`, in ascending order. */
|
|
1256
|
+
tiers?: components["schemas"]["Tier"][];
|
|
1257
|
+
/**
|
|
1258
|
+
* @description How many measured units one amount covers. An hourly rate on a per-second meter is
|
|
1259
|
+
* `"3600"`.
|
|
1260
|
+
*/
|
|
1261
|
+
unit_quantity?: string;
|
|
1262
|
+
currency: string;
|
|
1263
|
+
/** Format: date-time */
|
|
1264
|
+
effective_from: string;
|
|
1265
|
+
/** Format: date-time */
|
|
1266
|
+
effective_to?: string | null;
|
|
1267
|
+
};
|
|
1268
|
+
RateList: {
|
|
1269
|
+
items: components["schemas"]["Rate"][];
|
|
1270
|
+
/** Format: int64 */
|
|
1271
|
+
total_count?: number;
|
|
1272
|
+
};
|
|
1273
|
+
/**
|
|
1274
|
+
* @description Identify a price directly, or select a price for a plan. For each resource give its ID or lookup key, never both. Lookup keys require product_id.
|
|
1275
|
+
*
|
|
1276
|
+
* A line that gives a meter, `dimensions` or `duration_seconds` estimates usage and is
|
|
1277
|
+
* priced only at a postpaid price. Such a line is refused with HTTP 400
|
|
1278
|
+
* `BILLING_PURCHASE_INVALID` when `price_type` is `prepaid` or `one_time`, or when the price
|
|
1279
|
+
* it names is not postpaid; `meta.field` is `price_type`, `price_id` or `price_lookup_key`
|
|
1280
|
+
* accordingly. When the plan has no postpaid price, the line is returned unpriced with
|
|
1281
|
+
* `no_price`.
|
|
1282
|
+
*/
|
|
1283
|
+
QuoteLine: {
|
|
1284
|
+
price_lookup_key?: string;
|
|
1285
|
+
plan_lookup_key?: string;
|
|
1286
|
+
meter_lookup_key?: string;
|
|
1287
|
+
/** Format: uuid */
|
|
1288
|
+
price_id?: string;
|
|
1289
|
+
product_id?: components["schemas"]["ProductID"];
|
|
1290
|
+
/** Format: uuid */
|
|
1291
|
+
plan_id?: string;
|
|
1292
|
+
/** Format: uuid */
|
|
1293
|
+
meter_id?: string;
|
|
1294
|
+
/**
|
|
1295
|
+
* @description The attributes the price depends on — region, instance type, token class.
|
|
1296
|
+
*
|
|
1297
|
+
* Required when the price draws its rates from a price list, which is how anything
|
|
1298
|
+
* sold by region or by machine type is priced. A price that carries a single unit
|
|
1299
|
+
* amount, or a ladder, has no attributes to give and takes none.
|
|
1300
|
+
*
|
|
1301
|
+
* Every attribute the meter declares must be present. A combination with no rate
|
|
1302
|
+
* covering it is refused rather than priced at zero.
|
|
1303
|
+
*/
|
|
1304
|
+
dimensions?: {
|
|
1305
|
+
[key: string]: string;
|
|
1306
|
+
};
|
|
1307
|
+
/**
|
|
1308
|
+
* @description Narrows the selection when a plan offers more than one billing type.
|
|
1309
|
+
* @enum {string}
|
|
1310
|
+
*/
|
|
1311
|
+
price_type?: "postpaid" | "prepaid" | "one_time";
|
|
1312
|
+
/** @enum {string} */
|
|
1313
|
+
interval?: "none" | "day" | "month" | "year";
|
|
1314
|
+
interval_count?: number;
|
|
1315
|
+
quantity: string;
|
|
1316
|
+
/**
|
|
1317
|
+
* Format: int64
|
|
1318
|
+
* @description For metered items, how long to price for. This allows an estimate such as "about
|
|
1319
|
+
* this much per month" to be shown before anything exists. The priced quantity is
|
|
1320
|
+
* `quantity` multiplied by this duration.
|
|
1321
|
+
*/
|
|
1322
|
+
duration_seconds?: number;
|
|
1323
|
+
};
|
|
1324
|
+
EstimateRequest: {
|
|
1325
|
+
/** @description Must be one the catalogue publishes. */
|
|
1326
|
+
currency: string;
|
|
1327
|
+
lines: components["schemas"]["QuoteLine"][];
|
|
1328
|
+
};
|
|
1329
|
+
QuoteLineResult: {
|
|
1330
|
+
/** @description Tax included in the account quote. Absent in public catalogue estimates. */
|
|
1331
|
+
tax_amount?: components["schemas"]["Money"];
|
|
1332
|
+
/** @description Tax already included in the displayed price. */
|
|
1333
|
+
tax_included_amount?: components["schemas"]["Money"];
|
|
1334
|
+
/** @description Which line of the request this answers. */
|
|
1335
|
+
index: number;
|
|
1336
|
+
/**
|
|
1337
|
+
* @description Whether a price was found for this line. Read this before anything else.
|
|
1338
|
+
*
|
|
1339
|
+
* A single item with no price no longer fails the whole request. A catalogue
|
|
1340
|
+
* almost always has something not yet priced, and refusing the request would
|
|
1341
|
+
* leave no way to render a list in which a few entries are simply not on sale.
|
|
1342
|
+
*
|
|
1343
|
+
* When false, `price_id`, `unit_amount` and `amount` are absent and
|
|
1344
|
+
* `unpriced_reason` states what is missing.
|
|
1345
|
+
*/
|
|
1346
|
+
priced: boolean;
|
|
1347
|
+
/**
|
|
1348
|
+
* @description Why no price was found; `none` while `priced` is true.
|
|
1349
|
+
*
|
|
1350
|
+
* The last four are told apart because their remedies differ: the price points
|
|
1351
|
+
* at no price list, the list holds no rate for that meter, that exact combination
|
|
1352
|
+
* of attributes is not configured, or it is configured but nothing is in effect
|
|
1353
|
+
* at the moment asked about.
|
|
1354
|
+
* @enum {string}
|
|
1355
|
+
*/
|
|
1356
|
+
unpriced_reason?: "none" | "no_price" | "no_rate_card" | "no_meter" | "no_dimensions" | "no_effective_rule";
|
|
1357
|
+
/**
|
|
1358
|
+
* Format: uuid
|
|
1359
|
+
* @description The price selected. Returned whenever `priced` is true, including when the
|
|
1360
|
+
* request identified the item indirectly, so that the choice can be confirmed.
|
|
1361
|
+
*/
|
|
1362
|
+
price_id?: string;
|
|
1363
|
+
plan_name?: string;
|
|
1364
|
+
unit_amount?: components["schemas"]["Money"];
|
|
1365
|
+
/**
|
|
1366
|
+
* @description The quantity actually priced. When `duration_seconds` is given, it is the requested
|
|
1367
|
+
* `quantity` multiplied by that duration.
|
|
1368
|
+
*/
|
|
1369
|
+
quantity?: string;
|
|
1370
|
+
/** @description Not rounded. Round only for display. */
|
|
1371
|
+
amount?: components["schemas"]["Money"];
|
|
1372
|
+
currency: string;
|
|
1373
|
+
};
|
|
1374
|
+
Quote: {
|
|
1375
|
+
lines?: components["schemas"]["QuoteLineResult"][];
|
|
1376
|
+
/**
|
|
1377
|
+
* @description What would be owed in total. Amounts to be returned are not netted off it.
|
|
1378
|
+
*
|
|
1379
|
+
* Null when any line could not be priced. What would be owed is not knowable then, and a
|
|
1380
|
+
* total that silently left the unpriced lines out would read as a smaller bill rather than
|
|
1381
|
+
* an incomplete one — the per-line `priced` flag is easy to skip, a missing total is not.
|
|
1382
|
+
*/
|
|
1383
|
+
total?: components["schemas"]["Money"] | null;
|
|
1384
|
+
currency: string;
|
|
1385
|
+
};
|
|
1386
|
+
BillingAccount: {
|
|
1387
|
+
/** Format: int64 */
|
|
1388
|
+
id: number;
|
|
1389
|
+
/** @description What you call this account. */
|
|
1390
|
+
name?: string;
|
|
1391
|
+
/** @description The name invoices are made out to. Copied onto each invoice when it is issued. */
|
|
1392
|
+
legal_name?: string;
|
|
1393
|
+
/** @description Where invoices are sent. */
|
|
1394
|
+
email?: string;
|
|
1395
|
+
address_line1?: string;
|
|
1396
|
+
address_line2?: string;
|
|
1397
|
+
address_city?: string;
|
|
1398
|
+
address_state?: string;
|
|
1399
|
+
address_postal_code?: string;
|
|
1400
|
+
/** @description Two-letter code. */
|
|
1401
|
+
address_country?: string;
|
|
1402
|
+
tax_id?: string;
|
|
1403
|
+
/** @description Fixed when the account was opened. */
|
|
1404
|
+
currency: string;
|
|
1405
|
+
/** @enum {string} */
|
|
1406
|
+
status: "active" | "suspended" | "closed";
|
|
1407
|
+
/**
|
|
1408
|
+
* @description How far past the suspension threshold this account may go before its resources are
|
|
1409
|
+
* suspended. "0" means none: the account is suspended as soon as it crosses the threshold.
|
|
1410
|
+
*/
|
|
1411
|
+
grace_amount?: string;
|
|
1412
|
+
/**
|
|
1413
|
+
* Format: int64
|
|
1414
|
+
* @description How long this account has to top up after crossing the suspension threshold.
|
|
1415
|
+
* 0 means none. Whichever runs out first — this or grace_amount — ends the grace.
|
|
1416
|
+
*/
|
|
1417
|
+
grace_period_seconds?: number;
|
|
1418
|
+
/** Format: date-time */
|
|
1419
|
+
created_at: string;
|
|
1420
|
+
};
|
|
1421
|
+
/** @description A currency a billing account can be opened in. */
|
|
1422
|
+
Currency: {
|
|
1423
|
+
/** @description ISO 4217 alpha-3, uppercase. */
|
|
1424
|
+
code: string;
|
|
1425
|
+
/**
|
|
1426
|
+
* Format: int32
|
|
1427
|
+
* @description Decimal places of the currency, the ISO 4217 minor unit.
|
|
1428
|
+
*/
|
|
1429
|
+
exponent: number;
|
|
1430
|
+
name: string;
|
|
1431
|
+
/** @description The smallest top-up accepted. Zero means no lower bound. */
|
|
1432
|
+
minimum_top_up: components["schemas"]["Money"];
|
|
1433
|
+
};
|
|
1434
|
+
CurrencyList: {
|
|
1435
|
+
items: components["schemas"]["Currency"][];
|
|
1436
|
+
};
|
|
1437
|
+
BillingAccountCreate: {
|
|
1438
|
+
currency: string;
|
|
1439
|
+
name?: string;
|
|
1440
|
+
legal_name?: string;
|
|
1441
|
+
email?: string;
|
|
1442
|
+
};
|
|
1443
|
+
BillingAccountUpdate: {
|
|
1444
|
+
name?: string;
|
|
1445
|
+
legal_name?: string;
|
|
1446
|
+
email?: string;
|
|
1447
|
+
address_line1?: string;
|
|
1448
|
+
address_line2?: string;
|
|
1449
|
+
address_city?: string;
|
|
1450
|
+
address_state?: string;
|
|
1451
|
+
address_postal_code?: string;
|
|
1452
|
+
address_country?: string;
|
|
1453
|
+
tax_id?: string;
|
|
1454
|
+
};
|
|
1455
|
+
BillingAccountList: {
|
|
1456
|
+
items: components["schemas"]["BillingAccount"][];
|
|
1457
|
+
/** Format: int64 */
|
|
1458
|
+
total_count?: number;
|
|
1459
|
+
};
|
|
1460
|
+
/** @description Account balance, credits, and unpaid charges are reported separately. */
|
|
1461
|
+
AccountBalance: {
|
|
1462
|
+
/** Format: int64 */
|
|
1463
|
+
billing_account_id: number;
|
|
1464
|
+
currency: string;
|
|
1465
|
+
/**
|
|
1466
|
+
* @description Prepaid funds in the account currency, excluding credits. May be negative after a payment
|
|
1467
|
+
* dispute. Outstanding charges are reported separately in due; this value is not a withdrawal quote.
|
|
1468
|
+
*/
|
|
1469
|
+
balance: components["schemas"]["Money"];
|
|
1470
|
+
/**
|
|
1471
|
+
* @description The recorded remaining credit, including restricted grants. It is not withdrawable
|
|
1472
|
+
* and is not part of balance. credit_groups describes currently valid credit by permitted use; a positive
|
|
1473
|
+
* credits balance does not imply that due is zero.
|
|
1474
|
+
*/
|
|
1475
|
+
credits: components["schemas"]["Money"];
|
|
1476
|
+
/**
|
|
1477
|
+
* @description balance plus credits, the sum shown as the account's funds. Credits count at their recorded remaining
|
|
1478
|
+
* amount, including restricted grants that only pay for what they allow, so total is an upper bound of what
|
|
1479
|
+
* the account can pay with rather than a withdrawable amount. due is reported separately and is not subtracted.
|
|
1480
|
+
*/
|
|
1481
|
+
total: components["schemas"]["Money"];
|
|
1482
|
+
/**
|
|
1483
|
+
* @description The part of currently valid credit that only pays for what its restrictions allow, such as a single
|
|
1484
|
+
* service, a billing type or a first purchase. The rest of the valid credit pays for anything on the account.
|
|
1485
|
+
* Included in credits and therefore in total.
|
|
1486
|
+
*/
|
|
1487
|
+
restricted_credits: components["schemas"]["Money"];
|
|
1488
|
+
/**
|
|
1489
|
+
* @description Currently valid, unspent credit grouped by permitted use. Restrictions and
|
|
1490
|
+
* validity dates determine which charges a group can cover, so these groups are not a general
|
|
1491
|
+
* spendable balance and may differ from the recorded credits total.
|
|
1492
|
+
*/
|
|
1493
|
+
credit_groups: components["schemas"]["CreditGroup"][];
|
|
1494
|
+
/**
|
|
1495
|
+
* @description Owed and not yet paid: metered usage that balance and applicable credit could not cover as it was
|
|
1496
|
+
* charged, and issued usage invoices still unpaid. The account is in arrears while this
|
|
1497
|
+
* is above zero. Topping up pays it on the next collection.
|
|
1498
|
+
*/
|
|
1499
|
+
due: components["schemas"]["Money"];
|
|
1500
|
+
};
|
|
1501
|
+
CreditGroup: {
|
|
1502
|
+
/** @description What the credit in this group may pay for. No restrictions means anything on the account. */
|
|
1503
|
+
applies_to: components["schemas"]["Applicability"];
|
|
1504
|
+
amount: components["schemas"]["Money"];
|
|
1505
|
+
};
|
|
1506
|
+
ProjectBillingInfo: {
|
|
1507
|
+
/** Format: uuid */
|
|
1508
|
+
project_id: string;
|
|
1509
|
+
/** Format: int64 */
|
|
1510
|
+
billing_account_id: number;
|
|
1511
|
+
account_name?: string;
|
|
1512
|
+
currency: string;
|
|
1513
|
+
/** Format: date-time */
|
|
1514
|
+
effective_from: string;
|
|
1515
|
+
/** Format: date-time */
|
|
1516
|
+
effective_to?: string | null;
|
|
1517
|
+
};
|
|
1518
|
+
ProjectBillingInfoList: {
|
|
1519
|
+
items: components["schemas"]["ProjectBillingInfo"][];
|
|
1520
|
+
/** Format: int64 */
|
|
1521
|
+
total_count?: number;
|
|
1522
|
+
};
|
|
1523
|
+
ProjectBillingInfoSet: {
|
|
1524
|
+
/** Format: int64 */
|
|
1525
|
+
billing_account_id: number;
|
|
1526
|
+
};
|
|
1527
|
+
/** @description A top-up attempt and its outcome. A successful top-up adds a traceable amount to the balance; it is not a credit grant and has no associated invoice. */
|
|
1528
|
+
TopUp: {
|
|
1529
|
+
/** Format: uuid */
|
|
1530
|
+
id: string;
|
|
1531
|
+
/** Format: int64 */
|
|
1532
|
+
billing_account_id: number;
|
|
1533
|
+
account: components["schemas"]["AccountIdentity"];
|
|
1534
|
+
/** @description What is credited to the account, in the account's own currency. */
|
|
1535
|
+
amount: components["schemas"]["Money"];
|
|
1536
|
+
currency: string;
|
|
1537
|
+
/**
|
|
1538
|
+
* @description The part of this top-up still held in the balance. Pending refunds and payouts can temporarily
|
|
1539
|
+
* reserve part of it; it is not a promise that the whole amount is immediately withdrawable.
|
|
1540
|
+
*/
|
|
1541
|
+
remaining_amount?: components["schemas"]["Money"];
|
|
1542
|
+
/**
|
|
1543
|
+
* @description `pending` until the payment gateway reaches a result. The balance increases on `succeeded`.
|
|
1544
|
+
*
|
|
1545
|
+
* `failed` means the gateway declined the payment. A declined attempt ends the top-up at once
|
|
1546
|
+
* and the payment is withdrawn at the gateway; to pay another way, create a new top-up.
|
|
1547
|
+
* `canceled` means the attempt was withdrawn without collecting money; `cancellation_reason`
|
|
1548
|
+
* says why. Unknown gateway outcomes remain `pending`, and a browser redirect is not proof of
|
|
1549
|
+
* payment.
|
|
1550
|
+
*
|
|
1551
|
+
* `failed` and `canceled` are final. If the gateway nevertheless collects payment for such an
|
|
1552
|
+
* attempt, the amount is credited as a separate `succeeded` top-up.
|
|
1553
|
+
* @enum {string}
|
|
1554
|
+
*/
|
|
1555
|
+
status: "pending" | "succeeded" | "failed" | "canceled";
|
|
1556
|
+
/** @description Why the top-up was withdrawn. Present with `canceled`. */
|
|
1557
|
+
cancellation_reason?: components["schemas"]["PaymentCancellationReason"];
|
|
1558
|
+
/** @description Which payment gateway collected it. */
|
|
1559
|
+
payment_gateway?: string;
|
|
1560
|
+
/** @description The selected payment method, such as card, wechat_pay or alipay. */
|
|
1561
|
+
method_type?: string;
|
|
1562
|
+
/**
|
|
1563
|
+
* @description The currency the customer was actually charged in, when the checkout page collected a
|
|
1564
|
+
* local one. Absent when it was the same as the account's.
|
|
1565
|
+
*/
|
|
1566
|
+
presentment_currency?: string;
|
|
1567
|
+
/**
|
|
1568
|
+
* @description What was charged, in `presentment_currency`. It will not equal `amount`, and it is
|
|
1569
|
+
* the figure that appears on the customer's card or wallet statement.
|
|
1570
|
+
*/
|
|
1571
|
+
presentment_amount?: components["schemas"]["Money"];
|
|
1572
|
+
/**
|
|
1573
|
+
* @description Why the gateway declined it. Present with `failed`. The value is the gateway's own code,
|
|
1574
|
+
* passed on unchanged: the card issuer's decline code when there is one (Stripe's decline_code,
|
|
1575
|
+
* such as insufficient_funds or lost_card), otherwise the gateway's error code (Stripe's code,
|
|
1576
|
+
* such as card_declined, expired_card or payment_intent_authentication_failure). Clients map it
|
|
1577
|
+
* to their own wording and treat an unknown value as a generic decline.
|
|
1578
|
+
*/
|
|
1579
|
+
failure_reason?: string;
|
|
1580
|
+
/**
|
|
1581
|
+
* @description The customer's next step while the top-up is `pending` and the gateway still awaits them. Returned
|
|
1582
|
+
* by create-top-up and get-top-up as the gateway currently reports it; absent from list-top-ups and
|
|
1583
|
+
* once the top-up has a result. Completing it does not replace confirmation of receipt.
|
|
1584
|
+
*/
|
|
1585
|
+
action?: components["schemas"]["PaymentAction"];
|
|
1586
|
+
/** Format: date-time */
|
|
1587
|
+
created_at: string;
|
|
1588
|
+
/**
|
|
1589
|
+
* Format: date-time
|
|
1590
|
+
* @description When the funds arrived. Later than `created_at` — by days for a bank transfer — so
|
|
1591
|
+
* reconciling against a statement uses this rather than the moment it was started.
|
|
1592
|
+
* Absent until the payment completes.
|
|
1593
|
+
*/
|
|
1594
|
+
settled_at?: string | null;
|
|
1595
|
+
};
|
|
1596
|
+
TopUpCreate: {
|
|
1597
|
+
/** @description The gateway explicitly selected from the available payment options. */
|
|
1598
|
+
payment_gateway: string;
|
|
1599
|
+
/** @description The selected method, such as card, wechat_pay or alipay. */
|
|
1600
|
+
method_type: string;
|
|
1601
|
+
/**
|
|
1602
|
+
* Format: uuid
|
|
1603
|
+
* @description The ID of this top-up attempt. Keep it before submitting and query it after an uncertain response.
|
|
1604
|
+
*/
|
|
1605
|
+
id: string;
|
|
1606
|
+
/** Format: int64 */
|
|
1607
|
+
billing_account_id: number;
|
|
1608
|
+
/**
|
|
1609
|
+
* @description In the account's currency, and no finer than that currency's smallest unit:
|
|
1610
|
+
* two decimals for most, none for the yen. A finer amount is refused here rather
|
|
1611
|
+
* than at the checkout page, where the customer would see the gateway's own wording
|
|
1612
|
+
* instead of an explanation.
|
|
1613
|
+
*
|
|
1614
|
+
* There is a minimum, which differs by currency. Below it the gateway's fee
|
|
1615
|
+
* exceeds the top-up itself, so such a payment costs more to accept than it brings.
|
|
1616
|
+
* The minimum in force is returned with the rejection.
|
|
1617
|
+
*/
|
|
1618
|
+
amount: components["schemas"]["Money"];
|
|
1619
|
+
/**
|
|
1620
|
+
* Format: uuid
|
|
1621
|
+
* @description Charge a saved method instead of opening a checkout page.
|
|
1622
|
+
*/
|
|
1623
|
+
payment_method_id?: string;
|
|
1624
|
+
/** @description Where to send the customer after checkout. */
|
|
1625
|
+
return_url?: string;
|
|
1626
|
+
};
|
|
1627
|
+
AccountIdentity: {
|
|
1628
|
+
/** Format: int64 */
|
|
1629
|
+
id: number;
|
|
1630
|
+
name: string;
|
|
1631
|
+
currency: string;
|
|
1632
|
+
};
|
|
1633
|
+
TopUpList: {
|
|
1634
|
+
items: components["schemas"]["TopUp"][];
|
|
1635
|
+
/** Format: int64 */
|
|
1636
|
+
total_count?: number;
|
|
1637
|
+
};
|
|
1638
|
+
/**
|
|
1639
|
+
* @description Why a gateway payment was withdrawn. `abandoned` means the customer did not complete it within the time
|
|
1640
|
+
* allowed for payment. `requested_by_customer` means the customer canceled it.
|
|
1641
|
+
* @enum {string}
|
|
1642
|
+
*/
|
|
1643
|
+
PaymentCancellationReason: "abandoned" | "requested_by_customer";
|
|
1644
|
+
/** @description A payment gateway that accepts payment in the account's currency, with the methods it accepts. */
|
|
1645
|
+
PaymentOption: {
|
|
1646
|
+
/** @description The value to send as `payment_gateway`. */
|
|
1647
|
+
payment_gateway: string;
|
|
1648
|
+
methods: components["schemas"]["PaymentOptionMethod"][];
|
|
1649
|
+
};
|
|
1650
|
+
PaymentOptionMethod: {
|
|
1651
|
+
/** @description The value to send as `method_type`, such as card, wechat_pay or alipay. */
|
|
1652
|
+
method_type: string;
|
|
1653
|
+
/**
|
|
1654
|
+
* @description Whether a method of this type can be saved with create-payment-method-setup and charged later
|
|
1655
|
+
* without the customer present. Methods that are not reusable are paid anew each time.
|
|
1656
|
+
*/
|
|
1657
|
+
reusable: boolean;
|
|
1658
|
+
};
|
|
1659
|
+
PaymentOptionList: {
|
|
1660
|
+
items: components["schemas"]["PaymentOption"][];
|
|
1661
|
+
};
|
|
1662
|
+
PaymentMethod: {
|
|
1663
|
+
/** Format: uuid */
|
|
1664
|
+
id: string;
|
|
1665
|
+
/** Format: int64 */
|
|
1666
|
+
billing_account_id: number;
|
|
1667
|
+
payment_gateway: string;
|
|
1668
|
+
brand?: string;
|
|
1669
|
+
last4?: string;
|
|
1670
|
+
exp_month?: number | null;
|
|
1671
|
+
exp_year?: number | null;
|
|
1672
|
+
is_default: boolean;
|
|
1673
|
+
/** @enum {string} */
|
|
1674
|
+
status: "active" | "expired" | "removed";
|
|
1675
|
+
};
|
|
1676
|
+
PaymentMethodList: {
|
|
1677
|
+
items: components["schemas"]["PaymentMethod"][];
|
|
1678
|
+
/** Format: int64 */
|
|
1679
|
+
total_count?: number;
|
|
1680
|
+
};
|
|
1681
|
+
PaymentMethodSetup: {
|
|
1682
|
+
/** @description The selected gateway supporting saved payment methods. */
|
|
1683
|
+
payment_gateway: string;
|
|
1684
|
+
/** Format: int64 */
|
|
1685
|
+
billing_account_id: number;
|
|
1686
|
+
};
|
|
1687
|
+
/**
|
|
1688
|
+
* @description What the payment gateway's browser library needs in order to collect a card. There is
|
|
1689
|
+
* no address to redirect to: the form is rendered in the page, and the card goes straight
|
|
1690
|
+
* from the browser to the gateway.
|
|
1691
|
+
*/
|
|
1692
|
+
PaymentMethodSetupResult: {
|
|
1693
|
+
/**
|
|
1694
|
+
* @description The gateway's identifier for this attempt. Use it to tell a reloaded page apart
|
|
1695
|
+
* from a second attempt.
|
|
1696
|
+
*/
|
|
1697
|
+
setup_id: string;
|
|
1698
|
+
payment_gateway: string;
|
|
1699
|
+
/** @description Browser configuration and credentials for this card setup, including the provider's public key. No server secret is returned. */
|
|
1700
|
+
action: components["schemas"]["PaymentAction"];
|
|
1701
|
+
};
|
|
1702
|
+
/**
|
|
1703
|
+
* @description Applies eligible credit grants and the available balance as requested, then collects only the remainder
|
|
1704
|
+
* through the selected gateway. Grants restricted to other purchases are not counted as available funds.
|
|
1705
|
+
* An unresolved channel payment is reused; retries do not apply the grant or balance portions twice.
|
|
1706
|
+
* Without a gateway selection, insufficient account funds fail without starting an online payment.
|
|
1707
|
+
*/
|
|
1708
|
+
PayRequest: {
|
|
1709
|
+
/** @description Required to collect an online remainder. An existing attempt keeps its original gateway. */
|
|
1710
|
+
payment_gateway?: string;
|
|
1711
|
+
/** @description Required with payment_gateway; for example card, wechat_pay or alipay. */
|
|
1712
|
+
method_type?: string;
|
|
1713
|
+
/**
|
|
1714
|
+
* Format: uuid
|
|
1715
|
+
* @description Optional saved card owned by this billing account and belonging to the selected gateway. Omit to complete payment interactively.
|
|
1716
|
+
*/
|
|
1717
|
+
payment_method_id?: string;
|
|
1718
|
+
/**
|
|
1719
|
+
* @description Whether to apply the available balance. Credit grants are controlled separately by use_credits.
|
|
1720
|
+
* @default true
|
|
1721
|
+
*/
|
|
1722
|
+
use_balance?: boolean;
|
|
1723
|
+
/**
|
|
1724
|
+
* @description Apply eligible, unexpired credit grants before using the balance. This never withdraws grants or converts them into balance.
|
|
1725
|
+
* @default true
|
|
1726
|
+
*/
|
|
1727
|
+
use_credits?: boolean;
|
|
1728
|
+
return_url?: string;
|
|
1729
|
+
};
|
|
1730
|
+
/**
|
|
1731
|
+
* @description Name at least one invoice or order. They must all belong to the same account and share
|
|
1732
|
+
* its currency; anything else is refused rather than partly paid.
|
|
1733
|
+
*/
|
|
1734
|
+
PayTogetherRequest: {
|
|
1735
|
+
invoice_ids?: string[];
|
|
1736
|
+
order_ids?: string[];
|
|
1737
|
+
};
|
|
1738
|
+
/** @description The customer's next interaction. The gateway reports the actual payment outcome separately. */
|
|
1739
|
+
PaymentAction: {
|
|
1740
|
+
/** @enum {string} */
|
|
1741
|
+
type: "redirect" | "qr_code" | "sdk";
|
|
1742
|
+
/** @description Identifies the browser adapter for an SDK action, for example stripe. */
|
|
1743
|
+
provider?: string;
|
|
1744
|
+
/** Format: uri */
|
|
1745
|
+
url?: string;
|
|
1746
|
+
/** @description QR content to render and scan, not an image URL. */
|
|
1747
|
+
qr_code?: string;
|
|
1748
|
+
/** @description Short-lived client credential for this payment's browser confirmation. */
|
|
1749
|
+
client_secret?: string;
|
|
1750
|
+
public_key?: string;
|
|
1751
|
+
};
|
|
1752
|
+
/**
|
|
1753
|
+
* @description The current payment outcome.
|
|
1754
|
+
*
|
|
1755
|
+
* succeeded means payment is complete. processing means confirmation is pending; poll the invoice or
|
|
1756
|
+
* order rather than submitting another payment. requires_action means the customer must complete the
|
|
1757
|
+
* supplied action. failed means the attempt did not succeed and failure_reason explains the outcome; a
|
|
1758
|
+
* declined gateway payment is withdrawn at the gateway, and paying again starts a new payment with the
|
|
1759
|
+
* same or another method.
|
|
1760
|
+
* @enum {string}
|
|
1761
|
+
*/
|
|
1762
|
+
PaymentStatus: "succeeded" | "processing" | "requires_action" | "failed";
|
|
1763
|
+
PaymentResult: {
|
|
1764
|
+
transactions: components["schemas"]["Transaction"][];
|
|
1765
|
+
/**
|
|
1766
|
+
* Format: uuid
|
|
1767
|
+
* @description The gateway transaction, when one is involved. Balance and credit-grant payments are separate transactions.
|
|
1768
|
+
*/
|
|
1769
|
+
transaction_id?: string;
|
|
1770
|
+
status: components["schemas"]["PaymentStatus"];
|
|
1771
|
+
amount_paid: components["schemas"]["Money"];
|
|
1772
|
+
/**
|
|
1773
|
+
* @description What is still outstanding. Zero once the payment succeeds. Unchanged while
|
|
1774
|
+
* `processing`: nothing is collected until the gateway confirms it.
|
|
1775
|
+
*/
|
|
1776
|
+
amount_due: components["schemas"]["Money"];
|
|
1777
|
+
currency: string;
|
|
1778
|
+
/** @description Credit grants applied to this invoice. Not a payment from the balance and not withdrawable. */
|
|
1779
|
+
credit_applied?: components["schemas"]["Money"];
|
|
1780
|
+
/** @description The remaining amount submitted to the selected payment gateway. */
|
|
1781
|
+
gateway_amount?: components["schemas"]["Money"];
|
|
1782
|
+
payment_gateway?: string;
|
|
1783
|
+
method_type?: string;
|
|
1784
|
+
/**
|
|
1785
|
+
* @description The amount already paid from the account's balance toward this invoice. Retrying an online remainder
|
|
1786
|
+
* does not debit it again. A canceled purchase returns funds through its refund process.
|
|
1787
|
+
*/
|
|
1788
|
+
balance_applied?: components["schemas"]["Money"];
|
|
1789
|
+
action?: components["schemas"]["PaymentAction"];
|
|
1790
|
+
/**
|
|
1791
|
+
* @description Whether paying again is worth attempting. False for a refusal that will keep
|
|
1792
|
+
* happening — a closed account, an amount over a limit — so that a client does not
|
|
1793
|
+
* retry in a loop.
|
|
1794
|
+
*/
|
|
1795
|
+
retriable?: boolean;
|
|
1796
|
+
/** Format: uuid */
|
|
1797
|
+
invoice_id?: string | null;
|
|
1798
|
+
/** Format: uuid */
|
|
1799
|
+
order_id?: string | null;
|
|
1800
|
+
/**
|
|
1801
|
+
* @description Why the payment did not go through. Present with `failed`. For a declined gateway payment the
|
|
1802
|
+
* value is the gateway's own code, passed on unchanged: the card issuer's decline code when
|
|
1803
|
+
* there is one (Stripe's decline_code, such as insufficient_funds or lost_card), otherwise the
|
|
1804
|
+
* gateway's error code (Stripe's code, such as card_declined, expired_card or
|
|
1805
|
+
* payment_intent_authentication_failure). Clients map it to their own wording and treat an
|
|
1806
|
+
* unknown value as a generic decline.
|
|
1807
|
+
*/
|
|
1808
|
+
failure_reason?: string;
|
|
1809
|
+
};
|
|
1810
|
+
/**
|
|
1811
|
+
* @description A usage invoice stays `draft` through its month: each charge is added to it as it is priced
|
|
1812
|
+
* and paid from credits and balance as it goes. It is issued at the end of the month, becoming
|
|
1813
|
+
* `paid` when everything was covered and `open` when something is still owed.
|
|
1814
|
+
* @enum {string}
|
|
1815
|
+
*/
|
|
1816
|
+
InvoiceStatus: "draft" | "open" | "paid" | "void" | "uncollectible";
|
|
1817
|
+
Invoice: {
|
|
1818
|
+
/** Format: date-time */
|
|
1819
|
+
due_at?: string;
|
|
1820
|
+
amount_refunded?: string;
|
|
1821
|
+
tax_items: components["schemas"]["TaxItem"][];
|
|
1822
|
+
/**
|
|
1823
|
+
* Format: uuid
|
|
1824
|
+
* @description The purchase that produced this invoice. Absent on usage invoices.
|
|
1825
|
+
*/
|
|
1826
|
+
order_id?: string;
|
|
1827
|
+
/** Format: uuid */
|
|
1828
|
+
id: string;
|
|
1829
|
+
/** Format: int64 */
|
|
1830
|
+
billing_account_id: number;
|
|
1831
|
+
/** @description Numbered per account and per month. */
|
|
1832
|
+
number: string;
|
|
1833
|
+
/**
|
|
1834
|
+
* @description What produced it — metered usage for a period, a purchase, or a correction.
|
|
1835
|
+
* @enum {string}
|
|
1836
|
+
*/
|
|
1837
|
+
type?: "usage" | "order" | "adjustment";
|
|
1838
|
+
currency: string;
|
|
1839
|
+
status: components["schemas"]["InvoiceStatus"];
|
|
1840
|
+
/**
|
|
1841
|
+
* @description Sum of the line amounts before discounts. Where prices include tax, the tax contained in
|
|
1842
|
+
* each line's discounted amount is taken out here, so that total = subtotal -
|
|
1843
|
+
* discount_amount + tax_amount always holds.
|
|
1844
|
+
*/
|
|
1845
|
+
subtotal?: components["schemas"]["Money"];
|
|
1846
|
+
/** @description Sum of the line discounts, taken off before tax. */
|
|
1847
|
+
discount_amount?: components["schemas"]["Money"];
|
|
1848
|
+
tax_amount?: components["schemas"]["Money"];
|
|
1849
|
+
/** @description Successful credit-grant payments included in amount_paid. Does not reduce the receivable or tax base. */
|
|
1850
|
+
credit_applied?: components["schemas"]["Money"];
|
|
1851
|
+
/** @description Subtotal less discount plus tax. Balance and credit grants are payment sources, not reductions of the receivable. */
|
|
1852
|
+
total: components["schemas"]["Money"];
|
|
1853
|
+
amount_paid?: components["schemas"]["Money"];
|
|
1854
|
+
/** Format: date-time */
|
|
1855
|
+
period_start?: string | null;
|
|
1856
|
+
/**
|
|
1857
|
+
* Format: date-time
|
|
1858
|
+
* @description Exclusive.
|
|
1859
|
+
*/
|
|
1860
|
+
period_end?: string | null;
|
|
1861
|
+
/**
|
|
1862
|
+
* @description Who this was billed to, as recorded when the invoice was issued. Later changes to
|
|
1863
|
+
* the account do not alter it.
|
|
1864
|
+
*/
|
|
1865
|
+
customer_name?: string;
|
|
1866
|
+
customer_email?: string;
|
|
1867
|
+
customer_tax_id?: string;
|
|
1868
|
+
customer_address_line1?: string;
|
|
1869
|
+
customer_address_line2?: string;
|
|
1870
|
+
customer_address_city?: string;
|
|
1871
|
+
customer_address_state?: string;
|
|
1872
|
+
customer_address_postal_code?: string;
|
|
1873
|
+
customer_address_country?: string;
|
|
1874
|
+
/** Format: date-time */
|
|
1875
|
+
paid_at?: string | null;
|
|
1876
|
+
};
|
|
1877
|
+
InvoiceList: {
|
|
1878
|
+
items: components["schemas"]["Invoice"][];
|
|
1879
|
+
/** Format: int64 */
|
|
1880
|
+
total_count?: number;
|
|
1881
|
+
};
|
|
1882
|
+
InvoiceItem: {
|
|
1883
|
+
recurring_amount?: string;
|
|
1884
|
+
taxable?: boolean;
|
|
1885
|
+
/** @description Discount applied to this line before tax. */
|
|
1886
|
+
discount_amount?: string;
|
|
1887
|
+
/** @description Tax on the discounted line, including tax already included in the price. */
|
|
1888
|
+
tax_amount?: string;
|
|
1889
|
+
/** @description The part of tax_amount already included in amount. */
|
|
1890
|
+
tax_included_amount?: string;
|
|
1891
|
+
/**
|
|
1892
|
+
* Format: uuid
|
|
1893
|
+
* @description The original order line. Refunds follow that line's original payment sources.
|
|
1894
|
+
*/
|
|
1895
|
+
order_item_id?: string;
|
|
1896
|
+
/** Format: uuid */
|
|
1897
|
+
id: string;
|
|
1898
|
+
/** @enum {string} */
|
|
1899
|
+
type?: "usage" | "subscription" | "one_time" | "setup" | "adjustment";
|
|
1900
|
+
/** Format: uuid */
|
|
1901
|
+
project_id?: string | null;
|
|
1902
|
+
resource_id?: string;
|
|
1903
|
+
/**
|
|
1904
|
+
* @description The wording as recorded when the invoice was issued. It is not re-translated
|
|
1905
|
+
* afterwards, so that an invoice continues to read as it did when it was sent.
|
|
1906
|
+
*/
|
|
1907
|
+
description: string;
|
|
1908
|
+
unit?: string;
|
|
1909
|
+
quantity?: string;
|
|
1910
|
+
/** @description The part covered by an included allowance, and therefore not charged. */
|
|
1911
|
+
deducted_quantity?: string;
|
|
1912
|
+
unit_amount?: components["schemas"]["Money"];
|
|
1913
|
+
amount: components["schemas"]["Money"];
|
|
1914
|
+
currency: string;
|
|
1915
|
+
/** Format: date-time */
|
|
1916
|
+
period_start?: string | null;
|
|
1917
|
+
/** Format: date-time */
|
|
1918
|
+
period_end?: string | null;
|
|
1919
|
+
};
|
|
1920
|
+
InvoiceItemList: {
|
|
1921
|
+
items: components["schemas"]["InvoiceItem"][];
|
|
1922
|
+
/** Format: int64 */
|
|
1923
|
+
total_count?: number;
|
|
1924
|
+
};
|
|
1925
|
+
/**
|
|
1926
|
+
* @description topup adds to the balance; payment settles an invoice; refund returns original funds; payout withdraws from the balance; adjustment changes the balance with an audit reason.
|
|
1927
|
+
* @enum {string}
|
|
1928
|
+
*/
|
|
1929
|
+
TransactionType: "topup" | "payment" | "refund" | "payout" | "adjustment";
|
|
1930
|
+
/** @description A funds operation. Each payment has one source; refunds identify the original successful transaction. Unknown gateway results remain pending. Payments from the balance or a gateway are distinct from credit-grant payments. */
|
|
1931
|
+
Transaction: {
|
|
1932
|
+
/** Format: uuid */
|
|
1933
|
+
invoice_id?: string;
|
|
1934
|
+
/** Format: uuid */
|
|
1935
|
+
transaction_id?: string;
|
|
1936
|
+
/** Format: uuid */
|
|
1937
|
+
credit_grant_id?: string;
|
|
1938
|
+
credit_grant?: components["schemas"]["ObjectIdentity"];
|
|
1939
|
+
/** Format: uuid */
|
|
1940
|
+
refund_id?: string;
|
|
1941
|
+
/**
|
|
1942
|
+
* @description `failed` means the operation did not succeed; for a gateway payment, that the gateway declined
|
|
1943
|
+
* it. `canceled` means a gateway payment was withdrawn without collecting money. After either,
|
|
1944
|
+
* an invoice the payment was meant to pay remains open for another payment.
|
|
1945
|
+
* @enum {string}
|
|
1946
|
+
*/
|
|
1947
|
+
status?: "pending" | "succeeded" | "failed" | "canceled";
|
|
1948
|
+
/** @description Why the payment was withdrawn. Present with `canceled`. */
|
|
1949
|
+
cancellation_reason?: components["schemas"]["PaymentCancellationReason"];
|
|
1950
|
+
payment_gateway?: string;
|
|
1951
|
+
method_type?: string;
|
|
1952
|
+
/**
|
|
1953
|
+
* @description Why it failed. Present with `failed`. For a declined gateway payment the value is the
|
|
1954
|
+
* gateway's own code, passed on unchanged: the card issuer's decline code when there is one
|
|
1955
|
+
* (Stripe's decline_code, such as insufficient_funds or lost_card), otherwise the gateway's
|
|
1956
|
+
* error code (Stripe's code, such as card_declined, expired_card or
|
|
1957
|
+
* payment_intent_authentication_failure). Clients map it to their own wording and treat an
|
|
1958
|
+
* unknown value as a generic decline.
|
|
1959
|
+
*/
|
|
1960
|
+
failure_reason?: string;
|
|
1961
|
+
/** Format: date-time */
|
|
1962
|
+
settled_at?: string;
|
|
1963
|
+
/** Format: uuid */
|
|
1964
|
+
id: string;
|
|
1965
|
+
/** Format: int64 */
|
|
1966
|
+
billing_account_id?: number;
|
|
1967
|
+
type: components["schemas"]["TransactionType"];
|
|
1968
|
+
/** @description Signed. Positive adds to the balance, negative takes from it. */
|
|
1969
|
+
amount: components["schemas"]["Money"];
|
|
1970
|
+
/** @description How much of this batch has not been spent yet. Zero on negative batches. */
|
|
1971
|
+
remaining_amount: components["schemas"]["Money"];
|
|
1972
|
+
currency: string;
|
|
1973
|
+
reason?: string;
|
|
1974
|
+
/** Format: date-time */
|
|
1975
|
+
created_at: string;
|
|
1976
|
+
};
|
|
1977
|
+
TransactionList: {
|
|
1978
|
+
items: components["schemas"]["Transaction"][];
|
|
1979
|
+
/** Format: int64 */
|
|
1980
|
+
total_count?: number;
|
|
1981
|
+
};
|
|
1982
|
+
CreditGrant: {
|
|
1983
|
+
min_amount?: string;
|
|
1984
|
+
/** Format: uuid */
|
|
1985
|
+
id: string;
|
|
1986
|
+
/** Format: int64 */
|
|
1987
|
+
billing_account_id?: number;
|
|
1988
|
+
name: string;
|
|
1989
|
+
amount: components["schemas"]["Money"];
|
|
1990
|
+
remaining_amount: components["schemas"]["Money"];
|
|
1991
|
+
currency: string;
|
|
1992
|
+
/** @description What this credit may pay for. No restrictions means anything on the account. */
|
|
1993
|
+
applies_to: components["schemas"]["Applicability"];
|
|
1994
|
+
/** @enum {string} */
|
|
1995
|
+
status: "active" | "depleted" | "expired" | "voided";
|
|
1996
|
+
/** Format: date-time */
|
|
1997
|
+
valid_from: string;
|
|
1998
|
+
/** Format: date-time */
|
|
1999
|
+
valid_until?: string | null;
|
|
2000
|
+
};
|
|
2001
|
+
CreditGrantList: {
|
|
2002
|
+
items: components["schemas"]["CreditGrant"][];
|
|
2003
|
+
/** Format: int64 */
|
|
2004
|
+
total_count?: number;
|
|
2005
|
+
};
|
|
2006
|
+
Refund: {
|
|
2007
|
+
/** Format: uuid */
|
|
2008
|
+
transaction_id?: string;
|
|
2009
|
+
/** Format: uuid */
|
|
2010
|
+
cancellation_request_id?: string;
|
|
2011
|
+
/** @description Original funds-return split and each result. Unknown gateway results remain pending. */
|
|
2012
|
+
transactions: components["schemas"]["Transaction"][];
|
|
2013
|
+
/** Format: uuid */
|
|
2014
|
+
id: string;
|
|
2015
|
+
/** Format: int64 */
|
|
2016
|
+
billing_account_id?: number;
|
|
2017
|
+
/** Format: uuid */
|
|
2018
|
+
invoice_id?: string | null;
|
|
2019
|
+
/** Format: uuid */
|
|
2020
|
+
order_id?: string | null;
|
|
2021
|
+
amount: components["schemas"]["Money"];
|
|
2022
|
+
/** @description What has actually been returned. */
|
|
2023
|
+
settled_amount?: components["schemas"]["Money"];
|
|
2024
|
+
currency: string;
|
|
2025
|
+
/**
|
|
2026
|
+
* @description Where the refunded money went — back to the account balance, or back to the payment method it came from.
|
|
2027
|
+
* @enum {string}
|
|
2028
|
+
*/
|
|
2029
|
+
destination?: "balance" | "gateway";
|
|
2030
|
+
/**
|
|
2031
|
+
* @description Summary of the related refund transactions. Succeeded only when every part succeeds.
|
|
2032
|
+
* Pending and processing do not mean funds have been returned. Partial success remains
|
|
2033
|
+
* visible in settled_amount and transactions, including when another part has failed.
|
|
2034
|
+
* @enum {string}
|
|
2035
|
+
*/
|
|
2036
|
+
status: "pending" | "processing" | "succeeded" | "failed";
|
|
2037
|
+
reason?: string;
|
|
2038
|
+
/** Format: date-time */
|
|
2039
|
+
created_at: string;
|
|
2040
|
+
};
|
|
2041
|
+
RefundList: {
|
|
2042
|
+
items: components["schemas"]["Refund"][];
|
|
2043
|
+
/** Format: int64 */
|
|
2044
|
+
total_count?: number;
|
|
2045
|
+
};
|
|
2046
|
+
UsageCharge: {
|
|
2047
|
+
/** Format: uuid */
|
|
2048
|
+
subscription_id?: string;
|
|
2049
|
+
/** Format: uuid */
|
|
2050
|
+
id: string;
|
|
2051
|
+
/** Format: uuid */
|
|
2052
|
+
project_id?: string;
|
|
2053
|
+
product: components["schemas"]["Product"];
|
|
2054
|
+
/** @description Which resource this was charged for. Empty for charges not tied to one. */
|
|
2055
|
+
resource_id?: string;
|
|
2056
|
+
meter: components["schemas"]["ObjectIdentity"];
|
|
2057
|
+
unit?: string;
|
|
2058
|
+
/** @description The attributes the rate was chosen by, such as region and machine type. */
|
|
2059
|
+
dimensions?: {
|
|
2060
|
+
[key: string]: string;
|
|
2061
|
+
};
|
|
2062
|
+
/** Format: date-time */
|
|
2063
|
+
window_start: string;
|
|
2064
|
+
/**
|
|
2065
|
+
* Format: date-time
|
|
2066
|
+
* @description Exclusive.
|
|
2067
|
+
*/
|
|
2068
|
+
window_end: string;
|
|
2069
|
+
/** @description How much was used, before any included allowance. */
|
|
2070
|
+
gross_quantity?: string;
|
|
2071
|
+
/** @description How much of that was covered by an allowance. */
|
|
2072
|
+
deducted_quantity?: string;
|
|
2073
|
+
/** @description What was charged for — the gross quantity less the part covered. */
|
|
2074
|
+
quantity: string;
|
|
2075
|
+
unit_amount?: components["schemas"]["Money"];
|
|
2076
|
+
amount?: components["schemas"]["Money"];
|
|
2077
|
+
currency: string;
|
|
2078
|
+
/**
|
|
2079
|
+
* Format: uuid
|
|
2080
|
+
* @description The usage invoice this charge was added to. Absent while it waits to be priced.
|
|
2081
|
+
*/
|
|
2082
|
+
invoice_id?: string | null;
|
|
2083
|
+
/**
|
|
2084
|
+
* Format: uuid
|
|
2085
|
+
* @description The usage invoice line this charge was summed into. Absent while it waits to be priced.
|
|
2086
|
+
*/
|
|
2087
|
+
invoice_item_id?: string | null;
|
|
2088
|
+
};
|
|
2089
|
+
UsageChargeList: {
|
|
2090
|
+
items: components["schemas"]["UsageCharge"][];
|
|
2091
|
+
/** Format: int64 */
|
|
2092
|
+
total_count?: number;
|
|
2093
|
+
};
|
|
2094
|
+
SubscriptionList: {
|
|
2095
|
+
items: components["schemas"]["Subscription"][];
|
|
2096
|
+
/** Format: int64 */
|
|
2097
|
+
total_count?: number;
|
|
2098
|
+
};
|
|
2099
|
+
/** @description An independently billed purchase. Fixed renewals use the agreed recurring_amount and interval; already paid periods retain their original value. Technical state belongs to the owning service. */
|
|
2100
|
+
Subscription: {
|
|
2101
|
+
currency: string;
|
|
2102
|
+
/** @enum {string} */
|
|
2103
|
+
billing_type: "postpaid" | "prepaid" | "one_time";
|
|
2104
|
+
/** @enum {string} */
|
|
2105
|
+
interval: "none" | "day" | "month" | "year";
|
|
2106
|
+
interval_count?: number;
|
|
2107
|
+
/** @description Whole-subscription prepaid renewal amount, after continuing discounts and before tax. Absent for other billing types. */
|
|
2108
|
+
recurring_amount?: string;
|
|
2109
|
+
termination_policy?: components["schemas"]["TerminationPolicy"];
|
|
2110
|
+
refund_policy?: components["schemas"]["RefundPolicy"];
|
|
2111
|
+
/** Format: uuid */
|
|
2112
|
+
order_item_id?: string;
|
|
2113
|
+
/** Format: uuid */
|
|
2114
|
+
replaces_subscription_id?: string;
|
|
2115
|
+
/** Format: uuid */
|
|
2116
|
+
coupon_id?: string;
|
|
2117
|
+
coupon?: components["schemas"]["ObjectIdentity"];
|
|
2118
|
+
discounted_renewals_remaining?: number;
|
|
2119
|
+
suspend_reason?: string;
|
|
2120
|
+
/** Format: date-time */
|
|
2121
|
+
billing_cycle_anchor?: string;
|
|
2122
|
+
cancellation_request?: components["schemas"]["CancellationRequest"];
|
|
2123
|
+
/**
|
|
2124
|
+
* @description How the purchase, or the latest renewal paid with a saved card, was paid. Automatic renewal
|
|
2125
|
+
* tries this card after the account's balance and credits, and the account's default card after
|
|
2126
|
+
* that.
|
|
2127
|
+
*/
|
|
2128
|
+
paid_with?: components["schemas"]["PaidWith"];
|
|
2129
|
+
/** Format: date-time */
|
|
2130
|
+
created_at?: string;
|
|
2131
|
+
/** Format: uuid */
|
|
2132
|
+
id: string;
|
|
2133
|
+
/**
|
|
2134
|
+
* Format: int64
|
|
2135
|
+
* @description The billing account that made the purchase. Renewals of a project subscription are charged to the project's current billing account.
|
|
2136
|
+
*/
|
|
2137
|
+
billing_account_id: number;
|
|
2138
|
+
account: components["schemas"]["AccountIdentity"];
|
|
2139
|
+
product_id: components["schemas"]["ProductID"];
|
|
2140
|
+
/**
|
|
2141
|
+
* Format: uuid
|
|
2142
|
+
* @description Which project this is for. Absent when it was bought at account level, such as a
|
|
2143
|
+
* membership, which belongs to no single project.
|
|
2144
|
+
*/
|
|
2145
|
+
project_id?: string | null;
|
|
2146
|
+
product: components["schemas"]["Product"];
|
|
2147
|
+
/** Format: uuid */
|
|
2148
|
+
plan_id: string;
|
|
2149
|
+
plan_name: string;
|
|
2150
|
+
/** Format: uuid */
|
|
2151
|
+
price_id: string;
|
|
2152
|
+
quantity: string;
|
|
2153
|
+
/**
|
|
2154
|
+
* Format: date-time
|
|
2155
|
+
* @description Present for prepaid items. Absent for metered ones, which have no end date.
|
|
2156
|
+
*/
|
|
2157
|
+
paid_until?: string | null;
|
|
2158
|
+
auto_renew: boolean;
|
|
2159
|
+
/** @enum {string} */
|
|
2160
|
+
status: "pending" | "active" | "suspended" | "canceled" | "terminated";
|
|
2161
|
+
/** Format: date-time */
|
|
2162
|
+
started_at?: string | null;
|
|
2163
|
+
/** Format: date-time */
|
|
2164
|
+
ended_at?: string | null;
|
|
2165
|
+
};
|
|
2166
|
+
RenewalPrice: {
|
|
2167
|
+
termination_policy?: components["schemas"]["TerminationPolicy"];
|
|
2168
|
+
refund_policy?: components["schemas"]["RefundPolicy"];
|
|
2169
|
+
/** Format: uuid */
|
|
2170
|
+
price_id: string;
|
|
2171
|
+
/** @description How many periods one renewal covers. */
|
|
2172
|
+
interval_count: number;
|
|
2173
|
+
/** @enum {string} */
|
|
2174
|
+
interval: "day" | "month" | "year";
|
|
2175
|
+
/** @description What renewing for this term costs, for the quantity held. */
|
|
2176
|
+
amount?: components["schemas"]["Money"];
|
|
2177
|
+
currency?: string;
|
|
2178
|
+
/**
|
|
2179
|
+
* @description The term this item already bills at. Renewing for it uses the price bought
|
|
2180
|
+
* originally, so a later price change does not affect it.
|
|
2181
|
+
*/
|
|
2182
|
+
current: boolean;
|
|
2183
|
+
};
|
|
2184
|
+
RenewalPriceList: {
|
|
2185
|
+
items: components["schemas"]["RenewalPrice"][];
|
|
2186
|
+
};
|
|
2187
|
+
RenewRequest: {
|
|
2188
|
+
/**
|
|
2189
|
+
* Format: uuid
|
|
2190
|
+
* @description Purchase ID saved before submitting. Duplicate creation conflicts; query this order after an unknown result.
|
|
2191
|
+
*/
|
|
2192
|
+
order_id: string;
|
|
2193
|
+
/**
|
|
2194
|
+
* @description How many further periods to buy, each at the price this item already bills at.
|
|
2195
|
+
*
|
|
2196
|
+
* Buying twelve monthly periods is not the same as buying one yearly term: a longer
|
|
2197
|
+
* term is usually sold at a lower price, and that price is only reached by naming the
|
|
2198
|
+
* interval. Use `interval_count` and `interval` for that.
|
|
2199
|
+
* @default 1
|
|
2200
|
+
*/
|
|
2201
|
+
periods?: number;
|
|
2202
|
+
/**
|
|
2203
|
+
* @description Renew for a term of this length instead, at the price currently sold for it. Give
|
|
2204
|
+
* `interval` with it.
|
|
2205
|
+
*
|
|
2206
|
+
* Leaving both out renews at the price this item already bills at, which a later price
|
|
2207
|
+
* change does not affect. Naming a term that differs from the current one is a fresh
|
|
2208
|
+
* choice, so it is bought at today's price. Naming the current term changes nothing.
|
|
2209
|
+
*
|
|
2210
|
+
* List the terms on offer with the renewal prices operation.
|
|
2211
|
+
*/
|
|
2212
|
+
interval_count?: number;
|
|
2213
|
+
/**
|
|
2214
|
+
* @description The unit interval_count counts in.
|
|
2215
|
+
* @enum {string}
|
|
2216
|
+
*/
|
|
2217
|
+
interval?: "day" | "month" | "year";
|
|
2218
|
+
/** Format: uuid */
|
|
2219
|
+
payment_method_id?: string;
|
|
2220
|
+
/** @default true */
|
|
2221
|
+
use_balance?: boolean;
|
|
2222
|
+
return_url?: string;
|
|
2223
|
+
};
|
|
2224
|
+
AutoRenewSet: {
|
|
2225
|
+
auto_renew: boolean;
|
|
2226
|
+
};
|
|
2227
|
+
/**
|
|
2228
|
+
* @description Follows the items. `pending` is not yet accepted and may be paid or unpaid. `active` is
|
|
2229
|
+
* accepted with items still being set up. `completed` means every item was set up.
|
|
2230
|
+
* `partially_completed` means some items were set up and the others failed and were
|
|
2231
|
+
* refunded to their original payment sources. `failed` means every item failed and the
|
|
2232
|
+
* whole order was refunded. `canceled` means the order was withdrawn before payment and
|
|
2233
|
+
* nothing was charged.
|
|
2234
|
+
* @enum {string}
|
|
2235
|
+
*/
|
|
2236
|
+
OrderStatus: "pending" | "active" | "completed" | "partially_completed" | "failed" | "canceled";
|
|
2237
|
+
/**
|
|
2238
|
+
* @description `pending` is waiting to be set up. `completed` was confirmed by the service.
|
|
2239
|
+
* `failed` was not set up and its amount was refunded to the original payment sources.
|
|
2240
|
+
* `canceled` was withdrawn with its unpaid order. A completed item is ended by canceling
|
|
2241
|
+
* its subscription.
|
|
2242
|
+
* @enum {string}
|
|
2243
|
+
*/
|
|
2244
|
+
OrderItemStatus: "pending" | "completed" | "failed" | "canceled";
|
|
2245
|
+
Order: {
|
|
2246
|
+
/** Format: uuid */
|
|
2247
|
+
coupon_id?: string;
|
|
2248
|
+
coupon?: components["schemas"]["ObjectIdentity"];
|
|
2249
|
+
/** Format: uuid */
|
|
2250
|
+
promotion_code_id?: string;
|
|
2251
|
+
/** @description Code text frozen when this order applied the coupon. */
|
|
2252
|
+
promotion_code?: string;
|
|
2253
|
+
invoice?: components["schemas"]["InvoiceSummary"];
|
|
2254
|
+
/** @description How the order was paid. Absent until it is paid. */
|
|
2255
|
+
paid_with?: components["schemas"]["PaidWith"];
|
|
2256
|
+
account?: components["schemas"]["AccountIdentity"];
|
|
2257
|
+
cancel_reason?: string;
|
|
2258
|
+
/** Format: date-time */
|
|
2259
|
+
change_effective_at?: string;
|
|
2260
|
+
/** Format: uuid */
|
|
2261
|
+
id: string;
|
|
2262
|
+
/**
|
|
2263
|
+
* Format: uuid
|
|
2264
|
+
* @description Which project it was bought for. Absent for a purchase made at account level, such
|
|
2265
|
+
* as a membership.
|
|
2266
|
+
*/
|
|
2267
|
+
project_id?: string | null;
|
|
2268
|
+
/**
|
|
2269
|
+
* Format: int64
|
|
2270
|
+
* @description The billing account the order was placed with. It does not change when the project is later
|
|
2271
|
+
* linked to another billing account. While this account is suspended or closed the order cannot
|
|
2272
|
+
* be accepted, and a change scheduled for the end of a period is not invoiced and is called off
|
|
2273
|
+
* when the current period ends; such requests fail with BILLING_ACCOUNT_UNAVAILABLE.
|
|
2274
|
+
*/
|
|
2275
|
+
billing_account_id?: number;
|
|
2276
|
+
currency: string;
|
|
2277
|
+
/**
|
|
2278
|
+
* @description `adopt` brings a resource that already existed under billing. It charges nothing at
|
|
2279
|
+
* the time and starts billing from the moment agreed.
|
|
2280
|
+
* @enum {string}
|
|
2281
|
+
*/
|
|
2282
|
+
type: "purchase" | "renew" | "change" | "adopt";
|
|
2283
|
+
status: components["schemas"]["OrderStatus"];
|
|
2284
|
+
/**
|
|
2285
|
+
* @description When a plan change takes effect. `none` on anything that is not a change.
|
|
2286
|
+
*
|
|
2287
|
+
* `period_end` orders stay pending until the first period at the new price is paid. That period
|
|
2288
|
+
* is invoiced shortly before the current paid period ends and starts when it ends; if the
|
|
2289
|
+
* invoice is still unpaid by then, the order is canceled and the subscription renews or ends as
|
|
2290
|
+
* usual. Renewing in the meantime moves all of this along with it.
|
|
2291
|
+
* @enum {string}
|
|
2292
|
+
*/
|
|
2293
|
+
change_effective?: "none" | "immediate" | "period_end";
|
|
2294
|
+
/**
|
|
2295
|
+
* Format: date-time
|
|
2296
|
+
* @description Acceptance deadline. Only pending orders expire automatically.
|
|
2297
|
+
*/
|
|
2298
|
+
expires_at?: string | null;
|
|
2299
|
+
/** Format: date-time */
|
|
2300
|
+
created_at: string;
|
|
2301
|
+
/**
|
|
2302
|
+
* @description What was bought. Present on a single order and on every order in a list, so a list
|
|
2303
|
+
* can be rendered without a further request per row.
|
|
2304
|
+
*/
|
|
2305
|
+
items: components["schemas"]["OrderItem"][];
|
|
2306
|
+
};
|
|
2307
|
+
OrderList: {
|
|
2308
|
+
items: components["schemas"]["Order"][];
|
|
2309
|
+
/** Format: int64 */
|
|
2310
|
+
total_count?: number;
|
|
2311
|
+
};
|
|
2312
|
+
/**
|
|
2313
|
+
* @description How it was paid, as recorded at the time. It is kept as it was: removing the card afterwards
|
|
2314
|
+
* does not change it, and `payment_method_id` may then name a card that no longer exists.
|
|
2315
|
+
*/
|
|
2316
|
+
PaidWith: {
|
|
2317
|
+
/**
|
|
2318
|
+
* @description `balance` when the account's balance and credits covered it in full. Otherwise the method used
|
|
2319
|
+
* with the gateway, such as `card`.
|
|
2320
|
+
*/
|
|
2321
|
+
method_type: string;
|
|
2322
|
+
/** @description The gateway that collected it. Absent when `method_type` is `balance`. */
|
|
2323
|
+
payment_gateway?: string;
|
|
2324
|
+
/**
|
|
2325
|
+
* Format: uuid
|
|
2326
|
+
* @description The saved payment method that was charged, when one was.
|
|
2327
|
+
*/
|
|
2328
|
+
payment_method_id?: string;
|
|
2329
|
+
brand?: string;
|
|
2330
|
+
last4?: string;
|
|
2331
|
+
};
|
|
2332
|
+
/** @description Specify lines to check whether the promotion code applies to new purchases and to estimate its discount. Without lines, the response contains the code terms without a purchase-specific applicability decision. */
|
|
2333
|
+
PromotionCodePreviewRequest: {
|
|
2334
|
+
/** Format: int64 */
|
|
2335
|
+
billing_account_id: number;
|
|
2336
|
+
promotion_code: string;
|
|
2337
|
+
/** @description New purchases to test against, in the same shape as a quote. */
|
|
2338
|
+
lines?: components["schemas"]["QuoteLine"][];
|
|
2339
|
+
};
|
|
2340
|
+
/** @description Describes a usable promotion code and its applicability to the requested purchase. Invalid codes return an error response. */
|
|
2341
|
+
PromotionCodePreview: {
|
|
2342
|
+
min_amount?: string;
|
|
2343
|
+
/** @enum {string} */
|
|
2344
|
+
type?: "percentage" | "fixed_amount" | "price_override" | "free_setup";
|
|
2345
|
+
recurring?: boolean;
|
|
2346
|
+
recurring_cycles?: number;
|
|
2347
|
+
name?: string;
|
|
2348
|
+
/** @description For a fixed-amount discount. */
|
|
2349
|
+
amount?: components["schemas"]["Money"];
|
|
2350
|
+
/** @description For a percentage discount. */
|
|
2351
|
+
percent_off?: string;
|
|
2352
|
+
max_discount?: components["schemas"]["Money"];
|
|
2353
|
+
currency?: string;
|
|
2354
|
+
/**
|
|
2355
|
+
* @description What it may be used for. Present whether or not a purchase was given, so that the
|
|
2356
|
+
* terms can be shown before anything is chosen.
|
|
2357
|
+
*/
|
|
2358
|
+
applies_to?: components["schemas"]["Applicability"];
|
|
2359
|
+
/**
|
|
2360
|
+
* @description The terms in one sentence, ready to display — for example "Compute, new purchases
|
|
2361
|
+
* only, from 100.00" or "No restriction on product or purchase type".
|
|
2362
|
+
*/
|
|
2363
|
+
summary?: string;
|
|
2364
|
+
/** Format: date-time */
|
|
2365
|
+
valid_until?: string | null;
|
|
2366
|
+
/**
|
|
2367
|
+
* @description Whether it applies to the purchase given in `lines`. Absent when no purchase was
|
|
2368
|
+
* given.
|
|
2369
|
+
*/
|
|
2370
|
+
applicable?: boolean;
|
|
2371
|
+
applicable_reason?: components["schemas"]["PromotionCodeRejection"];
|
|
2372
|
+
/**
|
|
2373
|
+
* @description The total of the lines that match the restrictions. This is what the threshold is
|
|
2374
|
+
* measured against, not the order total.
|
|
2375
|
+
*/
|
|
2376
|
+
qualifying_amount?: components["schemas"]["Money"];
|
|
2377
|
+
/**
|
|
2378
|
+
* @description How much more of a qualifying purchase is needed to reach the threshold. `"0"` once
|
|
2379
|
+
* it is met.
|
|
2380
|
+
*/
|
|
2381
|
+
shortfall?: components["schemas"]["Money"];
|
|
2382
|
+
/**
|
|
2383
|
+
* @description What it would take off this purchase. An estimate: the amount is settled at the
|
|
2384
|
+
* moment the order is placed.
|
|
2385
|
+
*/
|
|
2386
|
+
estimated_discount?: components["schemas"]["Money"];
|
|
2387
|
+
};
|
|
2388
|
+
/**
|
|
2389
|
+
* @description Why a code cannot be used. `none` when it can.
|
|
2390
|
+
*
|
|
2391
|
+
* `operation_not_covered` means the code is limited to certain purchase actions — a
|
|
2392
|
+
* first-purchase code presented for a renewal, for example.
|
|
2393
|
+
*
|
|
2394
|
+
* `term_not_covered` means the code is limited to certain term lengths. A purchase with
|
|
2395
|
+
* no term, such as metered usage, is reported the same way.
|
|
2396
|
+
*
|
|
2397
|
+
* `below_minimum` is accompanied by `shortfall`.
|
|
2398
|
+
* @enum {string}
|
|
2399
|
+
*/
|
|
2400
|
+
PromotionCodeRejection: "none" | "not_found" | "expired" | "not_yet_valid" | "exhausted" | "already_redeemed" | "currency_mismatch" | "product_not_covered" | "plan_not_covered" | "price_not_covered" | "price_type_not_covered" | "operation_not_covered" | "term_not_covered" | "not_first_purchase" | "below_minimum";
|
|
2401
|
+
/**
|
|
2402
|
+
* @description Which purchase this applies to. `upgrade` and `downgrade` are told apart by money: a change
|
|
2403
|
+
* that costs more for the remainder of the period is an upgrade, one that returns money
|
|
2404
|
+
* is a downgrade. A change that costs neither more nor less is neither.
|
|
2405
|
+
*
|
|
2406
|
+
* `purchase` means a new purchase as opposed to a renewal or a change. It does not mean the
|
|
2407
|
+
* account's first purchase.
|
|
2408
|
+
* @enum {string}
|
|
2409
|
+
*/
|
|
2410
|
+
PurchaseOperation: "purchase" | "renew" | "upgrade" | "downgrade";
|
|
2411
|
+
/** @description A coupon held on this account. It applies at checkout without a code. */
|
|
2412
|
+
Discount: {
|
|
2413
|
+
min_amount?: string;
|
|
2414
|
+
/** Format: int64 */
|
|
2415
|
+
billing_account_id?: number;
|
|
2416
|
+
/** Format: uuid */
|
|
2417
|
+
coupon_id: string;
|
|
2418
|
+
/** Format: uuid */
|
|
2419
|
+
promotion_code_id?: string;
|
|
2420
|
+
/** @enum {string} */
|
|
2421
|
+
status: "active" | "revoked";
|
|
2422
|
+
/** Format: date-time */
|
|
2423
|
+
revoked_at?: string;
|
|
2424
|
+
/** @enum {string} */
|
|
2425
|
+
type: "percentage" | "fixed_amount" | "price_override" | "free_setup";
|
|
2426
|
+
recurring?: boolean;
|
|
2427
|
+
recurring_cycles?: number;
|
|
2428
|
+
/** Format: uuid */
|
|
2429
|
+
id: string;
|
|
2430
|
+
name?: string;
|
|
2431
|
+
/** @description For a percentage discount, out of one hundred. */
|
|
2432
|
+
percent_off?: string;
|
|
2433
|
+
/** @description Fixed discount or per-unit interval price override for this account currency. */
|
|
2434
|
+
amount?: components["schemas"]["Money"];
|
|
2435
|
+
/** @description Caps a percentage discount. */
|
|
2436
|
+
max_discount?: components["schemas"]["Money"];
|
|
2437
|
+
currency?: string;
|
|
2438
|
+
/**
|
|
2439
|
+
* @description What it may be used for. Absent means it applies to anything on the account,
|
|
2440
|
+
* including setup fees and traffic.
|
|
2441
|
+
*/
|
|
2442
|
+
applies_to: components["schemas"]["Applicability"];
|
|
2443
|
+
/** Format: date-time */
|
|
2444
|
+
started_at?: string;
|
|
2445
|
+
/** Format: date-time */
|
|
2446
|
+
ended_at?: string | null;
|
|
2447
|
+
};
|
|
2448
|
+
DiscountList: {
|
|
2449
|
+
items: components["schemas"]["Discount"][];
|
|
2450
|
+
/** Format: int64 */
|
|
2451
|
+
total_count?: number;
|
|
2452
|
+
};
|
|
2453
|
+
/** @description A price's display terms, including retired prices referenced by an applicability list. */
|
|
2454
|
+
PriceOption: {
|
|
2455
|
+
product: components["schemas"]["Product"];
|
|
2456
|
+
plan: components["schemas"]["ObjectIdentity"];
|
|
2457
|
+
/** @enum {string} */
|
|
2458
|
+
billing_scheme: "per_unit" | "tiered" | "rated";
|
|
2459
|
+
unit_quantity: string;
|
|
2460
|
+
/** Format: uuid */
|
|
2461
|
+
id: string;
|
|
2462
|
+
currency: string;
|
|
2463
|
+
/** @enum {string} */
|
|
2464
|
+
type: "postpaid" | "prepaid" | "one_time";
|
|
2465
|
+
/** @enum {string} */
|
|
2466
|
+
interval: "none" | "day" | "month" | "year";
|
|
2467
|
+
/** @description How many periods one purchase covers. */
|
|
2468
|
+
interval_count?: number;
|
|
2469
|
+
unit_amount?: components["schemas"]["Money"];
|
|
2470
|
+
};
|
|
2471
|
+
/**
|
|
2472
|
+
* @description Product, plan and price lists form a union; three empty lists permit every item.
|
|
2473
|
+
* Other conditions apply together. Entries always include their display fields.
|
|
2474
|
+
*/
|
|
2475
|
+
Applicability: {
|
|
2476
|
+
products?: components["schemas"]["Product"][];
|
|
2477
|
+
plans?: components["schemas"]["ObjectIdentity"][];
|
|
2478
|
+
prices?: components["schemas"]["PriceOption"][];
|
|
2479
|
+
price_types?: string[];
|
|
2480
|
+
operations?: components["schemas"]["PurchaseOperation"][];
|
|
2481
|
+
/** @description Restricted to your first purchase of a covered product. */
|
|
2482
|
+
first_purchase_only?: boolean;
|
|
2483
|
+
/**
|
|
2484
|
+
* @description The shortest term a purchase may have, in months. A purchase with no term, such as
|
|
2485
|
+
* metered usage, never qualifies while this is set.
|
|
2486
|
+
*/
|
|
2487
|
+
min_term_months?: number;
|
|
2488
|
+
/** @description The longest term a purchase may have, in months. */
|
|
2489
|
+
max_term_months?: number;
|
|
2490
|
+
};
|
|
2491
|
+
Tier: {
|
|
2492
|
+
/** @description The upper bound of this band. Null on the last band, which has no bound. */
|
|
2493
|
+
up_to?: string | null;
|
|
2494
|
+
unit_amount: components["schemas"]["Money"];
|
|
2495
|
+
/** @description Charged once when this band is reached, in addition to the per-unit amount. */
|
|
2496
|
+
flat_amount?: components["schemas"]["Money"];
|
|
2497
|
+
};
|
|
2498
|
+
/** @description Frozen purchase terms. Monetary fields come from related invoice-line snapshots and are absent when there is no immediate invoice. Later catalog changes do not reprice this line. */
|
|
2499
|
+
OrderItem: {
|
|
2500
|
+
position?: number;
|
|
2501
|
+
configuration?: {
|
|
2502
|
+
[key: string]: unknown;
|
|
2503
|
+
};
|
|
2504
|
+
/** Format: uuid */
|
|
2505
|
+
subscription_id?: string;
|
|
2506
|
+
/** @enum {string} */
|
|
2507
|
+
interval: "none" | "day" | "month" | "year";
|
|
2508
|
+
interval_count?: number;
|
|
2509
|
+
termination_policy?: components["schemas"]["TerminationPolicy"];
|
|
2510
|
+
refund_policy?: components["schemas"]["RefundPolicy"];
|
|
2511
|
+
completes_on_payment: boolean;
|
|
2512
|
+
recurring_amount?: string;
|
|
2513
|
+
setup_amount?: string;
|
|
2514
|
+
/**
|
|
2515
|
+
* @description The payment timing of the selected price.
|
|
2516
|
+
* @enum {string}
|
|
2517
|
+
*/
|
|
2518
|
+
billing_type: "postpaid" | "prepaid" | "one_time";
|
|
2519
|
+
/** @description Total tax after discounts, including any tax already included in the price. */
|
|
2520
|
+
tax_amount?: string;
|
|
2521
|
+
/** @description The part of tax_amount already included in gross_amount; it is not charged again. */
|
|
2522
|
+
tax_included_amount?: string;
|
|
2523
|
+
/** Format: uuid */
|
|
2524
|
+
id: string;
|
|
2525
|
+
/** Format: uuid */
|
|
2526
|
+
order_id?: string;
|
|
2527
|
+
/** Format: uuid */
|
|
2528
|
+
price_id: string;
|
|
2529
|
+
/** @description Which service this line belongs to. */
|
|
2530
|
+
product_id?: components["schemas"]["ProductID"];
|
|
2531
|
+
product?: components["schemas"]["Product"];
|
|
2532
|
+
/**
|
|
2533
|
+
* Format: uuid
|
|
2534
|
+
* @description Which plan was bought.
|
|
2535
|
+
*/
|
|
2536
|
+
plan_id: string;
|
|
2537
|
+
/**
|
|
2538
|
+
* @description What it was called when bought. It does not follow later catalogue renames and is
|
|
2539
|
+
* not translated.
|
|
2540
|
+
*/
|
|
2541
|
+
plan_name: string;
|
|
2542
|
+
quantity: string;
|
|
2543
|
+
unit_amount?: components["schemas"]["Money"];
|
|
2544
|
+
gross_amount?: components["schemas"]["Money"];
|
|
2545
|
+
discount_amount?: components["schemas"]["Money"];
|
|
2546
|
+
amount?: components["schemas"]["Money"];
|
|
2547
|
+
currency: string;
|
|
2548
|
+
/** Format: date-time */
|
|
2549
|
+
period_start?: string | null;
|
|
2550
|
+
/** Format: date-time */
|
|
2551
|
+
period_end?: string | null;
|
|
2552
|
+
status: components["schemas"]["OrderItemStatus"];
|
|
2553
|
+
};
|
|
2554
|
+
OrderItemList: {
|
|
2555
|
+
items: components["schemas"]["OrderItem"][];
|
|
2556
|
+
/** Format: int64 */
|
|
2557
|
+
total_count?: number;
|
|
2558
|
+
};
|
|
2559
|
+
Allowance: {
|
|
2560
|
+
/** @description Optional issuance key, unique within this billing account. */
|
|
2561
|
+
idempotency_key?: string;
|
|
2562
|
+
/** Format: uuid */
|
|
2563
|
+
subscription_id?: string;
|
|
2564
|
+
/** Format: uuid */
|
|
2565
|
+
id: string;
|
|
2566
|
+
/** Format: int64 */
|
|
2567
|
+
billing_account_id?: number;
|
|
2568
|
+
product: components["schemas"]["Product"];
|
|
2569
|
+
meter: components["schemas"]["ObjectIdentity"];
|
|
2570
|
+
/** @description The unit it is counted in, such as `MiB`. */
|
|
2571
|
+
unit?: string;
|
|
2572
|
+
/**
|
|
2573
|
+
* @description `included` came with a recurring purchase and ends with its subscription, `promotional` was
|
|
2574
|
+
* granted.
|
|
2575
|
+
* @enum {string}
|
|
2576
|
+
*/
|
|
2577
|
+
source_type: "included" | "promotional";
|
|
2578
|
+
name: string;
|
|
2579
|
+
/** @description How much was granted. */
|
|
2580
|
+
quantity: string;
|
|
2581
|
+
/** @description How much is left. */
|
|
2582
|
+
remaining_quantity: string;
|
|
2583
|
+
/**
|
|
2584
|
+
* @description Lower values are consumed first. At equal priority, earlier expiry and then earlier issuance take
|
|
2585
|
+
* precedence.
|
|
2586
|
+
*/
|
|
2587
|
+
priority?: number;
|
|
2588
|
+
/** @enum {string} */
|
|
2589
|
+
status: "active" | "depleted" | "expired" | "voided";
|
|
2590
|
+
/** Format: date-time */
|
|
2591
|
+
valid_from: string;
|
|
2592
|
+
/**
|
|
2593
|
+
* Format: date-time
|
|
2594
|
+
* @description When it lapses. Anything unused at that point is lost; it is not refunded and does
|
|
2595
|
+
* not carry over. Absent when it does not expire on its own.
|
|
2596
|
+
*/
|
|
2597
|
+
valid_until?: string | null;
|
|
2598
|
+
};
|
|
2599
|
+
AllowanceList: {
|
|
2600
|
+
items: components["schemas"]["Allowance"][];
|
|
2601
|
+
/** Format: int64 */
|
|
2602
|
+
total_count?: number;
|
|
2603
|
+
};
|
|
2604
|
+
PlanFeature: {
|
|
2605
|
+
feature: components["schemas"]["ObjectIdentity"];
|
|
2606
|
+
name: string;
|
|
2607
|
+
};
|
|
2608
|
+
Entitlement: {
|
|
2609
|
+
product: components["schemas"]["Product"];
|
|
2610
|
+
feature: components["schemas"]["ObjectIdentity"];
|
|
2611
|
+
name?: string;
|
|
2612
|
+
enabled: boolean;
|
|
2613
|
+
/**
|
|
2614
|
+
* Format: date-time
|
|
2615
|
+
* @description When the subscription providing it ends. Absent for a metered subscription, which
|
|
2616
|
+
* has no end date.
|
|
2617
|
+
*/
|
|
2618
|
+
expires_at?: string | null;
|
|
2619
|
+
};
|
|
2620
|
+
EntitlementList: {
|
|
2621
|
+
items: components["schemas"]["Entitlement"][];
|
|
2622
|
+
/** Format: int64 */
|
|
2623
|
+
total_count?: number;
|
|
2624
|
+
};
|
|
2625
|
+
/** @description Purchase-related invoice amounts, without account contact details or payment methods. Absent on an order with no immediate invoice. */
|
|
2626
|
+
InvoiceSummary: {
|
|
2627
|
+
/** Format: uuid */
|
|
2628
|
+
id: string;
|
|
2629
|
+
number?: string;
|
|
2630
|
+
currency: string;
|
|
2631
|
+
status: components["schemas"]["InvoiceStatus"];
|
|
2632
|
+
/**
|
|
2633
|
+
* @description Sum of the line amounts before discounts. Where prices include tax, the tax contained in
|
|
2634
|
+
* each line's discounted amount is taken out here, so that total = subtotal -
|
|
2635
|
+
* discount_amount + tax_amount always holds.
|
|
2636
|
+
*/
|
|
2637
|
+
subtotal: string;
|
|
2638
|
+
/** @description Sum of the line discounts, taken off before tax. */
|
|
2639
|
+
discount_amount: string;
|
|
2640
|
+
tax_amount: string;
|
|
2641
|
+
total: string;
|
|
2642
|
+
amount_paid: string;
|
|
2643
|
+
amount_refunded: string;
|
|
2644
|
+
/** Format: date-time */
|
|
2645
|
+
due_at?: string;
|
|
2646
|
+
};
|
|
2647
|
+
/** @description Tax name, rate and amounts frozen on the invoice. */
|
|
2648
|
+
TaxItem: {
|
|
2649
|
+
/** Format: uuid */
|
|
2650
|
+
id: string;
|
|
2651
|
+
/** Format: uuid */
|
|
2652
|
+
invoice_id: string;
|
|
2653
|
+
name: string;
|
|
2654
|
+
percentage: string;
|
|
2655
|
+
country: string;
|
|
2656
|
+
state?: string;
|
|
2657
|
+
taxable_amount: string;
|
|
2658
|
+
tax_amount: string;
|
|
2659
|
+
currency: string;
|
|
2660
|
+
};
|
|
2661
|
+
/** @description A catalog object inlined for display. */
|
|
2662
|
+
ObjectIdentity: {
|
|
2663
|
+
lookup_key?: string;
|
|
2664
|
+
/** Format: uuid */
|
|
2665
|
+
id: string;
|
|
2666
|
+
name: string;
|
|
2667
|
+
};
|
|
2668
|
+
/**
|
|
2669
|
+
* @description A decimal string, in the currency stated alongside it.
|
|
2670
|
+
*
|
|
2671
|
+
* **The currency is not part of this type.** It is carried by a `currency` field next to the
|
|
2672
|
+
* amount, or by the account the amount belongs to. Reading an amount without that field is
|
|
2673
|
+
* reading a number with no unit.
|
|
2674
|
+
*
|
|
2675
|
+
* It is a string rather than a JSON number because a JSON number is a float in most parsers,
|
|
2676
|
+
* and a float loses precision on the first arithmetic. Nothing on this platform puts an amount
|
|
2677
|
+
* through a float.
|
|
2678
|
+
* @example 10.2500000000
|
|
2679
|
+
*/
|
|
2680
|
+
Money: string;
|
|
2681
|
+
};
|
|
2682
|
+
responses: {
|
|
2683
|
+
/** @description Unchanged since the `ETag` that was sent. No body. */
|
|
2684
|
+
NotModified: {
|
|
2685
|
+
headers: {
|
|
2686
|
+
/** @description The same entity tag that was sent. */
|
|
2687
|
+
ETag?: string;
|
|
2688
|
+
[name: string]: unknown;
|
|
2689
|
+
};
|
|
2690
|
+
content?: never;
|
|
2691
|
+
};
|
|
2692
|
+
/** @description Error */
|
|
2693
|
+
Error: {
|
|
2694
|
+
headers: {
|
|
2695
|
+
[name: string]: unknown;
|
|
2696
|
+
};
|
|
2697
|
+
content: {
|
|
2698
|
+
"application/json": components["schemas"]["Error"];
|
|
2699
|
+
};
|
|
2700
|
+
};
|
|
2701
|
+
};
|
|
2702
|
+
parameters: {
|
|
2703
|
+
/**
|
|
2704
|
+
* @description The `ETag` from an earlier reply. When the catalogue has not changed since, the
|
|
2705
|
+
* answer is `304` with no body.
|
|
2706
|
+
*
|
|
2707
|
+
* Send it on every catalogue read. An unchanged catalogue is answered without a body.
|
|
2708
|
+
*/
|
|
2709
|
+
IfNoneMatch: string;
|
|
2710
|
+
/** @description 1-based page number; the first page when omitted. */
|
|
2711
|
+
Page: number;
|
|
2712
|
+
/** @description How many per page, 100 at most. */
|
|
2713
|
+
PageSize: number;
|
|
2714
|
+
From: string;
|
|
2715
|
+
/** @description Exclusive. */
|
|
2716
|
+
To: string;
|
|
2717
|
+
/** @description Restrict to one of your accounts. All of them when omitted. */
|
|
2718
|
+
AccountIdQuery: number;
|
|
2719
|
+
AccountId: number;
|
|
2720
|
+
ProjectId: string;
|
|
2721
|
+
PlanId: string;
|
|
2722
|
+
RateCardId: string;
|
|
2723
|
+
InvoiceId: string;
|
|
2724
|
+
OrderId: string;
|
|
2725
|
+
CancellationRequestId: string;
|
|
2726
|
+
SubscriptionId: string;
|
|
2727
|
+
PaymentMethodId: string;
|
|
2728
|
+
};
|
|
2729
|
+
requestBodies: never;
|
|
2730
|
+
headers: never;
|
|
2731
|
+
pathItems: never;
|
|
2732
|
+
}
|
|
2733
|
+
export type $defs = Record<string, never>;
|
|
2734
|
+
export interface operations {
|
|
2735
|
+
"list-prices": {
|
|
2736
|
+
parameters: {
|
|
2737
|
+
query: {
|
|
2738
|
+
/** @description 1-based page number; the first page when omitted. */
|
|
2739
|
+
page?: components["parameters"]["Page"];
|
|
2740
|
+
/** @description How many per page, 100 at most. */
|
|
2741
|
+
page_size?: components["parameters"]["PageSize"];
|
|
2742
|
+
/** @description ISO 4217, three uppercase letters. */
|
|
2743
|
+
currency: string;
|
|
2744
|
+
product_id?: components["schemas"]["ProductID"];
|
|
2745
|
+
/** @description Narrows to one payment timing. */
|
|
2746
|
+
type?: "postpaid" | "prepaid" | "one_time";
|
|
2747
|
+
};
|
|
2748
|
+
header?: {
|
|
2749
|
+
/**
|
|
2750
|
+
* @description The `ETag` from an earlier reply. When the catalogue has not changed since, the
|
|
2751
|
+
* answer is `304` with no body.
|
|
2752
|
+
*
|
|
2753
|
+
* Send it on every catalogue read. An unchanged catalogue is answered without a body.
|
|
2754
|
+
*/
|
|
2755
|
+
"If-None-Match"?: components["parameters"]["IfNoneMatch"];
|
|
2756
|
+
};
|
|
2757
|
+
path?: never;
|
|
2758
|
+
cookie?: never;
|
|
2759
|
+
};
|
|
2760
|
+
requestBody?: never;
|
|
2761
|
+
responses: {
|
|
2762
|
+
/** @description OK */
|
|
2763
|
+
200: {
|
|
2764
|
+
headers: {
|
|
2765
|
+
/** @description Changes whenever this catalog representation changes. */
|
|
2766
|
+
ETag?: string;
|
|
2767
|
+
[name: string]: unknown;
|
|
2768
|
+
};
|
|
2769
|
+
content: {
|
|
2770
|
+
"application/json": components["schemas"]["PriceList"];
|
|
2771
|
+
};
|
|
2772
|
+
};
|
|
2773
|
+
/** @description Not Modified */
|
|
2774
|
+
304: {
|
|
2775
|
+
headers: {
|
|
2776
|
+
[name: string]: unknown;
|
|
2777
|
+
};
|
|
2778
|
+
content?: never;
|
|
2779
|
+
};
|
|
2780
|
+
default: components["responses"]["Error"];
|
|
2781
|
+
};
|
|
2782
|
+
};
|
|
2783
|
+
"list-products": {
|
|
2784
|
+
parameters: {
|
|
2785
|
+
query?: {
|
|
2786
|
+
/** @description 1-based page number; the first page when omitted. */
|
|
2787
|
+
page?: components["parameters"]["Page"];
|
|
2788
|
+
/** @description How many per page, 100 at most. */
|
|
2789
|
+
page_size?: components["parameters"]["PageSize"];
|
|
2790
|
+
};
|
|
2791
|
+
header?: {
|
|
2792
|
+
/**
|
|
2793
|
+
* @description The `ETag` from an earlier reply. When the catalogue has not changed since, the
|
|
2794
|
+
* answer is `304` with no body.
|
|
2795
|
+
*
|
|
2796
|
+
* Send it on every catalogue read. An unchanged catalogue is answered without a body.
|
|
2797
|
+
*/
|
|
2798
|
+
"If-None-Match"?: components["parameters"]["IfNoneMatch"];
|
|
2799
|
+
};
|
|
2800
|
+
path?: never;
|
|
2801
|
+
cookie?: never;
|
|
2802
|
+
};
|
|
2803
|
+
requestBody?: never;
|
|
2804
|
+
responses: {
|
|
2805
|
+
/** @description OK */
|
|
2806
|
+
200: {
|
|
2807
|
+
headers: {
|
|
2808
|
+
/**
|
|
2809
|
+
* @description Changes whenever the catalogue changes. Send it back as `If-None-Match`
|
|
2810
|
+
* to be told `304` instead of receiving the same listing again.
|
|
2811
|
+
*/
|
|
2812
|
+
ETag?: string;
|
|
2813
|
+
[name: string]: unknown;
|
|
2814
|
+
};
|
|
2815
|
+
content: {
|
|
2816
|
+
"application/json": components["schemas"]["ProductList"];
|
|
2817
|
+
};
|
|
2818
|
+
};
|
|
2819
|
+
304: components["responses"]["NotModified"];
|
|
2820
|
+
default: components["responses"]["Error"];
|
|
2821
|
+
};
|
|
2822
|
+
};
|
|
2823
|
+
"get-product": {
|
|
2824
|
+
parameters: {
|
|
2825
|
+
query?: never;
|
|
2826
|
+
header?: {
|
|
2827
|
+
/**
|
|
2828
|
+
* @description The `ETag` from an earlier reply. When the catalogue has not changed since, the
|
|
2829
|
+
* answer is `304` with no body.
|
|
2830
|
+
*
|
|
2831
|
+
* Send it on every catalogue read. An unchanged catalogue is answered without a body.
|
|
2832
|
+
*/
|
|
2833
|
+
"If-None-Match"?: components["parameters"]["IfNoneMatch"];
|
|
2834
|
+
};
|
|
2835
|
+
path: {
|
|
2836
|
+
productId: components["schemas"]["ProductID"];
|
|
2837
|
+
};
|
|
2838
|
+
cookie?: never;
|
|
2839
|
+
};
|
|
2840
|
+
requestBody?: never;
|
|
2841
|
+
responses: {
|
|
2842
|
+
/** @description OK */
|
|
2843
|
+
200: {
|
|
2844
|
+
headers: {
|
|
2845
|
+
/** @description Changes whenever this catalog representation changes. */
|
|
2846
|
+
ETag?: string;
|
|
2847
|
+
[name: string]: unknown;
|
|
2848
|
+
};
|
|
2849
|
+
content: {
|
|
2850
|
+
"application/json": components["schemas"]["Product"];
|
|
2851
|
+
};
|
|
2852
|
+
};
|
|
2853
|
+
/** @description Not Modified */
|
|
2854
|
+
304: {
|
|
2855
|
+
headers: {
|
|
2856
|
+
[name: string]: unknown;
|
|
2857
|
+
};
|
|
2858
|
+
content?: never;
|
|
2859
|
+
};
|
|
2860
|
+
default: components["responses"]["Error"];
|
|
2861
|
+
};
|
|
2862
|
+
};
|
|
2863
|
+
"get-plan": {
|
|
2864
|
+
parameters: {
|
|
2865
|
+
query?: never;
|
|
2866
|
+
header?: {
|
|
2867
|
+
/**
|
|
2868
|
+
* @description The `ETag` from an earlier reply. When the catalogue has not changed since, the
|
|
2869
|
+
* answer is `304` with no body.
|
|
2870
|
+
*
|
|
2871
|
+
* Send it on every catalogue read. An unchanged catalogue is answered without a body.
|
|
2872
|
+
*/
|
|
2873
|
+
"If-None-Match"?: components["parameters"]["IfNoneMatch"];
|
|
2874
|
+
};
|
|
2875
|
+
path: {
|
|
2876
|
+
planId: string;
|
|
2877
|
+
};
|
|
2878
|
+
cookie?: never;
|
|
2879
|
+
};
|
|
2880
|
+
requestBody?: never;
|
|
2881
|
+
responses: {
|
|
2882
|
+
/** @description OK */
|
|
2883
|
+
200: {
|
|
2884
|
+
headers: {
|
|
2885
|
+
/** @description Changes whenever this catalog representation changes. */
|
|
2886
|
+
ETag?: string;
|
|
2887
|
+
[name: string]: unknown;
|
|
2888
|
+
};
|
|
2889
|
+
content: {
|
|
2890
|
+
"application/json": components["schemas"]["Plan"];
|
|
2891
|
+
};
|
|
2892
|
+
};
|
|
2893
|
+
/** @description Not Modified */
|
|
2894
|
+
304: {
|
|
2895
|
+
headers: {
|
|
2896
|
+
[name: string]: unknown;
|
|
2897
|
+
};
|
|
2898
|
+
content?: never;
|
|
2899
|
+
};
|
|
2900
|
+
default: components["responses"]["Error"];
|
|
2901
|
+
};
|
|
2902
|
+
};
|
|
2903
|
+
"get-price": {
|
|
2904
|
+
parameters: {
|
|
2905
|
+
query?: never;
|
|
2906
|
+
header?: {
|
|
2907
|
+
/**
|
|
2908
|
+
* @description The `ETag` from an earlier reply. When the catalogue has not changed since, the
|
|
2909
|
+
* answer is `304` with no body.
|
|
2910
|
+
*
|
|
2911
|
+
* Send it on every catalogue read. An unchanged catalogue is answered without a body.
|
|
2912
|
+
*/
|
|
2913
|
+
"If-None-Match"?: components["parameters"]["IfNoneMatch"];
|
|
2914
|
+
};
|
|
2915
|
+
path: {
|
|
2916
|
+
priceId: string;
|
|
2917
|
+
};
|
|
2918
|
+
cookie?: never;
|
|
2919
|
+
};
|
|
2920
|
+
requestBody?: never;
|
|
2921
|
+
responses: {
|
|
2922
|
+
/** @description OK */
|
|
2923
|
+
200: {
|
|
2924
|
+
headers: {
|
|
2925
|
+
/** @description Changes whenever this catalog listing changes. */
|
|
2926
|
+
ETag?: string;
|
|
2927
|
+
[name: string]: unknown;
|
|
2928
|
+
};
|
|
2929
|
+
content: {
|
|
2930
|
+
"application/json": components["schemas"]["Price"];
|
|
2931
|
+
};
|
|
2932
|
+
};
|
|
2933
|
+
/** @description Not Modified */
|
|
2934
|
+
304: {
|
|
2935
|
+
headers: {
|
|
2936
|
+
[name: string]: unknown;
|
|
2937
|
+
};
|
|
2938
|
+
content?: never;
|
|
2939
|
+
};
|
|
2940
|
+
default: components["responses"]["Error"];
|
|
2941
|
+
};
|
|
2942
|
+
};
|
|
2943
|
+
"list-plans": {
|
|
2944
|
+
parameters: {
|
|
2945
|
+
query: {
|
|
2946
|
+
product_id: components["schemas"]["ProductID"];
|
|
2947
|
+
/** @description 1-based page number; the first page when omitted. */
|
|
2948
|
+
page?: components["parameters"]["Page"];
|
|
2949
|
+
/** @description How many per page, 100 at most. */
|
|
2950
|
+
page_size?: components["parameters"]["PageSize"];
|
|
2951
|
+
};
|
|
2952
|
+
header?: {
|
|
2953
|
+
/**
|
|
2954
|
+
* @description The `ETag` from an earlier reply. When the catalogue has not changed since, the
|
|
2955
|
+
* answer is `304` with no body.
|
|
2956
|
+
*
|
|
2957
|
+
* Send it on every catalogue read. An unchanged catalogue is answered without a body.
|
|
2958
|
+
*/
|
|
2959
|
+
"If-None-Match"?: components["parameters"]["IfNoneMatch"];
|
|
2960
|
+
};
|
|
2961
|
+
path?: never;
|
|
2962
|
+
cookie?: never;
|
|
2963
|
+
};
|
|
2964
|
+
requestBody?: never;
|
|
2965
|
+
responses: {
|
|
2966
|
+
/** @description OK */
|
|
2967
|
+
200: {
|
|
2968
|
+
headers: {
|
|
2969
|
+
/**
|
|
2970
|
+
* @description Changes whenever the catalogue changes. Send it back as `If-None-Match`
|
|
2971
|
+
* to be told `304` instead of receiving the same listing again.
|
|
2972
|
+
*/
|
|
2973
|
+
ETag?: string;
|
|
2974
|
+
[name: string]: unknown;
|
|
2975
|
+
};
|
|
2976
|
+
content: {
|
|
2977
|
+
"application/json": components["schemas"]["PlanList"];
|
|
2978
|
+
};
|
|
2979
|
+
};
|
|
2980
|
+
304: components["responses"]["NotModified"];
|
|
2981
|
+
default: components["responses"]["Error"];
|
|
2982
|
+
};
|
|
2983
|
+
};
|
|
2984
|
+
"list-prices-by-plan": {
|
|
2985
|
+
parameters: {
|
|
2986
|
+
query?: {
|
|
2987
|
+
/** @description 1-based page number; the first page when omitted. */
|
|
2988
|
+
page?: components["parameters"]["Page"];
|
|
2989
|
+
/** @description How many per page, 100 at most. */
|
|
2990
|
+
page_size?: components["parameters"]["PageSize"];
|
|
2991
|
+
currency?: string;
|
|
2992
|
+
};
|
|
2993
|
+
header?: {
|
|
2994
|
+
/**
|
|
2995
|
+
* @description The `ETag` from an earlier reply. When the catalogue has not changed since, the
|
|
2996
|
+
* answer is `304` with no body.
|
|
2997
|
+
*
|
|
2998
|
+
* Send it on every catalogue read. An unchanged catalogue is answered without a body.
|
|
2999
|
+
*/
|
|
3000
|
+
"If-None-Match"?: components["parameters"]["IfNoneMatch"];
|
|
3001
|
+
};
|
|
3002
|
+
path: {
|
|
3003
|
+
planId: components["parameters"]["PlanId"];
|
|
3004
|
+
};
|
|
3005
|
+
cookie?: never;
|
|
3006
|
+
};
|
|
3007
|
+
requestBody?: never;
|
|
3008
|
+
responses: {
|
|
3009
|
+
/** @description OK */
|
|
3010
|
+
200: {
|
|
3011
|
+
headers: {
|
|
3012
|
+
/**
|
|
3013
|
+
* @description Changes whenever the catalogue changes. Send it back as `If-None-Match`
|
|
3014
|
+
* to be told `304` instead of receiving the same listing again.
|
|
3015
|
+
*/
|
|
3016
|
+
ETag?: string;
|
|
3017
|
+
[name: string]: unknown;
|
|
3018
|
+
};
|
|
3019
|
+
content: {
|
|
3020
|
+
"application/json": components["schemas"]["PriceList"];
|
|
3021
|
+
};
|
|
3022
|
+
};
|
|
3023
|
+
304: components["responses"]["NotModified"];
|
|
3024
|
+
default: components["responses"]["Error"];
|
|
3025
|
+
};
|
|
3026
|
+
};
|
|
3027
|
+
"list-rates": {
|
|
3028
|
+
parameters: {
|
|
3029
|
+
query?: {
|
|
3030
|
+
/** @description 1-based page number; the first page when omitted. */
|
|
3031
|
+
page?: components["parameters"]["Page"];
|
|
3032
|
+
/** @description How many per page, 100 at most. */
|
|
3033
|
+
page_size?: components["parameters"]["PageSize"];
|
|
3034
|
+
/** @description Filter by the meter UUID. */
|
|
3035
|
+
meter_id?: string;
|
|
3036
|
+
/** @description Return the rates in effect at this moment. Defaults to now. */
|
|
3037
|
+
at?: string;
|
|
3038
|
+
};
|
|
3039
|
+
header?: {
|
|
3040
|
+
/**
|
|
3041
|
+
* @description The `ETag` from an earlier reply. When the catalogue has not changed since, the
|
|
3042
|
+
* answer is `304` with no body.
|
|
3043
|
+
*
|
|
3044
|
+
* Send it on every catalogue read. An unchanged catalogue is answered without a body.
|
|
3045
|
+
*/
|
|
3046
|
+
"If-None-Match"?: components["parameters"]["IfNoneMatch"];
|
|
3047
|
+
};
|
|
3048
|
+
path: {
|
|
3049
|
+
rateCardId: components["parameters"]["RateCardId"];
|
|
3050
|
+
};
|
|
3051
|
+
cookie?: never;
|
|
3052
|
+
};
|
|
3053
|
+
requestBody?: never;
|
|
3054
|
+
responses: {
|
|
3055
|
+
/** @description OK */
|
|
3056
|
+
200: {
|
|
3057
|
+
headers: {
|
|
3058
|
+
/**
|
|
3059
|
+
* @description Changes whenever the catalogue changes. Send it back as `If-None-Match`
|
|
3060
|
+
* to be told `304` instead of receiving the same listing again.
|
|
3061
|
+
*/
|
|
3062
|
+
ETag?: string;
|
|
3063
|
+
[name: string]: unknown;
|
|
3064
|
+
};
|
|
3065
|
+
content: {
|
|
3066
|
+
"application/json": components["schemas"]["RateList"];
|
|
3067
|
+
};
|
|
3068
|
+
};
|
|
3069
|
+
304: components["responses"]["NotModified"];
|
|
3070
|
+
default: components["responses"]["Error"];
|
|
3071
|
+
};
|
|
3072
|
+
};
|
|
3073
|
+
"create-estimate": {
|
|
3074
|
+
parameters: {
|
|
3075
|
+
query?: never;
|
|
3076
|
+
header?: never;
|
|
3077
|
+
path?: never;
|
|
3078
|
+
cookie?: never;
|
|
3079
|
+
};
|
|
3080
|
+
requestBody: {
|
|
3081
|
+
content: {
|
|
3082
|
+
"application/json": components["schemas"]["EstimateRequest"];
|
|
3083
|
+
};
|
|
3084
|
+
};
|
|
3085
|
+
responses: {
|
|
3086
|
+
/** @description OK */
|
|
3087
|
+
200: {
|
|
3088
|
+
headers: {
|
|
3089
|
+
[name: string]: unknown;
|
|
3090
|
+
};
|
|
3091
|
+
content: {
|
|
3092
|
+
"application/json": components["schemas"]["Quote"];
|
|
3093
|
+
};
|
|
3094
|
+
};
|
|
3095
|
+
default: components["responses"]["Error"];
|
|
3096
|
+
};
|
|
3097
|
+
};
|
|
3098
|
+
"list-currencies": {
|
|
3099
|
+
parameters: {
|
|
3100
|
+
query?: never;
|
|
3101
|
+
header?: never;
|
|
3102
|
+
path?: never;
|
|
3103
|
+
cookie?: never;
|
|
3104
|
+
};
|
|
3105
|
+
requestBody?: never;
|
|
3106
|
+
responses: {
|
|
3107
|
+
/** @description OK */
|
|
3108
|
+
200: {
|
|
3109
|
+
headers: {
|
|
3110
|
+
[name: string]: unknown;
|
|
3111
|
+
};
|
|
3112
|
+
content: {
|
|
3113
|
+
"application/json": components["schemas"]["CurrencyList"];
|
|
3114
|
+
};
|
|
3115
|
+
};
|
|
3116
|
+
default: components["responses"]["Error"];
|
|
3117
|
+
};
|
|
3118
|
+
};
|
|
3119
|
+
"list-billing-accounts": {
|
|
3120
|
+
parameters: {
|
|
3121
|
+
query?: {
|
|
3122
|
+
/** @description 1-based page number; the first page when omitted. */
|
|
3123
|
+
page?: components["parameters"]["Page"];
|
|
3124
|
+
/** @description How many per page, 100 at most. */
|
|
3125
|
+
page_size?: components["parameters"]["PageSize"];
|
|
3126
|
+
};
|
|
3127
|
+
header?: never;
|
|
3128
|
+
path?: never;
|
|
3129
|
+
cookie?: never;
|
|
3130
|
+
};
|
|
3131
|
+
requestBody?: never;
|
|
3132
|
+
responses: {
|
|
3133
|
+
/** @description OK */
|
|
3134
|
+
200: {
|
|
3135
|
+
headers: {
|
|
3136
|
+
[name: string]: unknown;
|
|
3137
|
+
};
|
|
3138
|
+
content: {
|
|
3139
|
+
"application/json": components["schemas"]["BillingAccountList"];
|
|
3140
|
+
};
|
|
3141
|
+
};
|
|
3142
|
+
default: components["responses"]["Error"];
|
|
3143
|
+
};
|
|
3144
|
+
};
|
|
3145
|
+
"create-billing-account": {
|
|
3146
|
+
parameters: {
|
|
3147
|
+
query?: never;
|
|
3148
|
+
header?: never;
|
|
3149
|
+
path?: never;
|
|
3150
|
+
cookie?: never;
|
|
3151
|
+
};
|
|
3152
|
+
requestBody: {
|
|
3153
|
+
content: {
|
|
3154
|
+
"application/json": components["schemas"]["BillingAccountCreate"];
|
|
3155
|
+
};
|
|
3156
|
+
};
|
|
3157
|
+
responses: {
|
|
3158
|
+
/** @description Created */
|
|
3159
|
+
201: {
|
|
3160
|
+
headers: {
|
|
3161
|
+
[name: string]: unknown;
|
|
3162
|
+
};
|
|
3163
|
+
content: {
|
|
3164
|
+
"application/json": components["schemas"]["BillingAccount"];
|
|
3165
|
+
};
|
|
3166
|
+
};
|
|
3167
|
+
default: components["responses"]["Error"];
|
|
3168
|
+
};
|
|
3169
|
+
};
|
|
3170
|
+
"get-billing-account": {
|
|
3171
|
+
parameters: {
|
|
3172
|
+
query?: never;
|
|
3173
|
+
header?: never;
|
|
3174
|
+
path: {
|
|
3175
|
+
accountId: components["parameters"]["AccountId"];
|
|
3176
|
+
};
|
|
3177
|
+
cookie?: never;
|
|
3178
|
+
};
|
|
3179
|
+
requestBody?: never;
|
|
3180
|
+
responses: {
|
|
3181
|
+
/** @description OK */
|
|
3182
|
+
200: {
|
|
3183
|
+
headers: {
|
|
3184
|
+
[name: string]: unknown;
|
|
3185
|
+
};
|
|
3186
|
+
content: {
|
|
3187
|
+
"application/json": components["schemas"]["BillingAccount"];
|
|
3188
|
+
};
|
|
3189
|
+
};
|
|
3190
|
+
default: components["responses"]["Error"];
|
|
3191
|
+
};
|
|
3192
|
+
};
|
|
3193
|
+
"update-billing-account": {
|
|
3194
|
+
parameters: {
|
|
3195
|
+
query?: never;
|
|
3196
|
+
header?: never;
|
|
3197
|
+
path: {
|
|
3198
|
+
accountId: components["parameters"]["AccountId"];
|
|
3199
|
+
};
|
|
3200
|
+
cookie?: never;
|
|
3201
|
+
};
|
|
3202
|
+
requestBody: {
|
|
3203
|
+
content: {
|
|
3204
|
+
"application/json": components["schemas"]["BillingAccountUpdate"];
|
|
3205
|
+
};
|
|
3206
|
+
};
|
|
3207
|
+
responses: {
|
|
3208
|
+
/** @description OK */
|
|
3209
|
+
200: {
|
|
3210
|
+
headers: {
|
|
3211
|
+
[name: string]: unknown;
|
|
3212
|
+
};
|
|
3213
|
+
content: {
|
|
3214
|
+
"application/json": components["schemas"]["BillingAccount"];
|
|
3215
|
+
};
|
|
3216
|
+
};
|
|
3217
|
+
default: components["responses"]["Error"];
|
|
3218
|
+
};
|
|
3219
|
+
};
|
|
3220
|
+
"get-account-balance": {
|
|
3221
|
+
parameters: {
|
|
3222
|
+
query?: never;
|
|
3223
|
+
header?: never;
|
|
3224
|
+
path: {
|
|
3225
|
+
accountId: components["parameters"]["AccountId"];
|
|
3226
|
+
};
|
|
3227
|
+
cookie?: never;
|
|
3228
|
+
};
|
|
3229
|
+
requestBody?: never;
|
|
3230
|
+
responses: {
|
|
3231
|
+
/** @description OK */
|
|
3232
|
+
200: {
|
|
3233
|
+
headers: {
|
|
3234
|
+
[name: string]: unknown;
|
|
3235
|
+
};
|
|
3236
|
+
content: {
|
|
3237
|
+
"application/json": components["schemas"]["AccountBalance"];
|
|
3238
|
+
};
|
|
3239
|
+
};
|
|
3240
|
+
default: components["responses"]["Error"];
|
|
3241
|
+
};
|
|
3242
|
+
};
|
|
3243
|
+
"list-payment-options": {
|
|
3244
|
+
parameters: {
|
|
3245
|
+
query?: never;
|
|
3246
|
+
header?: never;
|
|
3247
|
+
path: {
|
|
3248
|
+
accountId: components["parameters"]["AccountId"];
|
|
3249
|
+
};
|
|
3250
|
+
cookie?: never;
|
|
3251
|
+
};
|
|
3252
|
+
requestBody?: never;
|
|
3253
|
+
responses: {
|
|
3254
|
+
/** @description OK */
|
|
3255
|
+
200: {
|
|
3256
|
+
headers: {
|
|
3257
|
+
[name: string]: unknown;
|
|
3258
|
+
};
|
|
3259
|
+
content: {
|
|
3260
|
+
"application/json": components["schemas"]["PaymentOptionList"];
|
|
3261
|
+
};
|
|
3262
|
+
};
|
|
3263
|
+
default: components["responses"]["Error"];
|
|
3264
|
+
};
|
|
3265
|
+
};
|
|
3266
|
+
"list-billing-account-projects": {
|
|
3267
|
+
parameters: {
|
|
3268
|
+
query?: {
|
|
3269
|
+
/** @description 1-based page number; the first page when omitted. */
|
|
3270
|
+
page?: components["parameters"]["Page"];
|
|
3271
|
+
/** @description How many per page, 100 at most. */
|
|
3272
|
+
page_size?: components["parameters"]["PageSize"];
|
|
3273
|
+
billing_account_id?: number;
|
|
3274
|
+
};
|
|
3275
|
+
header?: never;
|
|
3276
|
+
path?: never;
|
|
3277
|
+
cookie?: never;
|
|
3278
|
+
};
|
|
3279
|
+
requestBody?: never;
|
|
3280
|
+
responses: {
|
|
3281
|
+
/** @description OK */
|
|
3282
|
+
200: {
|
|
3283
|
+
headers: {
|
|
3284
|
+
[name: string]: unknown;
|
|
3285
|
+
};
|
|
3286
|
+
content: {
|
|
3287
|
+
"application/json": components["schemas"]["ProjectBillingInfoList"];
|
|
3288
|
+
};
|
|
3289
|
+
};
|
|
3290
|
+
default: components["responses"]["Error"];
|
|
3291
|
+
};
|
|
3292
|
+
};
|
|
3293
|
+
"get-project-billing-account": {
|
|
3294
|
+
parameters: {
|
|
3295
|
+
query?: never;
|
|
3296
|
+
header?: never;
|
|
3297
|
+
path: {
|
|
3298
|
+
projectId: components["parameters"]["ProjectId"];
|
|
3299
|
+
};
|
|
3300
|
+
cookie?: never;
|
|
3301
|
+
};
|
|
3302
|
+
requestBody?: never;
|
|
3303
|
+
responses: {
|
|
3304
|
+
/** @description OK */
|
|
3305
|
+
200: {
|
|
3306
|
+
headers: {
|
|
3307
|
+
[name: string]: unknown;
|
|
3308
|
+
};
|
|
3309
|
+
content: {
|
|
3310
|
+
"application/json": components["schemas"]["ProjectBillingInfo"];
|
|
3311
|
+
};
|
|
3312
|
+
};
|
|
3313
|
+
default: components["responses"]["Error"];
|
|
3314
|
+
};
|
|
3315
|
+
};
|
|
3316
|
+
"set-project-billing-account": {
|
|
3317
|
+
parameters: {
|
|
3318
|
+
query?: never;
|
|
3319
|
+
header?: never;
|
|
3320
|
+
path: {
|
|
3321
|
+
projectId: components["parameters"]["ProjectId"];
|
|
3322
|
+
};
|
|
3323
|
+
cookie?: never;
|
|
3324
|
+
};
|
|
3325
|
+
requestBody: {
|
|
3326
|
+
content: {
|
|
3327
|
+
"application/json": components["schemas"]["ProjectBillingInfoSet"];
|
|
3328
|
+
};
|
|
3329
|
+
};
|
|
3330
|
+
responses: {
|
|
3331
|
+
/** @description OK */
|
|
3332
|
+
200: {
|
|
3333
|
+
headers: {
|
|
3334
|
+
[name: string]: unknown;
|
|
3335
|
+
};
|
|
3336
|
+
content: {
|
|
3337
|
+
"application/json": components["schemas"]["ProjectBillingInfo"];
|
|
3338
|
+
};
|
|
3339
|
+
};
|
|
3340
|
+
default: components["responses"]["Error"];
|
|
3341
|
+
};
|
|
3342
|
+
};
|
|
3343
|
+
"unlink-project-billing-account": {
|
|
3344
|
+
parameters: {
|
|
3345
|
+
query?: never;
|
|
3346
|
+
header?: never;
|
|
3347
|
+
path: {
|
|
3348
|
+
projectId: components["parameters"]["ProjectId"];
|
|
3349
|
+
};
|
|
3350
|
+
cookie?: never;
|
|
3351
|
+
};
|
|
3352
|
+
requestBody?: never;
|
|
3353
|
+
responses: {
|
|
3354
|
+
/** @description Unlinked */
|
|
3355
|
+
204: {
|
|
3356
|
+
headers: {
|
|
3357
|
+
[name: string]: unknown;
|
|
3358
|
+
};
|
|
3359
|
+
content?: never;
|
|
3360
|
+
};
|
|
3361
|
+
default: components["responses"]["Error"];
|
|
3362
|
+
};
|
|
3363
|
+
};
|
|
3364
|
+
"list-top-ups": {
|
|
3365
|
+
parameters: {
|
|
3366
|
+
query?: {
|
|
3367
|
+
/** @description 1-based page number; the first page when omitted. */
|
|
3368
|
+
page?: components["parameters"]["Page"];
|
|
3369
|
+
/** @description How many per page, 100 at most. */
|
|
3370
|
+
page_size?: components["parameters"]["PageSize"];
|
|
3371
|
+
/** @description Restrict to one of your accounts. All of them when omitted. */
|
|
3372
|
+
billing_account_id?: components["parameters"]["AccountIdQuery"];
|
|
3373
|
+
};
|
|
3374
|
+
header?: never;
|
|
3375
|
+
path?: never;
|
|
3376
|
+
cookie?: never;
|
|
3377
|
+
};
|
|
3378
|
+
requestBody?: never;
|
|
3379
|
+
responses: {
|
|
3380
|
+
/** @description OK */
|
|
3381
|
+
200: {
|
|
3382
|
+
headers: {
|
|
3383
|
+
[name: string]: unknown;
|
|
3384
|
+
};
|
|
3385
|
+
content: {
|
|
3386
|
+
"application/json": components["schemas"]["TopUpList"];
|
|
3387
|
+
};
|
|
3388
|
+
};
|
|
3389
|
+
default: components["responses"]["Error"];
|
|
3390
|
+
};
|
|
3391
|
+
};
|
|
3392
|
+
"create-top-up": {
|
|
3393
|
+
parameters: {
|
|
3394
|
+
query?: never;
|
|
3395
|
+
header?: never;
|
|
3396
|
+
path?: never;
|
|
3397
|
+
cookie?: never;
|
|
3398
|
+
};
|
|
3399
|
+
requestBody: {
|
|
3400
|
+
content: {
|
|
3401
|
+
"application/json": components["schemas"]["TopUpCreate"];
|
|
3402
|
+
};
|
|
3403
|
+
};
|
|
3404
|
+
responses: {
|
|
3405
|
+
/** @description Created */
|
|
3406
|
+
201: {
|
|
3407
|
+
headers: {
|
|
3408
|
+
[name: string]: unknown;
|
|
3409
|
+
};
|
|
3410
|
+
content: {
|
|
3411
|
+
"application/json": components["schemas"]["TopUp"];
|
|
3412
|
+
};
|
|
3413
|
+
};
|
|
3414
|
+
default: components["responses"]["Error"];
|
|
3415
|
+
};
|
|
3416
|
+
};
|
|
3417
|
+
"get-top-up": {
|
|
3418
|
+
parameters: {
|
|
3419
|
+
query?: never;
|
|
3420
|
+
header?: never;
|
|
3421
|
+
path: {
|
|
3422
|
+
topUpId: string;
|
|
3423
|
+
};
|
|
3424
|
+
cookie?: never;
|
|
3425
|
+
};
|
|
3426
|
+
requestBody?: never;
|
|
3427
|
+
responses: {
|
|
3428
|
+
/** @description OK */
|
|
3429
|
+
200: {
|
|
3430
|
+
headers: {
|
|
3431
|
+
[name: string]: unknown;
|
|
3432
|
+
};
|
|
3433
|
+
content: {
|
|
3434
|
+
"application/json": components["schemas"]["TopUp"];
|
|
3435
|
+
};
|
|
3436
|
+
};
|
|
3437
|
+
default: components["responses"]["Error"];
|
|
3438
|
+
};
|
|
3439
|
+
};
|
|
3440
|
+
"cancel-top-up": {
|
|
3441
|
+
parameters: {
|
|
3442
|
+
query?: never;
|
|
3443
|
+
header?: never;
|
|
3444
|
+
path: {
|
|
3445
|
+
topUpId: string;
|
|
3446
|
+
};
|
|
3447
|
+
cookie?: never;
|
|
3448
|
+
};
|
|
3449
|
+
requestBody?: never;
|
|
3450
|
+
responses: {
|
|
3451
|
+
/** @description The top-up after the request, canceled or succeeded. */
|
|
3452
|
+
200: {
|
|
3453
|
+
headers: {
|
|
3454
|
+
[name: string]: unknown;
|
|
3455
|
+
};
|
|
3456
|
+
content: {
|
|
3457
|
+
"application/json": components["schemas"]["TopUp"];
|
|
3458
|
+
};
|
|
3459
|
+
};
|
|
3460
|
+
/** @description The top-up already has another outcome or can no longer be withdrawn. */
|
|
3461
|
+
409: {
|
|
3462
|
+
headers: {
|
|
3463
|
+
[name: string]: unknown;
|
|
3464
|
+
};
|
|
3465
|
+
content: {
|
|
3466
|
+
"application/json": components["schemas"]["Error"];
|
|
3467
|
+
};
|
|
3468
|
+
};
|
|
3469
|
+
default: components["responses"]["Error"];
|
|
3470
|
+
};
|
|
3471
|
+
};
|
|
3472
|
+
"list-payment-methods": {
|
|
3473
|
+
parameters: {
|
|
3474
|
+
query?: {
|
|
3475
|
+
/** @description 1-based page number; the first page when omitted. */
|
|
3476
|
+
page?: components["parameters"]["Page"];
|
|
3477
|
+
/** @description How many per page, 100 at most. */
|
|
3478
|
+
page_size?: components["parameters"]["PageSize"];
|
|
3479
|
+
/** @description Restrict to one of your accounts. All of them when omitted. */
|
|
3480
|
+
billing_account_id?: components["parameters"]["AccountIdQuery"];
|
|
3481
|
+
};
|
|
3482
|
+
header?: never;
|
|
3483
|
+
path?: never;
|
|
3484
|
+
cookie?: never;
|
|
3485
|
+
};
|
|
3486
|
+
requestBody?: never;
|
|
3487
|
+
responses: {
|
|
3488
|
+
/** @description OK */
|
|
3489
|
+
200: {
|
|
3490
|
+
headers: {
|
|
3491
|
+
[name: string]: unknown;
|
|
3492
|
+
};
|
|
3493
|
+
content: {
|
|
3494
|
+
"application/json": components["schemas"]["PaymentMethodList"];
|
|
3495
|
+
};
|
|
3496
|
+
};
|
|
3497
|
+
default: components["responses"]["Error"];
|
|
3498
|
+
};
|
|
3499
|
+
};
|
|
3500
|
+
"create-payment-method-setup": {
|
|
3501
|
+
parameters: {
|
|
3502
|
+
query?: never;
|
|
3503
|
+
header?: never;
|
|
3504
|
+
path?: never;
|
|
3505
|
+
cookie?: never;
|
|
3506
|
+
};
|
|
3507
|
+
requestBody: {
|
|
3508
|
+
content: {
|
|
3509
|
+
"application/json": components["schemas"]["PaymentMethodSetup"];
|
|
3510
|
+
};
|
|
3511
|
+
};
|
|
3512
|
+
responses: {
|
|
3513
|
+
/** @description Created */
|
|
3514
|
+
201: {
|
|
3515
|
+
headers: {
|
|
3516
|
+
[name: string]: unknown;
|
|
3517
|
+
};
|
|
3518
|
+
content: {
|
|
3519
|
+
"application/json": components["schemas"]["PaymentMethodSetupResult"];
|
|
3520
|
+
};
|
|
3521
|
+
};
|
|
3522
|
+
default: components["responses"]["Error"];
|
|
3523
|
+
};
|
|
3524
|
+
};
|
|
3525
|
+
"set-default-payment-method": {
|
|
3526
|
+
parameters: {
|
|
3527
|
+
query?: never;
|
|
3528
|
+
header?: never;
|
|
3529
|
+
path: {
|
|
3530
|
+
paymentMethodId: components["parameters"]["PaymentMethodId"];
|
|
3531
|
+
};
|
|
3532
|
+
cookie?: never;
|
|
3533
|
+
};
|
|
3534
|
+
requestBody?: never;
|
|
3535
|
+
responses: {
|
|
3536
|
+
/** @description OK */
|
|
3537
|
+
200: {
|
|
3538
|
+
headers: {
|
|
3539
|
+
[name: string]: unknown;
|
|
3540
|
+
};
|
|
3541
|
+
content: {
|
|
3542
|
+
"application/json": components["schemas"]["PaymentMethod"];
|
|
3543
|
+
};
|
|
3544
|
+
};
|
|
3545
|
+
default: components["responses"]["Error"];
|
|
3546
|
+
};
|
|
3547
|
+
};
|
|
3548
|
+
"delete-payment-method": {
|
|
3549
|
+
parameters: {
|
|
3550
|
+
query?: never;
|
|
3551
|
+
header?: never;
|
|
3552
|
+
path: {
|
|
3553
|
+
paymentMethodId: components["parameters"]["PaymentMethodId"];
|
|
3554
|
+
};
|
|
3555
|
+
cookie?: never;
|
|
3556
|
+
};
|
|
3557
|
+
requestBody?: never;
|
|
3558
|
+
responses: {
|
|
3559
|
+
/** @description Removed */
|
|
3560
|
+
204: {
|
|
3561
|
+
headers: {
|
|
3562
|
+
[name: string]: unknown;
|
|
3563
|
+
};
|
|
3564
|
+
content?: never;
|
|
3565
|
+
};
|
|
3566
|
+
default: components["responses"]["Error"];
|
|
3567
|
+
};
|
|
3568
|
+
};
|
|
3569
|
+
"pay-invoice": {
|
|
3570
|
+
parameters: {
|
|
3571
|
+
query?: never;
|
|
3572
|
+
header?: never;
|
|
3573
|
+
path: {
|
|
3574
|
+
invoiceId: components["parameters"]["InvoiceId"];
|
|
3575
|
+
};
|
|
3576
|
+
cookie?: never;
|
|
3577
|
+
};
|
|
3578
|
+
requestBody?: {
|
|
3579
|
+
content: {
|
|
3580
|
+
"application/json": components["schemas"]["PayRequest"];
|
|
3581
|
+
};
|
|
3582
|
+
};
|
|
3583
|
+
responses: {
|
|
3584
|
+
/** @description OK */
|
|
3585
|
+
200: {
|
|
3586
|
+
headers: {
|
|
3587
|
+
[name: string]: unknown;
|
|
3588
|
+
};
|
|
3589
|
+
content: {
|
|
3590
|
+
"application/json": components["schemas"]["PaymentResult"];
|
|
3591
|
+
};
|
|
3592
|
+
};
|
|
3593
|
+
default: components["responses"]["Error"];
|
|
3594
|
+
};
|
|
3595
|
+
};
|
|
3596
|
+
"pay-together": {
|
|
3597
|
+
parameters: {
|
|
3598
|
+
query?: never;
|
|
3599
|
+
header?: never;
|
|
3600
|
+
path?: never;
|
|
3601
|
+
cookie?: never;
|
|
3602
|
+
};
|
|
3603
|
+
requestBody: {
|
|
3604
|
+
content: {
|
|
3605
|
+
"application/json": components["schemas"]["PayTogetherRequest"];
|
|
3606
|
+
};
|
|
3607
|
+
};
|
|
3608
|
+
responses: {
|
|
3609
|
+
/** @description OK */
|
|
3610
|
+
200: {
|
|
3611
|
+
headers: {
|
|
3612
|
+
[name: string]: unknown;
|
|
3613
|
+
};
|
|
3614
|
+
content: {
|
|
3615
|
+
"application/json": components["schemas"]["PaymentResult"];
|
|
3616
|
+
};
|
|
3617
|
+
};
|
|
3618
|
+
default: components["responses"]["Error"];
|
|
3619
|
+
};
|
|
3620
|
+
};
|
|
3621
|
+
"list-invoices": {
|
|
3622
|
+
parameters: {
|
|
3623
|
+
query?: {
|
|
3624
|
+
/** @description 1-based page number; the first page when omitted. */
|
|
3625
|
+
page?: components["parameters"]["Page"];
|
|
3626
|
+
/** @description How many per page, 100 at most. */
|
|
3627
|
+
page_size?: components["parameters"]["PageSize"];
|
|
3628
|
+
/** @description Restrict to one of your accounts. All of them when omitted. */
|
|
3629
|
+
billing_account_id?: components["parameters"]["AccountIdQuery"];
|
|
3630
|
+
status?: components["schemas"]["InvoiceStatus"];
|
|
3631
|
+
from?: components["parameters"]["From"];
|
|
3632
|
+
/** @description Exclusive. */
|
|
3633
|
+
to?: components["parameters"]["To"];
|
|
3634
|
+
};
|
|
3635
|
+
header?: never;
|
|
3636
|
+
path?: never;
|
|
3637
|
+
cookie?: never;
|
|
3638
|
+
};
|
|
3639
|
+
requestBody?: never;
|
|
3640
|
+
responses: {
|
|
3641
|
+
/** @description OK */
|
|
3642
|
+
200: {
|
|
3643
|
+
headers: {
|
|
3644
|
+
[name: string]: unknown;
|
|
3645
|
+
};
|
|
3646
|
+
content: {
|
|
3647
|
+
"application/json": components["schemas"]["InvoiceList"];
|
|
3648
|
+
};
|
|
3649
|
+
};
|
|
3650
|
+
default: components["responses"]["Error"];
|
|
3651
|
+
};
|
|
3652
|
+
};
|
|
3653
|
+
"get-invoice": {
|
|
3654
|
+
parameters: {
|
|
3655
|
+
query?: never;
|
|
3656
|
+
header?: never;
|
|
3657
|
+
path: {
|
|
3658
|
+
invoiceId: components["parameters"]["InvoiceId"];
|
|
3659
|
+
};
|
|
3660
|
+
cookie?: never;
|
|
3661
|
+
};
|
|
3662
|
+
requestBody?: never;
|
|
3663
|
+
responses: {
|
|
3664
|
+
/** @description OK */
|
|
3665
|
+
200: {
|
|
3666
|
+
headers: {
|
|
3667
|
+
[name: string]: unknown;
|
|
3668
|
+
};
|
|
3669
|
+
content: {
|
|
3670
|
+
"application/json": components["schemas"]["Invoice"];
|
|
3671
|
+
};
|
|
3672
|
+
};
|
|
3673
|
+
default: components["responses"]["Error"];
|
|
3674
|
+
};
|
|
3675
|
+
};
|
|
3676
|
+
"list-invoice-items": {
|
|
3677
|
+
parameters: {
|
|
3678
|
+
query?: {
|
|
3679
|
+
/** @description 1-based page number; the first page when omitted. */
|
|
3680
|
+
page?: components["parameters"]["Page"];
|
|
3681
|
+
/** @description How many per page, 100 at most. */
|
|
3682
|
+
page_size?: components["parameters"]["PageSize"];
|
|
3683
|
+
};
|
|
3684
|
+
header?: never;
|
|
3685
|
+
path: {
|
|
3686
|
+
invoiceId: components["parameters"]["InvoiceId"];
|
|
3687
|
+
};
|
|
3688
|
+
cookie?: never;
|
|
3689
|
+
};
|
|
3690
|
+
requestBody?: never;
|
|
3691
|
+
responses: {
|
|
3692
|
+
/** @description OK */
|
|
3693
|
+
200: {
|
|
3694
|
+
headers: {
|
|
3695
|
+
[name: string]: unknown;
|
|
3696
|
+
};
|
|
3697
|
+
content: {
|
|
3698
|
+
"application/json": components["schemas"]["InvoiceItemList"];
|
|
3699
|
+
};
|
|
3700
|
+
};
|
|
3701
|
+
default: components["responses"]["Error"];
|
|
3702
|
+
};
|
|
3703
|
+
};
|
|
3704
|
+
"list-transactions": {
|
|
3705
|
+
parameters: {
|
|
3706
|
+
query?: {
|
|
3707
|
+
/** @description 1-based page number; the first page when omitted. */
|
|
3708
|
+
page?: components["parameters"]["Page"];
|
|
3709
|
+
/** @description How many per page, 100 at most. */
|
|
3710
|
+
page_size?: components["parameters"]["PageSize"];
|
|
3711
|
+
/** @description Restrict to one of your accounts. All of them when omitted. */
|
|
3712
|
+
billing_account_id?: components["parameters"]["AccountIdQuery"];
|
|
3713
|
+
from?: components["parameters"]["From"];
|
|
3714
|
+
/** @description Exclusive. */
|
|
3715
|
+
to?: components["parameters"]["To"];
|
|
3716
|
+
};
|
|
3717
|
+
header?: never;
|
|
3718
|
+
path?: never;
|
|
3719
|
+
cookie?: never;
|
|
3720
|
+
};
|
|
3721
|
+
requestBody?: never;
|
|
3722
|
+
responses: {
|
|
3723
|
+
/** @description OK */
|
|
3724
|
+
200: {
|
|
3725
|
+
headers: {
|
|
3726
|
+
[name: string]: unknown;
|
|
3727
|
+
};
|
|
3728
|
+
content: {
|
|
3729
|
+
"application/json": components["schemas"]["TransactionList"];
|
|
3730
|
+
};
|
|
3731
|
+
};
|
|
3732
|
+
default: components["responses"]["Error"];
|
|
3733
|
+
};
|
|
3734
|
+
};
|
|
3735
|
+
"list-account-discounts": {
|
|
3736
|
+
parameters: {
|
|
3737
|
+
query?: {
|
|
3738
|
+
/** @description 1-based page number; the first page when omitted. */
|
|
3739
|
+
page?: components["parameters"]["Page"];
|
|
3740
|
+
/** @description How many per page, 100 at most. */
|
|
3741
|
+
page_size?: components["parameters"]["PageSize"];
|
|
3742
|
+
/** @description Restrict to one of your accounts. All of them when omitted. */
|
|
3743
|
+
billing_account_id?: components["parameters"]["AccountIdQuery"];
|
|
3744
|
+
};
|
|
3745
|
+
header?: never;
|
|
3746
|
+
path?: never;
|
|
3747
|
+
cookie?: never;
|
|
3748
|
+
};
|
|
3749
|
+
requestBody?: never;
|
|
3750
|
+
responses: {
|
|
3751
|
+
/** @description OK */
|
|
3752
|
+
200: {
|
|
3753
|
+
headers: {
|
|
3754
|
+
[name: string]: unknown;
|
|
3755
|
+
};
|
|
3756
|
+
content: {
|
|
3757
|
+
"application/json": components["schemas"]["DiscountList"];
|
|
3758
|
+
};
|
|
3759
|
+
};
|
|
3760
|
+
default: components["responses"]["Error"];
|
|
3761
|
+
};
|
|
3762
|
+
};
|
|
3763
|
+
"list-credit-grants": {
|
|
3764
|
+
parameters: {
|
|
3765
|
+
query?: {
|
|
3766
|
+
/** @description 1-based page number; the first page when omitted. */
|
|
3767
|
+
page?: components["parameters"]["Page"];
|
|
3768
|
+
/** @description How many per page, 100 at most. */
|
|
3769
|
+
page_size?: components["parameters"]["PageSize"];
|
|
3770
|
+
/** @description Restrict to one of your accounts. All of them when omitted. */
|
|
3771
|
+
billing_account_id?: components["parameters"]["AccountIdQuery"];
|
|
3772
|
+
status?: "active" | "depleted" | "expired" | "voided";
|
|
3773
|
+
};
|
|
3774
|
+
header?: never;
|
|
3775
|
+
path?: never;
|
|
3776
|
+
cookie?: never;
|
|
3777
|
+
};
|
|
3778
|
+
requestBody?: never;
|
|
3779
|
+
responses: {
|
|
3780
|
+
/** @description OK */
|
|
3781
|
+
200: {
|
|
3782
|
+
headers: {
|
|
3783
|
+
[name: string]: unknown;
|
|
3784
|
+
};
|
|
3785
|
+
content: {
|
|
3786
|
+
"application/json": components["schemas"]["CreditGrantList"];
|
|
3787
|
+
};
|
|
3788
|
+
};
|
|
3789
|
+
default: components["responses"]["Error"];
|
|
3790
|
+
};
|
|
3791
|
+
};
|
|
3792
|
+
"list-refunds": {
|
|
3793
|
+
parameters: {
|
|
3794
|
+
query?: {
|
|
3795
|
+
/** @description 1-based page number; the first page when omitted. */
|
|
3796
|
+
page?: components["parameters"]["Page"];
|
|
3797
|
+
/** @description How many per page, 100 at most. */
|
|
3798
|
+
page_size?: components["parameters"]["PageSize"];
|
|
3799
|
+
/** @description Restrict to one of your accounts. All of them when omitted. */
|
|
3800
|
+
billing_account_id?: components["parameters"]["AccountIdQuery"];
|
|
3801
|
+
};
|
|
3802
|
+
header?: never;
|
|
3803
|
+
path?: never;
|
|
3804
|
+
cookie?: never;
|
|
3805
|
+
};
|
|
3806
|
+
requestBody?: never;
|
|
3807
|
+
responses: {
|
|
3808
|
+
/** @description OK */
|
|
3809
|
+
200: {
|
|
3810
|
+
headers: {
|
|
3811
|
+
[name: string]: unknown;
|
|
3812
|
+
};
|
|
3813
|
+
content: {
|
|
3814
|
+
"application/json": components["schemas"]["RefundList"];
|
|
3815
|
+
};
|
|
3816
|
+
};
|
|
3817
|
+
default: components["responses"]["Error"];
|
|
3818
|
+
};
|
|
3819
|
+
};
|
|
3820
|
+
"list-usage-charges": {
|
|
3821
|
+
parameters: {
|
|
3822
|
+
query?: {
|
|
3823
|
+
/** @description 1-based page number; the first page when omitted. */
|
|
3824
|
+
page?: components["parameters"]["Page"];
|
|
3825
|
+
/** @description How many per page, 100 at most. */
|
|
3826
|
+
page_size?: components["parameters"]["PageSize"];
|
|
3827
|
+
/** @description Restrict to one of your accounts. All of them when omitted. */
|
|
3828
|
+
billing_account_id?: components["parameters"]["AccountIdQuery"];
|
|
3829
|
+
project_id?: string;
|
|
3830
|
+
product_id?: components["schemas"]["ProductID"];
|
|
3831
|
+
resource_id?: string;
|
|
3832
|
+
/** @description Only the charges summed into this usage invoice line. */
|
|
3833
|
+
invoice_item_id?: string;
|
|
3834
|
+
from?: components["parameters"]["From"];
|
|
3835
|
+
/** @description Exclusive. */
|
|
3836
|
+
to?: components["parameters"]["To"];
|
|
3837
|
+
};
|
|
3838
|
+
header?: never;
|
|
3839
|
+
path?: never;
|
|
3840
|
+
cookie?: never;
|
|
3841
|
+
};
|
|
3842
|
+
requestBody?: never;
|
|
3843
|
+
responses: {
|
|
3844
|
+
/** @description OK */
|
|
3845
|
+
200: {
|
|
3846
|
+
headers: {
|
|
3847
|
+
[name: string]: unknown;
|
|
3848
|
+
};
|
|
3849
|
+
content: {
|
|
3850
|
+
"application/json": components["schemas"]["UsageChargeList"];
|
|
3851
|
+
};
|
|
3852
|
+
};
|
|
3853
|
+
default: components["responses"]["Error"];
|
|
3854
|
+
};
|
|
3855
|
+
};
|
|
3856
|
+
"list-subscriptions": {
|
|
3857
|
+
parameters: {
|
|
3858
|
+
query?: {
|
|
3859
|
+
expiring_before?: string;
|
|
3860
|
+
/** @description 1-based page number; the first page when omitted. */
|
|
3861
|
+
page?: components["parameters"]["Page"];
|
|
3862
|
+
/** @description How many per page, 100 at most. */
|
|
3863
|
+
page_size?: components["parameters"]["PageSize"];
|
|
3864
|
+
/** @description Restrict to one of your accounts. All of them when omitted. */
|
|
3865
|
+
billing_account_id?: components["parameters"]["AccountIdQuery"];
|
|
3866
|
+
project_id?: string;
|
|
3867
|
+
};
|
|
3868
|
+
header?: never;
|
|
3869
|
+
path?: never;
|
|
3870
|
+
cookie?: never;
|
|
3871
|
+
};
|
|
3872
|
+
requestBody?: never;
|
|
3873
|
+
responses: {
|
|
3874
|
+
/** @description OK */
|
|
3875
|
+
200: {
|
|
3876
|
+
headers: {
|
|
3877
|
+
[name: string]: unknown;
|
|
3878
|
+
};
|
|
3879
|
+
content: {
|
|
3880
|
+
"application/json": components["schemas"]["SubscriptionList"];
|
|
3881
|
+
};
|
|
3882
|
+
};
|
|
3883
|
+
default: components["responses"]["Error"];
|
|
3884
|
+
};
|
|
3885
|
+
};
|
|
3886
|
+
"get-subscription": {
|
|
3887
|
+
parameters: {
|
|
3888
|
+
query?: never;
|
|
3889
|
+
header?: never;
|
|
3890
|
+
path: {
|
|
3891
|
+
subscriptionId: components["parameters"]["SubscriptionId"];
|
|
3892
|
+
};
|
|
3893
|
+
cookie?: never;
|
|
3894
|
+
};
|
|
3895
|
+
requestBody?: never;
|
|
3896
|
+
responses: {
|
|
3897
|
+
/** @description Purchase and renewal agreement */
|
|
3898
|
+
200: {
|
|
3899
|
+
headers: {
|
|
3900
|
+
[name: string]: unknown;
|
|
3901
|
+
};
|
|
3902
|
+
content: {
|
|
3903
|
+
"application/json": components["schemas"]["Subscription"];
|
|
3904
|
+
};
|
|
3905
|
+
};
|
|
3906
|
+
default: components["responses"]["Error"];
|
|
3907
|
+
};
|
|
3908
|
+
};
|
|
3909
|
+
"preview-cancellation": {
|
|
3910
|
+
parameters: {
|
|
3911
|
+
query?: never;
|
|
3912
|
+
header?: never;
|
|
3913
|
+
path: {
|
|
3914
|
+
subscriptionId: components["parameters"]["SubscriptionId"];
|
|
3915
|
+
};
|
|
3916
|
+
cookie?: never;
|
|
3917
|
+
};
|
|
3918
|
+
requestBody?: never;
|
|
3919
|
+
responses: {
|
|
3920
|
+
/** @description Cancellation estimate */
|
|
3921
|
+
200: {
|
|
3922
|
+
headers: {
|
|
3923
|
+
[name: string]: unknown;
|
|
3924
|
+
};
|
|
3925
|
+
content: {
|
|
3926
|
+
"application/json": components["schemas"]["CancellationPreview"];
|
|
3927
|
+
};
|
|
3928
|
+
};
|
|
3929
|
+
default: components["responses"]["Error"];
|
|
3930
|
+
};
|
|
3931
|
+
};
|
|
3932
|
+
"create-cancellation-request": {
|
|
3933
|
+
parameters: {
|
|
3934
|
+
query?: never;
|
|
3935
|
+
header?: never;
|
|
3936
|
+
path: {
|
|
3937
|
+
subscriptionId: components["parameters"]["SubscriptionId"];
|
|
3938
|
+
};
|
|
3939
|
+
cookie?: never;
|
|
3940
|
+
};
|
|
3941
|
+
requestBody: {
|
|
3942
|
+
content: {
|
|
3943
|
+
"application/json": components["schemas"]["CancellationRequestCreate"];
|
|
3944
|
+
};
|
|
3945
|
+
};
|
|
3946
|
+
responses: {
|
|
3947
|
+
/** @description Cancellation requested */
|
|
3948
|
+
201: {
|
|
3949
|
+
headers: {
|
|
3950
|
+
[name: string]: unknown;
|
|
3951
|
+
};
|
|
3952
|
+
content: {
|
|
3953
|
+
"application/json": components["schemas"]["CancellationRequest"];
|
|
3954
|
+
};
|
|
3955
|
+
};
|
|
3956
|
+
default: components["responses"]["Error"];
|
|
3957
|
+
};
|
|
3958
|
+
};
|
|
3959
|
+
"get-cancellation-request": {
|
|
3960
|
+
parameters: {
|
|
3961
|
+
query?: never;
|
|
3962
|
+
header?: never;
|
|
3963
|
+
path: {
|
|
3964
|
+
cancellationRequestId: components["parameters"]["CancellationRequestId"];
|
|
3965
|
+
};
|
|
3966
|
+
cookie?: never;
|
|
3967
|
+
};
|
|
3968
|
+
requestBody?: never;
|
|
3969
|
+
responses: {
|
|
3970
|
+
/** @description Request and actual end receipt */
|
|
3971
|
+
200: {
|
|
3972
|
+
headers: {
|
|
3973
|
+
[name: string]: unknown;
|
|
3974
|
+
};
|
|
3975
|
+
content: {
|
|
3976
|
+
"application/json": components["schemas"]["CancellationRequest"];
|
|
3977
|
+
};
|
|
3978
|
+
};
|
|
3979
|
+
default: components["responses"]["Error"];
|
|
3980
|
+
};
|
|
3981
|
+
};
|
|
3982
|
+
"cancel-cancellation-request": {
|
|
3983
|
+
parameters: {
|
|
3984
|
+
query?: never;
|
|
3985
|
+
header?: never;
|
|
3986
|
+
path: {
|
|
3987
|
+
cancellationRequestId: components["parameters"]["CancellationRequestId"];
|
|
3988
|
+
};
|
|
3989
|
+
cookie?: never;
|
|
3990
|
+
};
|
|
3991
|
+
requestBody?: never;
|
|
3992
|
+
responses: {
|
|
3993
|
+
/** @description Canceled request */
|
|
3994
|
+
200: {
|
|
3995
|
+
headers: {
|
|
3996
|
+
[name: string]: unknown;
|
|
3997
|
+
};
|
|
3998
|
+
content: {
|
|
3999
|
+
"application/json": components["schemas"]["CancellationRequest"];
|
|
4000
|
+
};
|
|
4001
|
+
};
|
|
4002
|
+
default: components["responses"]["Error"];
|
|
4003
|
+
};
|
|
4004
|
+
};
|
|
4005
|
+
"list-renewal-prices": {
|
|
4006
|
+
parameters: {
|
|
4007
|
+
query?: never;
|
|
4008
|
+
header?: never;
|
|
4009
|
+
path: {
|
|
4010
|
+
subscriptionId: string;
|
|
4011
|
+
};
|
|
4012
|
+
cookie?: never;
|
|
4013
|
+
};
|
|
4014
|
+
requestBody?: never;
|
|
4015
|
+
responses: {
|
|
4016
|
+
/** @description OK */
|
|
4017
|
+
200: {
|
|
4018
|
+
headers: {
|
|
4019
|
+
[name: string]: unknown;
|
|
4020
|
+
};
|
|
4021
|
+
content: {
|
|
4022
|
+
"application/json": components["schemas"]["RenewalPriceList"];
|
|
4023
|
+
};
|
|
4024
|
+
};
|
|
4025
|
+
default: components["responses"]["Error"];
|
|
4026
|
+
};
|
|
4027
|
+
};
|
|
4028
|
+
"renew-subscription": {
|
|
4029
|
+
parameters: {
|
|
4030
|
+
query?: never;
|
|
4031
|
+
header?: never;
|
|
4032
|
+
path: {
|
|
4033
|
+
subscriptionId: components["parameters"]["SubscriptionId"];
|
|
4034
|
+
};
|
|
4035
|
+
cookie?: never;
|
|
4036
|
+
};
|
|
4037
|
+
requestBody: {
|
|
4038
|
+
content: {
|
|
4039
|
+
"application/json": components["schemas"]["RenewRequest"];
|
|
4040
|
+
};
|
|
4041
|
+
};
|
|
4042
|
+
responses: {
|
|
4043
|
+
/** @description OK */
|
|
4044
|
+
200: {
|
|
4045
|
+
headers: {
|
|
4046
|
+
[name: string]: unknown;
|
|
4047
|
+
};
|
|
4048
|
+
content: {
|
|
4049
|
+
"application/json": components["schemas"]["PaymentResult"];
|
|
4050
|
+
};
|
|
4051
|
+
};
|
|
4052
|
+
/** @description The order already exists or the subscription has a conflicting renewal, change or cancellation. */
|
|
4053
|
+
409: {
|
|
4054
|
+
headers: {
|
|
4055
|
+
[name: string]: unknown;
|
|
4056
|
+
};
|
|
4057
|
+
content: {
|
|
4058
|
+
"application/json": components["schemas"]["Error"];
|
|
4059
|
+
};
|
|
4060
|
+
};
|
|
4061
|
+
default: components["responses"]["Error"];
|
|
4062
|
+
};
|
|
4063
|
+
};
|
|
4064
|
+
"set-auto-renew": {
|
|
4065
|
+
parameters: {
|
|
4066
|
+
query?: never;
|
|
4067
|
+
header?: never;
|
|
4068
|
+
path: {
|
|
4069
|
+
subscriptionId: components["parameters"]["SubscriptionId"];
|
|
4070
|
+
};
|
|
4071
|
+
cookie?: never;
|
|
4072
|
+
};
|
|
4073
|
+
requestBody: {
|
|
4074
|
+
content: {
|
|
4075
|
+
"application/json": components["schemas"]["AutoRenewSet"];
|
|
4076
|
+
};
|
|
4077
|
+
};
|
|
4078
|
+
responses: {
|
|
4079
|
+
/** @description OK */
|
|
4080
|
+
200: {
|
|
4081
|
+
headers: {
|
|
4082
|
+
[name: string]: unknown;
|
|
4083
|
+
};
|
|
4084
|
+
content: {
|
|
4085
|
+
"application/json": components["schemas"]["Subscription"];
|
|
4086
|
+
};
|
|
4087
|
+
};
|
|
4088
|
+
default: components["responses"]["Error"];
|
|
4089
|
+
};
|
|
4090
|
+
};
|
|
4091
|
+
"preview-promotion-code": {
|
|
4092
|
+
parameters: {
|
|
4093
|
+
query?: never;
|
|
4094
|
+
header?: never;
|
|
4095
|
+
path?: never;
|
|
4096
|
+
cookie?: never;
|
|
4097
|
+
};
|
|
4098
|
+
requestBody: {
|
|
4099
|
+
content: {
|
|
4100
|
+
"application/json": components["schemas"]["PromotionCodePreviewRequest"];
|
|
4101
|
+
};
|
|
4102
|
+
};
|
|
4103
|
+
responses: {
|
|
4104
|
+
/** @description OK */
|
|
4105
|
+
200: {
|
|
4106
|
+
headers: {
|
|
4107
|
+
[name: string]: unknown;
|
|
4108
|
+
};
|
|
4109
|
+
content: {
|
|
4110
|
+
"application/json": components["schemas"]["PromotionCodePreview"];
|
|
4111
|
+
};
|
|
4112
|
+
};
|
|
4113
|
+
default: components["responses"]["Error"];
|
|
4114
|
+
};
|
|
4115
|
+
};
|
|
4116
|
+
"list-allowances": {
|
|
4117
|
+
parameters: {
|
|
4118
|
+
query?: {
|
|
4119
|
+
/** @description 1-based page number; the first page when omitted. */
|
|
4120
|
+
page?: components["parameters"]["Page"];
|
|
4121
|
+
/** @description How many per page, 100 at most. */
|
|
4122
|
+
page_size?: components["parameters"]["PageSize"];
|
|
4123
|
+
/** @description Restrict to one of your accounts. All of them when omitted. */
|
|
4124
|
+
billing_account_id?: components["parameters"]["AccountIdQuery"];
|
|
4125
|
+
/** @description Filter by the meter UUID. */
|
|
4126
|
+
meter_id?: string;
|
|
4127
|
+
status?: "active" | "depleted" | "expired" | "voided";
|
|
4128
|
+
product_id?: components["schemas"]["ProductID"];
|
|
4129
|
+
};
|
|
4130
|
+
header?: never;
|
|
4131
|
+
path?: never;
|
|
4132
|
+
cookie?: never;
|
|
4133
|
+
};
|
|
4134
|
+
requestBody?: never;
|
|
4135
|
+
responses: {
|
|
4136
|
+
/** @description OK */
|
|
4137
|
+
200: {
|
|
4138
|
+
headers: {
|
|
4139
|
+
[name: string]: unknown;
|
|
4140
|
+
};
|
|
4141
|
+
content: {
|
|
4142
|
+
"application/json": components["schemas"]["AllowanceList"];
|
|
4143
|
+
};
|
|
4144
|
+
};
|
|
4145
|
+
default: components["responses"]["Error"];
|
|
4146
|
+
};
|
|
4147
|
+
};
|
|
4148
|
+
"list-orders": {
|
|
4149
|
+
parameters: {
|
|
4150
|
+
query?: {
|
|
4151
|
+
/** @description 1-based page number; the first page when omitted. */
|
|
4152
|
+
page?: components["parameters"]["Page"];
|
|
4153
|
+
/** @description How many per page, 100 at most. */
|
|
4154
|
+
page_size?: components["parameters"]["PageSize"];
|
|
4155
|
+
/** @description Restrict to one of your accounts. All of them when omitted. */
|
|
4156
|
+
billing_account_id?: components["parameters"]["AccountIdQuery"];
|
|
4157
|
+
project_id?: string;
|
|
4158
|
+
status?: components["schemas"]["OrderStatus"];
|
|
4159
|
+
from?: components["parameters"]["From"];
|
|
4160
|
+
/** @description Exclusive. */
|
|
4161
|
+
to?: components["parameters"]["To"];
|
|
4162
|
+
};
|
|
4163
|
+
header?: never;
|
|
4164
|
+
path?: never;
|
|
4165
|
+
cookie?: never;
|
|
4166
|
+
};
|
|
4167
|
+
requestBody?: never;
|
|
4168
|
+
responses: {
|
|
4169
|
+
/** @description OK */
|
|
4170
|
+
200: {
|
|
4171
|
+
headers: {
|
|
4172
|
+
[name: string]: unknown;
|
|
4173
|
+
};
|
|
4174
|
+
content: {
|
|
4175
|
+
"application/json": components["schemas"]["OrderList"];
|
|
4176
|
+
};
|
|
4177
|
+
};
|
|
4178
|
+
default: components["responses"]["Error"];
|
|
4179
|
+
};
|
|
4180
|
+
};
|
|
4181
|
+
"get-order": {
|
|
4182
|
+
parameters: {
|
|
4183
|
+
query?: never;
|
|
4184
|
+
header?: never;
|
|
4185
|
+
path: {
|
|
4186
|
+
orderId: components["parameters"]["OrderId"];
|
|
4187
|
+
};
|
|
4188
|
+
cookie?: never;
|
|
4189
|
+
};
|
|
4190
|
+
requestBody?: never;
|
|
4191
|
+
responses: {
|
|
4192
|
+
/** @description OK */
|
|
4193
|
+
200: {
|
|
4194
|
+
headers: {
|
|
4195
|
+
[name: string]: unknown;
|
|
4196
|
+
};
|
|
4197
|
+
content: {
|
|
4198
|
+
"application/json": components["schemas"]["Order"];
|
|
4199
|
+
};
|
|
4200
|
+
};
|
|
4201
|
+
default: components["responses"]["Error"];
|
|
4202
|
+
};
|
|
4203
|
+
};
|
|
4204
|
+
"list-order-items": {
|
|
4205
|
+
parameters: {
|
|
4206
|
+
query?: {
|
|
4207
|
+
/** @description 1-based page number; the first page when omitted. */
|
|
4208
|
+
page?: components["parameters"]["Page"];
|
|
4209
|
+
/** @description How many per page, 100 at most. */
|
|
4210
|
+
page_size?: components["parameters"]["PageSize"];
|
|
4211
|
+
};
|
|
4212
|
+
header?: never;
|
|
4213
|
+
path: {
|
|
4214
|
+
orderId: components["parameters"]["OrderId"];
|
|
4215
|
+
};
|
|
4216
|
+
cookie?: never;
|
|
4217
|
+
};
|
|
4218
|
+
requestBody?: never;
|
|
4219
|
+
responses: {
|
|
4220
|
+
/** @description OK */
|
|
4221
|
+
200: {
|
|
4222
|
+
headers: {
|
|
4223
|
+
[name: string]: unknown;
|
|
4224
|
+
};
|
|
4225
|
+
content: {
|
|
4226
|
+
"application/json": components["schemas"]["OrderItemList"];
|
|
4227
|
+
};
|
|
4228
|
+
};
|
|
4229
|
+
default: components["responses"]["Error"];
|
|
4230
|
+
};
|
|
4231
|
+
};
|
|
4232
|
+
"list-entitlements": {
|
|
4233
|
+
parameters: {
|
|
4234
|
+
query?: {
|
|
4235
|
+
/** @description 1-based page number; the first page when omitted. */
|
|
4236
|
+
page?: components["parameters"]["Page"];
|
|
4237
|
+
/** @description How many per page, 100 at most. */
|
|
4238
|
+
page_size?: components["parameters"]["PageSize"];
|
|
4239
|
+
/** @description Restrict to one of your accounts. All of them when omitted. */
|
|
4240
|
+
billing_account_id?: components["parameters"]["AccountIdQuery"];
|
|
4241
|
+
/**
|
|
4242
|
+
* @description Restrict to one project. Anything bought at account level, such as a membership,
|
|
4243
|
+
* appears regardless.
|
|
4244
|
+
*/
|
|
4245
|
+
project_id?: string;
|
|
4246
|
+
};
|
|
4247
|
+
header?: never;
|
|
4248
|
+
path?: never;
|
|
4249
|
+
cookie?: never;
|
|
4250
|
+
};
|
|
4251
|
+
requestBody?: never;
|
|
4252
|
+
responses: {
|
|
4253
|
+
/** @description OK */
|
|
4254
|
+
200: {
|
|
4255
|
+
headers: {
|
|
4256
|
+
[name: string]: unknown;
|
|
4257
|
+
};
|
|
4258
|
+
content: {
|
|
4259
|
+
"application/json": components["schemas"]["EntitlementList"];
|
|
4260
|
+
};
|
|
4261
|
+
};
|
|
4262
|
+
default: components["responses"]["Error"];
|
|
4263
|
+
};
|
|
4264
|
+
};
|
|
4265
|
+
}
|