Skip to content

Commit

Permalink
fix: make cardNumber, expiration, and CVC optional in schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
luis-herasme committed Dec 14, 2024
1 parent 86b5e14 commit ea22c0e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/azul-api/schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit ea22c0e

Please sign in to comment.