package entities

type Courier struct {
	BaseEntity
	Name       string
	Code       string
	Deactivate bool
	CountryID  int64
	Type       int64
}

type GetCourierParams struct {
	CourierID int64
	Code      string
}

type GetCouriersParams struct {
	Deactivate bool
	CountryID  int64
}

/*--------------------------------------------------------------------------------------------------------------------*/
const (
	CourierTypeCredential int = 1
	CourierTypeAssociate  int = 2
)

const (
	CourierCodeFlashExpressTH = "flash_express"
	CourierCodeFlashExpressPH = "flash_express_ph"
	CourierCodeNinjaVanSG     = "ninja_van"
	CourierCodeJTExpressTH    = "jnt"
	CourierCodeJTExpressMY    = "jnt_my"
	CourierCodeJTExpressSG    = "jnt_sg"
	CourierCodeKerryExpressTH = "kerry_express_th"
)

const (
	CourierIdNinjaVanSG     int64 = 1
	CourierIdJTExpressTH    int64 = 2
	CourierIdFlashExpressTH int64 = 3
	CourierIdJTExpressMY    int64 = 4
	CourierIdJTExpressSG    int64 = 5
	CourierIdFlashExpressPH int64 = 6
	CourierIdKerryExpressTH int64 = 7
)

var MappingCourierIdAndPrefix = map[int64]string{
	CourierIdNinjaVanSG:     "NVSG",
	CourierIdFlashExpressTH: "FLTH",
	CourierIdJTExpressTH:    "JTTH",
	CourierIdJTExpressMY:    "JTMY",
	CourierIdJTExpressSG:    "JTSG",
	CourierIdFlashExpressPH: "FLPH",
	CourierIdKerryExpressTH: "KRTH",
}
