@leaflow/sdk 0.113.0 → 0.115.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.
- package/dist/billing/v1/generated/models.d.ts +8 -0
- package/dist/billing/v1/generated/validators/billingAccount.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/billingAccount.zod.js +4 -0
- package/dist/billing/v1/generated/validators/billingAccountList.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/cancellation.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/cancellationItem.zod.d.ts +1 -0
- package/dist/billing/v1/generated/validators/cancellationItem.zod.js +4 -0
- package/dist/billing/v1/generated/validators/cancellationList.zod.d.ts +1 -0
- package/package.json +1 -1
|
@@ -380,6 +380,8 @@ export interface CancellationItem {
|
|
|
380
380
|
*/
|
|
381
381
|
billing_type: CancellationItemBillingType;
|
|
382
382
|
status: CancellationItemStatus;
|
|
383
|
+
/** Execution stopped or its result is unknown. Present while release still requires resolution; it does not establish refund eligibility. */
|
|
384
|
+
failure_code?: string;
|
|
383
385
|
release_started_at?: string;
|
|
384
386
|
/** When the service ended, as confirmed by the service that provides it. */
|
|
385
387
|
effective_at?: string;
|
|
@@ -543,6 +545,12 @@ export interface BillingAccount {
|
|
|
543
545
|
* 0 means none. Whichever runs out first — this or grace_amount — ends the grace.
|
|
544
546
|
*/
|
|
545
547
|
grace_period_seconds?: number;
|
|
548
|
+
/**
|
|
549
|
+
* The actual time this account was closed, in UTC (RFC 3339).
|
|
550
|
+
* Null or absent if the account is not closed or its historical close time is unknown.
|
|
551
|
+
* @nullable
|
|
552
|
+
*/
|
|
553
|
+
readonly closed_at?: string | null;
|
|
546
554
|
created_at: string;
|
|
547
555
|
}
|
|
548
556
|
/**
|
|
@@ -26,6 +26,7 @@ export declare const BillingAccount: zod.ZodObject<{
|
|
|
26
26
|
}>;
|
|
27
27
|
grace_amount: zod.ZodOptional<zod.ZodString>;
|
|
28
28
|
grace_period_seconds: zod.ZodOptional<zod.ZodInt>;
|
|
29
|
+
closed_at: zod.ZodOptional<zod.ZodNullable<zod.z.ZodISODateTime>>;
|
|
29
30
|
created_at: zod.z.ZodISODateTime;
|
|
30
31
|
}, zod.z.core.$strict>;
|
|
31
32
|
export type BillingAccount = zod.input<typeof BillingAccount>;
|
|
@@ -31,5 +31,9 @@ export const BillingAccount = zod.strictObject({
|
|
|
31
31
|
.int()
|
|
32
32
|
.optional()
|
|
33
33
|
.describe("How long this account has to top up after crossing the suspension threshold.\n0 means none. Whichever runs out first — this or grace_amount — ends the grace."),
|
|
34
|
+
closed_at: zod.iso
|
|
35
|
+
.datetime({ offset: true })
|
|
36
|
+
.nullish()
|
|
37
|
+
.describe("The actual time this account was closed, in UTC (RFC 3339).\nNull or absent if the account is not closed or its historical close time is unknown."),
|
|
34
38
|
created_at: zod.iso.datetime({ offset: true }),
|
|
35
39
|
});
|
|
@@ -27,6 +27,7 @@ export declare const BillingAccountList: zod.ZodObject<{
|
|
|
27
27
|
}>;
|
|
28
28
|
grace_amount: zod.ZodOptional<zod.ZodString>;
|
|
29
29
|
grace_period_seconds: zod.ZodOptional<zod.ZodInt>;
|
|
30
|
+
closed_at: zod.ZodOptional<zod.ZodNullable<zod.z.ZodISODateTime>>;
|
|
30
31
|
created_at: zod.z.ZodISODateTime;
|
|
31
32
|
}, zod.z.core.$strict>>;
|
|
32
33
|
pagination: zod.ZodObject<{
|
|
@@ -52,6 +52,7 @@ export declare const Cancellation: zod.ZodObject<{
|
|
|
52
52
|
releasing: "releasing";
|
|
53
53
|
canceled: "canceled";
|
|
54
54
|
}>;
|
|
55
|
+
failure_code: zod.ZodOptional<zod.ZodString>;
|
|
55
56
|
release_started_at: zod.ZodOptional<zod.z.ZodISODateTime>;
|
|
56
57
|
effective_at: zod.ZodOptional<zod.z.ZodISODateTime>;
|
|
57
58
|
balance_amount: zod.ZodOptional<zod.ZodString>;
|
|
@@ -24,6 +24,7 @@ export declare const CancellationItem: zod.ZodObject<{
|
|
|
24
24
|
releasing: "releasing";
|
|
25
25
|
canceled: "canceled";
|
|
26
26
|
}>;
|
|
27
|
+
failure_code: zod.ZodOptional<zod.ZodString>;
|
|
27
28
|
release_started_at: zod.ZodOptional<zod.z.ZodISODateTime>;
|
|
28
29
|
effective_at: zod.ZodOptional<zod.z.ZodISODateTime>;
|
|
29
30
|
balance_amount: zod.ZodOptional<zod.ZodString>;
|
|
@@ -19,6 +19,10 @@ export const CancellationItem = zod
|
|
|
19
19
|
.enum(["postpaid", "prepaid", "one_time"])
|
|
20
20
|
.describe("How the subscription is paid for. Only a `prepaid` subscription renews automatically; creating\nthe cancellation turned that off, and withdrawing the cancellation leaves it off."),
|
|
21
21
|
status: zod.enum(["requested", "scheduled", "releasing", "completed", "canceled", "failed"]),
|
|
22
|
+
failure_code: zod
|
|
23
|
+
.string()
|
|
24
|
+
.optional()
|
|
25
|
+
.describe("Execution stopped or its result is unknown. Present while release still requires resolution; it does not establish refund eligibility."),
|
|
22
26
|
release_started_at: zod.iso.datetime({ offset: true }).optional(),
|
|
23
27
|
effective_at: zod.iso
|
|
24
28
|
.datetime({ offset: true })
|
|
@@ -53,6 +53,7 @@ export declare const CancellationList: zod.ZodObject<{
|
|
|
53
53
|
releasing: "releasing";
|
|
54
54
|
canceled: "canceled";
|
|
55
55
|
}>;
|
|
56
|
+
failure_code: zod.ZodOptional<zod.ZodString>;
|
|
56
57
|
release_started_at: zod.ZodOptional<zod.z.ZodISODateTime>;
|
|
57
58
|
effective_at: zod.ZodOptional<zod.z.ZodISODateTime>;
|
|
58
59
|
balance_amount: zod.ZodOptional<zod.ZodString>;
|