/**
 * 售后服务相关类型定义
 * 字段严格以后端返回的OrderReturnVo为准
 */

/**
 * 退货/售后申请主信息
 * 对应后端: OrderReturnVo
 */
export interface OrderReturn {
  id?: number;
  orderId?: number;
  orderNo?: string;
  serviceType?: string;
  returnTime?: string;
  returnNo?: string;
  customerId?: number;
  customerNo?: string;
  customerName?: string;
  afterSaleAmount?: number;
  returnStatus?: string;
  returnProductNum?: number;
  processingTime?: string;
  returnReasonId?: number;
  returnReason?: string;
  problemDescription?: string;
  voucherPhoto?: string;
  shippingFee?: number;
  isShippingFee?: string;
  orderAmount?: number;
  returnAmount?: number;
  afterSalesRemarks?: string;
  returnMethod?: string;
  chargebackName?: string;
  chargebackPhone?: string;
  chargebackPickupTime?: string;
  chargebackProvincial?: string;
  chargebackCity?: string;
  chargebackCounty?: string;
  provincialCityCounty?: string;
  chargebackAddress?: string;
  pushStatus?: string;
  logisticsId?: number;
  logisticsName?: string;
  logisticsNo?: string;
  status?: string;
  remark?: string;
  createTime?: string;
  orderReturnItemList?: OrderReturnItem[];
  [key: string]: any;
}

/**
 * 退货商品明细
 * 对应后端: OrderReturnItemVo
 */
export interface OrderReturnItem {
  id?: number;
  returnId?: number;
  orderProductId?: number;
  productId?: number;
  productNo?: string;
  productName?: string;
  productSpec?: string;
  returnQuantity?: number;
  unitPrice?: number;
  returnAmount?: number;
  remark?: string;
  [key: string]: any;
}
