mobilehomeshipment

package
v0.0.0-...-bc01b9c Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

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

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

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

Jump to

Keyboard shortcuts

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