export enum PaymentStatus {
  PENDING = '待支付',
  PROCESSING = '支付中',
  PAID = '已支付',
  FAILED = '支付失败',
  REFUNDED = '已退款',
  CLOSED = '已关闭'
}

// 微信支付回调数据结构
export interface WechatPaymentCallbackData {
  id: string;
  create_time: string;
  event_type: string;
  resource_type: string;
  resource: {
    algorithm: string;
    ciphertext: string;
    associated_data?: string;
    nonce: string;
  };
  summary: string;
}

// 微信支付回调头信息
export interface WechatPaymentCallbackHeaders {
  'wechatpay-timestamp': string;
  'wechatpay-nonce': string;
  'wechatpay-signature': string;
  'wechatpay-serial': string;
}

// 支付创建响应
export interface PaymentCreateResponse {
  paymentId: string;
  timeStamp: string;
  nonceStr: string;
  package: string;
  signType: string;
  paySign: string;
  totalAmount: number;
}