order.d.ts 1.27 KB
declare module 'yoho' {
  interface OrderOwner {}

  interface ILogisticsInfo {
    // 流程信息 step
    expressSender: string; // title
    stage: number; // Todo 枚举值整理 当前流程
    wayBillCode: string; // 快递单号
    // 物流信息
    expressCompanyName: string;
    expressType: number; // Todo 含义不清楚
    expressInfoDetailTitle: string;
    expressInfoDetailList: ILogisticDetail[];
    // 鉴定信息
    judgeExpressInfoDetailTitle: string;
    judgeExpressInfoDetailList: ILogisticDetail[];
    // 卖家物流信息
    supplementExpressInfoDetailTitle: string;
    supplementExpressInfoDetailList: ILogisticDetail[];
  }

  interface ILogisticDetail {
    acceptAddress: string;
    acceptRemark: string; //  e.g. 平台已确认收货
    createTimeStr: string; // format: 2019-09-25 17:35:03
    expressType: number;
    state: number;
  }

  interface IOrderAction {
    code: string;
    name: string;
    confirmTips?: string;
    text: string;
  }

  interface ICancelTradeConfirmInfo {
    confirmDesc: string;
    needPenalty: boolean;
    orderPrice: string;
    orderPriceDesc: string;
    penaltyAmount: string;
    penaltyDesc: string;
    penaltyRate: string;
    refundAmount: string;
    refundDesc: string;
    showPrice: boolean;
  }
}