Documentation ¶
Index ¶
- Variables
- func GetMapKeys(m map[primemessages.MTOServiceItemModelType]bool) []reflect.Value
- func NewPrimeAPI(handlerConfig handlers.HandlerConfig) *primeoperations.MymoveAPI
- type AllowedParamKeys
- type CreateExcessWeightRecordHandler
- type CreateMTOAgentHandler
- type CreateMTOServiceItemHandler
- type CreatePaymentRequestHandler
- type CreateSITExtensionHandler
- type CreateServiceRequestDocumentUploadHandler
- type CreateUploadHandler
- type DeleteMTOShipmentHandler
- type DownloadMoveOrderHandler
- type GetMoveTaskOrderHandler
- type ListMovesHandler
- type UpdateMTOAgentHandler
- type UpdateMTOPostCounselingInformationHandler
- type UpdateMTOServiceItemHandler
- type UpdateMTOShipmentAddressHandler
- type UpdateMTOShipmentStatusHandler
- type UpdateReweighHandler
- type UpdateShipmentDestinationAddressHandler
Constants ¶
This section is empty.
Variables ¶
var CreateableServiceItemMap = map[primemessages.MTOServiceItemModelType]bool{ primemessages.MTOServiceItemModelTypeMTOServiceItemOriginSIT: true, primemessages.MTOServiceItemModelTypeMTOServiceItemDestSIT: true, primemessages.MTOServiceItemModelTypeMTOServiceItemShuttle: true, primemessages.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 GetMapKeys ¶
func GetMapKeys(m map[primemessages.MTOServiceItemModelType]bool) []reflect.Value
GetMapKeys is a helper function that returns the keys that are MTOServiceItemModelTypes from the map
func NewPrimeAPI ¶
func NewPrimeAPI(handlerConfig handlers.HandlerConfig) *primeoperations.MymoveAPI
NewPrimeAPI returns the Prime API
Types ¶
type AllowedParamKeys ¶
type AllowedParamKeys map[models.ReServiceCode][]models.ServiceItemParamName
AllowedParamKeys contains a list of param keys that are permitted in a particular context
var ( // AllowedParamKeysPaymentRequest includes the param keys that we allow to be set by the prime while // creating a payment request AllowedParamKeysPaymentRequest AllowedParamKeys = map[models.ReServiceCode][]models.ServiceItemParamName{ models.ReServiceCodeDOASIT: { models.ServiceItemParamNameSITPaymentRequestStart, models.ServiceItemParamNameSITPaymentRequestEnd, models.ServiceItemParamNameWeightBilled, }, models.ReServiceCodeDDASIT: { models.ServiceItemParamNameSITPaymentRequestStart, models.ServiceItemParamNameSITPaymentRequestEnd, models.ServiceItemParamNameWeightBilled, }, models.ReServiceCodeDOFSIT: { models.ServiceItemParamNameWeightBilled, }, models.ReServiceCodeDLH: { models.ServiceItemParamNameWeightBilled, }, models.ReServiceCodeFSC: { models.ServiceItemParamNameWeightBilled, }, models.ReServiceCodeDSH: { models.ServiceItemParamNameWeightBilled, }, models.ReServiceCodeDUPK: { models.ServiceItemParamNameWeightBilled, }, models.ReServiceCodeDNPK: { models.ServiceItemParamNameWeightBilled, }, models.ReServiceCodeDOPSIT: { models.ServiceItemParamNameWeightBilled, }, models.ReServiceCodeDDDSIT: { models.ServiceItemParamNameWeightBilled, }, models.ReServiceCodeDDSHUT: { models.ServiceItemParamNameWeightBilled, }, models.ReServiceCodeDOSHUT: { models.ServiceItemParamNameWeightBilled, }, models.ReServiceCodeDDFSIT: { models.ServiceItemParamNameWeightBilled, }, models.ReServiceCodeDOP: { models.ServiceItemParamNameWeightBilled, }, models.ReServiceCodeDDP: { models.ServiceItemParamNameWeightBilled, }, models.ReServiceCodeDPK: { models.ServiceItemParamNameWeightBilled, }, models.ReServiceCodeDDSFSC: { models.ServiceItemParamNameWeightBilled, }, models.ReServiceCodeDOSFSC: { models.ServiceItemParamNameWeightBilled, }, } )
func (AllowedParamKeys) Contains ¶
func (apk AllowedParamKeys) Contains(serviceCode models.ReServiceCode, paramKeyName string) bool
Contains checks to see if the provided param key is valid for the given service code
type CreateExcessWeightRecordHandler ¶
type CreateExcessWeightRecordHandler struct { handlers.HandlerConfig // contains filtered or unexported fields }
CreateExcessWeightRecordHandler uploads an excess weight record file
func (CreateExcessWeightRecordHandler) Handle ¶
func (h CreateExcessWeightRecordHandler) Handle(params movetaskorderops.CreateExcessWeightRecordParams) middleware.Responder
Handle uploads the file passed into the request and updates the move
type CreateMTOAgentHandler ¶
type CreateMTOAgentHandler struct { handlers.HandlerConfig MTOAgentCreator services.MTOAgentCreator }
CreateMTOAgentHandler is the handler to create an agent
func (CreateMTOAgentHandler) Handle ¶
func (h CreateMTOAgentHandler) Handle(params mtoshipmentops.CreateMTOAgentParams) middleware.Responder
Handle created an MTO Agent for a shipment
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 CreatePaymentRequestHandler ¶
type CreatePaymentRequestHandler struct { handlers.HandlerConfig services.PaymentRequestCreator }
CreatePaymentRequestHandler is the handler for creating payment requests
func (CreatePaymentRequestHandler) Handle ¶
func (h CreatePaymentRequestHandler) Handle(params paymentrequestop.CreatePaymentRequestParams) middleware.Responder
Handle creates the payment request
type CreateSITExtensionHandler ¶
type CreateSITExtensionHandler struct { handlers.HandlerConfig SITExtensionCreator services.SITExtensionCreator }
CreateSITExtensionHandler is the handler to create a sit extension
func (CreateSITExtensionHandler) Handle ¶
func (h CreateSITExtensionHandler) Handle(params mtoshipmentops.CreateSITExtensionParams) middleware.Responder
Handle created a sit extension for a shipment
type CreateServiceRequestDocumentUploadHandler ¶
type CreateServiceRequestDocumentUploadHandler struct { handlers.HandlerConfig services.ServiceRequestDocumentUploadCreator }
type CreateUploadHandler ¶
type CreateUploadHandler struct { handlers.HandlerConfig services.PaymentRequestUploadCreator }
CreateUploadHandler is the create upload handler
func (CreateUploadHandler) Handle ¶
func (h CreateUploadHandler) Handle(params paymentrequestop.CreateUploadParams) middleware.Responder
Handle creates uploads
type DeleteMTOShipmentHandler ¶
type DeleteMTOShipmentHandler struct { handlers.HandlerConfig services.ShipmentDeleter }
DeleteMTOShipmentHandler is the handler to soft delete MTO shipments
func (DeleteMTOShipmentHandler) Handle ¶
func (h DeleteMTOShipmentHandler) Handle(params mtoshipmentops.DeleteMTOShipmentParams) middleware.Responder
Handle handler that updates a mto shipment
type DownloadMoveOrderHandler ¶
type DownloadMoveOrderHandler struct { handlers.HandlerConfig services.MoveSearcher services.OrderFetcher services.PrimeDownloadMoveUploadPDFGenerator }
DownloadMoveOrderHandler is the struct to download all move orders by locator as a PDF
func (DownloadMoveOrderHandler) Handle ¶
func (h DownloadMoveOrderHandler) Handle(params movetaskorderops.DownloadMoveOrderParams) middleware.Responder
Handler for downloading move order by locator as a PDF
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 ListMovesHandler ¶
type ListMovesHandler struct { handlers.HandlerConfig services.MoveTaskOrderFetcher }
ListMovesHandler lists moves with the option to filter since a particular date. Optimized ver.
func (ListMovesHandler) Handle ¶
func (h ListMovesHandler) Handle(params movetaskorderops.ListMovesParams) middleware.Responder
Handle fetches all moves with the option to filter since a particular date. Optimized version.
type UpdateMTOAgentHandler ¶
type UpdateMTOAgentHandler struct { handlers.HandlerConfig MTOAgentUpdater services.MTOAgentUpdater }
UpdateMTOAgentHandler is the handler to update an agent
func (UpdateMTOAgentHandler) Handle ¶
func (h UpdateMTOAgentHandler) Handle(params mtoshipmentops.UpdateMTOAgentParams) middleware.Responder
Handle updates an MTO Agent for a shipment
type UpdateMTOPostCounselingInformationHandler ¶
type UpdateMTOPostCounselingInformationHandler struct { handlers.HandlerConfig services.Fetcher services.MoveTaskOrderUpdater // contains filtered or unexported fields }
UpdateMTOPostCounselingInformationHandler updates the move with post-counseling information
func (UpdateMTOPostCounselingInformationHandler) Handle ¶
func (h UpdateMTOPostCounselingInformationHandler) Handle(params movetaskorderops.UpdateMTOPostCounselingInformationParams) middleware.Responder
Handle updates to move post-counseling
type UpdateMTOServiceItemHandler ¶
type UpdateMTOServiceItemHandler struct { handlers.HandlerConfig services.MTOServiceItemUpdater }
UpdateMTOServiceItemHandler is the handler to update MTO service items
func (UpdateMTOServiceItemHandler) Handle ¶
func (h UpdateMTOServiceItemHandler) Handle(params mtoserviceitemops.UpdateMTOServiceItemParams) middleware.Responder
Handle handler that updates an MTOServiceItem. Only a limited number of service items and fields may be updated.
type UpdateMTOShipmentAddressHandler ¶
type UpdateMTOShipmentAddressHandler struct { handlers.HandlerConfig MTOShipmentAddressUpdater services.MTOShipmentAddressUpdater }
UpdateMTOShipmentAddressHandler is the handler to update an address
func (UpdateMTOShipmentAddressHandler) Handle ¶
func (h UpdateMTOShipmentAddressHandler) Handle(params mtoshipmentops.UpdateMTOShipmentAddressParams) middleware.Responder
Handle updates an address on a shipment
type UpdateMTOShipmentStatusHandler ¶
type UpdateMTOShipmentStatusHandler struct { handlers.HandlerConfig // contains filtered or unexported fields }
UpdateMTOShipmentStatusHandler is the handler to update MTO Shipments' status
func (UpdateMTOShipmentStatusHandler) Handle ¶
func (h UpdateMTOShipmentStatusHandler) Handle(params mtoshipmentops.UpdateMTOShipmentStatusParams) middleware.Responder
Handle handler that updates a mto shipment's status
type UpdateReweighHandler ¶
type UpdateReweighHandler struct { handlers.HandlerConfig ReweighUpdater services.ReweighUpdater }
UpdateReweighHandler is the handler to update a reweigh
func (UpdateReweighHandler) Handle ¶
func (h UpdateReweighHandler) Handle(params mtoshipmentops.UpdateReweighParams) middleware.Responder
Handle updates on a reweigh
type UpdateShipmentDestinationAddressHandler ¶
type UpdateShipmentDestinationAddressHandler struct { handlers.HandlerConfig services.ShipmentAddressUpdateRequester }
UpdateShipmentDestinationAddressHandler is the handler to create address update request for non-SIT
func (UpdateShipmentDestinationAddressHandler) Handle ¶
func (h UpdateShipmentDestinationAddressHandler) Handle(params mtoshipmentops.UpdateShipmentDestinationAddressParams) middleware.Responder
Handle creates the address update request for non-SIT