26 lines
957 B
Go
26 lines
957 B
Go
package subject
|
|
|
|
import "fmt"
|
|
|
|
func getWarehouseValue(val string) string {
|
|
return fmt.Sprintf("%s.%s", prefixes.Warehouse, val)
|
|
}
|
|
|
|
var Warehouse = struct {
|
|
CreateOutboundRequest string
|
|
UpdateOutboundRequestLogistic string
|
|
CancelOutboundRequest string
|
|
GetConfiguration string
|
|
SyncORStatus string
|
|
WebhookTNC string
|
|
WebhookGlobalCare string
|
|
}{
|
|
CreateOutboundRequest: getWarehouseValue("create_outbound_request"),
|
|
UpdateOutboundRequestLogistic: getWarehouseValue("update_outbound_request_logistic_info"),
|
|
CancelOutboundRequest: getWarehouseValue("cancel_outbound_request"),
|
|
GetConfiguration: getWarehouseValue("get_configuration"),
|
|
SyncORStatus: getWarehouseValue("sync_or_status"),
|
|
WebhookTNC: getWarehouseValue("webhook_tnc"),
|
|
WebhookGlobalCare: getWarehouseValue("webhook_global_care"),
|
|
}
|