package tmall

type EnumTradeStatus string

const (
	ENUM_TRADE_NO_CREATE_PAY      EnumTradeStatus = "TRADE_NO_CREATE_PAY"      // 没有创建支付宝交易
	ENUM_WAIT_BUYER_PAY           EnumTradeStatus = "WAIT_BUYER_PAY"           // 等待买家付款
	ENUM_SELLER_CONSIGNED_PART    EnumTradeStatus = "SELLER_CONSIGNED_PART"    // 卖家部分发货
	ENUM_WAIT_SELLER_SEND_GOODS   EnumTradeStatus = "WAIT_SELLER_SEND_GOODS"   // 等待卖家发货，即：买家已付款
	ENUM_WAIT_BUYER_CONFIRM_GOODS EnumTradeStatus = "WAIT_BUYER_CONFIRM_GOODS" // 等待买家确认收货，即：卖家已发货
	ENUM_TRADE_BUYER_SIGNED       EnumTradeStatus = "TRADE_BUYER_SIGNED"       // 买家已签收，货到付款专用
	ENUM_TRADE_FINISHED           EnumTradeStatus = "TRADE_FINISHED"           // 交易成功
	ENUM_TRADE_CLOSED             EnumTradeStatus = "TRADE_CLOSED"             // 付款以后用户退款成功，交易自动关闭
	ENUM_TRADE_CLOSED_BY_TAOBAO   EnumTradeStatus = "TRADE_CLOSED_BY_TAOBAO"   // 付款以前，卖家或买家主动关闭交易
	ENUM_PAY_PENDING              EnumTradeStatus = "PAY_PENDING"              // 国际信用卡支付付款确认中
	ENUM_WAIT_PRE_AUTH_CONFIRM    EnumTradeStatus = "WAIT_PRE_AUTH_CONFIRM"    // 0元购合约中
	ENUM_PAID_FORBID_CONSIGN      EnumTradeStatus = "PAID_FORBID_CONSIGN"      // 拼团中订单或者发货强管控的订单，已付款但禁止发货
)

type EnumRateStatus string

const (
	ENUM_RATE_UNBUYER        EnumRateStatus = "RATE_UNBUYER"        // 买家未评
	ENUM_RATE_UNSELLER       EnumRateStatus = "RATE_UNSELLER"       // 卖家未评
	ENUM_RATE_BUYER_UNSELLER EnumRateStatus = "RATE_BUYER_UNSELLER" // 买家已评，卖家未评
	ENUM_RATE_UNBUYER_SELLER EnumRateStatus = "RATE_UNBUYER_SELLER" // 买家未评，卖家已评
	ENUM_RATE_BUYER_SELLER   EnumRateStatus = "RATE_BUYER_SELLER"   // 买家已评,卖家已评
)
