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: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// QueuePaymentRequestPaymentRequested status payment requested
	QueuePaymentRequestPaymentRequested = "Payment requested"
	// QueuePaymentRequestReviewed status Payment request reviewed
	QueuePaymentRequestReviewed = "Reviewed"
	// QueuePaymentRequestRejected status Payment request rejected
	QueuePaymentRequestRejected = "Rejected"
	// QueuePaymentRequestPaid status PaymentRequest paid
	QueuePaymentRequestPaid = "Paid"
	// QueuePaymentRequestDeprecated status PaymentRequest deprecated
	QueuePaymentRequestDeprecated = "Deprecated"
	// QueuePaymentRequestError status PaymentRequest error
	QueuePaymentRequestError = "Error"
)

Functions

func Address

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

Address payload

func AddressModel

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

AddressModel model

func ApprovedSITExtensionFromCreate

func ApprovedSITExtensionFromCreate(sitExtension *ghcmessages.CreateApprovedSITDurationUpdate, shipmentID strfmt.UUID) *models.SITDurationUpdate

ApprovedSITExtensionFromCreate model

func BackupContact

func BackupContact(contacts models.BackupContacts) *ghcmessages.BackupContact

BackupContact payload

func Contractor

func Contractor(contractor *models.Contractor) *ghcmessages.Contractor

Contractor payload

func CreatedCustomer

func CreatedCustomer(sm *models.ServiceMember, oktaUser *models.CreatedOktaUser, backupContact *models.BackupContact) *ghcmessages.CreatedCustomer

func Customer

func Customer(customer *models.ServiceMember) *ghcmessages.Customer

Customer payload

func CustomerSupportRemark

func CustomerSupportRemark(customerSupportRemark *models.CustomerSupportRemark) *ghcmessages.CustomerSupportRemark

CustomerSupportRemark payload

func CustomerSupportRemarks

func CustomerSupportRemarks(customerSupportRemarks models.CustomerSupportRemarks) ghcmessages.CustomerSupportRemarks

CustomerSupportRemarks payload

func CustomerToServiceMember

func CustomerToServiceMember(payload ghcmessages.UpdateCustomerPayload) models.ServiceMember

CustomerToServiceMember transforms UpdateCustomerPayload to ServiceMember model

func DutyLocation

func DutyLocation(dutyLocation *models.DutyLocation) *ghcmessages.DutyLocation

DutyLocation payload

func Entitlement

func Entitlement(entitlement *models.Entitlement) *ghcmessages.Entitlements

Entitlement payload

func EvaluationReport

func EvaluationReport(evaluationReport *models.EvaluationReport) *ghcmessages.EvaluationReport

EvaluationReport payload

func EvaluationReportFromUpdate

func EvaluationReportFromUpdate(evaluationReport *ghcmessages.EvaluationReport) (*models.EvaluationReport, error)

func EvaluationReportList

func EvaluationReportList(evaluationReports models.EvaluationReports) ghcmessages.EvaluationReportList

EvaluationReportList payload

func EvaluationReportOfficeUser

func EvaluationReportOfficeUser(officeUser models.OfficeUser) ghcmessages.EvaluationReportOfficeUser

func ListMove

func ListMove(move *models.Move) *ghcmessages.ListPrimeMove

ListMove payload

func ListMoves

func ListMoves(moves *models.Moves) []*ghcmessages.ListPrimeMove

ListMoves payload

func MTOAgent

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

MTOAgent payload

func MTOAgentModel

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

MTOAgentModel model

func MTOAgents

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

MTOAgents payload

func MTOAgentsModel

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

MTOAgentsModel model

func MTOServiceItemCustomerContact

MTOServiceItemCustomerContact payload

func MTOServiceItemCustomerContacts

MTOServiceItemCustomerContacts payload

func MTOServiceItemDimension

MTOServiceItemDimension payload

func MTOServiceItemDimensions

MTOServiceItemDimensions payload

func MTOServiceItemModel

func MTOServiceItemModel(s *models.MTOServiceItem, storer storage.FileStorer) *ghcmessages.MTOServiceItem

MTOServiceItemModel payload

func MTOServiceItemModels

func MTOServiceItemModels(s models.MTOServiceItems, storer storage.FileStorer) ghcmessages.MTOServiceItems

MTOServiceItemModels payload

func MTOServiceItemSingleModel

func MTOServiceItemSingleModel(s *models.MTOServiceItem) *ghcmessages.MTOServiceItemSingle

MTOServiceItemSingleModel payload

func MTOShipment

func MTOShipment(storer storage.FileStorer, mtoShipment *models.MTOShipment, sitStatusPayload *ghcmessages.SITStatus) *ghcmessages.MTOShipment

MTOShipment payload

func MTOShipmentModelFromCreate

func MTOShipmentModelFromCreate(mtoShipment *ghcmessages.CreateMTOShipment) *models.MTOShipment

MTOShipmentModelFromCreate model

func MTOShipmentModelFromUpdate

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

MTOShipmentModelFromUpdate model

func MTOShipments

func MTOShipments(storer storage.FileStorer, mtoShipments *models.MTOShipments, sitStatusPayload map[string]*ghcmessages.SITStatus) *ghcmessages.MTOShipments

MTOShipments payload

func Move

func Move(move *models.Move) *ghcmessages.Move

Move payload

func MoveAuditHistory

func MoveAuditHistory(logger *zap.Logger, auditHistory models.AuditHistory) *ghcmessages.MoveAuditHistory

MoveAuditHistory payload

func MoveHistory

func MoveHistory(logger *zap.Logger, moveHistory *models.MoveHistory) *ghcmessages.MoveHistory

MoveHistory payload

func MoveTaskOrder

func MoveTaskOrder(moveTaskOrder *models.Move) *ghcmessages.MoveTaskOrder

MoveTaskOrder payload

func MovingExpense

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

MovingExpense payload

func MovingExpenseModelFromUpdate

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

MovingExpenseModelFromUpdate

func MovingExpenses

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

func Order

func Order(order *models.Order) *ghcmessages.Order

Order payload

func PPMActualWeight

func PPMActualWeight(ppmActualWeight *unit.Pound) *ghcmessages.PPMActualWeight

PPMActualWeight payload

func PPMCloseout

func PPMCloseout(ppmCloseout *models.PPMCloseout) *ghcmessages.PPMCloseout

PPMCloseout payload

func PPMDocuments

func PPMDocuments(storer storage.FileStorer, ppmDocuments *models.PPMDocuments) *ghcmessages.PPMDocuments

PPMDocuments payload

func PPMShipment

func PPMShipment(_ storage.FileStorer, ppmShipment *models.PPMShipment) *ghcmessages.PPMShipment

PPMShipment payload

func PPMShipmentModelFromCreate

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

PPMShipmentModelFromCreate model

func PPMShipmentModelFromUpdate

func PPMShipmentModelFromUpdate(ppmShipment *ghcmessages.UpdatePPMShipment) *models.PPMShipment

PPMShipmentModelFromUpdate model

func PWSViolationItem

func PWSViolationItem(violation *models.PWSViolation) *ghcmessages.PWSViolation

PWSViolationItem payload

func PWSViolations

func PWSViolations(violations models.PWSViolations) ghcmessages.PWSViolations

PWSViolations payload

func PayloadForDocumentModel

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

func PayloadForUploadModel

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

func PaymentRequest

func PaymentRequest(pr *models.PaymentRequest, storer storage.FileStorer) (*ghcmessages.PaymentRequest, error)

PaymentRequest payload

func PaymentRequests

func PaymentRequests(prs *models.PaymentRequests, storer storage.FileStorer) (*ghcmessages.PaymentRequests, error)

PaymentRequests payload

func PaymentServiceItem

PaymentServiceItem payload

func PaymentServiceItemParam

func PaymentServiceItemParam(paymentServiceItemParam models.PaymentServiceItemParam) *ghcmessages.PaymentServiceItemParam

PaymentServiceItemParam payload

func PaymentServiceItemParams

func PaymentServiceItemParams(paymentServiceItemParams *models.PaymentServiceItemParams) *ghcmessages.PaymentServiceItemParams

PaymentServiceItemParams payload

func PaymentServiceItems

func PaymentServiceItems(paymentServiceItems *models.PaymentServiceItems) *ghcmessages.PaymentServiceItems

PaymentServiceItems payload

func ProGearWeightTicket

func ProGearWeightTicket(storer storage.FileStorer, progear *models.ProgearWeightTicket) *ghcmessages.ProGearWeightTicket

ProGearWeightTicket payload

func ProGearWeightTickets

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

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

func ProgearWeightTicketModelFromUpdate

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

ProgearWeightTicketModelFromUpdate model

func ProofOfServiceDoc

func ProofOfServiceDoc(proofOfService models.ProofOfServiceDoc, storer storage.FileStorer) (*ghcmessages.ProofOfServiceDoc, error)

ProofOfServiceDoc payload from model

func QueueMoves

func QueueMoves(moves []models.Move) *ghcmessages.QueueMoves

QueueMoves payload

func QueuePaymentRequests

func QueuePaymentRequests(paymentRequests *models.PaymentRequests) *ghcmessages.QueuePaymentRequests

QueuePaymentRequests payload

func ReportViolation

func ReportViolation(reportViolation *models.ReportViolation) *ghcmessages.ReportViolation

func ReportViolations

func ReportViolations(reportViolations models.ReportViolations) ghcmessages.ReportViolations

func Reweigh

func Reweigh(reweigh *models.Reweigh, _ *ghcmessages.SITStatus) *ghcmessages.Reweigh

Reweigh payload

func SITAddressUpdate

SITAddressUpdate payload

func SITAddressUpdates

SITAddressUpdates payload

func SITDurationUpdate

func SITDurationUpdate(sitDurationUpdate *models.SITDurationUpdate) *ghcmessages.SITExtension

SITDurationUpdate payload

func SITDurationUpdates

func SITDurationUpdates(sitDurationUpdates *models.SITDurationUpdates) *ghcmessages.SITExtensions

SITDurationUpdates payload

func SITStatus

func SITStatus(shipmentSITStatuses *services.SITStatus, storer storage.FileStorer) *ghcmessages.SITStatus

SITStatus payload

func SITStatuses

func SITStatuses(shipmentSITStatuses map[string]services.SITStatus, storer storage.FileStorer) map[string]*ghcmessages.SITStatus

SITStatuses payload

func SearchMoves

func SearchMoves(appCtx appcontext.AppContext, moves models.Moves) *ghcmessages.SearchMoves

SearchMoves payload

func ShipmentAddressUpdate

func ShipmentAddressUpdate(shipmentAddressUpdate *models.ShipmentAddressUpdate) *ghcmessages.ShipmentAddressUpdate

ShipmentAddressUpdate payload

func ShipmentPaymentSITBalance

func ShipmentPaymentSITBalance(shipmentSITBalance *services.ShipmentPaymentSITBalance) *ghcmessages.ShipmentPaymentSITBalance

ShipmentPaymentSITBalance payload

func ShipmentsPaymentSITBalance

func ShipmentsPaymentSITBalance(shipmentsSITBalance []services.ShipmentPaymentSITBalance) ghcmessages.ShipmentsPaymentSITBalance

ShipmentsPaymentSITBalance payload

func StorageFacility

func StorageFacility(storageFacility *models.StorageFacility) *ghcmessages.StorageFacility

StorageFacility payload

func StorageFacilityModel

func StorageFacilityModel(storageFacility *ghcmessages.StorageFacility) *models.StorageFacility

StorageFacilityModel model

func TransportationOffice

func TransportationOffice(office *models.TransportationOffice) *ghcmessages.TransportationOffice

TransportationOffice payload

func TransportationOffices

func TransportationOffices(transportationOffices models.TransportationOffices) ghcmessages.TransportationOffices

func Upload

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

Upload payload

func WeightTicket

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

WeightTicket payload

func WeightTicketModelFromUpdate

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

WeightTicketModelFromUpdate

func WeightTicketUpload

func WeightTicketUpload(storer storage.FileStorer, upload models.Upload, url string, isWeightTicket bool) *ghcmessages.Upload

Upload payload for when a Proof of Service doc is designated as a weight ticket This adds an isWeightTicket key to the payload for the UI to use

func WeightTickets

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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