UNPKG

chargebee

Version:

A library for integrating with Chargebee.

72 lines (71 loc) 3.3 kB
"use strict"; // Generated Zod schemas: VirtualBankAccount // Actions: createUsingPermanentToken, create, list // Do not edit manually – regenerate via sdk-generator Object.defineProperty(exports, "__esModule", { value: true }); exports.ListVirtualBankAccountBodySchema = exports.CreateVirtualBankAccountBodySchema = exports.CreateUsingPermanentTokenVirtualBankAccountBodySchema = void 0; const zod_1 = require("zod"); //VirtualBankAccount.createUsingPermanentToken const CreateUsingPermanentTokenVirtualBankAccountBodySchema = zod_1.z.looseObject({ customer_id: zod_1.z.string().max(50), reference_id: zod_1.z.string().max(150), gateway_account_id: zod_1.z.string().max(50).optional(), scheme: zod_1.z .enum([ 'ach_credit', 'sepa_credit', 'us_automated_bank_transfer', 'gb_automated_bank_transfer', 'eu_automated_bank_transfer', 'jp_automated_bank_transfer', 'mx_automated_bank_transfer', ]) .optional(), }); exports.CreateUsingPermanentTokenVirtualBankAccountBodySchema = CreateUsingPermanentTokenVirtualBankAccountBodySchema; //VirtualBankAccount.create const CreateVirtualBankAccountBodySchema = zod_1.z.looseObject({ customer_id: zod_1.z.string().max(50), email: zod_1.z.string().email().max(70).optional(), gateway_account_id: zod_1.z.string().max(50).optional(), scheme: zod_1.z .enum([ 'ach_credit', 'sepa_credit', 'us_automated_bank_transfer', 'gb_automated_bank_transfer', 'eu_automated_bank_transfer', 'jp_automated_bank_transfer', 'mx_automated_bank_transfer', ]) .optional(), }); exports.CreateVirtualBankAccountBodySchema = CreateVirtualBankAccountBodySchema; //VirtualBankAccount.list const ListVirtualBankAccountCustomerIdSchema = zod_1.z.object({ is: zod_1.z.string().min(1).optional(), is_not: zod_1.z.string().min(1).optional(), starts_with: zod_1.z.string().min(1).optional(), in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(), not_in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(), }); const ListVirtualBankAccountUpdatedAtSchema = zod_1.z.object({ after: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(), before: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(), on: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(), between: zod_1.z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')).optional(), }); const ListVirtualBankAccountCreatedAtSchema = zod_1.z.object({ after: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(), before: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(), on: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(), between: zod_1.z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')).optional(), }); const ListVirtualBankAccountBodySchema = zod_1.z.looseObject({ limit: zod_1.z.number().int().min(1).max(100).optional(), offset: zod_1.z.string().max(1000).optional(), customer_id: ListVirtualBankAccountCustomerIdSchema.optional(), updated_at: ListVirtualBankAccountUpdatedAtSchema.optional(), created_at: ListVirtualBankAccountCreatedAtSchema.optional(), }); exports.ListVirtualBankAccountBodySchema = ListVirtualBankAccountBodySchema;