2022-09-16 10:43:13 +00:00
|
|
|
package onpoint
|
|
|
|
|
2022-10-17 07:32:28 +00:00
|
|
|
const (
|
|
|
|
PaymentMethodCOD = "cod"
|
|
|
|
PaymentMethodBankTransfer = "bank_transfer"
|
|
|
|
PaymentMethodWallet = "wallet"
|
2023-05-10 07:07:41 +00:00
|
|
|
PaymentMethodFundiin = "fundiin"
|
2022-10-17 07:32:28 +00:00
|
|
|
)
|
|
|
|
|
2022-10-14 07:39:57 +00:00
|
|
|
const (
|
|
|
|
CodeSuccess = "SUCCESS"
|
|
|
|
|
|
|
|
TimeLayout = "2006-01-02T15:04:05Z"
|
|
|
|
)
|
|
|
|
|
2022-09-16 10:43:13 +00:00
|
|
|
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"
|
2024-04-08 08:38:20 +00:00
|
|
|
apiPathGetInventories = "/v1/inventories"
|
2022-09-16 10:43:13 +00:00
|
|
|
|
|
|
|
headerXAPIKey = "x-api-key"
|
|
|
|
headerXTimestamp = "x-timestamp"
|
|
|
|
headerXSignature = "x-signature"
|
2022-09-19 07:34:55 +00:00
|
|
|
|
2022-10-17 09:28:13 +00:00
|
|
|
webhookEventUpdateOrderStatus = "UPDATE_ORDER_STATUS"
|
2022-09-19 07:34:55 +00:00
|
|
|
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,
|
|
|
|
}
|
|
|
|
)
|