Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var CreateableServiceItemMap = map[primev2messages.MTOServiceItemModelType]bool{ primev2messages.MTOServiceItemModelTypeMTOServiceItemOriginSIT: true, primev2messages.MTOServiceItemModelTypeMTOServiceItemDestSIT: true, primev2messages.MTOServiceItemModelTypeMTOServiceItemShuttle: true, primev2messages.MTOServiceItemModelTypeMTOServiceItemDomesticCrating: true, }
CreateableServiceItemMap is a map of MTOServiceItemModelTypes and their allowed statuses THIS WILL NEED TO BE UPDATED AS WE CONTINUE TO ADD MORE SERVICE ITEMS. We will eventually remove this when all service items are added.
Functions ¶
func NewPrimeAPI ¶
func NewPrimeAPI(handlerConfig handlers.HandlerConfig) *primev2operations.MymoveAPI
NewPrimeAPI returns the Prime API
Types ¶
type CreateMTOServiceItemHandler ¶
type CreateMTOServiceItemHandler struct { handlers.HandlerConfig // contains filtered or unexported fields }
CreateMTOServiceItemHandler is the handler to create MTO service items
func (CreateMTOServiceItemHandler) Handle ¶
func (h CreateMTOServiceItemHandler) Handle(params mtoserviceitemops.CreateMTOServiceItemParams) middleware.Responder
Handle handler that creates a mto service item
type CreateMTOShipmentHandler ¶
type CreateMTOShipmentHandler struct { handlers.HandlerConfig services.ShipmentCreator // contains filtered or unexported fields }
CreateMTOShipmentHandler is the handler to create MTO shipments
func (CreateMTOShipmentHandler) Handle ¶
func (h CreateMTOShipmentHandler) Handle(params mtoshipmentops.CreateMTOShipmentParams) middleware.Responder
Handle creates the mto shipment
type GetMoveTaskOrderHandler ¶
type GetMoveTaskOrderHandler struct { handlers.HandlerConfig // contains filtered or unexported fields }
GetMoveTaskOrderHandler returns the details for a particular move
func (GetMoveTaskOrderHandler) Handle ¶
func (h GetMoveTaskOrderHandler) Handle(params movetaskorderops.GetMoveTaskOrderParams) middleware.Responder
Handle fetches a move from the database using its UUID or move code
type UpdateMTOShipmentHandler ¶
type UpdateMTOShipmentHandler struct { handlers.HandlerConfig services.ShipmentUpdater }
UpdateMTOShipmentHandler is the handler to update MTO shipments
func (UpdateMTOShipmentHandler) Handle ¶
func (h UpdateMTOShipmentHandler) Handle(params mtoshipmentops.UpdateMTOShipmentParams) middleware.Responder
Handle handler that updates a mto shipment