Documentation ¶
Index ¶
- Constants
- func NewAssignedOfficeUserUpdater(moveFetcher services.MoveFetcher) services.MoveAssignedOfficeUserUpdater
- func NewCloseoutOfficeUpdater(moveFetcher services.MoveFetcher, ...) services.MoveCloseoutOfficeUpdater
- func NewFinancialReviewFlagSetter() services.MoveFinancialReviewFlagSetter
- func NewMoveAdditionalDocumentsUploader(uploadCreator services.UploadCreator) services.MoveAdditionalDocumentsUploader
- func NewMoveCanceler() services.MoveCanceler
- func NewMoveExcessWeightUploader(uploadCreator services.UploadCreator) services.MoveExcessWeightUploader
- func NewMoveFetcher() services.MoveFetcher
- func NewMoveListFetcher(builder moveListQueryBuilder) services.MoveListFetcher
- func NewMoveRouter() services.MoveRouter
- func NewMoveSearcher() services.MoveSearcher
- func NewMoveWeights(reweighRequestor services.ShipmentReweighRequester) services.MoveWeights
- func NewPrimeMoveExcessWeightUploader(uploadCreator services.UploadCreator) services.MoveExcessWeightUploader
- type AssignedOfficeUserUpdater
- func (s AssignedOfficeUserUpdater) DeleteAssignedOfficeUser(appCtx appcontext.AppContext, moveID uuid.UUID, role roles.RoleType) (*models.Move, error)
- func (s AssignedOfficeUserUpdater) UpdateAssignedOfficeUser(appCtx appcontext.AppContext, moveID uuid.UUID, officeUser *models.OfficeUser, ...) (*models.Move, error)
- type CloseoutOfficeUpdater
- type QueryOption
Constants ¶
const AutoReweighRequestThreshold = .9
AutoReweighRequestThreshold is the percentage of the weight allowance that the sum of the move's shipment weight (the lower of the actual or reweigh) that would trigger all shipments to be reweighed
const RiskOfExcessThreshold = .9
RiskOfExcessThreshold is the percentage of the weight allowance that the sum of a move's shipment estimated weights would qualify for excess weight risk
Variables ¶
This section is empty.
Functions ¶
func NewAssignedOfficeUserUpdater ¶
func NewAssignedOfficeUserUpdater(moveFetcher services.MoveFetcher) services.MoveAssignedOfficeUserUpdater
func NewCloseoutOfficeUpdater ¶
func NewCloseoutOfficeUpdater(moveFetcher services.MoveFetcher, transportationOfficeFetcher services.TransportationOfficesFetcher) services.MoveCloseoutOfficeUpdater
func NewFinancialReviewFlagSetter ¶
func NewFinancialReviewFlagSetter() services.MoveFinancialReviewFlagSetter
func NewMoveAdditionalDocumentsUploader ¶
func NewMoveAdditionalDocumentsUploader(uploadCreator services.UploadCreator) services.MoveAdditionalDocumentsUploader
NewMoveAdditionalDocumentsUploader returns a new additionalDocumentsUploader
func NewMoveCanceler ¶
func NewMoveCanceler() services.MoveCanceler
func NewMoveExcessWeightUploader ¶
func NewMoveExcessWeightUploader(uploadCreator services.UploadCreator) services.MoveExcessWeightUploader
NewMoveExcessWeightUploader returns a new excessWeightUploader
func NewMoveFetcher ¶
func NewMoveFetcher() services.MoveFetcher
NewMoveFetcher creates a new moveFetcher service
func NewMoveListFetcher ¶
func NewMoveListFetcher(builder moveListQueryBuilder) services.MoveListFetcher
NewMoveListFetcher returns an implementation of OfficeUserListFetcher
func NewMoveRouter ¶
func NewMoveRouter() services.MoveRouter
NewMoveRouter creates a new moveRouter service
func NewMoveSearcher ¶
func NewMoveSearcher() services.MoveSearcher
func NewMoveWeights ¶
func NewMoveWeights(reweighRequestor services.ShipmentReweighRequester) services.MoveWeights
NewMoveWeights creates a new moveWeights service
func NewPrimeMoveExcessWeightUploader ¶
func NewPrimeMoveExcessWeightUploader(uploadCreator services.UploadCreator) services.MoveExcessWeightUploader
NewPrimeMoveExcessWeightUploader returns a new excessWeightUploader
Types ¶
type AssignedOfficeUserUpdater ¶
type AssignedOfficeUserUpdater struct {
services.MoveFetcher
}
func (AssignedOfficeUserUpdater) DeleteAssignedOfficeUser ¶
func (s AssignedOfficeUserUpdater) DeleteAssignedOfficeUser(appCtx appcontext.AppContext, moveID uuid.UUID, role roles.RoleType) (*models.Move, error)
func (AssignedOfficeUserUpdater) UpdateAssignedOfficeUser ¶
func (s AssignedOfficeUserUpdater) UpdateAssignedOfficeUser(appCtx appcontext.AppContext, moveID uuid.UUID, officeUser *models.OfficeUser, role roles.RoleType) (*models.Move, error)
arguments and return here correspond to what is setup in services/moves.go type MoveAssignedOfficeUserUpdater interface
type CloseoutOfficeUpdater ¶
type CloseoutOfficeUpdater struct { services.MoveFetcher services.TransportationOfficesFetcher }
func (CloseoutOfficeUpdater) UpdateCloseoutOffice ¶
func (s CloseoutOfficeUpdater) UpdateCloseoutOffice(appCtx appcontext.AppContext, moveLocator string, closeoutOfficeID uuid.UUID, eTag string) (*models.Move, error)
type QueryOption ¶
type QueryOption func(*pop.Query)
QueryOption defines the type for the functional arguments passed to SearchMoves