Documentation
¶
Index ¶
- Constants
- Variables
- func FetchMobileHomeShipmentFromMTOShipmentID(appCtx appcontext.AppContext, mtoShipmentID uuid.UUID) (*models.MobileHome, error)
- func FindMobileHomeShipment(appCtx appcontext.AppContext, id uuid.UUID) (*models.MobileHome, error)
- func FindMobileHomeShipmentByMTOID(appCtx appcontext.AppContext, mtoID uuid.UUID) (*models.MobileHome, error)
- func GetListOfAllPostloadAssociations() []string
- func GetListOfAllPreloadAssociations() []string
- func IsPrimeCounseledMobileHome(appCtx appcontext.AppContext, mtoShipmentID uuid.UUID) (bool, error)
- func NewMobileHomeShipmentCreator() services.MobileHomeShipmentCreator
- func NewMobileHomeShipmentFetcher() services.MobileHomeShipmentFetcher
- func NewMobileHomeShipmentUpdater() services.MobileHomeShipmentUpdater
Constants ¶
const ( // EagerPreloadAssociationShipment is the name of the association for the shipment EagerPreloadAssociationShipment = "Shipment" // EagerPreloadAssociationServiceMember is the name of the association for the service member EagerPreloadAssociationServiceMember = "Shipment.MoveTaskOrder.Orders.ServiceMember" )
These are helper constants for requesting eager preload associations
const (
// PostLoadAssociationUploadedOrders is the name of the association for the orders uploaded by the service member
PostLoadAssociationUploadedOrders = "UploadedOrders"
)
These are helper constants for requesting post load associations, meaning associations that can't be eager pre-loaded due to bugs in pop
Variables ¶
var MobileHomeShipmentUpdaterChecks = []mobileHomeShipmentValidator{
checkShipmentID(),
checkMobileHomeShipmentID(),
checkRequiredFields(),
}
Functions ¶
func FetchMobileHomeShipmentFromMTOShipmentID ¶
func FetchMobileHomeShipmentFromMTOShipmentID(appCtx appcontext.AppContext, mtoShipmentID uuid.UUID) (*models.MobileHome, error)
func FindMobileHomeShipment ¶
func FindMobileHomeShipment(appCtx appcontext.AppContext, id uuid.UUID) (*models.MobileHome, error)
FindMobileHomeShipment returns a MobileHome with associations by ID
func FindMobileHomeShipmentByMTOID ¶
func FindMobileHomeShipmentByMTOID(appCtx appcontext.AppContext, mtoID uuid.UUID) (*models.MobileHome, error)
func GetListOfAllPostloadAssociations ¶
func GetListOfAllPostloadAssociations() []string
GetListOfAllPostloadAssociations returns all associations for a MobileHomeShipment that can't be eagerly preloaded due to bugs in pop
func GetListOfAllPreloadAssociations ¶
func GetListOfAllPreloadAssociations() []string
GetListOfAllPreloadAssociations returns all associations for a MobileHomeShipment that can be eagerly preloaded for ease of use.
func IsPrimeCounseledMobileHome ¶
func IsPrimeCounseledMobileHome(appCtx appcontext.AppContext, mtoShipmentID uuid.UUID) (bool, error)
returns true if moves orders are from a location that does not provide service counseling
func NewMobileHomeShipmentCreator ¶
func NewMobileHomeShipmentCreator() services.MobileHomeShipmentCreator
NewMobileHomeShipmentCreator creates a new struct with the service dependencies
func NewMobileHomeShipmentFetcher ¶
func NewMobileHomeShipmentFetcher() services.MobileHomeShipmentFetcher
NewMobileHomeShipmentFetcher creates a new MobileHomeShipmentFetcher
func NewMobileHomeShipmentUpdater ¶
func NewMobileHomeShipmentUpdater() services.MobileHomeShipmentUpdater
Types ¶
This section is empty.