/**
 * 支付订单状态响应
 */
import { z } from "zod";

export const PaymentOrderStatusSchema = z.enum(["pending", "paid", "failed"]);

export const PaymentOrderStatusResponseSchema = z.object({
  orderId: z.string(),
  status: PaymentOrderStatusSchema,
  orderType: z.string(),
  planId: z.string(),
});

export type PaymentOrderStatus = z.output<typeof PaymentOrderStatusSchema>;
export type PaymentOrderStatusResponseInput = z.input<
  typeof PaymentOrderStatusResponseSchema
>;
export type PaymentOrderStatusResponseData = z.output<
  typeof PaymentOrderStatusResponseSchema
>;
