infoalloggi-monorepo/apps/infoalloggi/src/schemas/public/PaymentStatusEnum.ts
Marco Pedone 60e4b187bf Refactor: Update Zod schemas and replace custom types with imported schemas across various files
- Replaced custom Zod types with imported schemas in stripe router and user router.
- Updated payment controller to use new enum imports for order types and payment statuses.
- Refactored payment tests to utilize the new enum structure.
- Removed deprecated zod_types file and created new zod_chat_types file for chat-related schemas.
- Adjusted service files to align with the new order type enums and schemas.
- Enhanced the Caratteristiche type definition using Zod for better validation.

Co-authored-by: Copilot <copilot@github.com>
2026-04-28 20:32:19 +02:00

16 lines
No EOL
311 B
TypeScript

import { z } from 'zod';
/** Represents the enum public.PaymentStatusEnum */
type PaymentStatusEnum =
| 'processing'
| 'success'
| 'failed';
export default PaymentStatusEnum;
/** Zod schema for PaymentStatusEnum */
export const paymentStatusEnum = z.enum([
'processing',
'success',
'failed',
]);