package consts

import "github.com/gogf/gf/v2/util/gconv"

type RechargeTMallGameAccount string

const (
	RechargeTMallGameAccountStatusEnable  RechargeTMallGameAccount = "enable"
	RechargeTMallGameAccountStatusDisable RechargeTMallGameAccount = "disable"
)

type TMallGameThirdPartyChannel string

const (
	TMallGameThirdPartyTMall TMallGameThirdPartyChannel = "12351"
	TMallGameThirdPartyAgiso TMallGameThirdPartyChannel = "12352"
)

type TMallGameCallbackStatus int32

const (
	TMallGameCallbackStatusSuccess TMallGameCallbackStatus = 1
	TMallGameCallbackStatusFail    TMallGameCallbackStatus = 0
)

type RechargeTMallGameOrder string

func (r *RechargeTMallGameOrder) toString() string {
	return gconv.String(r)
}

const (
	RechargeTMallGameOrderStatusCreated                   RechargeTMallGameOrder = "created"                        // 创建订单
	RechargeTMallGameOrderStatusCallback                  RechargeTMallGameOrder = "callback"                       // 收到回调
	RechargeTMallGameOrderStatusDeliveryFailed            RechargeTMallGameOrder = "delivery_failed"                // 虚拟发货失败
	RechargeTMallGameOrderStatusDeliverySucceed           RechargeTMallGameOrder = "delivery_succeed"               // 虚拟发货成功
	RechargeTMallGameOrderStatusPaid                      RechargeTMallGameOrder = "paid"                           // 已付款
	RechargeTMallGameBindShopOrderSucceed                 RechargeTMallGameOrder = "bind_shop_succeed"              // 关联淘宝订单成功
	RechargeTMallGameOrderEvaluation                      RechargeTMallGameOrder = "evaluation"                     // 买家评价
	RechargeTMallGameOrderCallbackSucceed                 RechargeTMallGameOrder = "callback_succeed"               // 回调成功
	RechargeTMallGameOrderCallbackFailed                  RechargeTMallGameOrder = "callback_failed"                // 回调失败
	RechargeTMallGameOrderCallbackSucceedManual           RechargeTMallGameOrder = "callback_manual_succeed_manuel" // 手动回调成功
	RechargeTMallGameOrderCallbackFailedManual            RechargeTMallGameOrder = "callback_manual_failed_manuel"  // 手动回调失败
	RechargeTMallGameOrderTradeRatesAddSucceed            RechargeTMallGameOrder = "trade_rated_add_succeed"        // 给用户评价成功
	RechargeTMallGameOrderTradeRatesAddFailed             RechargeTMallGameOrder = "trade_rated_add_failed"         // 给用户评价失败
	RechargeTMallGameOrderStatusWaitForEvaluation         RechargeTMallGameOrder = "wait_for_evaluation"            // 等待用户评价
	RechargeTMallGameOrderStatusFinished                  RechargeTMallGameOrder = "finished"                       // 订单结束
	RechargeTMallGameOrderStatusFinishedWithWrongAmount   RechargeTMallGameOrder = "finished_with_wrong_amount"     // 订单结束，金额错误
	RechargeTMallGameOrderStatusFinishedWithWrongStatus   RechargeTMallGameOrder = "finished_with_wrong_status"     // 订单结束，状态错误
	RechargeTMallGameOrderStatusFinishedWithRefundSucceed RechargeTMallGameOrder = "finished_with_refund_succeed"   // 退款成功
	RechargeTMallGameOrderStatusRefundFailed              RechargeTMallGameOrder = "refund_failed"                  // 退款失败
	RechargeTMallGameOrderStatusWithoutFillAccount        RechargeTMallGameOrder = "without_fill_account"           // 没有填写账号
)

type RechargeTMallGameCallBackType string

const (
	RechargeTMallGameCallBackTypeConfirm    RechargeTMallGameCallBackType = "confirm"
	RechargeTMallGameCallBackTypeEvaluation RechargeTMallGameCallBackType = "evaluation"
)

type CardTMallGameNotifyStatus int

const (
	CardTMallGameNotifyStatusSuccess CardTMallGameNotifyStatus = 1
	CardTMallGameNotifyStatusFail    CardTMallGameNotifyStatus = 2
)

type RechargeTMallGameShopSourceType string

const (
	RechargeTMallGameShopSourceTypeAgiso RechargeTMallGameShopSourceType = "agiso" // 阿奇索
	RechargeTMallGameShopSourceTypeTMall RechargeTMallGameShopSourceType = "tMall" // 天猫
)

type EnumShopStatus string

const (
	EnumShopStatusReceiveCallback    EnumShopStatus = "receive_callback"   // 接收到阿奇索回调
	EnumShopStatusPaidEnumShopStatus EnumShopStatus = "paid"               // 已支付
	EnumShopStatusDeliverySucceed    EnumShopStatus = "delivery_succeed"   // 发货成功
	EnumShopStatusDeliveryFailed     EnumShopStatus = "delivery_failed"    // 发货失败
	EnumShopStatusConfirmOrder       EnumShopStatus = "confirm_order"      // 确认收货
	EnumShopStatusBindOrderFail      EnumShopStatus = "bind_order_fail"    // 绑定订单失败
	EnumShopStatusBindOrderSucceed   EnumShopStatus = "bind_order_succeed" // 绑定订单成功
	EnumShopStatusEvaluationGood     EnumShopStatus = "evaluation_good"    // 用户好评
	EnumShopStatusEvaluationBad      EnumShopStatus = "evaluation_bad"     // 用户差评
	EnumShopStatusEvaluatedSucceed   EnumShopStatus = "evaluated_succeed"  // 好评成功
	EnumShopStatusEvaluatedFailed    EnumShopStatus = "evaluated_failed"   // 好评失败
)
