@leaflow/sdk 0.56.1 → 0.57.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1395,6 +1395,17 @@ export interface components {
1395
1395
  * @description For `rated` prices, the price list the rates are read from.
1396
1396
  */
1397
1397
  rate_card_id?: string;
1398
+ /** @description The smallest quantity that can be bought. Absent means no lower bound. */
1399
+ min_quantity?: components["schemas"]["Money"];
1400
+ /**
1401
+ * @description The largest quantity that can be bought. Absent means no upper bound.
1402
+ *
1403
+ * An order beyond it is refused with its own code, apart from the codes for running
1404
+ * out of stock and for exceeding what the infrastructure allows.
1405
+ */
1406
+ max_quantity?: components["schemas"]["Money"];
1407
+ /** @description Quantities must be a multiple of this. Absent means any quantity within the bounds. */
1408
+ quantity_step?: components["schemas"]["Money"];
1398
1409
  /**
1399
1410
  * @description Quantities included when this price is bought — the traffic or requests that are
1400
1411
  * used before anything is charged for.
@@ -2468,8 +2479,12 @@ export interface components {
2468
2479
  /** Format: int64 */
2469
2480
  billing_account_id?: number;
2470
2481
  currency: string;
2471
- /** @enum {string} */
2472
- type: "purchase" | "renew" | "change";
2482
+ /**
2483
+ * @description `adopt` brings a resource that already existed under billing. It charges nothing at
2484
+ * the time and starts billing from the moment agreed.
2485
+ * @enum {string}
2486
+ */
2487
+ type: "purchase" | "renew" | "change" | "adopt";
2473
2488
  state: components["schemas"]["OrderState"];
2474
2489
  gross_amount?: components["schemas"]["Money"];
2475
2490
  discount_amount?: components["schemas"]["Money"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leaflow/sdk",
3
- "version": "0.56.1",
3
+ "version": "0.57.1",
4
4
  "description": "Leaflow 平台 API 的 TypeScript SDK",
5
5
  "license": "MIT",
6
6
  "repository": {