UNPKG

chargebee

Version:

A library for integrating with Chargebee.

23 lines (22 loc) 952 B
"use strict"; // Generated Zod schemas: PortalSession // Actions: create, activate // Do not edit manually – regenerate via sdk-generator Object.defineProperty(exports, "__esModule", { value: true }); exports.ActivatePortalSessionBodySchema = exports.CreatePortalSessionBodySchema = void 0; const zod_1 = require("zod"); //PortalSession.create const CreatePortalSessionCustomerSchema = zod_1.z.object({ id: zod_1.z.string().max(50), }); const CreatePortalSessionBodySchema = zod_1.z.looseObject({ redirect_url: zod_1.z.string().max(250).optional(), forward_url: zod_1.z.string().max(250).optional(), customer: CreatePortalSessionCustomerSchema.optional(), }); exports.CreatePortalSessionBodySchema = CreatePortalSessionBodySchema; //PortalSession.activate const ActivatePortalSessionBodySchema = zod_1.z.looseObject({ token: zod_1.z.string().max(70), }); exports.ActivatePortalSessionBodySchema = ActivatePortalSessionBodySchema;