From ea22c0e1b7910e1ab9c232996c8611d4e906be89 Mon Sep 17 00:00:00 2001 From: Luis Herasme Date: Sat, 14 Dec 2024 13:14:28 -0400 Subject: [PATCH] fix: make cardNumber, expiration, and CVC optional in schemas --- src/azul-api/schemas.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/azul-api/schemas.ts b/src/azul-api/schemas.ts index 850700d..0ed4d56 100644 --- a/src/azul-api/schemas.ts +++ b/src/azul-api/schemas.ts @@ -4,9 +4,9 @@ export const channel = z.string().max(3).optional().default('EC'); export const azulOrderId = z.string().max(8); export const amount = z.number().int().positive(); export const ITBIS = z.number().int().nonnegative(); -export const cardNumber = z.string().max(19); -export const expiration = z.string().length(6); -export const CVC = z.string().length(3); +export const cardNumber = z.string().max(19).optional(); +export const expiration = z.string().length(6).optional(); +export const CVC = z.string().length(3).optional(); export const posInputMode = z.string().max(10).optional().default('E-Commerce'); export const orderNumber = z.string().max(15).optional(); export const acquirerRefData = z.enum(['0', '1']).optional().default('1');