@leaflow/sdk 0.84.0 → 0.84.2
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.
|
@@ -350,7 +350,16 @@ export interface components {
|
|
|
350
350
|
};
|
|
351
351
|
/** @description Immutable platform service identifier, such as compute, canopy or assistant. */
|
|
352
352
|
ProductID: string;
|
|
353
|
-
/**
|
|
353
|
+
/**
|
|
354
|
+
* @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.
|
|
355
|
+
*
|
|
356
|
+
* A line that gives a meter, `dimensions` or `duration_seconds` estimates usage and is
|
|
357
|
+
* priced only at a postpaid price. Such a line is refused with HTTP 400
|
|
358
|
+
* `BILLING_PURCHASE_INVALID` when `price_type` is `prepaid` or `one_time`, or when the price
|
|
359
|
+
* it names is not postpaid; `meta.field` is `price_type`, `price_id` or `price_lookup_key`
|
|
360
|
+
* accordingly. When the plan has no postpaid price, the line is returned unpriced with
|
|
361
|
+
* `no_price`.
|
|
362
|
+
*/
|
|
354
363
|
QuoteLine: {
|
|
355
364
|
price_lookup_key?: string;
|
|
356
365
|
plan_lookup_key?: string;
|
|
@@ -387,7 +396,8 @@ export interface components {
|
|
|
387
396
|
/**
|
|
388
397
|
* Format: int64
|
|
389
398
|
* @description For metered items, how long to price for. This allows an estimate such as "about
|
|
390
|
-
* this much per month" to be shown before anything exists.
|
|
399
|
+
* this much per month" to be shown before anything exists. The priced quantity is
|
|
400
|
+
* `quantity` multiplied by this duration.
|
|
391
401
|
*/
|
|
392
402
|
duration_seconds?: number;
|
|
393
403
|
};
|
|
@@ -451,6 +461,10 @@ export interface components {
|
|
|
451
461
|
price_id?: string;
|
|
452
462
|
plan_name?: string;
|
|
453
463
|
unit_amount?: components["schemas"]["Money"];
|
|
464
|
+
/**
|
|
465
|
+
* @description The quantity actually priced. When `duration_seconds` is given, it is the requested
|
|
466
|
+
* `quantity` multiplied by that duration.
|
|
467
|
+
*/
|
|
454
468
|
quantity?: string;
|
|
455
469
|
/** @description Not rounded. Round only for display. */
|
|
456
470
|
amount?: components["schemas"]["Money"];
|
|
@@ -1270,7 +1270,16 @@ export interface components {
|
|
|
1270
1270
|
/** Format: int64 */
|
|
1271
1271
|
total_count?: number;
|
|
1272
1272
|
};
|
|
1273
|
-
/**
|
|
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
|
+
*/
|
|
1274
1283
|
QuoteLine: {
|
|
1275
1284
|
price_lookup_key?: string;
|
|
1276
1285
|
plan_lookup_key?: string;
|
|
@@ -1307,7 +1316,8 @@ export interface components {
|
|
|
1307
1316
|
/**
|
|
1308
1317
|
* Format: int64
|
|
1309
1318
|
* @description For metered items, how long to price for. This allows an estimate such as "about
|
|
1310
|
-
* this much per month" to be shown before anything exists.
|
|
1319
|
+
* this much per month" to be shown before anything exists. The priced quantity is
|
|
1320
|
+
* `quantity` multiplied by this duration.
|
|
1311
1321
|
*/
|
|
1312
1322
|
duration_seconds?: number;
|
|
1313
1323
|
};
|
|
@@ -1352,6 +1362,10 @@ export interface components {
|
|
|
1352
1362
|
price_id?: string;
|
|
1353
1363
|
plan_name?: string;
|
|
1354
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
|
+
*/
|
|
1355
1369
|
quantity?: string;
|
|
1356
1370
|
/** @description Not rounded. Round only for display. */
|
|
1357
1371
|
amount?: components["schemas"]["Money"];
|
|
@@ -1528,9 +1542,11 @@ export interface components {
|
|
|
1528
1542
|
/**
|
|
1529
1543
|
* @description `pending` until the payment gateway reaches a result. The balance increases on `succeeded`.
|
|
1530
1544
|
*
|
|
1531
|
-
* `failed` means the gateway declined the payment.
|
|
1532
|
-
*
|
|
1533
|
-
* `
|
|
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.
|
|
1534
1550
|
*
|
|
1535
1551
|
* `failed` and `canceled` are final. If the gateway nevertheless collects payment for such an
|
|
1536
1552
|
* attempt, the amount is credited as a separate `succeeded` top-up.
|
|
@@ -1553,7 +1569,13 @@ export interface components {
|
|
|
1553
1569
|
* the figure that appears on the customer's card or wallet statement.
|
|
1554
1570
|
*/
|
|
1555
1571
|
presentment_amount?: components["schemas"]["Money"];
|
|
1556
|
-
/**
|
|
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
|
+
*/
|
|
1557
1579
|
failure_reason?: string;
|
|
1558
1580
|
/**
|
|
1559
1581
|
* @description The customer's next step while the top-up is `pending` and the gateway still awaits them. Returned
|
|
@@ -1732,7 +1754,9 @@ export interface components {
|
|
|
1732
1754
|
*
|
|
1733
1755
|
* succeeded means payment is complete. processing means confirmation is pending; poll the invoice or
|
|
1734
1756
|
* order rather than submitting another payment. requires_action means the customer must complete the
|
|
1735
|
-
* supplied action. failed means the attempt did not succeed and failure_reason explains the outcome
|
|
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.
|
|
1736
1760
|
* @enum {string}
|
|
1737
1761
|
*/
|
|
1738
1762
|
PaymentStatus: "succeeded" | "processing" | "requires_action" | "failed";
|
|
@@ -1773,6 +1797,14 @@ export interface components {
|
|
|
1773
1797
|
invoice_id?: string | null;
|
|
1774
1798
|
/** Format: uuid */
|
|
1775
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
|
+
*/
|
|
1776
1808
|
failure_reason?: string;
|
|
1777
1809
|
};
|
|
1778
1810
|
/**
|
|
@@ -1907,9 +1939,9 @@ export interface components {
|
|
|
1907
1939
|
/** Format: uuid */
|
|
1908
1940
|
refund_id?: string;
|
|
1909
1941
|
/**
|
|
1910
|
-
* @description `failed` means the operation did not succeed; for a gateway payment, that the gateway declined
|
|
1911
|
-
* `canceled` means a gateway payment was withdrawn without collecting money
|
|
1912
|
-
* to pay remains open for another payment.
|
|
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.
|
|
1913
1945
|
* @enum {string}
|
|
1914
1946
|
*/
|
|
1915
1947
|
status?: "pending" | "succeeded" | "failed" | "canceled";
|
|
@@ -1917,7 +1949,14 @@ export interface components {
|
|
|
1917
1949
|
cancellation_reason?: components["schemas"]["PaymentCancellationReason"];
|
|
1918
1950
|
payment_gateway?: string;
|
|
1919
1951
|
method_type?: string;
|
|
1920
|
-
/**
|
|
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
|
+
*/
|
|
1921
1960
|
failure_reason?: string;
|
|
1922
1961
|
/** Format: date-time */
|
|
1923
1962
|
settled_at?: string;
|