@purpleschool/gptbot 0.9.26 → 0.9.27
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.
|
@@ -28,7 +28,7 @@ var UpgradeSubscriptionCommand;
|
|
|
28
28
|
electronic: zod_1.z.number(),
|
|
29
29
|
}),
|
|
30
30
|
});
|
|
31
|
-
|
|
31
|
+
UpgradeSubscriptionCommand.CloudPaymentsResponseSchema = zod_1.z.object({
|
|
32
32
|
publicId: zod_1.z.string(),
|
|
33
33
|
amount: zod_1.z.number(),
|
|
34
34
|
currency: zod_1.z.string(),
|
|
@@ -51,7 +51,7 @@ var UpgradeSubscriptionCommand;
|
|
|
51
51
|
}),
|
|
52
52
|
provider: zod_1.z.literal(constants_1.PAYMENT_PROVIDER.CLOUDPAYMENTS),
|
|
53
53
|
});
|
|
54
|
-
|
|
54
|
+
UpgradeSubscriptionCommand.ZenpaymentsResponseSchema = zod_1.z.object({
|
|
55
55
|
provider: zod_1.z.literal(constants_1.PAYMENT_PROVIDER.ZENPAYMENTS),
|
|
56
56
|
checkoutUrl: zod_1.z.string(),
|
|
57
57
|
orderNumber: zod_1.z.string(),
|
|
@@ -63,7 +63,7 @@ var UpgradeSubscriptionCommand;
|
|
|
63
63
|
createdAt: zod_1.z.string(),
|
|
64
64
|
});
|
|
65
65
|
UpgradeSubscriptionCommand.ResponseSchema = zod_1.z.discriminatedUnion('provider', [
|
|
66
|
-
CloudPaymentsResponseSchema,
|
|
67
|
-
ZenpaymentsResponseSchema,
|
|
66
|
+
UpgradeSubscriptionCommand.CloudPaymentsResponseSchema,
|
|
67
|
+
UpgradeSubscriptionCommand.ZenpaymentsResponseSchema,
|
|
68
68
|
]);
|
|
69
69
|
})(UpgradeSubscriptionCommand || (exports.UpgradeSubscriptionCommand = UpgradeSubscriptionCommand = {}));
|
|
@@ -32,7 +32,7 @@ export namespace UpgradeSubscriptionCommand {
|
|
|
32
32
|
}),
|
|
33
33
|
});
|
|
34
34
|
|
|
35
|
-
const CloudPaymentsResponseSchema = z.object({
|
|
35
|
+
export const CloudPaymentsResponseSchema = z.object({
|
|
36
36
|
publicId: z.string(),
|
|
37
37
|
amount: z.number(),
|
|
38
38
|
currency: z.string(),
|
|
@@ -56,7 +56,7 @@ export namespace UpgradeSubscriptionCommand {
|
|
|
56
56
|
provider: z.literal(PAYMENT_PROVIDER.CLOUDPAYMENTS),
|
|
57
57
|
});
|
|
58
58
|
|
|
59
|
-
const ZenpaymentsResponseSchema = z.object({
|
|
59
|
+
export const ZenpaymentsResponseSchema = z.object({
|
|
60
60
|
provider: z.literal(PAYMENT_PROVIDER.ZENPAYMENTS),
|
|
61
61
|
checkoutUrl: z.string(),
|
|
62
62
|
orderNumber: z.string(),
|