Files
alrahma_sunday_school_api/apps/api/dist/modules/subscriptions/subscription.schemas.d.ts
T
2026-06-11 03:22:12 -04:00

89 lines
2.9 KiB
TypeScript

import { z } from 'zod';
export declare const checkoutSchema: z.ZodObject<{
plan: z.ZodEnum<["STARTER", "GROWTH", "PRO"]>;
billingPeriod: z.ZodEnum<["MONTHLY", "ANNUAL"]>;
currency: z.ZodLiteral<"MAD">;
provider: z.ZodEnum<["AMANPAY", "PAYPAL"]>;
successUrl: z.ZodString;
failureUrl: z.ZodString;
}, "strip", z.ZodTypeAny, {
provider: "AMANPAY" | "PAYPAL";
currency: "MAD";
successUrl: string;
failureUrl: string;
plan: "STARTER" | "GROWTH" | "PRO";
billingPeriod: "MONTHLY" | "ANNUAL";
}, {
provider: "AMANPAY" | "PAYPAL";
currency: "MAD";
successUrl: string;
failureUrl: string;
plan: "STARTER" | "GROWTH" | "PRO";
billingPeriod: "MONTHLY" | "ANNUAL";
}>;
export declare const changePlanSchema: z.ZodObject<{
plan: z.ZodEnum<["STARTER", "GROWTH", "PRO"]>;
billingPeriod: z.ZodEnum<["MONTHLY", "ANNUAL"]>;
currency: z.ZodEnum<["MAD", "EUR", "USD"]>;
}, "strip", z.ZodTypeAny, {
currency: "MAD" | "EUR" | "USD";
plan: "STARTER" | "GROWTH" | "PRO";
billingPeriod: "MONTHLY" | "ANNUAL";
}, {
currency: "MAD" | "EUR" | "USD";
plan: "STARTER" | "GROWTH" | "PRO";
billingPeriod: "MONTHLY" | "ANNUAL";
}>;
export declare const capturePaypalSchema: z.ZodObject<{
paypalOrderId: z.ZodString;
}, "strip", z.ZodTypeAny, {
paypalOrderId: string;
}, {
paypalOrderId: string;
}>;
export declare const startTrialSchema: z.ZodObject<{
plan: z.ZodEnum<["STARTER", "GROWTH", "PRO"]>;
billingPeriod: z.ZodEnum<["MONTHLY", "ANNUAL"]>;
currency: z.ZodDefault<z.ZodLiteral<"MAD">>;
}, "strip", z.ZodTypeAny, {
currency: "MAD";
plan: "STARTER" | "GROWTH" | "PRO";
billingPeriod: "MONTHLY" | "ANNUAL";
}, {
plan: "STARTER" | "GROWTH" | "PRO";
billingPeriod: "MONTHLY" | "ANNUAL";
currency?: "MAD" | undefined;
}>;
export declare const cancelSchema: z.ZodObject<{
mode: z.ZodDefault<z.ZodEnum<["period_end", "immediate"]>>;
reason: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
mode: "period_end" | "immediate";
reason?: string | undefined;
}, {
reason?: string | undefined;
mode?: "period_end" | "immediate" | undefined;
}>;
export declare const reactivateSchema: z.ZodObject<{
plan: z.ZodEnum<["STARTER", "GROWTH", "PRO"]>;
billingPeriod: z.ZodEnum<["MONTHLY", "ANNUAL"]>;
currency: z.ZodLiteral<"MAD">;
provider: z.ZodEnum<["AMANPAY", "PAYPAL"]>;
successUrl: z.ZodString;
failureUrl: z.ZodString;
}, "strip", z.ZodTypeAny, {
provider: "AMANPAY" | "PAYPAL";
currency: "MAD";
successUrl: string;
failureUrl: string;
plan: "STARTER" | "GROWTH" | "PRO";
billingPeriod: "MONTHLY" | "ANNUAL";
}, {
provider: "AMANPAY" | "PAYPAL";
currency: "MAD";
successUrl: string;
failureUrl: string;
plan: "STARTER" | "GROWTH" | "PRO";
billingPeriod: "MONTHLY" | "ANNUAL";
}>;
//# sourceMappingURL=subscription.schemas.d.ts.map