import { z } from 'zod'

export const paymentChannelStatusSchema = z.enum(['active', 'inactive'])
export const paymentChannelTypeSchema = z.enum(['alipay', 'wechat', 'stripe', 'paypal', 'other'])

export const paymentChannelSchema = z.object({
  id: z.number(),
  name: z.string(),
  type: paymentChannelTypeSchema,
  icon: z.string().optional(),
  config: z.string().optional(),
  sort: z.number(),
  status: paymentChannelStatusSchema,
  remark: z.string().optional(),
  created_at: z.string(),
  updated_at: z.string(),
})

export type PaymentChannel = z.infer<typeof paymentChannelSchema>
