2022-09-16 10:43:13 +00:00
|
|
|
package onpoint
|
|
|
|
|
|
|
|
const (
|
2022-10-03 03:04:50 +00:00
|
|
|
baseURLStaging = "https://dev-selly-api.onpoint.vn"
|
|
|
|
baseURLProd = "https://selly-api.onpoint.vn"
|
2022-09-16 10:43:13 +00:00
|
|
|
|
2022-10-03 04:04:14 +00:00
|
|
|
apiPathCreateOrder = "/v1/orders/create"
|
|
|
|
apiPathUpdateDelivery = "/v1/orders/update_delivery"
|
2022-09-16 10:43:13 +00:00
|
|
|
apiPathCancelOrder = "/v1/orders/cancel"
|
|
|
|
apiPathGetChannels = "/v1/channels"
|
|
|
|
|
|
|
|
headerXAPIKey = "x-api-key"
|
|
|
|
headerXTimestamp = "x-timestamp"
|
|
|
|
headerXSignature = "x-signature"
|
2022-09-19 07:34:55 +00:00
|
|
|
|
|
|
|
webhookEventUpdateOrderStatus = "update_order_status"
|
|
|
|
webhookEventUpdateInventory = "update_inventory"
|
2022-09-16 10:43:13 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
|
|
|
baseURLENVMapping = map[ENV]string{
|
2022-10-03 03:04:50 +00:00
|
|
|
EnvProd: baseURLProd,
|
2022-09-16 10:43:13 +00:00
|
|
|
EnvStaging: baseURLStaging,
|
|
|
|
}
|
|
|
|
)
|