ghcapi

package
v0.0.0-...-c407d37 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 91 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGhcAPIHandler

func NewGhcAPIHandler(handlerConfig handlers.HandlerConfig) *ghcops.MymoveAPI

NewGhcAPIHandler returns a handler for the GHC API

func PayloadForOrdersModel

func PayloadForOrdersModel(order models.Order) (*ghcmessages.OrderBody, error)

Types

type AcknowledgeExcessWeightRiskHandler

type AcknowledgeExcessWeightRiskHandler struct {
	handlers.HandlerConfig
	// contains filtered or unexported fields
}

AcknowledgeExcessWeightRiskHandler is called when a TOO dismissed the alert to acknowledge the excess weight risk via POST /orders/{orderId}/acknowledge-excess-weight-risk

func (AcknowledgeExcessWeightRiskHandler) Handle

Handle ... updates the authorized weight

type ApproveSITExtensionHandler

type ApproveSITExtensionHandler struct {
	handlers.HandlerConfig
	services.SITExtensionApprover
	services.ShipmentSITStatus
}

ApproveSITExtensionHandler approves a SIT extension

func (ApproveSITExtensionHandler) Handle

Handle ... approves the SIT extension

type ApproveShipmentDiversionHandler

type ApproveShipmentDiversionHandler struct {
	handlers.HandlerConfig
	services.ShipmentDiversionApprover
	services.ShipmentSITStatus
}

ApproveShipmentDiversionHandler approves a shipment diversion

func (ApproveShipmentDiversionHandler) Handle

Handle approves a shipment diversion

type ApproveShipmentHandler

ApproveShipmentHandler approves a shipment

func (ApproveShipmentHandler) Handle

Handle approves a shipment

type AssociateReportViolationsHandler

type AssociateReportViolationsHandler struct {
	handlers.HandlerConfig
	services.ReportViolationsCreator
}

AssociateReportViolationsHandler is the struct report violations

func (AssociateReportViolationsHandler) Handle

Handle is the handler for associating violations with reports

type CounselingUpdateAllowanceHandler

type CounselingUpdateAllowanceHandler struct {
	handlers.HandlerConfig
	// contains filtered or unexported fields
}

CounselingUpdateAllowanceHandler updates an order and entitlements via PATCH /counseling/orders/{orderId}/allowances

func (CounselingUpdateAllowanceHandler) Handle

Handle ... updates an order from a request payload

type CounselingUpdateOrderHandler

type CounselingUpdateOrderHandler struct {
	handlers.HandlerConfig
	// contains filtered or unexported fields
}

CounselingUpdateOrderHandler updates an order via PATCH /counseling/orders/{orderId}

func (CounselingUpdateOrderHandler) Handle

Handle ... updates an order as requested by a services counselor

type CreateApprovedSITDurationUpdateHandler

type CreateApprovedSITDurationUpdateHandler struct {
	handlers.HandlerConfig
	services.ApprovedSITDurationUpdateCreator
	services.ShipmentSITStatus
}

CreateApprovedSITDurationUpdateHandler creates a SIT Duration Update in the approved state

func (CreateApprovedSITDurationUpdateHandler) Handle

Handle creates the approved SIT extension

type CreateCustomerWithOktaOptionHandler

type CreateCustomerWithOktaOptionHandler struct {
	handlers.HandlerConfig
}

func (CreateCustomerWithOktaOptionHandler) Handle

Handle creates a customer/serviceMember from a request payload

type CreateEvaluationReportHandler

type CreateEvaluationReportHandler struct {
	handlers.HandlerConfig
	services.EvaluationReportCreator
}

CreateEvaluationReport is the struct for creating an evaluation report

func (CreateEvaluationReportHandler) Handle

Handle is the handler for creating an evaluation report

type CreateMTOShipmentHandler

type CreateMTOShipmentHandler struct {
	handlers.HandlerConfig
	// contains filtered or unexported fields
}

CreateMTOShipmentHandler is the handler to create MTO shipments

func (CreateMTOShipmentHandler) Handle

Handle creates the mto shipment

type CreateOrderHandler

type CreateOrderHandler struct {
	handlers.HandlerConfig
}

CounselingUpdateOrderHandler create an order via POST /orders

func (CreateOrderHandler) Handle

Handle ... creates an order as requested by a services counselor

type CreateUploadHandler

type CreateUploadHandler struct {
	handlers.HandlerConfig
}

func (CreateUploadHandler) Handle

type DeleteEvaluationReportHandler

type DeleteEvaluationReportHandler struct {
	handlers.HandlerConfig
	services.EvaluationReportDeleter
}

DeleteEvaluationReportHandler is the struct for soft deleting evaluation reports

func (DeleteEvaluationReportHandler) Handle

Handle is the handler function for soft deleting an evaluation report

type DeleteShipmentHandler

type DeleteShipmentHandler struct {
	handlers.HandlerConfig
	services.ShipmentDeleter
}

DeleteShipmentHandler soft deletes a shipment

func (DeleteShipmentHandler) Handle

Handle soft deletes a shipment

type DenySITExtensionHandler

DenySITExtensionHandler denies a SIT extension

func (DenySITExtensionHandler) Handle

Handle ... denies the SIT extension

type DownloadEvaluationReportHandler

DownloadEvaluationReportHandler is the struct for fetching an evaluation report by ID

func (DownloadEvaluationReportHandler) Handle

Handle is the handler for downloading an evaluation report by ID as a PDF

type FilterOption

type FilterOption func(*pop.Query)

FilterOption defines the type for the functional arguments used for private functions in OrderFetcher

type FinishDocumentReviewHandler

type FinishDocumentReviewHandler struct {
	handlers.HandlerConfig
	services.PPMShipmentReviewDocuments
}

func (FinishDocumentReviewHandler) Handle

Handle finishes a review for a PPM shipment's documents

type GetCounselingEvaluationReportsHandler

type GetCounselingEvaluationReportsHandler struct {
	handlers.HandlerConfig
	services.EvaluationReportFetcher
}

GetCounselingEvaluationReportsHandler gets a list of counseling evaluation reports for a given move

func (GetCounselingEvaluationReportsHandler) Handle

Handle handles GetCounselingEvaluationReports by move request

type GetCustomerHandler

type GetCustomerHandler struct {
	handlers.HandlerConfig
	services.CustomerFetcher
}

GetCustomerHandler fetches the information of a specific customer

func (GetCustomerHandler) Handle

Handle getting the information of a specific customer

type GetDocumentHandler

type GetDocumentHandler struct {
	handlers.HandlerConfig
}

GetDocumentHandler shows a document via GETT /documents/:document_id

func (GetDocumentHandler) Handle

Handle creates a new Document from a request payload

type GetEvaluationReportHandler

type GetEvaluationReportHandler struct {
	handlers.HandlerConfig
	services.EvaluationReportFetcher
}

GetEvaluationReportHandler is the struct for fetching an evaluation report by ID

func (GetEvaluationReportHandler) Handle

Handle is the handler for fetching an evaluation report by ID

type GetMTOServiceItemHandler

type GetMTOServiceItemHandler struct {
	handlers.HandlerConfig
	// contains filtered or unexported fields
}

GetMTOServiceItem returns an MTO Service item stored in the mto_service_items table requires a uuid to find the service item

func (GetMTOServiceItemHandler) Handle

type GetMTOShipmentHandler

type GetMTOShipmentHandler struct {
	handlers.HandlerConfig
	// contains filtered or unexported fields
}

GetMTOShipmentHandler is the handler to fetch a single MTO shipment by ID

func (GetMTOShipmentHandler) Handle

Handle handles the handling of fetching a single MTO shipment by ID.

type GetMoveHandler

type GetMoveHandler struct {
	handlers.HandlerConfig
	services.MoveFetcher
}

GetMoveHandler gets a move by locator

func (GetMoveHandler) Handle

Handle handles the getMove by locator request

type GetMoveHistoryHandler

type GetMoveHistoryHandler struct {
	handlers.HandlerConfig
	services.MoveHistoryFetcher
}

GetMoveHistoryHandler gets a move history by locator

func (GetMoveHistoryHandler) Handle

Handle handles the paged getMoveHistory by locator request

type GetMoveTaskOrderHandler

type GetMoveTaskOrderHandler struct {
	handlers.HandlerConfig
	// contains filtered or unexported fields
}

GetMoveTaskOrderHandler fetches a Move Task Order

func (GetMoveTaskOrderHandler) Handle

Handle fetches a single MoveTaskOrder

type GetMovesQueueHandler

type GetMovesQueueHandler struct {
	handlers.HandlerConfig
	services.OrderFetcher
}

GetMovesQueueHandler returns the moves for the TOO queue user via GET /queues/moves

func (GetMovesQueueHandler) Handle

Handle returns the paginated list of moves for the TOO user

type GetOrdersHandler

type GetOrdersHandler struct {
	handlers.HandlerConfig
	services.OrderFetcher
}

GetOrdersHandler fetches the information of a specific order

func (GetOrdersHandler) Handle

Handle getting the information of a specific order

type GetPPMActualWeightHandler

type GetPPMActualWeightHandler struct {
	handlers.HandlerConfig
	services.PPMCloseoutFetcher
	// contains filtered or unexported fields
}

func (GetPPMActualWeightHandler) Handle

Handle retrieves all calcuations for a PPM closeout

type GetPPMCloseoutHandler

type GetPPMCloseoutHandler struct {
	handlers.HandlerConfig
	services.PPMCloseoutFetcher
}

GetPPMCloseoutHandler is the handler that fetches all of the calculations for a PPM closeout for the office api

func (GetPPMCloseoutHandler) Handle

Handle retrieves all calcuations for a PPM closeout

type GetPPMDocumentsHandler

type GetPPMDocumentsHandler struct {
	handlers.HandlerConfig
	services.PPMDocumentFetcher
}

GetPPMDocumentsHandler is the handler that fetches all of the documents for a PPM shipment for the office api

func (GetPPMDocumentsHandler) Handle

Handle retrieves all documents for a PPM shipment

type GetPWSViolationsHandler

type GetPWSViolationsHandler struct {
	handlers.HandlerConfig
	services.PWSViolationsFetcher
}

PWSViolationsHandler is a struct that describes getting PWS violations for evaluation reports

func (GetPWSViolationsHandler) Handle

Handle handles the handling of getting PWS violations for evaluation reports

type GetPaymentRequestForMoveHandler

type GetPaymentRequestForMoveHandler struct {
	handlers.HandlerConfig
	services.PaymentRequestListFetcher
}

GetPaymentRequestForMoveHandler gets payment requests associated with a move

func (GetPaymentRequestForMoveHandler) Handle

Handle handles the HTTP handling for GetPaymentRequestForMoveHandler

type GetPaymentRequestHandler

type GetPaymentRequestHandler struct {
	handlers.HandlerConfig
	services.PaymentRequestFetcher
}

GetPaymentRequestHandler gets payment requests

func (GetPaymentRequestHandler) Handle

Handle gets payment requests

type GetPaymentRequestsQueueHandler

type GetPaymentRequestsQueueHandler struct {
	handlers.HandlerConfig
	services.PaymentRequestListFetcher
}

GetPaymentRequestsQueueHandler returns the payment requests for the TIO queue user via GET /queues/payment-requests

func (GetPaymentRequestsQueueHandler) Handle

Handle returns the paginated list of payment requests for the TIO user

type GetReportViolationsHandler

type GetReportViolationsHandler struct {
	handlers.HandlerConfig
	services.ReportViolationFetcher
}

Get gets a list of PWS violations for a report

func (GetReportViolationsHandler) Handle

Handle gets a list of PWS violations for a report

type GetServicesCounselingQueueHandler

type GetServicesCounselingQueueHandler struct {
	handlers.HandlerConfig
	services.OrderFetcher
}

GetServicesCounselingQueueHandler returns the moves for the Service Counselor queue user via GET /queues/counselor

func (GetServicesCounselingQueueHandler) Handle

Handle returns the paginated list of moves for the services counselor

type GetShipmentEvaluationReportsHandler

type GetShipmentEvaluationReportsHandler struct {
	handlers.HandlerConfig
	services.EvaluationReportFetcher
}

GetShipmentEvaluationReportsHandler gets a list of shipment evaluation reports for a given move

func (GetShipmentEvaluationReportsHandler) Handle

Handle handles GetShipmentEvaluationReports by move request

type ListCustomerSupportRemarksHandler

type ListCustomerSupportRemarksHandler struct {
	handlers.HandlerConfig
	services.CustomerSupportRemarksFetcher
}

ListCustomerSupportRemarksHandler is a struct that describes listing customer support remarks for a move

func (ListCustomerSupportRemarksHandler) Handle

Handle handles the handling for getting a list of customer support remarks for a move

type ListMTOAgentsHandler

type ListMTOAgentsHandler struct {
	handlers.HandlerConfig
	services.ListFetcher
}

ListMTOAgentsHandler is a struct for the handler.

func (ListMTOAgentsHandler) Handle

Handle handles the handling for listing MTO Agents.

type ListMTOServiceItemsHandler

type ListMTOServiceItemsHandler struct {
	handlers.HandlerConfig
	services.ListFetcher
	services.Fetcher
}

ListMTOServiceItemsHandler struct that describes listing service items for the move task order

func (ListMTOServiceItemsHandler) Handle

Handle handler that lists mto service items for the move task order

type ListMTOShipmentsHandler

ListMTOShipmentsHandler returns a list of MTO Shipments

func (ListMTOShipmentsHandler) Handle

Handle listing mto shipments for the move task order

type ListPrimeMovesHandler

type ListPrimeMovesHandler struct {
	handlers.HandlerConfig
	services.MoveTaskOrderFetcher
}

ListMovesHandler lists moves with the option to filter since a particular date. Optimized ver.

func (ListPrimeMovesHandler) Handle

Handle fetches all moves with the option to filter since a particular date. Optimized version.

type RejectShipmentHandler

type RejectShipmentHandler struct {
	handlers.HandlerConfig
	services.ShipmentRejecter
}

RejectShipmentHandler rejects a shipment

func (RejectShipmentHandler) Handle

Handle rejects a shipment

type RequestShipmentCancellationHandler

type RequestShipmentCancellationHandler struct {
	handlers.HandlerConfig
	services.ShipmentCancellationRequester
	services.ShipmentSITStatus
}

RequestShipmentCancellationHandler Requests a shipment diversion

func (RequestShipmentCancellationHandler) Handle

Handle Requests a shipment diversion

type RequestShipmentDiversionHandler

type RequestShipmentDiversionHandler struct {
	handlers.HandlerConfig
	services.ShipmentDiversionRequester
	services.ShipmentSITStatus
}

RequestShipmentDiversionHandler Requests a shipment diversion

func (RequestShipmentDiversionHandler) Handle

Handle Requests a shipment diversion

type RequestShipmentReweighHandler

RequestShipmentReweighHandler Requests a shipment reweigh

func (RequestShipmentReweighHandler) Handle

Handle Requests a shipment reweigh

type ReviewShipmentAddressUpdateHandler

type ReviewShipmentAddressUpdateHandler struct {
	handlers.HandlerConfig
	services.ShipmentAddressUpdateRequester
}

ReviewShipmentAddressUpdateHandler Reviews a shipment address change

func (ReviewShipmentAddressUpdateHandler) Handle

Handle ... reviews address update request

type SaveEvaluationReportHandler

type SaveEvaluationReportHandler struct {
	handlers.HandlerConfig
	services.EvaluationReportUpdater
}

func (SaveEvaluationReportHandler) Handle

type SearchMovesHandler

type SearchMovesHandler struct {
	handlers.HandlerConfig
	services.MoveSearcher
}

func (SearchMovesHandler) Handle

type SetFinancialReviewFlagHandler

type SetFinancialReviewFlagHandler struct {
	handlers.HandlerConfig
	services.MoveFinancialReviewFlagSetter
}

func (SetFinancialReviewFlagHandler) Handle

Handle flags a move for financial review

type ShipmentsSITBalanceHandler

type ShipmentsSITBalanceHandler struct {
	handlers.HandlerConfig
	services.ShipmentsPaymentSITBalance
}

ShipmentsSITBalanceHandler is the handler type for getShipmentsPaymentSITBalance

func (ShipmentsSITBalanceHandler) Handle

Handle handles the getShipmentsPaymentSITBalance request

type ShowPaymentPacketHandler

type ShowPaymentPacketHandler struct {
	handlers.HandlerConfig
	services.PaymentPacketCreator
}

ShowPaymentPacketHandler returns a PPM Payment Packet PDF

func (ShowPaymentPacketHandler) Handle

Handle returns a generated PDF

type SubmitEvaluationReportHandler

type SubmitEvaluationReportHandler struct {
	handlers.HandlerConfig
	services.EvaluationReportUpdater
}

func (SubmitEvaluationReportHandler) Handle

type TacValidationHandler

type TacValidationHandler struct {
	handlers.HandlerConfig
}

TacValidationHandler validates a TAC value

func (TacValidationHandler) Handle

Handle accepts the TAC value and returns a payload showing if it is valid

type UpdateAllowanceHandler

type UpdateAllowanceHandler struct {
	handlers.HandlerConfig
	// contains filtered or unexported fields
}

UpdateAllowanceHandler updates an order and entitlements via PATCH /orders/{orderId}/allowances

func (UpdateAllowanceHandler) Handle

Handle ... updates an order from a request payload

type UpdateBillableWeightHandler

type UpdateBillableWeightHandler struct {
	handlers.HandlerConfig
	// contains filtered or unexported fields
}

UpdateBillableWeightHandler updates the max billable weight on an order's entitlements via PATCH /orders/{orderId}/update-billable-weight

func (UpdateBillableWeightHandler) Handle

Handle ... updates the authorized weight

type UpdateCustomerHandler

type UpdateCustomerHandler struct {
	handlers.HandlerConfig
	// contains filtered or unexported fields
}

UpdateCustomerHandler updates a customer via PATCH /customer/{customerId}

func (UpdateCustomerHandler) Handle

Handle updates a customer from a request payload

type UpdateMTOReviewedBillableWeightsAtHandlerFunc

type UpdateMTOReviewedBillableWeightsAtHandlerFunc struct {
	handlers.HandlerConfig
	// contains filtered or unexported fields
}

UpdateMTOReviewedBillableWeightsAtHandlerFunc provides timestamp for a Move's (MoveTaskOrder's) ReviewedBillableWeightsAt field

func (UpdateMTOReviewedBillableWeightsAtHandlerFunc) Handle

Handle updates the timestamp for a Move's (MoveTaskOrder's) ReviewedBillableWeightsAt field

type UpdateMTOServiceItemStatusHandler

type UpdateMTOServiceItemStatusHandler struct {
	handlers.HandlerConfig
	services.MTOServiceItemUpdater
	services.Fetcher
}

UpdateMTOServiceItemStatusHandler struct that describes updating service item status

func (UpdateMTOServiceItemStatusHandler) Handle

Handle handler that handles the handling for updating service item status

type UpdateMTOStatusServiceCounselingCompletedHandlerFunc

type UpdateMTOStatusServiceCounselingCompletedHandlerFunc struct {
	handlers.HandlerConfig
	// contains filtered or unexported fields
}

UpdateMTOStatusServiceCounselingCompletedHandlerFunc updates the status of a Move (MoveTaskOrder) to MoveStatusServiceCounselingCompleted

func (UpdateMTOStatusServiceCounselingCompletedHandlerFunc) Handle

Handle updates the status of a Move (MoveTaskOrder). Slightly different from UpdateMoveTaskOrderStatusHandlerFunc, this handler will update the Move status without making it available to the Prime and without creating basic service items.

type UpdateMaxBillableWeightAsTIOHandler

type UpdateMaxBillableWeightAsTIOHandler struct {
	handlers.HandlerConfig
	// contains filtered or unexported fields
}

UpdateMaxBillableWeightAsTIOHandler updates the max billable weight on an order's entitlements via PATCH /orders/{orderId}/update-billable-weight/tio

func (UpdateMaxBillableWeightAsTIOHandler) Handle

Handle ... updates the authorized weight

type UpdateMoveCloseoutOfficeHandler

type UpdateMoveCloseoutOfficeHandler struct {
	handlers.HandlerConfig
	services.MoveCloseoutOfficeUpdater
}

func (UpdateMoveCloseoutOfficeHandler) Handle

type UpdateMoveTIORemarksHandlerFunc

type UpdateMoveTIORemarksHandlerFunc struct {
	handlers.HandlerConfig
	// contains filtered or unexported fields
}

UpdateMoveTIORemarksHandlerFunc updates a Move's (MoveTaskOrder's) TIORemarks field

func (UpdateMoveTIORemarksHandlerFunc) Handle

Handle updates a Move's (MoveTaskOrder's) TIORemarks field

type UpdateMoveTaskOrderStatusHandlerFunc

type UpdateMoveTaskOrderStatusHandlerFunc struct {
	handlers.HandlerConfig
	// contains filtered or unexported fields
}

UpdateMoveTaskOrderStatusHandlerFunc updates the status of a Move Task Order

func (UpdateMoveTaskOrderStatusHandlerFunc) Handle

Handle updates the status of a MoveTaskOrder

type UpdateMovingExpenseHandler

type UpdateMovingExpenseHandler struct {
	handlers.HandlerConfig
	// contains filtered or unexported fields
}

UpdateMovingExpenseHandler

func (UpdateMovingExpenseHandler) Handle

type UpdateOrderHandler

type UpdateOrderHandler struct {
	handlers.HandlerConfig
	// contains filtered or unexported fields
}

UpdateOrderHandler updates an order via PATCH /orders/{orderId}

func (UpdateOrderHandler) Handle

Handle ... updates an order from a request payload

type UpdatePaymentRequestStatusHandler

type UpdatePaymentRequestStatusHandler struct {
	handlers.HandlerConfig
	services.PaymentRequestStatusUpdater
	services.PaymentRequestFetcher
}

UpdatePaymentRequestStatusHandler updates payment requests status

func (UpdatePaymentRequestStatusHandler) Handle

Handle updates payment requests status

type UpdatePaymentServiceItemStatusHandler

type UpdatePaymentServiceItemStatusHandler struct {
	handlers.HandlerConfig
	services.PaymentServiceItemStatusUpdater
}

UpdatePaymentServiceItemStatusHandler updates payment service item status

func (UpdatePaymentServiceItemStatusHandler) Handle

Handle handles the handling for UpdatePaymentServiceItemStatusHandler

type UpdateProgearWeightTicketHandler

type UpdateProgearWeightTicketHandler struct {
	handlers.HandlerConfig
	// contains filtered or unexported fields
}

UpdateProgearWeightTicketHandler

func (UpdateProgearWeightTicketHandler) Handle

type UpdateSITServiceItemCustomerExpenseHandler

type UpdateSITServiceItemCustomerExpenseHandler struct {
	handlers.HandlerConfig
	services.MTOServiceItemUpdater
	services.MTOShipmentFetcher
	services.ShipmentSITStatus
}

UpdateSITServiceItemCustomerExpenseHandler converts a SIT to customer expense

func (UpdateSITServiceItemCustomerExpenseHandler) Handle

Handle ... converts the SIT to customer expense

type UpdateServiceItemSitEntryDateHandler

type UpdateServiceItemSitEntryDateHandler struct {
	handlers.HandlerConfig
	// contains filtered or unexported fields
}

func (UpdateServiceItemSitEntryDateHandler) Handle

type UpdateShipmentHandler

UpdateShipmentHandler updates shipments

func (UpdateShipmentHandler) Handle

Handle updates shipments

type UpdateWeightTicketHandler

type UpdateWeightTicketHandler struct {
	handlers.HandlerConfig
	// contains filtered or unexported fields
}

UpdateWeightTicketHandler

func (UpdateWeightTicketHandler) Handle

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL