@leaflow/sdk 0.0.0-dev.216.gab0f521 → 0.0.0-dev.220.g26e832e
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.
|
@@ -17,6 +17,8 @@ export type UpdateBillingAccountResult = operations["update-billing-account"]["r
|
|
|
17
17
|
export type UpdateBillingAccountBody = NonNullable<operations["update-billing-account"]["requestBody"]>["content"]["application/json"];
|
|
18
18
|
/** The success response body of `GET /account/v1/billing-accounts/{accountId}/balance`. */
|
|
19
19
|
export type GetAccountBalanceResult = operations["get-account-balance"]["responses"][200]["content"]["application/json"];
|
|
20
|
+
/** The success response body of `GET /account/v1/billing-accounts/{accountId}/metered-usage`. */
|
|
21
|
+
export type GetAccountMeteredUsageResult = operations["get-account-metered-usage"]["responses"][200]["content"]["application/json"];
|
|
20
22
|
/** The success response body of `GET /account/v1/billing-accounts/{accountId}/payment-options`. */
|
|
21
23
|
export type ListPaymentOptionsResult = operations["list-payment-options"]["responses"][200]["content"]["application/json"];
|
|
22
24
|
/** The success response body of `GET /account/v1/projects`. */
|
|
@@ -51,10 +53,18 @@ export type SetDefaultPaymentMethodResult = operations["set-default-payment-meth
|
|
|
51
53
|
export type PayInvoiceResult = operations["pay-invoice"]["responses"][200]["content"]["application/json"];
|
|
52
54
|
/** The request body of `POST /account/v1/invoices/{invoiceId}/pay`. */
|
|
53
55
|
export type PayInvoiceBody = NonNullable<operations["pay-invoice"]["requestBody"]>["content"]["application/json"];
|
|
56
|
+
/** The success response body of `GET /account/v1/invoices/{invoiceId}/payment-preview`. */
|
|
57
|
+
export type PreviewInvoicePaymentResult = operations["preview-invoice-payment"]["responses"][200]["content"]["application/json"];
|
|
58
|
+
/** The query parameters of `GET /account/v1/invoices/{invoiceId}/payment-preview`. */
|
|
59
|
+
export type PreviewInvoicePaymentQuery = operations["preview-invoice-payment"]["parameters"]["query"];
|
|
54
60
|
/** The success response body of `POST /account/v1/payments`. */
|
|
55
61
|
export type PayTogetherResult = operations["pay-together"]["responses"][200]["content"]["application/json"];
|
|
56
62
|
/** The request body of `POST /account/v1/payments`. */
|
|
57
63
|
export type PayTogetherBody = NonNullable<operations["pay-together"]["requestBody"]>["content"]["application/json"];
|
|
64
|
+
/** The success response body of `POST /account/v1/payments/preview`. */
|
|
65
|
+
export type PreviewPayTogetherResult = operations["preview-pay-together"]["responses"][200]["content"]["application/json"];
|
|
66
|
+
/** The request body of `POST /account/v1/payments/preview`. */
|
|
67
|
+
export type PreviewPayTogetherBody = NonNullable<operations["preview-pay-together"]["requestBody"]>["content"]["application/json"];
|
|
58
68
|
/** The success response body of `GET /account/v1/invoices`. */
|
|
59
69
|
export type ListInvoicesResult = operations["list-invoices"]["responses"][200]["content"]["application/json"];
|
|
60
70
|
/** The query parameters of `GET /account/v1/invoices`. */
|
|
@@ -99,6 +109,10 @@ export type ListRenewalPricesResult = operations["list-renewal-prices"]["respons
|
|
|
99
109
|
export type RenewSubscriptionResult = operations["renew-subscription"]["responses"][200]["content"]["application/json"];
|
|
100
110
|
/** The request body of `POST /account/v1/subscriptions/{subscriptionId}/renew`. */
|
|
101
111
|
export type RenewSubscriptionBody = NonNullable<operations["renew-subscription"]["requestBody"]>["content"]["application/json"];
|
|
112
|
+
/** The success response body of `POST /account/v1/subscriptions/{subscriptionId}/renewal-orders`. */
|
|
113
|
+
export type CreateRenewalOrderResult = operations["create-renewal-order"]["responses"][200]["content"]["application/json"];
|
|
114
|
+
/** The request body of `POST /account/v1/subscriptions/{subscriptionId}/renewal-orders`. */
|
|
115
|
+
export type CreateRenewalOrderBody = NonNullable<operations["create-renewal-order"]["requestBody"]>["content"]["application/json"];
|
|
102
116
|
/** The success response body of `PUT /account/v1/subscriptions/{subscriptionId}/auto-renew`. */
|
|
103
117
|
export type SetAutoRenewResult = operations["set-auto-renew"]["responses"][200]["content"]["application/json"];
|
|
104
118
|
/** The request body of `PUT /account/v1/subscriptions/{subscriptionId}/auto-renew`. */
|
|
@@ -117,6 +131,8 @@ export type ListOrdersResult = operations["list-orders"]["responses"][200]["cont
|
|
|
117
131
|
export type ListOrdersQuery = operations["list-orders"]["parameters"]["query"];
|
|
118
132
|
/** The success response body of `GET /account/v1/orders/{orderId}`. */
|
|
119
133
|
export type GetOrderResult = operations["get-order"]["responses"][200]["content"]["application/json"];
|
|
134
|
+
/** The success response body of `POST /account/v1/orders/{orderId}/cancel`. */
|
|
135
|
+
export type CancelOrderResult = operations["cancel-order"]["responses"][200]["content"]["application/json"];
|
|
120
136
|
/** The success response body of `GET /account/v1/orders/{orderId}/items`. */
|
|
121
137
|
export type ListOrderItemsResult = operations["list-order-items"]["responses"][200]["content"]["application/json"];
|
|
122
138
|
/** The success response body of `GET /account/v1/entitlements`. */
|
|
@@ -93,6 +93,30 @@ export interface paths {
|
|
|
93
93
|
patch?: never;
|
|
94
94
|
trace?: never;
|
|
95
95
|
};
|
|
96
|
+
"/account/v1/billing-accounts/{accountId}/metered-usage": {
|
|
97
|
+
parameters: {
|
|
98
|
+
query?: never;
|
|
99
|
+
header?: never;
|
|
100
|
+
path: {
|
|
101
|
+
accountId: components["parameters"]["AccountId"];
|
|
102
|
+
};
|
|
103
|
+
cookie?: never;
|
|
104
|
+
};
|
|
105
|
+
/**
|
|
106
|
+
* Get account metered usage
|
|
107
|
+
* @description Whether the account has anything billed by usage, and what that usage has cost over the last
|
|
108
|
+
* seven days. Usage is paid from the balance, so this tells how much of the balance it is likely
|
|
109
|
+
* to need: the balance divided by `average_daily_amount` is roughly how many days it lasts.
|
|
110
|
+
*/
|
|
111
|
+
get: operations["get-account-metered-usage"];
|
|
112
|
+
put?: never;
|
|
113
|
+
post?: never;
|
|
114
|
+
delete?: never;
|
|
115
|
+
options?: never;
|
|
116
|
+
head?: never;
|
|
117
|
+
patch?: never;
|
|
118
|
+
trace?: never;
|
|
119
|
+
};
|
|
96
120
|
"/account/v1/billing-accounts/{accountId}/payment-options": {
|
|
97
121
|
parameters: {
|
|
98
122
|
query?: never;
|
|
@@ -380,6 +404,34 @@ export interface paths {
|
|
|
380
404
|
patch?: never;
|
|
381
405
|
trace?: never;
|
|
382
406
|
};
|
|
407
|
+
"/account/v1/invoices/{invoiceId}/payment-preview": {
|
|
408
|
+
parameters: {
|
|
409
|
+
query?: never;
|
|
410
|
+
header?: never;
|
|
411
|
+
path: {
|
|
412
|
+
invoiceId: components["parameters"]["InvoiceId"];
|
|
413
|
+
};
|
|
414
|
+
cookie?: never;
|
|
415
|
+
};
|
|
416
|
+
/**
|
|
417
|
+
* Preview invoice payment
|
|
418
|
+
* @description What paying this invoice now would take from credit grants, from the balance and, for the rest,
|
|
419
|
+
* from a payment gateway. It is computed as paying computes it, so paying with the same options
|
|
420
|
+
* straight afterwards takes exactly these amounts unless the account's funds change in between.
|
|
421
|
+
* Nothing is charged, reserved or created.
|
|
422
|
+
*
|
|
423
|
+
* Refused with the same errors as paying, except that insufficient funds are not an error here:
|
|
424
|
+
* they show as a `gateway_amount` above zero.
|
|
425
|
+
*/
|
|
426
|
+
get: operations["preview-invoice-payment"];
|
|
427
|
+
put?: never;
|
|
428
|
+
post?: never;
|
|
429
|
+
delete?: never;
|
|
430
|
+
options?: never;
|
|
431
|
+
head?: never;
|
|
432
|
+
patch?: never;
|
|
433
|
+
trace?: never;
|
|
434
|
+
};
|
|
383
435
|
"/account/v1/payments": {
|
|
384
436
|
parameters: {
|
|
385
437
|
query?: never;
|
|
@@ -408,6 +460,32 @@ export interface paths {
|
|
|
408
460
|
patch?: never;
|
|
409
461
|
trace?: never;
|
|
410
462
|
};
|
|
463
|
+
"/account/v1/payments/preview": {
|
|
464
|
+
parameters: {
|
|
465
|
+
query?: never;
|
|
466
|
+
header?: never;
|
|
467
|
+
path?: never;
|
|
468
|
+
cookie?: never;
|
|
469
|
+
};
|
|
470
|
+
get?: never;
|
|
471
|
+
put?: never;
|
|
472
|
+
/**
|
|
473
|
+
* Preview paying together
|
|
474
|
+
* @description What paying these invoices together now would take from credit grants and from the balance,
|
|
475
|
+
* invoice by invoice in the order they would be paid. It is computed as paying together computes
|
|
476
|
+
* it. Nothing is charged, reserved or created.
|
|
477
|
+
*
|
|
478
|
+
* Refused with the same errors as paying together, except that insufficient funds are not an
|
|
479
|
+
* error here: they show as a `gateway_amount` above zero, and paying together would then be
|
|
480
|
+
* refused with `BILLING_INSUFFICIENT_FUNDS`.
|
|
481
|
+
*/
|
|
482
|
+
post: operations["preview-pay-together"];
|
|
483
|
+
delete?: never;
|
|
484
|
+
options?: never;
|
|
485
|
+
head?: never;
|
|
486
|
+
patch?: never;
|
|
487
|
+
trace?: never;
|
|
488
|
+
};
|
|
411
489
|
"/account/v1/invoices": {
|
|
412
490
|
parameters: {
|
|
413
491
|
query?: never;
|
|
@@ -726,6 +804,35 @@ export interface paths {
|
|
|
726
804
|
patch?: never;
|
|
727
805
|
trace?: never;
|
|
728
806
|
};
|
|
807
|
+
"/account/v1/subscriptions/{subscriptionId}/renewal-orders": {
|
|
808
|
+
parameters: {
|
|
809
|
+
query?: never;
|
|
810
|
+
header?: never;
|
|
811
|
+
path: {
|
|
812
|
+
subscriptionId: components["parameters"]["SubscriptionId"];
|
|
813
|
+
};
|
|
814
|
+
cookie?: never;
|
|
815
|
+
};
|
|
816
|
+
get?: never;
|
|
817
|
+
put?: never;
|
|
818
|
+
/**
|
|
819
|
+
* Create renewal order
|
|
820
|
+
* @description Places a renewal order and issues its invoice without charging anything; pay the invoice to
|
|
821
|
+
* renew. The periods and price are chosen as for renewing. The order can be paid until the
|
|
822
|
+
* current paid period ends, and never after the end of the first period it renews; unpaid by
|
|
823
|
+
* then, it is canceled. While auto-renew is on, the renewal due at the end of the period pays
|
|
824
|
+
* this order instead of placing another.
|
|
825
|
+
*
|
|
826
|
+
* Save `order_id` before submitting and read the order after an unknown outcome; creating it a
|
|
827
|
+
* second time conflicts.
|
|
828
|
+
*/
|
|
829
|
+
post: operations["create-renewal-order"];
|
|
830
|
+
delete?: never;
|
|
831
|
+
options?: never;
|
|
832
|
+
head?: never;
|
|
833
|
+
patch?: never;
|
|
834
|
+
trace?: never;
|
|
835
|
+
};
|
|
729
836
|
"/account/v1/subscriptions/{subscriptionId}/auto-renew": {
|
|
730
837
|
parameters: {
|
|
731
838
|
query?: never;
|
|
@@ -834,6 +941,38 @@ export interface paths {
|
|
|
834
941
|
patch?: never;
|
|
835
942
|
trace?: never;
|
|
836
943
|
};
|
|
944
|
+
"/account/v1/orders/{orderId}/cancel": {
|
|
945
|
+
parameters: {
|
|
946
|
+
query?: never;
|
|
947
|
+
header?: never;
|
|
948
|
+
path: {
|
|
949
|
+
orderId: components["parameters"]["OrderId"];
|
|
950
|
+
};
|
|
951
|
+
cookie?: never;
|
|
952
|
+
};
|
|
953
|
+
get?: never;
|
|
954
|
+
put?: never;
|
|
955
|
+
/**
|
|
956
|
+
* Cancel order
|
|
957
|
+
* @description Withdraws an order that is not paid in full, and tells the service that placed it, so that
|
|
958
|
+
* nothing is delivered. An order with nothing paid becomes `canceled` and its invoice is voided.
|
|
959
|
+
* What was already paid toward it, from credit grants or the balance, is returned the way it was
|
|
960
|
+
* paid, and the order becomes `failed`. Either way `cancel_reason` is `requested_by_customer`.
|
|
961
|
+
* Canceling an order that is already canceled or failed returns it unchanged.
|
|
962
|
+
*
|
|
963
|
+
* Refused with 409 and `BILLING_PAID_ORDER_NOT_CANCELABLE` once the invoice is paid in full,
|
|
964
|
+
* `BILLING_ORDER_ALREADY_ACCEPTED` once the order has been accepted,
|
|
965
|
+
* `BILLING_ORDER_PAYMENT_IN_FLIGHT` while an online payment for it is in progress, and
|
|
966
|
+
* `BILLING_SCHEDULED_CHANGE_NOT_CANCELABLE` for a change that takes effect at the end of the
|
|
967
|
+
* period, which only the service that placed it can call off.
|
|
968
|
+
*/
|
|
969
|
+
post: operations["cancel-order"];
|
|
970
|
+
delete?: never;
|
|
971
|
+
options?: never;
|
|
972
|
+
head?: never;
|
|
973
|
+
patch?: never;
|
|
974
|
+
trace?: never;
|
|
975
|
+
};
|
|
837
976
|
"/account/v1/orders/{orderId}/items": {
|
|
838
977
|
parameters: {
|
|
839
978
|
query?: never;
|
|
@@ -1123,6 +1262,32 @@ export interface components {
|
|
|
1123
1262
|
*/
|
|
1124
1263
|
due: components["schemas"]["Money"];
|
|
1125
1264
|
};
|
|
1265
|
+
MeteredUsage: {
|
|
1266
|
+
/** Format: int64 */
|
|
1267
|
+
billing_account_id: number;
|
|
1268
|
+
currency: string;
|
|
1269
|
+
/** @description Resources still metered in the projects the account currently pays for. */
|
|
1270
|
+
active_resource_count: number;
|
|
1271
|
+
/** @description Subscriptions billed by usage that the account currently pays for and that have not ended. */
|
|
1272
|
+
postpaid_subscription_count: number;
|
|
1273
|
+
/**
|
|
1274
|
+
* Format: date-time
|
|
1275
|
+
* @description The start of the seven days the amounts cover.
|
|
1276
|
+
*/
|
|
1277
|
+
window_start: string;
|
|
1278
|
+
/**
|
|
1279
|
+
* Format: date-time
|
|
1280
|
+
* @description The end of those seven days, the time usage was last priced.
|
|
1281
|
+
*/
|
|
1282
|
+
window_end: string;
|
|
1283
|
+
/** @description Usage priced in the window, before tax and before credit grants. Usage not yet priced is not included. */
|
|
1284
|
+
amount: components["schemas"]["Money"];
|
|
1285
|
+
/**
|
|
1286
|
+
* @description `amount` per day. Over the window, or over the part of it since the account's usage began
|
|
1287
|
+
* when that is shorter, counting at least one day.
|
|
1288
|
+
*/
|
|
1289
|
+
average_daily_amount: components["schemas"]["Money"];
|
|
1290
|
+
};
|
|
1126
1291
|
CreditGroup: {
|
|
1127
1292
|
/** @description What the credit in this group may pay for. No restrictions means anything on the account. */
|
|
1128
1293
|
applies_to: components["schemas"]["Applicability"];
|
|
@@ -1131,6 +1296,11 @@ export interface components {
|
|
|
1131
1296
|
ProjectBillingInfo: {
|
|
1132
1297
|
/** Format: uuid */
|
|
1133
1298
|
project_id: string;
|
|
1299
|
+
/**
|
|
1300
|
+
* @description The project and its current name, for display. Absent when the project no longer exists or its
|
|
1301
|
+
* details cannot be read at the moment; `project_id` still identifies it.
|
|
1302
|
+
*/
|
|
1303
|
+
project?: components["schemas"]["NamedIdentity"] | null;
|
|
1134
1304
|
/** Format: int64 */
|
|
1135
1305
|
billing_account_id: number;
|
|
1136
1306
|
account_name?: string;
|
|
@@ -1385,6 +1555,40 @@ export interface components {
|
|
|
1385
1555
|
* @enum {string}
|
|
1386
1556
|
*/
|
|
1387
1557
|
PaymentStatus: "succeeded" | "processing" | "requires_action" | "failed";
|
|
1558
|
+
/** @description A credit grant and what it would pay. */
|
|
1559
|
+
AppliedCredit: {
|
|
1560
|
+
/** Format: uuid */
|
|
1561
|
+
credit_grant_id: string;
|
|
1562
|
+
name: string;
|
|
1563
|
+
amount: components["schemas"]["Money"];
|
|
1564
|
+
};
|
|
1565
|
+
PaymentPreviewInvoice: {
|
|
1566
|
+
/** Format: uuid */
|
|
1567
|
+
invoice_id: string;
|
|
1568
|
+
/** Format: uuid */
|
|
1569
|
+
order_id?: string | null;
|
|
1570
|
+
amount_due: components["schemas"]["Money"];
|
|
1571
|
+
credit_applied: components["schemas"]["Money"];
|
|
1572
|
+
balance_applied: components["schemas"]["Money"];
|
|
1573
|
+
};
|
|
1574
|
+
/** @description What paying would take, computed as paying computes it. Nothing is charged or reserved. */
|
|
1575
|
+
PaymentPreview: {
|
|
1576
|
+
currency: string;
|
|
1577
|
+
/** @description What is outstanding before paying. */
|
|
1578
|
+
amount_due: components["schemas"]["Money"];
|
|
1579
|
+
/** @description What credit grants would pay. Grants restricted to other purchases pay nothing here. */
|
|
1580
|
+
credit_applied: components["schemas"]["Money"];
|
|
1581
|
+
/** @description The credit grants that would pay, in the order they would be used. */
|
|
1582
|
+
credit_grants: components["schemas"]["AppliedCredit"][];
|
|
1583
|
+
/** @description What the balance would pay. */
|
|
1584
|
+
balance_applied: components["schemas"]["Money"];
|
|
1585
|
+
/** @description What would remain to be paid online. Paying without a gateway is refused with `BILLING_INSUFFICIENT_FUNDS` while this is above zero. */
|
|
1586
|
+
gateway_amount: components["schemas"]["Money"];
|
|
1587
|
+
/** @description The available balance after paying. */
|
|
1588
|
+
balance_after: components["schemas"]["Money"];
|
|
1589
|
+
/** @description Paying together only. Each invoice, in the order it would be paid. */
|
|
1590
|
+
invoices?: components["schemas"]["PaymentPreviewInvoice"][];
|
|
1591
|
+
};
|
|
1388
1592
|
PaymentResult: {
|
|
1389
1593
|
transactions: components["schemas"]["Transaction"][];
|
|
1390
1594
|
/**
|
|
@@ -1436,9 +1640,12 @@ export interface components {
|
|
|
1436
1640
|
* @description A usage invoice stays `draft` through its month: each charge is added to it as it is priced
|
|
1437
1641
|
* and paid from credits and balance as it goes. It is issued at the end of the month, becoming
|
|
1438
1642
|
* `paid` when everything was covered and `open` when something is still owed.
|
|
1643
|
+
*
|
|
1644
|
+
* `refunded` means the invoice was paid and has since been refunded in full; a partial refund
|
|
1645
|
+
* leaves it `paid`, with the refunded part in `amount_refunded`.
|
|
1439
1646
|
* @enum {string}
|
|
1440
1647
|
*/
|
|
1441
|
-
InvoiceStatus: "draft" | "open" | "paid" | "void" | "uncollectible";
|
|
1648
|
+
InvoiceStatus: "draft" | "open" | "paid" | "refunded" | "void" | "uncollectible";
|
|
1442
1649
|
Invoice: {
|
|
1443
1650
|
/** Format: date-time */
|
|
1444
1651
|
due_at?: string;
|
|
@@ -1524,6 +1731,12 @@ export interface components {
|
|
|
1524
1731
|
type?: "usage" | "subscription" | "one_time" | "setup" | "adjustment";
|
|
1525
1732
|
/** Format: uuid */
|
|
1526
1733
|
project_id?: string | null;
|
|
1734
|
+
/**
|
|
1735
|
+
* @description The project the charge was for and its current name, for display. Absent when the line is
|
|
1736
|
+
* not for a project, and when the project no longer exists or its details cannot be read at
|
|
1737
|
+
* the moment; `project_id` still identifies it then.
|
|
1738
|
+
*/
|
|
1739
|
+
project?: components["schemas"]["NamedIdentity"] | null;
|
|
1527
1740
|
resource_id?: string;
|
|
1528
1741
|
/**
|
|
1529
1742
|
* @description The wording as recorded when the invoice was issued. It is not re-translated
|
|
@@ -1675,6 +1888,11 @@ export interface components {
|
|
|
1675
1888
|
id: string;
|
|
1676
1889
|
/** Format: uuid */
|
|
1677
1890
|
project_id?: string;
|
|
1891
|
+
/**
|
|
1892
|
+
* @description The project and its current name, for display. Absent when the project no longer exists or its
|
|
1893
|
+
* details cannot be read at the moment; `project_id` still identifies it.
|
|
1894
|
+
*/
|
|
1895
|
+
project?: components["schemas"]["NamedIdentity"] | null;
|
|
1678
1896
|
product: components["schemas"]["Product"];
|
|
1679
1897
|
/** @description Which resource this was charged for. Empty for charges not tied to one. */
|
|
1680
1898
|
resource_id?: string;
|
|
@@ -1768,6 +1986,12 @@ export interface components {
|
|
|
1768
1986
|
* membership, which belongs to no single project.
|
|
1769
1987
|
*/
|
|
1770
1988
|
project_id?: string | null;
|
|
1989
|
+
/**
|
|
1990
|
+
* @description The project and its current name, for display. Absent for a purchase at account level,
|
|
1991
|
+
* and when the project no longer exists or its details cannot be read at the moment;
|
|
1992
|
+
* `project_id` still identifies it then.
|
|
1993
|
+
*/
|
|
1994
|
+
project?: components["schemas"]["NamedIdentity"] | null;
|
|
1771
1995
|
product: components["schemas"]["Product"];
|
|
1772
1996
|
/** Format: uuid */
|
|
1773
1997
|
plan_id: string;
|
|
@@ -1842,10 +2066,38 @@ export interface components {
|
|
|
1842
2066
|
interval?: "day" | "month" | "year";
|
|
1843
2067
|
/** Format: uuid */
|
|
1844
2068
|
payment_method_id?: string;
|
|
1845
|
-
/**
|
|
2069
|
+
/**
|
|
2070
|
+
* @description Whether to pay from the balance, with or without `payment_method_id`.
|
|
2071
|
+
* @default true
|
|
2072
|
+
*/
|
|
1846
2073
|
use_balance?: boolean;
|
|
2074
|
+
/**
|
|
2075
|
+
* @description Whether to pay from eligible credit grants before the balance.
|
|
2076
|
+
* @default true
|
|
2077
|
+
*/
|
|
2078
|
+
use_credits?: boolean;
|
|
1847
2079
|
return_url?: string;
|
|
1848
2080
|
};
|
|
2081
|
+
/** @description The periods and price of the renewal, chosen as in renewing. */
|
|
2082
|
+
RenewalOrderRequest: {
|
|
2083
|
+
/**
|
|
2084
|
+
* Format: uuid
|
|
2085
|
+
* @description Purchase ID saved before submitting. Duplicate creation conflicts; query this order after an unknown result.
|
|
2086
|
+
*/
|
|
2087
|
+
order_id: string;
|
|
2088
|
+
/**
|
|
2089
|
+
* @description As in renewing.
|
|
2090
|
+
* @default 1
|
|
2091
|
+
*/
|
|
2092
|
+
periods?: number;
|
|
2093
|
+
/** @description As in renewing. */
|
|
2094
|
+
interval_count?: number;
|
|
2095
|
+
/**
|
|
2096
|
+
* @description As in renewing.
|
|
2097
|
+
* @enum {string}
|
|
2098
|
+
*/
|
|
2099
|
+
interval?: "day" | "month" | "year";
|
|
2100
|
+
};
|
|
1849
2101
|
AutoRenewSet: {
|
|
1850
2102
|
auto_renew: boolean;
|
|
1851
2103
|
};
|
|
@@ -1890,6 +2142,12 @@ export interface components {
|
|
|
1890
2142
|
* as a membership.
|
|
1891
2143
|
*/
|
|
1892
2144
|
project_id?: string | null;
|
|
2145
|
+
/**
|
|
2146
|
+
* @description The project and its current name, for display. Absent for a purchase at account level,
|
|
2147
|
+
* and when the project no longer exists or its details cannot be read at the moment;
|
|
2148
|
+
* `project_id` still identifies it then.
|
|
2149
|
+
*/
|
|
2150
|
+
project?: components["schemas"]["NamedIdentity"] | null;
|
|
1893
2151
|
/**
|
|
1894
2152
|
* Format: int64
|
|
1895
2153
|
* @description The billing account the order was placed with. It does not change when the project is later
|
|
@@ -2292,6 +2550,21 @@ export interface components {
|
|
|
2292
2550
|
* @example 10.2500000000
|
|
2293
2551
|
*/
|
|
2294
2552
|
Money: string;
|
|
2553
|
+
/**
|
|
2554
|
+
* @description Which object this is, together with what a person currently calls it.
|
|
2555
|
+
*
|
|
2556
|
+
* The name is for display. It is chosen by whoever owns the object, it changes, it is not unique
|
|
2557
|
+
* between objects, and it may be empty when nobody has named it yet — so it must not be used to
|
|
2558
|
+
* address, match or deduplicate anything. Addressing is by id.
|
|
2559
|
+
*
|
|
2560
|
+
* This differs from an identity carrying a lookup key: a lookup key is written once by an operator,
|
|
2561
|
+
* is unique, and can be used to fetch the object. A name cannot.
|
|
2562
|
+
*/
|
|
2563
|
+
NamedIdentity: {
|
|
2564
|
+
/** Format: uuid */
|
|
2565
|
+
id: string;
|
|
2566
|
+
name: string;
|
|
2567
|
+
};
|
|
2295
2568
|
};
|
|
2296
2569
|
responses: {
|
|
2297
2570
|
/** @description Error */
|
|
@@ -2473,6 +2746,29 @@ export interface operations {
|
|
|
2473
2746
|
default: components["responses"]["Error"];
|
|
2474
2747
|
};
|
|
2475
2748
|
};
|
|
2749
|
+
"get-account-metered-usage": {
|
|
2750
|
+
parameters: {
|
|
2751
|
+
query?: never;
|
|
2752
|
+
header?: never;
|
|
2753
|
+
path: {
|
|
2754
|
+
accountId: components["parameters"]["AccountId"];
|
|
2755
|
+
};
|
|
2756
|
+
cookie?: never;
|
|
2757
|
+
};
|
|
2758
|
+
requestBody?: never;
|
|
2759
|
+
responses: {
|
|
2760
|
+
/** @description OK */
|
|
2761
|
+
200: {
|
|
2762
|
+
headers: {
|
|
2763
|
+
[name: string]: unknown;
|
|
2764
|
+
};
|
|
2765
|
+
content: {
|
|
2766
|
+
"application/json": components["schemas"]["MeteredUsage"];
|
|
2767
|
+
};
|
|
2768
|
+
};
|
|
2769
|
+
default: components["responses"]["Error"];
|
|
2770
|
+
};
|
|
2771
|
+
};
|
|
2476
2772
|
"list-payment-options": {
|
|
2477
2773
|
parameters: {
|
|
2478
2774
|
query?: never;
|
|
@@ -2826,6 +3122,34 @@ export interface operations {
|
|
|
2826
3122
|
default: components["responses"]["Error"];
|
|
2827
3123
|
};
|
|
2828
3124
|
};
|
|
3125
|
+
"preview-invoice-payment": {
|
|
3126
|
+
parameters: {
|
|
3127
|
+
query?: {
|
|
3128
|
+
/** @description As in paying. True when omitted. */
|
|
3129
|
+
use_balance?: boolean;
|
|
3130
|
+
/** @description As in paying. True when omitted. */
|
|
3131
|
+
use_credits?: boolean;
|
|
3132
|
+
};
|
|
3133
|
+
header?: never;
|
|
3134
|
+
path: {
|
|
3135
|
+
invoiceId: components["parameters"]["InvoiceId"];
|
|
3136
|
+
};
|
|
3137
|
+
cookie?: never;
|
|
3138
|
+
};
|
|
3139
|
+
requestBody?: never;
|
|
3140
|
+
responses: {
|
|
3141
|
+
/** @description OK */
|
|
3142
|
+
200: {
|
|
3143
|
+
headers: {
|
|
3144
|
+
[name: string]: unknown;
|
|
3145
|
+
};
|
|
3146
|
+
content: {
|
|
3147
|
+
"application/json": components["schemas"]["PaymentPreview"];
|
|
3148
|
+
};
|
|
3149
|
+
};
|
|
3150
|
+
default: components["responses"]["Error"];
|
|
3151
|
+
};
|
|
3152
|
+
};
|
|
2829
3153
|
"pay-together": {
|
|
2830
3154
|
parameters: {
|
|
2831
3155
|
query?: never;
|
|
@@ -2851,6 +3175,31 @@ export interface operations {
|
|
|
2851
3175
|
default: components["responses"]["Error"];
|
|
2852
3176
|
};
|
|
2853
3177
|
};
|
|
3178
|
+
"preview-pay-together": {
|
|
3179
|
+
parameters: {
|
|
3180
|
+
query?: never;
|
|
3181
|
+
header?: never;
|
|
3182
|
+
path?: never;
|
|
3183
|
+
cookie?: never;
|
|
3184
|
+
};
|
|
3185
|
+
requestBody: {
|
|
3186
|
+
content: {
|
|
3187
|
+
"application/json": components["schemas"]["PayTogetherRequest"];
|
|
3188
|
+
};
|
|
3189
|
+
};
|
|
3190
|
+
responses: {
|
|
3191
|
+
/** @description OK */
|
|
3192
|
+
200: {
|
|
3193
|
+
headers: {
|
|
3194
|
+
[name: string]: unknown;
|
|
3195
|
+
};
|
|
3196
|
+
content: {
|
|
3197
|
+
"application/json": components["schemas"]["PaymentPreview"];
|
|
3198
|
+
};
|
|
3199
|
+
};
|
|
3200
|
+
default: components["responses"]["Error"];
|
|
3201
|
+
};
|
|
3202
|
+
};
|
|
2854
3203
|
"list-invoices": {
|
|
2855
3204
|
parameters: {
|
|
2856
3205
|
query?: {
|
|
@@ -3294,6 +3643,42 @@ export interface operations {
|
|
|
3294
3643
|
default: components["responses"]["Error"];
|
|
3295
3644
|
};
|
|
3296
3645
|
};
|
|
3646
|
+
"create-renewal-order": {
|
|
3647
|
+
parameters: {
|
|
3648
|
+
query?: never;
|
|
3649
|
+
header?: never;
|
|
3650
|
+
path: {
|
|
3651
|
+
subscriptionId: components["parameters"]["SubscriptionId"];
|
|
3652
|
+
};
|
|
3653
|
+
cookie?: never;
|
|
3654
|
+
};
|
|
3655
|
+
requestBody: {
|
|
3656
|
+
content: {
|
|
3657
|
+
"application/json": components["schemas"]["RenewalOrderRequest"];
|
|
3658
|
+
};
|
|
3659
|
+
};
|
|
3660
|
+
responses: {
|
|
3661
|
+
/** @description OK */
|
|
3662
|
+
200: {
|
|
3663
|
+
headers: {
|
|
3664
|
+
[name: string]: unknown;
|
|
3665
|
+
};
|
|
3666
|
+
content: {
|
|
3667
|
+
"application/json": components["schemas"]["Order"];
|
|
3668
|
+
};
|
|
3669
|
+
};
|
|
3670
|
+
/** @description The order already exists or the subscription has a conflicting renewal, change or cancellation. */
|
|
3671
|
+
409: {
|
|
3672
|
+
headers: {
|
|
3673
|
+
[name: string]: unknown;
|
|
3674
|
+
};
|
|
3675
|
+
content: {
|
|
3676
|
+
"application/json": components["schemas"]["Error"];
|
|
3677
|
+
};
|
|
3678
|
+
};
|
|
3679
|
+
default: components["responses"]["Error"];
|
|
3680
|
+
};
|
|
3681
|
+
};
|
|
3297
3682
|
"set-auto-renew": {
|
|
3298
3683
|
parameters: {
|
|
3299
3684
|
query?: never;
|
|
@@ -3434,6 +3819,38 @@ export interface operations {
|
|
|
3434
3819
|
default: components["responses"]["Error"];
|
|
3435
3820
|
};
|
|
3436
3821
|
};
|
|
3822
|
+
"cancel-order": {
|
|
3823
|
+
parameters: {
|
|
3824
|
+
query?: never;
|
|
3825
|
+
header?: never;
|
|
3826
|
+
path: {
|
|
3827
|
+
orderId: components["parameters"]["OrderId"];
|
|
3828
|
+
};
|
|
3829
|
+
cookie?: never;
|
|
3830
|
+
};
|
|
3831
|
+
requestBody?: never;
|
|
3832
|
+
responses: {
|
|
3833
|
+
/** @description The order after the request. */
|
|
3834
|
+
200: {
|
|
3835
|
+
headers: {
|
|
3836
|
+
[name: string]: unknown;
|
|
3837
|
+
};
|
|
3838
|
+
content: {
|
|
3839
|
+
"application/json": components["schemas"]["Order"];
|
|
3840
|
+
};
|
|
3841
|
+
};
|
|
3842
|
+
/** @description The order is paid in full, accepted, being paid online, or a scheduled change. */
|
|
3843
|
+
409: {
|
|
3844
|
+
headers: {
|
|
3845
|
+
[name: string]: unknown;
|
|
3846
|
+
};
|
|
3847
|
+
content: {
|
|
3848
|
+
"application/json": components["schemas"]["Error"];
|
|
3849
|
+
};
|
|
3850
|
+
};
|
|
3851
|
+
default: components["responses"]["Error"];
|
|
3852
|
+
};
|
|
3853
|
+
};
|
|
3437
3854
|
"list-order-items": {
|
|
3438
3855
|
parameters: {
|
|
3439
3856
|
query?: {
|
|
@@ -562,8 +562,12 @@ export interface components {
|
|
|
562
562
|
name: string;
|
|
563
563
|
currency: string;
|
|
564
564
|
};
|
|
565
|
-
/**
|
|
566
|
-
|
|
565
|
+
/**
|
|
566
|
+
* @description `refunded` means the invoice was paid and has since been refunded in full; a partial refund
|
|
567
|
+
* leaves it `paid`, with the refunded part in `amount_refunded`.
|
|
568
|
+
* @enum {string}
|
|
569
|
+
*/
|
|
570
|
+
InvoiceStatus: "draft" | "open" | "paid" | "refunded" | "void" | "uncollectible";
|
|
567
571
|
UsageCharge: {
|
|
568
572
|
/** Format: uuid */
|
|
569
573
|
subscription_id?: string;
|
|
@@ -571,6 +575,11 @@ export interface components {
|
|
|
571
575
|
id: string;
|
|
572
576
|
/** Format: uuid */
|
|
573
577
|
project_id?: string;
|
|
578
|
+
/**
|
|
579
|
+
* @description The project and its current name, for display. Absent when the project no longer exists or its
|
|
580
|
+
* details cannot be read at the moment; `project_id` still identifies it.
|
|
581
|
+
*/
|
|
582
|
+
project?: components["schemas"]["NamedIdentity"] | null;
|
|
574
583
|
product: components["schemas"]["Product"];
|
|
575
584
|
/** @description Which resource this was charged for. Empty for charges not tied to one. */
|
|
576
585
|
resource_id?: string;
|
|
@@ -677,6 +686,12 @@ export interface components {
|
|
|
677
686
|
* membership, which belongs to no single project.
|
|
678
687
|
*/
|
|
679
688
|
project_id?: string | null;
|
|
689
|
+
/**
|
|
690
|
+
* @description The project and its current name, for display. Absent for a purchase at account level,
|
|
691
|
+
* and when the project no longer exists or its details cannot be read at the moment;
|
|
692
|
+
* `project_id` still identifies it then.
|
|
693
|
+
*/
|
|
694
|
+
project?: components["schemas"]["NamedIdentity"] | null;
|
|
680
695
|
product: components["schemas"]["Product"];
|
|
681
696
|
/** Format: uuid */
|
|
682
697
|
plan_id: string;
|
|
@@ -782,6 +797,12 @@ export interface components {
|
|
|
782
797
|
* as a membership.
|
|
783
798
|
*/
|
|
784
799
|
project_id?: string | null;
|
|
800
|
+
/**
|
|
801
|
+
* @description The project and its current name, for display. Absent for a purchase at account level,
|
|
802
|
+
* and when the project no longer exists or its details cannot be read at the moment;
|
|
803
|
+
* `project_id` still identifies it then.
|
|
804
|
+
*/
|
|
805
|
+
project?: components["schemas"]["NamedIdentity"] | null;
|
|
785
806
|
/**
|
|
786
807
|
* Format: int64
|
|
787
808
|
* @description The billing account the order was placed with. It does not change when the project is later
|
|
@@ -1011,6 +1032,21 @@ export interface components {
|
|
|
1011
1032
|
* @example 10.2500000000
|
|
1012
1033
|
*/
|
|
1013
1034
|
Money: string;
|
|
1035
|
+
/**
|
|
1036
|
+
* @description Which object this is, together with what a person currently calls it.
|
|
1037
|
+
*
|
|
1038
|
+
* The name is for display. It is chosen by whoever owns the object, it changes, it is not unique
|
|
1039
|
+
* between objects, and it may be empty when nobody has named it yet — so it must not be used to
|
|
1040
|
+
* address, match or deduplicate anything. Addressing is by id.
|
|
1041
|
+
*
|
|
1042
|
+
* This differs from an identity carrying a lookup key: a lookup key is written once by an operator,
|
|
1043
|
+
* is unique, and can be used to fetch the object. A name cannot.
|
|
1044
|
+
*/
|
|
1045
|
+
NamedIdentity: {
|
|
1046
|
+
/** Format: uuid */
|
|
1047
|
+
id: string;
|
|
1048
|
+
name: string;
|
|
1049
|
+
};
|
|
1014
1050
|
};
|
|
1015
1051
|
responses: {
|
|
1016
1052
|
/** @description Error */
|