@leaflow/sdk 0.0.0-dev.242.g41f635a → 0.0.0-dev.244.g3e062f3
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.
|
@@ -772,7 +772,8 @@ export interface paths {
|
|
|
772
772
|
*
|
|
773
773
|
* Sending the same request again, for the same subscriptions, mode and amount while that
|
|
774
774
|
* cancellation is still open, returns it with 200 rather than creating another. Renewal orders
|
|
775
|
-
* still waiting for payment are canceled along with it
|
|
775
|
+
* still waiting for payment are canceled along with it, and automatic renewal is turned off for
|
|
776
|
+
* every subscription in the set, for `period_end` as well as `immediate`.
|
|
776
777
|
*/
|
|
777
778
|
post: operations["create-cancellation"];
|
|
778
779
|
delete?: never;
|
|
@@ -814,8 +815,10 @@ export interface paths {
|
|
|
814
815
|
/**
|
|
815
816
|
* Withdraw a cancellation
|
|
816
817
|
* @description Withdraws the whole cancellation while none of its resources has begun to be released; the
|
|
817
|
-
* subscriptions continue as before
|
|
818
|
-
*
|
|
818
|
+
* subscriptions continue as before, except that automatic renewal, turned off when the
|
|
819
|
+
* cancellation was created, stays off until it is turned on again. After that it is refused with
|
|
820
|
+
* 409 `BILLING_CANCELLATION_CONFLICT`. Withdrawing one that is already withdrawn returns it
|
|
821
|
+
* unchanged.
|
|
819
822
|
*/
|
|
820
823
|
post: operations["withdraw-cancellation"];
|
|
821
824
|
delete?: never;
|
|
@@ -919,7 +922,12 @@ export interface paths {
|
|
|
919
922
|
get?: never;
|
|
920
923
|
/**
|
|
921
924
|
* Set auto renew
|
|
922
|
-
* @description Controls automatic prepaid renewal. Disabling it does not shorten paid_until and still permits
|
|
925
|
+
* @description Controls automatic prepaid renewal. Disabling it does not shorten paid_until and still permits
|
|
926
|
+
* manual renewal. Postpaid subscriptions do not renew and keep this false.
|
|
927
|
+
*
|
|
928
|
+
* While the subscription has an open cancellation, turning it on or off is refused with 409
|
|
929
|
+
* `BILLING_SUBSCRIPTION_OPERATION_PENDING` and `meta.cancellation_id`: creating the cancellation
|
|
930
|
+
* turned it off, and withdrawing the cancellation does not turn it back on.
|
|
923
931
|
*/
|
|
924
932
|
put: operations["set-auto-renew"];
|
|
925
933
|
post?: never;
|
|
@@ -1238,6 +1246,12 @@ export interface components {
|
|
|
1238
1246
|
project?: components["schemas"]["NamedIdentity"] | null;
|
|
1239
1247
|
/** @enum {string} */
|
|
1240
1248
|
billing_type: "postpaid" | "prepaid" | "one_time";
|
|
1249
|
+
/**
|
|
1250
|
+
* @description Whether automatic renewal is on now. Creating the cancellation turns it off, and withdrawing
|
|
1251
|
+
* the cancellation does not turn it back on. Always false for a subscription that is not
|
|
1252
|
+
* `prepaid`.
|
|
1253
|
+
*/
|
|
1254
|
+
auto_renew: boolean;
|
|
1241
1255
|
unused_amount: components["schemas"]["Money"];
|
|
1242
1256
|
refundable_amount: components["schemas"]["Money"];
|
|
1243
1257
|
refund_amount: components["schemas"]["Money"];
|
|
@@ -1289,6 +1303,12 @@ export interface components {
|
|
|
1289
1303
|
* @enum {string}
|
|
1290
1304
|
*/
|
|
1291
1305
|
origin: "customer" | "operator" | "project_deletion";
|
|
1306
|
+
/**
|
|
1307
|
+
* Format: int64
|
|
1308
|
+
* @description The billing account that paid for these subscriptions when the cancellation was created: the
|
|
1309
|
+
* account of an account-level purchase, or the account the project was linked to.
|
|
1310
|
+
*/
|
|
1311
|
+
billing_account_id: number;
|
|
1292
1312
|
currency: string;
|
|
1293
1313
|
/** @description The refund confirmed when it was created. Absent when the platform created it. */
|
|
1294
1314
|
expected_refundable_amount?: components["schemas"]["Money"];
|
|
@@ -1317,6 +1337,12 @@ export interface components {
|
|
|
1317
1337
|
/** Format: uuid */
|
|
1318
1338
|
plan_id: string;
|
|
1319
1339
|
plan_name: string;
|
|
1340
|
+
/**
|
|
1341
|
+
* @description How the subscription is paid for. Only a `prepaid` subscription renews automatically; creating
|
|
1342
|
+
* the cancellation turned that off, and withdrawing the cancellation leaves it off.
|
|
1343
|
+
* @enum {string}
|
|
1344
|
+
*/
|
|
1345
|
+
billing_type: "postpaid" | "prepaid" | "one_time";
|
|
1320
1346
|
/** @enum {string} */
|
|
1321
1347
|
status: "requested" | "scheduled" | "releasing" | "completed" | "canceled" | "failed";
|
|
1322
1348
|
/** Format: date-time */
|
|
@@ -112,6 +112,10 @@ export interface paths {
|
|
|
112
112
|
* Set project auto renew
|
|
113
113
|
* @description Automatic renewal draws on the project billing account's balance, which a project member may
|
|
114
114
|
* commit. Paying by card requires the account owner and is done from the billing centre.
|
|
115
|
+
*
|
|
116
|
+
* While the subscription has an open cancellation, turning it on or off is refused with 409
|
|
117
|
+
* `BILLING_SUBSCRIPTION_OPERATION_PENDING` and `meta.cancellation_id`: creating the cancellation
|
|
118
|
+
* turned it off, and withdrawing the cancellation does not turn it back on.
|
|
115
119
|
*/
|
|
116
120
|
put: operations["set-project-auto-renew"];
|
|
117
121
|
post?: never;
|
|
@@ -175,7 +179,8 @@ export interface paths {
|
|
|
175
179
|
*
|
|
176
180
|
* Sending the same request again, for the same subscriptions, mode and amount while that
|
|
177
181
|
* cancellation is still open, returns it with 200 rather than creating another. Renewal orders
|
|
178
|
-
* still waiting for payment are canceled along with it
|
|
182
|
+
* still waiting for payment are canceled along with it, and automatic renewal is turned off for
|
|
183
|
+
* every subscription in the set, for `period_end` as well as `immediate`.
|
|
179
184
|
*/
|
|
180
185
|
post: operations["create-project-cancellation"];
|
|
181
186
|
delete?: never;
|
|
@@ -219,8 +224,10 @@ export interface paths {
|
|
|
219
224
|
/**
|
|
220
225
|
* Withdraw a cancellation
|
|
221
226
|
* @description Withdraws the whole cancellation while none of its resources has begun to be released; the
|
|
222
|
-
* subscriptions continue as before
|
|
223
|
-
*
|
|
227
|
+
* subscriptions continue as before, except that automatic renewal, turned off when the
|
|
228
|
+
* cancellation was created, stays off until it is turned on again. After that it is refused with
|
|
229
|
+
* 409 `BILLING_CANCELLATION_CONFLICT`. Withdrawing one that is already withdrawn returns it
|
|
230
|
+
* unchanged.
|
|
224
231
|
*/
|
|
225
232
|
post: operations["withdraw-project-cancellation"];
|
|
226
233
|
delete?: never;
|
|
@@ -474,6 +481,12 @@ export interface components {
|
|
|
474
481
|
project?: components["schemas"]["NamedIdentity"] | null;
|
|
475
482
|
/** @enum {string} */
|
|
476
483
|
billing_type: "postpaid" | "prepaid" | "one_time";
|
|
484
|
+
/**
|
|
485
|
+
* @description Whether automatic renewal is on now. Creating the cancellation turns it off, and withdrawing
|
|
486
|
+
* the cancellation does not turn it back on. Always false for a subscription that is not
|
|
487
|
+
* `prepaid`.
|
|
488
|
+
*/
|
|
489
|
+
auto_renew: boolean;
|
|
477
490
|
unused_amount: components["schemas"]["Money"];
|
|
478
491
|
refundable_amount: components["schemas"]["Money"];
|
|
479
492
|
refund_amount: components["schemas"]["Money"];
|
|
@@ -525,6 +538,12 @@ export interface components {
|
|
|
525
538
|
* @enum {string}
|
|
526
539
|
*/
|
|
527
540
|
origin: "customer" | "operator" | "project_deletion";
|
|
541
|
+
/**
|
|
542
|
+
* Format: int64
|
|
543
|
+
* @description The billing account that paid for these subscriptions when the cancellation was created: the
|
|
544
|
+
* account of an account-level purchase, or the account the project was linked to.
|
|
545
|
+
*/
|
|
546
|
+
billing_account_id: number;
|
|
528
547
|
currency: string;
|
|
529
548
|
/** @description The refund confirmed when it was created. Absent when the platform created it. */
|
|
530
549
|
expected_refundable_amount?: components["schemas"]["Money"];
|
|
@@ -553,6 +572,12 @@ export interface components {
|
|
|
553
572
|
/** Format: uuid */
|
|
554
573
|
plan_id: string;
|
|
555
574
|
plan_name: string;
|
|
575
|
+
/**
|
|
576
|
+
* @description How the subscription is paid for. Only a `prepaid` subscription renews automatically; creating
|
|
577
|
+
* the cancellation turned that off, and withdrawing the cancellation leaves it off.
|
|
578
|
+
* @enum {string}
|
|
579
|
+
*/
|
|
580
|
+
billing_type: "postpaid" | "prepaid" | "one_time";
|
|
556
581
|
/** @enum {string} */
|
|
557
582
|
status: "requested" | "scheduled" | "releasing" | "completed" | "canceled" | "failed";
|
|
558
583
|
/** Format: date-time */
|