UNPKG

chargebee

Version:

A library for integrating with Chargebee.

36 lines (35 loc) 1.54 kB
"use strict"; // Generated Zod schemas: Address // Actions: retrieve, update // Do not edit manually – regenerate via sdk-generator Object.defineProperty(exports, "__esModule", { value: true }); exports.UpdateAddressBodySchema = exports.RetrieveAddressBodySchema = void 0; const zod_1 = require("zod"); //Address.retrieve const RetrieveAddressBodySchema = zod_1.z.looseObject({ subscription_id: zod_1.z.string().max(50), label: zod_1.z.string().max(50), }); exports.RetrieveAddressBodySchema = RetrieveAddressBodySchema; //Address.update const UpdateAddressBodySchema = zod_1.z.looseObject({ subscription_id: zod_1.z.string().max(50), label: zod_1.z.string().max(50), first_name: zod_1.z.string().max(150).optional(), last_name: zod_1.z.string().max(150).optional(), email: zod_1.z.string().email().max(70).optional(), company: zod_1.z.string().max(250).optional(), phone: zod_1.z.string().max(50).optional(), addr: zod_1.z.string().max(150).optional(), extended_addr: zod_1.z.string().max(150).optional(), extended_addr2: zod_1.z.string().max(150).optional(), city: zod_1.z.string().max(50).optional(), state_code: zod_1.z.string().max(50).optional(), state: zod_1.z.string().max(50).optional(), zip: zod_1.z.string().max(20).optional(), country: zod_1.z.string().max(50).optional(), validation_status: zod_1.z .enum(['not_validated', 'valid', 'partially_valid', 'invalid']) .optional(), }); exports.UpdateAddressBodySchema = UpdateAddressBodySchema;