Documentation ¶
Index ¶
- func Address(address *models.Address) *primev3messages.Address
- func AddressModel(address *primev3messages.Address) *models.Address
- func BoatShipment(boatShipment *models.BoatShipment) *primev3messages.BoatShipment
- func BoatShipmentModelFromCreate(mtoShipment *primev3messages.CreateMTOShipment) (*models.BoatShipment, *validate.Errors)
- func ClientError(title string, detail string, instance uuid.UUID) *primev3messages.ClientError
- func Customer(customer *models.ServiceMember) *primev3messages.Customer
- func DutyLocation(dutyLocation *models.DutyLocation) *primev3messages.DutyLocation
- func Entitlement(entitlement *models.Entitlement) *primev3messages.Entitlements
- func GetCustomerContact(customerContacts models.MTOServiceItemCustomerContacts, ...) models.MTOServiceItemCustomerContact
- func GetDimension(dimensions models.MTOServiceItemDimensions, dimensionType models.DimensionType) models.MTOServiceItemDimension
- func InternalServerError(detail *string, traceID uuid.UUID) *primev3messages.Error
- func MTOAgent(mtoAgent *models.MTOAgent) *primev3messages.MTOAgent
- func MTOAgentModel(mtoAgent *primev3messages.MTOAgent) *models.MTOAgent
- func MTOAgents(mtoAgents *models.MTOAgents) *primev3messages.MTOAgents
- func MTOAgentsModel(mtoAgents *primev3messages.MTOAgents) *models.MTOAgents
- func MTOServiceItem(mtoServiceItem *models.MTOServiceItem) primev3messages.MTOServiceItem
- func MTOServiceItemModel(mtoServiceItem primev3messages.MTOServiceItem) (*models.MTOServiceItem, *validate.Errors)
- func MTOServiceItemModelFromUpdate(mtoServiceItemID string, mtoServiceItem primev3messages.UpdateMTOServiceItem) (*models.MTOServiceItem, *validate.Errors)
- func MTOServiceItemModelListFromCreate(mtoShipment *primev3messages.CreateMTOShipment) (models.MTOServiceItems, *validate.Errors)
- func MTOServiceItems(mtoServiceItems *models.MTOServiceItems) *[]primev3messages.MTOServiceItem
- func MTOShipment(mtoShipment *models.MTOShipment) *primev3messages.MTOShipment
- func MTOShipmentModelFromCreate(mtoShipment *primev3messages.CreateMTOShipment) (*models.MTOShipment, *validate.Errors)
- func MTOShipmentModelFromUpdate(mtoShipment *primev3messages.UpdateMTOShipment, mtoShipmentID strfmt.UUID) *models.MTOShipment
- func MTOShipmentWithoutServiceItems(mtoShipment *models.MTOShipment) *primev3messages.MTOShipmentWithoutServiceItems
- func MTOShipmentsWithoutServiceItems(mtoShipments *models.MTOShipments) *primev3messages.MTOShipmentsWithoutServiceObjects
- func MoveTaskOrder(moveTaskOrder *models.Move) *primev3messages.MoveTaskOrder
- func Order(order *models.Order) *primev3messages.Order
- func PPMShipment(ppmShipment *models.PPMShipment) *primev3messages.PPMShipment
- func PPMShipmentModelFromCreate(ppmShipment *primev3messages.CreatePPMShipment) *models.PPMShipment
- func PPMShipmentModelFromUpdate(ppmShipment *primev3messages.UpdatePPMShipment) *models.PPMShipment
- func PaymentRequest(paymentRequest *models.PaymentRequest) *primev3messages.PaymentRequest
- func PaymentRequests(paymentRequests *models.PaymentRequests) *primev3messages.PaymentRequests
- func PaymentServiceItem(paymentServiceItem *models.PaymentServiceItem) *primev3messages.PaymentServiceItem
- func PaymentServiceItemParam(paymentServiceItemParam *models.PaymentServiceItemParam) *primev3messages.PaymentServiceItemParam
- func PaymentServiceItemParams(paymentServiceItemParams *models.PaymentServiceItemParams) *primev3messages.PaymentServiceItemParams
- func PaymentServiceItems(paymentServiceItems *models.PaymentServiceItems) *primev3messages.PaymentServiceItems
- func ProofOfServiceDoc(proofOfServiceDoc models.ProofOfServiceDoc) *primev3messages.ProofOfServiceDoc
- func Reweigh(reweigh *models.Reweigh) *primev3messages.Reweigh
- func ReweighModelFromUpdate(reweigh *primev3messages.UpdateReweigh, reweighID strfmt.UUID, ...) *models.Reweigh
- func SITDurationUpdate(sitDurationUpdate *models.SITDurationUpdate) *primev3messages.SITExtension
- func SITDurationUpdates(sitDurationUpdates *models.SITDurationUpdates) *primev3messages.SITExtensions
- func SITExtensionModel(sitExtension *primev3messages.CreateSITExtension, mtoShipmentID strfmt.UUID) *models.SITDurationUpdate
- func ServiceRequestDocument(serviceRequestDocument models.ServiceRequestDocument) *primev3messages.ServiceRequestDocument
- func ServiceRequestDocumentUploadModel(u models.Upload) *primev3messages.UploadWithOmissions
- func ShipmentAddressUpdate(shipmentAddressUpdate *models.ShipmentAddressUpdate) *primev3messages.ShipmentAddressUpdate
- func ShipmentAddressUpdateModel(nonSITAddressUpdate *primev3messages.UpdateShipmentDestinationAddress, ...) *models.ShipmentAddressUpdate
- func StorageFacility(storage *models.StorageFacility) *primev3messages.StorageFacility
- func ValidationError(detail string, instance uuid.UUID, validationErrors *validate.Errors) *primev3messages.ValidationError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddressModel ¶
func AddressModel(address *primev3messages.Address) *models.Address
AddressModel model
func BoatShipment ¶
func BoatShipment(boatShipment *models.BoatShipment) *primev3messages.BoatShipment
BoatShipment payload
func BoatShipmentModelFromCreate ¶
func BoatShipmentModelFromCreate(mtoShipment *primev3messages.CreateMTOShipment) (*models.BoatShipment, *validate.Errors)
BoatShipmentModelFromCreate model
func ClientError ¶
func ClientError(title string, detail string, instance uuid.UUID) *primev3messages.ClientError
ClientError describes errors in a standard structure to be returned in the payload
func Customer ¶
func Customer(customer *models.ServiceMember) *primev3messages.Customer
Customer payload
func DutyLocation ¶
func DutyLocation(dutyLocation *models.DutyLocation) *primev3messages.DutyLocation
DutyLocation payload
func Entitlement ¶
func Entitlement(entitlement *models.Entitlement) *primev3messages.Entitlements
Entitlement payload
func GetCustomerContact ¶
func GetCustomerContact(customerContacts models.MTOServiceItemCustomerContacts, customerContactType models.CustomerContactType) models.MTOServiceItemCustomerContact
GetCustomerContact will get the first customer contact for destination 1st day SIT based on type.
func GetDimension ¶
func GetDimension(dimensions models.MTOServiceItemDimensions, dimensionType models.DimensionType) models.MTOServiceItemDimension
GetDimension will get the first dimension of the passed in type.
func InternalServerError ¶
func InternalServerError(detail *string, traceID uuid.UUID) *primev3messages.Error
InternalServerError describes errors in a standard structure to be returned in the payload. If detail is nil, string defaults to "An internal server error has occurred."
func MTOAgentModel ¶
func MTOAgentModel(mtoAgent *primev3messages.MTOAgent) *models.MTOAgent
MTOAgentModel model
func MTOAgents ¶
func MTOAgents(mtoAgents *models.MTOAgents) *primev3messages.MTOAgents
MTOAgents payload
func MTOAgentsModel ¶
func MTOAgentsModel(mtoAgents *primev3messages.MTOAgents) *models.MTOAgents
MTOAgentsModel model
func MTOServiceItem ¶
func MTOServiceItem(mtoServiceItem *models.MTOServiceItem) primev3messages.MTOServiceItem
MTOServiceItem payload
func MTOServiceItemModel ¶
func MTOServiceItemModel(mtoServiceItem primev3messages.MTOServiceItem) (*models.MTOServiceItem, *validate.Errors)
MTOServiceItemModel model
func MTOServiceItemModelFromUpdate ¶
func MTOServiceItemModelFromUpdate(mtoServiceItemID string, mtoServiceItem primev3messages.UpdateMTOServiceItem) (*models.MTOServiceItem, *validate.Errors)
MTOServiceItemModelFromUpdate converts the payload from UpdateMTOServiceItem to a normal MTOServiceItem model. The payload for this is different than the one for create.
func MTOServiceItemModelListFromCreate ¶
func MTOServiceItemModelListFromCreate(mtoShipment *primev3messages.CreateMTOShipment) (models.MTOServiceItems, *validate.Errors)
MTOServiceItemModelListFromCreate model
func MTOServiceItems ¶
func MTOServiceItems(mtoServiceItems *models.MTOServiceItems) *[]primev3messages.MTOServiceItem
MTOServiceItems payload
func MTOShipment ¶
func MTOShipment(mtoShipment *models.MTOShipment) *primev3messages.MTOShipment
MTOShipment converts MTOShipment model to payload
func MTOShipmentModelFromCreate ¶
func MTOShipmentModelFromCreate(mtoShipment *primev3messages.CreateMTOShipment) (*models.MTOShipment, *validate.Errors)
MTOShipmentModelFromCreate model
func MTOShipmentModelFromUpdate ¶
func MTOShipmentModelFromUpdate(mtoShipment *primev3messages.UpdateMTOShipment, mtoShipmentID strfmt.UUID) *models.MTOShipment
MTOShipmentModelFromUpdate model
func MTOShipmentWithoutServiceItems ¶
func MTOShipmentWithoutServiceItems(mtoShipment *models.MTOShipment) *primev3messages.MTOShipmentWithoutServiceItems
func MTOShipmentsWithoutServiceItems ¶
func MTOShipmentsWithoutServiceItems(mtoShipments *models.MTOShipments) *primev3messages.MTOShipmentsWithoutServiceObjects
func MoveTaskOrder ¶
func MoveTaskOrder(moveTaskOrder *models.Move) *primev3messages.MoveTaskOrder
MoveTaskOrder payload
func PPMShipment ¶
func PPMShipment(ppmShipment *models.PPMShipment) *primev3messages.PPMShipment
PPMShipment payload
func PPMShipmentModelFromCreate ¶
func PPMShipmentModelFromCreate(ppmShipment *primev3messages.CreatePPMShipment) *models.PPMShipment
PPMShipmentModelFromCreate model
func PPMShipmentModelFromUpdate ¶
func PPMShipmentModelFromUpdate(ppmShipment *primev3messages.UpdatePPMShipment) *models.PPMShipment
PPMShipmentModelFromUpdate model
func PaymentRequest ¶
func PaymentRequest(paymentRequest *models.PaymentRequest) *primev3messages.PaymentRequest
PaymentRequest payload
func PaymentRequests ¶
func PaymentRequests(paymentRequests *models.PaymentRequests) *primev3messages.PaymentRequests
PaymentRequests payload
func PaymentServiceItem ¶
func PaymentServiceItem(paymentServiceItem *models.PaymentServiceItem) *primev3messages.PaymentServiceItem
PaymentServiceItem payload
func PaymentServiceItemParam ¶
func PaymentServiceItemParam(paymentServiceItemParam *models.PaymentServiceItemParam) *primev3messages.PaymentServiceItemParam
PaymentServiceItemParam payload
func PaymentServiceItemParams ¶
func PaymentServiceItemParams(paymentServiceItemParams *models.PaymentServiceItemParams) *primev3messages.PaymentServiceItemParams
PaymentServiceItemParams payload
func PaymentServiceItems ¶
func PaymentServiceItems(paymentServiceItems *models.PaymentServiceItems) *primev3messages.PaymentServiceItems
PaymentServiceItems payload
func ProofOfServiceDoc ¶
func ProofOfServiceDoc(proofOfServiceDoc models.ProofOfServiceDoc) *primev3messages.ProofOfServiceDoc
func Reweigh ¶
func Reweigh(reweigh *models.Reweigh) *primev3messages.Reweigh
Reweigh returns the reweigh payload
func ReweighModelFromUpdate ¶
func ReweighModelFromUpdate(reweigh *primev3messages.UpdateReweigh, reweighID strfmt.UUID, mtoShipmentID strfmt.UUID) *models.Reweigh
ReweighModelFromUpdate model
func SITDurationUpdate ¶
func SITDurationUpdate(sitDurationUpdate *models.SITDurationUpdate) *primev3messages.SITExtension
SITDurationUpdate payload
func SITDurationUpdates ¶
func SITDurationUpdates(sitDurationUpdates *models.SITDurationUpdates) *primev3messages.SITExtensions
SITDurationUpdates payload
func SITExtensionModel ¶
func SITExtensionModel(sitExtension *primev3messages.CreateSITExtension, mtoShipmentID strfmt.UUID) *models.SITDurationUpdate
SITExtensionModel transform the request data the sitExtension model
func ServiceRequestDocument ¶
func ServiceRequestDocument(serviceRequestDocument models.ServiceRequestDocument) *primev3messages.ServiceRequestDocument
func ServiceRequestDocumentUploadModel ¶
func ServiceRequestDocumentUploadModel(u models.Upload) *primev3messages.UploadWithOmissions
func ShipmentAddressUpdate ¶
func ShipmentAddressUpdate(shipmentAddressUpdate *models.ShipmentAddressUpdate) *primev3messages.ShipmentAddressUpdate
ShipmentAddressUpdate payload
func ShipmentAddressUpdateModel ¶
func ShipmentAddressUpdateModel(nonSITAddressUpdate *primev3messages.UpdateShipmentDestinationAddress, MtoShipmentID uuid.UUID) *models.ShipmentAddressUpdate
Non SIT Address update Model
func StorageFacility ¶
func StorageFacility(storage *models.StorageFacility) *primev3messages.StorageFacility
StorageFacility payload
func ValidationError ¶
func ValidationError(detail string, instance uuid.UUID, validationErrors *validate.Errors) *primev3messages.ValidationError
ValidationError describes validation errors from the model or properties
Types ¶
This section is empty.