@leaflow/sdk 0.101.0 → 0.103.0
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/dist/billing/account/v1/index.d.ts +4 -4
- package/dist/billing/account/v1/schema.d.ts +387 -221
- package/dist/billing/catalog/v1/schema.d.ts +30 -11
- package/dist/billing/project/v1/schema.d.ts +224 -84
- package/dist/compute/v1/index.d.ts +80 -22
- package/dist/compute/v1/schema.d.ts +2475 -1098
- package/dist/routes.d.ts +130 -18
- package/dist/routes.js +145 -19
- package/package.json +1 -1
|
@@ -17,8 +17,8 @@ export interface paths {
|
|
|
17
17
|
* `currency` is required: a plan has a price in each currency it is sold in, so "what does
|
|
18
18
|
* this cost" has no answer without one.
|
|
19
19
|
*
|
|
20
|
-
*
|
|
21
|
-
* the place to look up what an existing purchase is paying.
|
|
20
|
+
* Archived prices are left out. Existing subscriptions keep the terms they were bought at, so
|
|
21
|
+
* this is not the place to look up what an existing purchase is paying.
|
|
22
22
|
*/
|
|
23
23
|
get: operations["list-prices"];
|
|
24
24
|
put?: never;
|
|
@@ -103,7 +103,7 @@ export interface paths {
|
|
|
103
103
|
};
|
|
104
104
|
/**
|
|
105
105
|
* Get a price
|
|
106
|
-
* @description Returns the catalog price, including
|
|
106
|
+
* @description Returns the catalog price, including archived prices. Fixed purchase history and renewal agreements are shown on orders and subscriptions rather than reconstructed from today's catalog.
|
|
107
107
|
*/
|
|
108
108
|
get: operations["get-price"];
|
|
109
109
|
put?: never;
|
|
@@ -216,7 +216,16 @@ export interface components {
|
|
|
216
216
|
*/
|
|
217
217
|
TerminationPolicy: "immediate" | "period_end";
|
|
218
218
|
/**
|
|
219
|
-
* @description
|
|
219
|
+
* @description none refunds nothing. prorated refunds the amount paid for the current period minus the value of
|
|
220
|
+
* the time used, never below zero and never more than what remains unrefunded. The time used runs
|
|
221
|
+
* from the period start to the effective cancellation time and is valued at the plan's
|
|
222
|
+
* shorter-period prices in the same currency, frozen at purchase as the order item's
|
|
223
|
+
* refund_monthly_amount and refund_hourly_amount: each full calendar month at the one-month prepaid
|
|
224
|
+
* price, the remainder at the postpaid hourly price or, without one, at the one-month price by the
|
|
225
|
+
* second. When the plan has no prepaid period shorter than the one bought, the time used is valued
|
|
226
|
+
* at the price paid, pro rata by the second. Discounts are not refunded, as they were never paid,
|
|
227
|
+
* and setup fees are excluded. The refunded part returns to the payment sources it came from. Tax
|
|
228
|
+
* paid is refunded in the same proportion as the amount it was paid on.
|
|
220
229
|
* @enum {string}
|
|
221
230
|
*/
|
|
222
231
|
RefundPolicy: "none" | "prorated";
|
|
@@ -245,7 +254,8 @@ export interface components {
|
|
|
245
254
|
pagination: components["schemas"]["OffsetPagination"];
|
|
246
255
|
};
|
|
247
256
|
Plan: {
|
|
248
|
-
|
|
257
|
+
/** @description False once archived. An archived plan cannot be bought until it is active again. */
|
|
258
|
+
active: boolean;
|
|
249
259
|
lookup_key?: string;
|
|
250
260
|
product: components["schemas"]["Product"];
|
|
251
261
|
features: components["schemas"]["PlanFeature"][];
|
|
@@ -268,7 +278,8 @@ export interface components {
|
|
|
268
278
|
meter_id?: string;
|
|
269
279
|
meter?: components["schemas"]["ObjectIdentity"];
|
|
270
280
|
unit_quantity: string;
|
|
271
|
-
|
|
281
|
+
/** @description False once archived. An archived price cannot be bought until it is active again. */
|
|
282
|
+
active: boolean;
|
|
272
283
|
termination_policy?: components["schemas"]["TerminationPolicy"];
|
|
273
284
|
refund_policy?: components["schemas"]["RefundPolicy"];
|
|
274
285
|
product_id?: components["schemas"]["ProductID"];
|
|
@@ -410,10 +421,14 @@ export interface components {
|
|
|
410
421
|
currency: string;
|
|
411
422
|
lines: components["schemas"]["QuoteLine"][];
|
|
412
423
|
};
|
|
413
|
-
|
|
424
|
+
/**
|
|
425
|
+
* @description One public catalog estimate. Prices are used as listed, before account discounts; tax is not
|
|
426
|
+
* evaluated. Monetary fields are absent when the line cannot be priced.
|
|
427
|
+
*/
|
|
428
|
+
QuotedLine: {
|
|
414
429
|
/** @description Tax included in the account quote. Absent in public catalogue estimates. */
|
|
415
430
|
tax_amount?: components["schemas"]["Money"];
|
|
416
|
-
/** @description Tax already included in the displayed price. */
|
|
431
|
+
/** @description Tax already included in the displayed price. Absent in public catalogue estimates. */
|
|
417
432
|
tax_included_amount?: components["schemas"]["Money"];
|
|
418
433
|
/** @description Which line of the request this answers. */
|
|
419
434
|
index: number;
|
|
@@ -451,14 +466,18 @@ export interface components {
|
|
|
451
466
|
* `quantity` multiplied by that duration.
|
|
452
467
|
*/
|
|
453
468
|
quantity?: string;
|
|
454
|
-
/** @description Not rounded
|
|
469
|
+
/** @description Public list-price amount including any setup charges, before account discounts. Not rounded; round only for display. */
|
|
455
470
|
amount?: components["schemas"]["Money"];
|
|
456
471
|
currency: string;
|
|
457
472
|
};
|
|
473
|
+
/**
|
|
474
|
+
* @description A public catalog estimate. No account discounts or tax are evaluated. Its total is a list-price
|
|
475
|
+
* estimate, not an expected checkout amount. Nothing is saved, charged or reserved.
|
|
476
|
+
*/
|
|
458
477
|
Quote: {
|
|
459
|
-
lines?: components["schemas"]["
|
|
478
|
+
lines?: components["schemas"]["QuotedLine"][];
|
|
460
479
|
/**
|
|
461
|
-
* @description
|
|
480
|
+
* @description Sum of the public list-price line amounts, without evaluating account discounts or tax.
|
|
462
481
|
*
|
|
463
482
|
* Null when any line could not be priced. What would be owed is not knowable then, and a
|
|
464
483
|
* total that silently left the unpriced lines out would read as a smaller bill rather than
|