chargebee
Version:
A library for integrating with Chargebee.
21 lines (20 loc) • 1.05 kB
JavaScript
;
// Generated Zod schemas: PaymentScheduleScheme
// Actions: create
// Do not edit manually – regenerate via sdk-generator
Object.defineProperty(exports, "__esModule", { value: true });
exports.CreatePaymentScheduleSchemeBodySchema = void 0;
const zod_1 = require("zod");
//PaymentScheduleScheme.create
const CreatePaymentScheduleSchemeFlexibleSchedulesSchema = zod_1.z.object({
period: zod_1.z.array(zod_1.z.number().int().min(0).max(52).optional()).optional(),
amount_percentage: zod_1.z.array(zod_1.z.number().min(1).max(100).optional()).optional(),
});
const CreatePaymentScheduleSchemeBodySchema = zod_1.z.looseObject({
number_of_schedules: zod_1.z.number().int().min(1).max(52),
period_unit: zod_1.z.enum(['day', 'week', 'month']),
period: zod_1.z.number().int().min(1).max(30).optional(),
name: zod_1.z.string().max(100),
flexible_schedules: CreatePaymentScheduleSchemeFlexibleSchedulesSchema.optional(),
});
exports.CreatePaymentScheduleSchemeBodySchema = CreatePaymentScheduleSchemeBodySchema;