- 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>
16 lines
No EOL
311 B
TypeScript
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',
|
|
]); |