payloads

package
v0.0.0-...-c407d37 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Address

func Address(address *models.Address) *internalmessages.Address

Address payload

func AddressModel

func AddressModel(address *internalmessages.Address) *models.Address

AddressModel model

func ClientError

func ClientError(title string, detail string, instance uuid.UUID) *internalmessages.ClientError

ClientError describes errors in a standard structure to be returned in the payload

func InternalServerError

func InternalServerError(detail *string, traceID uuid.UUID) *internalmessages.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 MTOAgent

func MTOAgent(mtoAgent *models.MTOAgent) *internalmessages.MTOAgent

MTOAgent payload

func MTOAgentModel

func MTOAgentModel(mtoAgent *internalmessages.MTOAgent) *models.MTOAgent

MTOAgentModel model

func MTOAgents

func MTOAgents(mtoAgents *models.MTOAgents) *internalmessages.MTOAgents

MTOAgents payload

func MTOAgentsModel

func MTOAgentsModel(mtoAgents *internalmessages.MTOAgents) *models.MTOAgents

MTOAgentsModel model

func MTOShipment

func MTOShipment(storer storage.FileStorer, mtoShipment *models.MTOShipment) *internalmessages.MTOShipment

MTOShipment payload

func MTOShipmentModel

func MTOShipmentModel(mtoShipment *internalmessages.MTOShipment) *models.MTOShipment

MTOShipmentModel model

func MTOShipmentModelFromCreate

func MTOShipmentModelFromCreate(mtoShipment *internalmessages.CreateShipment) *models.MTOShipment

MTOShipmentModelFromCreate model

func MTOShipmentModelFromUpdate

func MTOShipmentModelFromUpdate(mtoShipment *internalmessages.UpdateShipment) *models.MTOShipment

MTOShipmentModelFromUpdate model

func MTOShipments

func MTOShipments(storer storage.FileStorer, mtoShipments *models.MTOShipments) *internalmessages.MTOShipments

MTOShipments payload

func MovingExpense

func MovingExpense(storer storage.FileStorer, movingExpense *models.MovingExpense) *internalmessages.MovingExpense

MovingExpense payload

func MovingExpenseModelFromUpdate

func MovingExpenseModelFromUpdate(movingExpense *internalmessages.UpdateMovingExpense) *models.MovingExpense

MovingExpenseModelFromUpdate

func MovingExpenses

func MovingExpenses(storer storage.FileStorer, movingExpenses models.MovingExpenses) []*internalmessages.MovingExpense

func OfficeUser

func OfficeUser(officeUser *models.OfficeUser) *internalmessages.OfficeUser

OfficeUser internal payload

func PPMShipment

func PPMShipment(storer storage.FileStorer, ppmShipment *models.PPMShipment) *internalmessages.PPMShipment

PPMShipment payload

func PPMShipmentModelFromCreate

func PPMShipmentModelFromCreate(ppmShipment *internalmessages.CreatePPMShipment) *models.PPMShipment

PPMShipmentModelFromCreate model

func PayloadForDocumentModel

func PayloadForDocumentModel(storer storage.FileStorer, document models.Document) (*internalmessages.Document, error)

func PayloadForUploadModel

func PayloadForUploadModel(
	storer storage.FileStorer,
	upload models.Upload,
	url string,
) *internalmessages.Upload

func ProGearWeightTicket

ProGearWeightTicket payload

func ProGearWeightTickets

func ProGearWeightTickets(storer storage.FileStorer, proGearWeightTickets models.ProgearWeightTickets) []*internalmessages.ProGearWeightTicket

ProGearWeightTickets sets up a ProGearWeightTicket slice for the api using model data.

func ProgearWeightTicketModelFromUpdate

func ProgearWeightTicketModelFromUpdate(progearWeightTicket *internalmessages.UpdateProGearWeightTicket) *models.ProgearWeightTicket

ProgearWeightTicketModelFromUpdate

func ReSavePPMShipmentSignedCertification

func ReSavePPMShipmentSignedCertification(ppmShipmentID uuid.UUID, signedCertificationID uuid.UUID, signedCertification internalmessages.SavePPMShipmentSignedCertification) models.SignedCertification

ReSavePPMShipmentSignedCertification converts from the SavePPMShipmentSignedCertification payload and the SignedCertification model, taking into account an existing ID

func SavePPMShipmentSignedCertification

func SavePPMShipmentSignedCertification(ppmShipmentID uuid.UUID, signedCertification internalmessages.SavePPMShipmentSignedCertification) models.SignedCertification

SavePPMShipmentSignedCertification converts from the SavePPMShipmentSignedCertification payload and the SignedCertification model

func SignedCertification

func SignedCertification(signedCertification *models.SignedCertification) *internalmessages.SignedCertification

SignedCertification converts a model to the api payload type

func SignedCertificationFromSubmit

func SignedCertificationFromSubmit(payload *internalmessages.SubmitMoveForApprovalPayload, userID uuid.UUID, moveID strfmt.UUID) *models.SignedCertification

SignedCertificationFromSubmit

func TransportationOffice

TransportationOffice internal payload

func TransportationOffices

func TransportationOffices(transportationOffices models.TransportationOffices) internalmessages.TransportationOffices

func UpdatePPMShipmentModel

func UpdatePPMShipmentModel(ppmShipment *internalmessages.UpdatePPMShipment) *models.PPMShipment

func ValidationError

func ValidationError(detail string, instance uuid.UUID, validationErrors *validate.Errors) *internalmessages.ValidationError

ValidationError describes validation errors from the model or properties

func WeightTicket

func WeightTicket(storer storage.FileStorer, weightTicket *models.WeightTicket) *internalmessages.WeightTicket

WeightTicket payload

func WeightTicketModelFromUpdate

func WeightTicketModelFromUpdate(weightTicket *internalmessages.UpdateWeightTicket) *models.WeightTicket

WeightTicketModelFromUpdate

func WeightTickets

func WeightTickets(storer storage.FileStorer, weightTickets models.WeightTickets) []*internalmessages.WeightTicket

Types

This section is empty.

Jump to

Keyboard shortcuts

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