package consts

type CardRedeemCookieCategory string

const (
	CardRedeemCookieCategoryJD CardRedeemCookieCategory = "jd"
)

const (
	CardRedeemCookieMaxScheduledFailedCount = 5
)

type CardRedeemCookieStatus string

const (
	CardRedeemCookieStatusNormal       CardRedeemCookieStatus = "normal"     // 正常
	CardRedeemCookieStatusDisable      CardRedeemCookieStatus = "disable"    // 禁用
	CardRedeemCookieStatusExpired      CardRedeemCookieStatus = "expired"    // 时效
	CardRedeemCookieStatusTmpDisable   CardRedeemCookieStatus = "tmpDisable" // 临时禁用
	CardRedeemCookieStatusDailyDisable CardRedeemCookieStatus = "dailyDisable"
)

type CardRedeemCookieOrderStatus string

const (
	CardRedeemCookieOrderStatusPlaceFail    CardRedeemCookieOrderStatus = "placeFail"    // 拉单失败
	CardRedeemCookieOrderStatusInit         CardRedeemCookieOrderStatus = "init"         // 拉单成功
	CardRedeemCookieOrderStatusPlaceSuccess CardRedeemCookieOrderStatus = "placeSuccess" // 下单成功
)

type CardCookieJDOrderStatus string

const (
	CardCookieJDStatusInit           CardCookieJDOrderStatus = "init"     // 开始初始化
	CardCookieJDStatusSuccess        CardCookieJDOrderStatus = "success"  // 订单成功
	CardCookieJDStatusNormalFailed   CardCookieJDOrderStatus = "failed"   // 订单通用错误
	CardCookieJDStatusCkFailed       CardCookieJDOrderStatus = "ckFailed" // ck 错误
	CardCookieJDStatusWrongFacePrice CardCookieJDOrderStatus = "wrongFacePrice"
	CardCookieJDStatusExpired        CardCookieJDOrderStatus = "expired"    // 订单失效
	CardCookieJDStatusStockError     CardCookieJDOrderStatus = "stockError" // 库存错误
	CardCookieJDStatusRiskFailed     CardCookieJDOrderStatus = "riskFailed" // 风险
)

type CardCookieUserClient string

const (
	CardCookieUserClientIOS     CardCookieUserClient = "ios"
	CardCookieUserClientAndroid CardCookieUserClient = "android"
	CardCookieUserClientWeb     CardCookieUserClient = "web"
)
