@leaflow/sdk 0.60.0 → 0.62.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.
@@ -1787,7 +1787,7 @@ export interface components {
1787
1787
  * so. Nothing was charged in that case.
1788
1788
  * @enum {string}
1789
1789
  */
1790
- status: "pending" | "succeeded" | "failed";
1790
+ status: "pending" | "requires_action" | "succeeded" | "failed";
1791
1791
  /** @description Which payment provider collected it. */
1792
1792
  provider?: string;
1793
1793
  /**
@@ -1804,6 +1804,10 @@ export interface components {
1804
1804
  failure_reason?: string;
1805
1805
  /** @description Where the payer completes the payment. Absent once it has completed. */
1806
1806
  checkout_url?: string;
1807
+ /** @description Provider client secret for completing this same payment attempt in the browser. */
1808
+ client_secret?: string;
1809
+ /** @description Provider publishable key used with client_secret. */
1810
+ publishable_key?: string;
1807
1811
  /** Format: date-time */
1808
1812
  created_at: string;
1809
1813
  /**
@@ -1972,6 +1976,10 @@ export interface components {
1972
1976
  balance_applied?: components["schemas"]["Money"];
1973
1977
  /** @description Present with `requires_action`. */
1974
1978
  checkout_url?: string;
1979
+ /** @description Provider client secret for completing this same payment attempt in the browser. */
1980
+ client_secret?: string;
1981
+ /** @description Provider publishable key used with client_secret. */
1982
+ publishable_key?: string;
1975
1983
  /**
1976
1984
  * @description Whether paying again is worth attempting. False for a refusal that will keep
1977
1985
  * happening — a closed account, an amount over a limit — so that a client does not
@@ -2439,6 +2447,11 @@ export interface components {
2439
2447
  };
2440
2448
  /** @description A resource currently accruing charges by the second. */
2441
2449
  ActiveResource: {
2450
+ /**
2451
+ * Format: uuid
2452
+ * @description The metered subscription item charged for this resource; null for shared service usage.
2453
+ */
2454
+ subscription_item_id?: string | null;
2442
2455
  resource_id: string;
2443
2456
  product: components["schemas"]["ObjectIdentity"];
2444
2457
  /** @description What it is, as its own service names it. */
@@ -2680,6 +2693,11 @@ export interface components {
2680
2693
  flat_amount?: components["schemas"]["Money"];
2681
2694
  };
2682
2695
  OrderItem: {
2696
+ /**
2697
+ * @description The payment timing of the selected price.
2698
+ * @enum {string}
2699
+ */
2700
+ price_type?: "metered" | "prepaid" | "one_time";
2683
2701
  /** @description Total tax after discounts, including any tax already included in the price. */
2684
2702
  tax_amount?: string;
2685
2703
  /** @description The part of tax_amount already included in gross_amount; it is not charged again. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leaflow/sdk",
3
- "version": "0.60.0",
3
+ "version": "0.62.0",
4
4
  "description": "Leaflow 平台 API 的 TypeScript SDK",
5
5
  "license": "MIT",
6
6
  "repository": {