3pl/partnerapi/tnc/const.go

54 lines
1.3 KiB
Go

package tnc
const (
TimeLayout = "2006-01-02 15:04:05"
apiPathCreateOutboundRequest = "/api/v1/ors"
apiPathGetOutboundRequest = "/api/v1/ors/%d"
apiPathCancelOutboundRequest = "/api/v1/ors/%d/cancel"
apiPathUpdateLogisticInfoOutboundRequest = "/api/v1/ors/%d/logistic-info"
apiPathAuth = "/auth/realms/%s/protocol/openid-connect/token"
PriorityUrgent = 3
PriorityHigh = 2
PriorityNormal = 1
TPLCodeGHN = "GHN"
TPLCodeGHTK = "GHTK"
TPLCodeBest = "BEX"
TPLCodeSnappy = "SPY"
TPLCodeViettelPost = "VTP"
TPLCodeSellyExpress = "SE"
TPLCodeJTExpress = "JTE"
ShippingServiceCodeSTD = "STD"
ORTypeOrder = 1
ShippingTypeSelfShip = 1
PackTypeNormal = 1
BizTypeB2C = 1
ConditionTypeCodeNew = "NEW"
)
const (
baseURLAuthStaging = "https://auth.stg.vnfai.com"
baseURLStaging = "https://ext.stg.vnfai.com"
baseURLAuthProd = "https://auth.vnfai.com"
baseURLProd = "https://ext-api.vnfai.com"
)
const (
ErrCodeExistPartnerCode = "exist_partner_code"
)
var (
baseURLENVMapping = map[ENV]string{
EnvProd: baseURLProd,
EnvStaging: baseURLStaging,
}
baseURLAuthENVMapping = map[ENV]string{
EnvProd: baseURLAuthProd,
EnvStaging: baseURLAuthStaging,
}
)