move

package
v0.0.0-...-c486877 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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

Jump to

Keyboard shortcuts

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