Documentation ¶
Index ¶
- Constants
- func ExistsEventKey(e string) bool
- func GetEndpointAPI(key EndpointKeyType) *string
- func GetEndpointOperationID(key EndpointKeyType) *string
- func GetModelFromEvent(e KeyType) (interface{}, error)
- func IsCreateEvent(e KeyType) (bool, error)
- func NotificationEventHandler(event *Event) error
- func PaymentRequestModelToPayload(paymentRequest *models.PaymentRequest) *primemessages.PaymentRequest
- func PaymentServiceItemModelToPayload(paymentServiceItem *models.PaymentServiceItem) *primemessages.PaymentServiceItem
- func PaymentServiceItemsModelToPayload(paymentServiceItems *models.PaymentServiceItems) *primemessages.PaymentServiceItems
- type EndpointKeyType
- type EndpointMapType
- type EndpointType
- type Event
- type KeyType
- type MoveTaskOrder
- type RegisteredEventHandlerFunc
Constants ¶
const GhcAPIName string = "ghcapi"
GhcAPIName is a const string to use the EndpointTypes
const GhcAcknowledgeExcessWeightRiskEndpointKey = "Ghc.AcknowledgeExcessWeightRisk"
GhcAcknowledgeExcessWeightRiskEndpointKey is the key for the AcknowledgeExcessWeightRisk endpoint in ghc
const GhcApproveSITExtensionEndpointKey = "Ghc.ApproveSITExtension"
GhcApproveSITExtensionEndpointKey is the key for the approveSITExtension endpoint in ghc
const GhcApproveShipmentDiversionEndpointKey = "Ghc.ApproveShipmentDiversion"
GhcApproveShipmentDiversionEndpointKey is the key for the approveShipmentDiversion endpoint in ghc
const GhcApproveShipmentEndpointKey = "Ghc.ApproveShipment"
GhcApproveShipmentEndpointKey is the key for the approveShipment endpoint in ghc
const GhcCounselingUpdateAllowanceEndpointKey = "Ghc.CounselingUpdateAllowance"
GhcCounselingUpdateAllowanceEndpointKey is the key for the counselingUpdateAllowance endpoint in ghc
const GhcCounselingUpdateOrderEndpointKey = "Ghc.CounselingUpdateOrder"
GhcCounselingUpdateOrderEndpointKey is the key for the counselingUpdateOrder endpoint in ghc
const GhcCreateMTOServiceItemEndpointKey = "Ghc.CreateMTOServiceItem"
GhcCreateMTOServiceItemEndpointKey is the key for the createMTOServiceItem endpoint in ghc
const GhcDeleteShipmentEndpointKey = "Ghc.DeleteShipment"
GhcDeleteShipmentEndpointKey is the key for the deleteShipment endpoint in ghc
const GhcDenySITExtensionEndpointKey = "Ghc.DenySITExtension"
GhcDenySITExtensionEndpointKey is the key for the denySITExtension endpoint in ghc
const GhcFetchMTOAgentListEndpointKey = "Ghc.FetchMTOAgentList"
GhcFetchMTOAgentListEndpointKey is the key for the fetchMTOAgentList endpoint in ghc
const GhcGetCustomerEndpointKey = "Ghc.GetCustomer"
GhcGetCustomerEndpointKey is the key for the getCustomer endpoint in ghc
const GhcGetEntitlementsEndpointKey = "Ghc.GetEntitlements"
GhcGetEntitlementsEndpointKey is the key for the getEntitlements endpoint in ghc
const GhcGetMTOServiceItemEndpointKey = "Ghc.GetMTOServiceItem"
GhcGetMTOServiceItemEndpointKey is the key for the getMTOServiceItem endpoint in ghc
const GhcGetMoveEndpointKey = "Ghc.GetMove"
GhcGetMoveEndpointKey is the key for the getMove endpoint in ghc
const GhcGetMoveTaskOrderEndpointKey = "Ghc.GetMoveTaskOrder"
GhcGetMoveTaskOrderEndpointKey is the key for the getMoveTaskOrder endpoint in ghc
const GhcGetMovesQueueEndpointKey = "Ghc.GetMovesQueue"
GhcGetMovesQueueEndpointKey is the key for the getMovesQueue endpoint in ghc
const GhcGetOrderEndpointKey = "Ghc.GetOrder"
GhcGetOrderEndpointKey is the key for the getOrder endpoint in ghc
const GhcGetPaymentRequestEndpointKey = "Ghc.GetPaymentRequest"
GhcGetPaymentRequestEndpointKey is the key for the getPaymentRequest endpoint in ghc
const GhcGetPaymentRequestsQueueEndpointKey = "Ghc.GetPaymentRequestsQueue"
GhcGetPaymentRequestsQueueEndpointKey is the key for the getPaymentRequestsQueue endpoint in ghc
const GhcListMTOServiceItemsEndpointKey = "Ghc.ListMTOServiceItems"
GhcListMTOServiceItemsEndpointKey is the key for the listMTOServiceItems endpoint in ghc
const GhcListMTOShipmentsEndpointKey = "Ghc.ListMTOShipments"
GhcListMTOShipmentsEndpointKey is the key for the listMTOShipments endpoint in ghc
const GhcRejectShipmentEndpointKey = "Ghc.RejectShipment"
GhcRejectShipmentEndpointKey is the key for the rejectShipment endpoint in ghc
const GhcRequestShipmentCancellationEndpointKey = "Ghc.RequestShipmentCancellation"
GhcRequestShipmentCancellationEndpointKey is the key for the requestShipmentCancellation endpoint in ghc
const GhcRequestShipmentDiversionEndpointKey = "Ghc.RequestShipmentDiversion"
GhcRequestShipmentDiversionEndpointKey is the key for the requestShipmentDiversion endpoint in ghc
const GhcRequestShipmentReweighEndpointKey = "Ghc.RequestShipmentReweigh"
GhcRequestShipmentReweighEndpointKey is the key for the requestShipmentReweigh endpoint in ghc
const GhcUpdateAllowanceEndpointKey = "Ghc.UpdateAllowance"
GhcUpdateAllowanceEndpointKey is the key for the updateAllowance endpoint in ghc
const GhcUpdateBillableWeightEndpointKey = "Ghc.UpdateBillableWeight"
GhcUpdateBillableWeightEndpointKey is the key for the updateBillableWeight endpoint in ghc
const GhcUpdateMTOReviewedBillableWeightsEndpointKey = "Ghc.UpdateMTOReviewedBillableWeightss"
GhcUpdateMTOReviewedBillableWeightsEndpointKey is the key for the UpdateMTOReviewedBillableWeights endpoint in ghc
const GhcUpdateMTOServiceItemEndpointKey = "Ghc.UpdateMTOServiceItem"
GhcUpdateMTOServiceItemEndpointKey is the key for the updateMTOServiceItem endpoint in ghc
const GhcUpdateMTOServiceItemStatusEndpointKey = "Ghc.UpdateMTOServiceItemStatus"
GhcUpdateMTOServiceItemStatusEndpointKey is the key for the updateMTOServiceItemStatus endpoint in ghc
const GhcUpdateMTOShipmentEndpointKey = "Ghc.UpdateMTOShipment"
GhcUpdateMTOShipmentEndpointKey is the key for the updateMTOShipment endpoint in ghc
const GhcUpdateMTOStatusServiceCounselingCompletedEndpointKey = "Ghc.UpdateMTOStatusServiceCounselingCompleted"
GhcUpdateMTOStatusServiceCounselingCompletedEndpointKey is the key for the updateMTOStatusServiceCounselingCompleted endpoint in ghc
const GhcUpdateMaxBillableWeightAsTIOEndpointKey = "Ghc.UpdateMaxBillableWeightAsTIO"
GhcUpdateMaxBillableWeightAsTIOEndpointKey is the key for the updateMaxBillableWeightAsTIO endpoint in ghc
const GhcUpdateMoveTIORemarksEndpointKey = "Ghc.UpdateMoveTIORemarks"
GhcUpdateMoveTIORemarksEndpointKey is the key for the UpdateMoveTIORemarks endpoint in ghc
const GhcUpdateMoveTaskOrderEndpointKey = "Ghc.UpdateMoveTaskOrder"
GhcUpdateMoveTaskOrderEndpointKey is the key for the updateMoveTaskOrder endpoint in ghc
const GhcUpdateMoveTaskOrderStatusEndpointKey = "Ghc.UpdateMoveTaskOrderStatus"
GhcUpdateMoveTaskOrderStatusEndpointKey is the key for the updateMoveTaskOrderStatus endpoint in ghc
const GhcUpdateOrderEndpointKey = "Ghc.UpdateOrder"
GhcUpdateOrderEndpointKey is the key for the updateOrder endpoint in ghc
const GhcUpdatePaymentRequestStatusEndpointKey = "Ghc.UpdatePaymentRequestStatus"
GhcUpdatePaymentRequestStatusEndpointKey is the key for the updatePaymentRequestStatus endpoint in ghc
const GhcUpdatePaymentServiceItemStatusEndpointKey = "Ghc.UpdatePaymentServiceItemStatus"
GhcUpdatePaymentServiceItemStatusEndpointKey is the key for the updatePaymentServiceItemStatus endpoint in ghc
const GhcUpdateSITServiceItemCustomerExpenseEndpointKey = "Ghc.UpdateSITServiceItemCustomerExpense"
GhcUpdateMTOServiceItemCustomerExpenseEndpointKey is the key for the updateSITServiceItemCustomerExpense endpoint in ghc
const InternalAPIName string = "internalapi"
InternalAPIName is a const string to use the EndpointTypes
const InternalApproveMoveEndpointKey = "Internal.ApproveMove"
InternalApproveMoveEndpointKey is the key for the approveMove endpoint in internal
const InternalApprovePPMEndpointKey = "Internal.ApprovePPM"
InternalApprovePPMEndpointKey is the key for the approvePPM endpoint in internal
const InternalApproveReimbursementEndpointKey = "Internal.ApproveReimbursement"
InternalApproveReimbursementEndpointKey is the key for the approveReimbursement endpoint in internal
const InternalCancelMoveEndpointKey = "Internal.CancelMove"
InternalCancelMoveEndpointKey is the key for the cancelMove endpoint in internal
const InternalCreateDocumentEndpointKey = "Internal.CreateDocument"
InternalCreateDocumentEndpointKey is the key for the createDocument endpoint in internal
const InternalCreateGenericMoveDocumentEndpointKey = "Internal.CreateGenericMoveDocument"
InternalCreateGenericMoveDocumentEndpointKey is the key for the createGenericMoveDocument endpoint in internal
const InternalCreateMTOShipmentEndpointKey = "Internal.CreateMTOShipment"
InternalCreateMTOShipmentEndpointKey is the key for the createMTOShipment endpoint in internal
const InternalCreateMovingExpenseDocumentEndpointKey = "Internal.CreateMovingExpenseDocument"
InternalCreateMovingExpenseDocumentEndpointKey is the key for the createMovingExpenseDocument endpoint in internal
const InternalCreateOrdersEndpointKey = "Internal.CreateOrders"
InternalCreateOrdersEndpointKey is the key for the createOrders endpoint in internal
const InternalCreateServiceMemberBackupContactEndpointKey = "Internal.CreateServiceMemberBackupContact"
InternalCreateServiceMemberBackupContactEndpointKey is the key for the createServiceMemberBackupContact endpoint in internal
const InternalCreateServiceMemberEndpointKey = "Internal.CreateServiceMember"
InternalCreateServiceMemberEndpointKey is the key for the createServiceMember endpoint in internal
const InternalCreateSignedCertificationEndpointKey = "Internal.CreateSignedCertification"
InternalCreateSignedCertificationEndpointKey is the key for the createSignedCertification endpoint in internal
const InternalCreateUploadEndpointKey = "Internal.CreateUpload"
InternalCreateUploadEndpointKey is the key for the createUpload endpoint in internal
const InternalCreateWeightTicketDocumentEndpointKey = "Internal.CreateWeightTicketDocument"
InternalCreateWeightTicketDocumentEndpointKey is the key for the createWeightTicketDocument endpoint in internal
const InternalCreateWeightTicketEndpointKey = "Internal.CreateWeightTicket"
InternalCreateWeightTicketEndpointKey is the key for the createWeightTicket endpoint in internal
const InternalGetCookieURLEndpointKey = "Internal.GetCookieURL"
InternalGetCookieURLEndpointKey is the key for the getCookieURL endpoint in internal
const InternalIndexEntitlementsEndpointKey = "Internal.IndexEntitlements"
InternalIndexEntitlementsEndpointKey is the key for the indexEntitlements endpoint in internal
const InternalIndexMoveDocumentsEndpointKey = "Internal.IndexMoveDocuments"
InternalIndexMoveDocumentsEndpointKey is the key for the indexMoveDocuments endpoint in internal
const InternalIndexServiceMemberBackupContactsEndpointKey = "Internal.IndexServiceMemberBackupContacts"
InternalIndexServiceMemberBackupContactsEndpointKey is the key for the indexServiceMemberBackupContacts endpoint in internal
const InternalIndexSignedCertificationEndpointKey = "Internal.IndexSignedCertification"
InternalIndexSignedCertificationEndpointKey is the key for the indexSignedCertification endpoint in internal
const InternalIsLoggedInUserEndpointKey = "Internal.IsLoggedInUser"
InternalIsLoggedInUserEndpointKey is the key for the isLoggedInUser endpoint in internal
const InternalPatchMoveEndpointKey = "Internal.PatchMove"
InternalPatchMoveEndpointKey is the key for the patchMove endpoint in internal
const InternalPatchServiceMemberEndpointKey = "Internal.PatchServiceMember"
InternalPatchServiceMemberEndpointKey is the key for the patchServiceMember endpoint in internal
const InternalSearchDutyLocationsEndpointKey = "Internal.SearchDutyLocations"
InternalSearchDutyLocationsEndpointKey is the key for the searchDutyLocations endpoint in internal
const InternalShowAddressEndpointKey = "Internal.ShowAddress"
InternalShowAddressEndpointKey is the key for the showAddress endpoint in internal
const InternalShowAvailableMoveDatesEndpointKey = "Internal.ShowAvailableMoveDates"
InternalShowAvailableMoveDatesEndpointKey is the key for the showAvailableMoveDates endpoint in internal
const InternalShowCounselingOfficesEndpointKey = "Internal.ShowCounselingOffices"
InternalShowCounselingOfficesEndpointKey is the key for the showCounselingOffices endpoint in internal
const InternalShowDocumentEndpointKey = "Internal.ShowDocument"
InternalShowDocumentEndpointKey is the key for the showDocument endpoint in internal
const InternalShowDutyLocationTransportationOfficeEndpointKey = "Internal.ShowDutyLocationTransportationOffice"
InternalShowDutyLocationsTransportationOfficeEndpointKey is the key for the showDutyLocationTransportationOffice endpoint in internal
const InternalShowLoggedInUserEndpointKey = "Internal.ShowLoggedInUser"
InternalShowLoggedInUserEndpointKey is the key for the showLoggedInUser endpoint in internal
const InternalShowMoveDatesSummaryEndpointKey = "Internal.ShowMoveDatesSummary"
InternalShowMoveDatesSummaryEndpointKey is the key for the showMoveDatesSummary endpoint in internal
const InternalShowMoveEndpointKey = "Internal.ShowMove"
InternalShowMoveEndpointKey is the key for the showMove endpoint in internal
const InternalShowOfficeOrdersEndpointKey = "Internal.ShowOfficeOrders"
InternalShowOfficeOrdersEndpointKey is the key for the showOfficeOrders endpoint in internal
const InternalShowOrdersEndpointKey = "Internal.ShowOrders"
InternalShowOrdersEndpointKey is the key for the showOrders endpoint in internal
const InternalShowQueueEndpointKey = "Internal.ShowQueue"
InternalShowQueueEndpointKey is the key for the showQueue endpoint in internal
const InternalShowServiceMemberBackupContactEndpointKey = "Internal.ShowServiceMemberBackupContact"
InternalShowServiceMemberBackupContactEndpointKey is the key for the showServiceMemberBackupContact endpoint in internal
const InternalShowServiceMemberEndpointKey = "Internal.ShowServiceMember"
InternalShowServiceMemberEndpointKey is the key for the showServiceMember endpoint in internal
const InternalShowServiceMemberOrdersEndpointKey = "Internal.ShowServiceMemberOrders"
InternalShowServiceMemberOrdersEndpointKey is the key for the showServiceMemberOrders endpoint in internal
const InternalShowShipmentSummaryWorksheetEndpointKey = "Internal.ShowShipmentSummaryWorksheet"
InternalShowShipmentSummaryWorksheetEndpointKey is the key for the showShipmentSummaryWorksheet endpoint in internal
const InternalSubmitMoveForApprovalEndpointKey = "Internal.SubmitMoveForApproval"
InternalSubmitMoveForApprovalEndpointKey is the key for the submitMoveForApproval endpoint in internal
const InternalUpdateMoveDocumentEndpointKey = "Internal.UpdateMoveDocument"
InternalUpdateMoveDocumentEndpointKey is the key for the updateMoveDocument endpoint in internal
const InternalUpdateOrdersEndpointKey = "Internal.UpdateOrders"
InternalUpdateOrdersEndpointKey is the key for the updateOrders endpoint in internal
const InternalUpdateServiceMemberBackupContactEndpointKey = "Internal.UpdateServiceMemberBackupContact"
InternalUpdateServiceMemberBackupContactEndpointKey is the key for the updateServiceMemberBackupContact endpoint in internal
const InternalUpdateWeightTicketEndpointKey = "Internal.UpdateWeightTicket"
InternalUpdateWeightTicketEndpointKey is the key for the updateWeightTicket endpoint in internal
const InternalUploadAmendedOrdersEndpointKey = "Internal.UploadAmendedOrders"
InternalUploadAmendedOrdersEndpointKey is the key for the UploadAmendedOrders endpoint in internal
const InternalValidateEntitlementEndpointKey = "Internal.ValidateEntitlement"
InternalValidateEntitlementEndpointKey is the key for the validateEntitlement endpoint in internal
const InternalValidatePostalCodeWithRateDataEndpointKey = "Internal.ValidatePostalCodeWithRateData"
InternalValidatePostalCodeWithRateDataEndpointKey is the key for the validatePostalCodeWithRateData endpoint in internal
const PrimeAPIName string = "primeapi"
PrimeAPIName is a const string to use the EndpointTypes
const SupportCreateMoveTaskOrderEndpointKey = "Support.CreateMoveTaskOrder"
SupportCreateMoveTaskOrderEndpointKey is the key for the createMoveTaskOrder endpoint in support
const SupportGetMoveTaskOrderEndpointKey = "Support.GetMoveTaskOrder"
SupportGetMoveTaskOrderEndpointKey is the key for the getMoveTaskOrder endpoint in support
const SupportListMTOPaymentRequestsEndpointKey = "Support.ListMTOPaymentRequests"
SupportListMTOPaymentRequestsEndpointKey is the key for the listMTOPaymentRequests endpoint in support
const SupportListMTOsEndpointKey = "Support.ListMTOs"
SupportListMTOsEndpointKey is the key for the listMTOs endpoint in support
const SupportMakeMoveTaskOrderAvailableEndpointKey = "Support.MakeMoveTaskOrderAvailable"
SupportMakeMoveTaskOrderAvailableEndpointKey is the key for the makeMoveTaskOrderAvailable endpoint in support
const SupportUpdateMTOServiceItemStatusEndpointKey = "Support.UpdateMTOServiceItemStatus"
SupportUpdateMTOServiceItemStatusEndpointKey is the key for the updateMTOServiceItemStatus endpoint in support
const SupportUpdateMTOShipmentStatusEndpointKey = "Support.UpdateMTOShipmentStatus"
SupportUpdateMTOShipmentStatusEndpointKey is the key for the updateMTOShipmentStatus endpoint in support
const SupportUpdatePaymentRequestStatusEndpointKey = "Support.UpdatePaymentRequestStatus"
SupportUpdatePaymentRequestStatusEndpointKey is the key for the updatePaymentRequestStatus endpoint in support
Variables ¶
This section is empty.
Functions ¶
func ExistsEventKey ¶
ExistsEventKey returns true if the event key exists
func GetEndpointAPI ¶
func GetEndpointAPI(key EndpointKeyType) *string
GetEndpointAPI returns the api name of the endpoint
func GetEndpointOperationID ¶
func GetEndpointOperationID(key EndpointKeyType) *string
GetEndpointOperationID retuns the operation ID of the endpoint
func GetModelFromEvent ¶
GetModelFromEvent returns a model instance associated with this event
func IsCreateEvent ¶
IsCreateEvent returns true if this event is a create event
func NotificationEventHandler ¶
NotificationEventHandler receives notifications from the events package For alerting ALL errors should be logged here.
func PaymentRequestModelToPayload ¶
func PaymentRequestModelToPayload(paymentRequest *models.PaymentRequest) *primemessages.PaymentRequest
PaymentRequestModelToPayload creates a model we can use to populate the payload column Currently we are using the primemessages struct as the payload.
func PaymentServiceItemModelToPayload ¶
func PaymentServiceItemModelToPayload(paymentServiceItem *models.PaymentServiceItem) *primemessages.PaymentServiceItem
PaymentServiceItemModelToPayload payload
func PaymentServiceItemsModelToPayload ¶
func PaymentServiceItemsModelToPayload(paymentServiceItems *models.PaymentServiceItems) *primemessages.PaymentServiceItems
PaymentServiceItemsModelToPayload payload
Types ¶
type EndpointKeyType ¶
type EndpointKeyType string
EndpointKeyType is used to key into the map of EndpointTypes
type EndpointMapType ¶
type EndpointMapType map[EndpointKeyType]EndpointType
EndpointMapType is used to map EndpointKeyType to info about the endpoint
type EndpointType ¶
EndpointType stores the details of the endpoint API name and operationID
func (EndpointType) String ¶
func (e EndpointType) String() string
String returns the string representation of the endpoint name
type Event ¶
type Event struct { EventKey KeyType // Pick from a select list of predefined events (PaymentRequest.Create) MtoID uuid.UUID // This is the ID of the MTO that the object is associated with UpdatedObjectID uuid.UUID // This is the ID of the object itself (PaymentRequest.ID) EndpointKey EndpointKeyType // Pick from a select list of endpoints AppContext appcontext.AppContext // The AppContext from the Request TraceID uuid.UUID // the TraceID from the Request }
Event holds a single event It is passed to EventTrigger to trigger an event
func TriggerEvent ¶
TriggerEvent triggers an event to send to various handlers
type KeyType ¶
type KeyType string
KeyType is a string representing the event An event is generally a Object.Action event You would use the key in an Event object to trigger an event
const ApproveSITExtensionEventKey KeyType = "Shipment.ApproveSITExtension"
ApproveSITExtensionEventKey is a key containing Shipment.ApproveSIT
const DenySITExtensionEventKey KeyType = "Shipment.DenySITExtension"
DenySITExtensionEventKey is a key containing Shipment.DenySIT
const MTOServiceItemCreateEventKey KeyType = "MTOServiceItem.Create"
MTOServiceItemCreateEventKey is a key containing MTOServiceItem.Create
const MTOServiceItemUpdateEventKey KeyType = "MTOServiceItem.Update"
MTOServiceItemUpdateEventKey is a key containing MTOServiceItem.Update
const MTOShipmentCreateEventKey KeyType = "MTOShipment.Create"
MTOShipmentCreateEventKey is a key containing MTOShipment.Create
const MTOShipmentUpdateEventKey KeyType = "MTOShipment.Update"
MTOShipmentUpdateEventKey is a key containing MTOShipment.Update
const MoveTaskOrderCreateEventKey KeyType = "MoveTaskOrder.Create"
MoveTaskOrderCreateEventKey is a key containing MoveTaskOrder.Create
const MoveTaskOrderUpdateEventKey KeyType = "MoveTaskOrder.Update"
MoveTaskOrderUpdateEventKey is a key containing MoveTaskOrder.Update
const OrderUpdateEventKey KeyType = "Order.Update"
OrderUpdateEventKey is a key containing Order.Update
const PaymentRequestCreateEventKey KeyType = "PaymentRequest.Create"
PaymentRequestCreateEventKey is a key containing PaymentRequest.Create
const PaymentRequestUpdateEventKey KeyType = "PaymentRequest.Update"
PaymentRequestUpdateEventKey is a key containing PaymentRequest.Update
const ShipmentApproveDiversionEventKey KeyType = "Shipment.ApproveDiversion"
ShipmentApproveDiversionEventKey is a key containing Shipment.ApproveDiversion
const ShipmentApproveEventKey KeyType = "Shipment.Approve"
ShipmentApproveEventKey is a key containing Shipment.Approve
const ShipmentDeleteEventKey KeyType = "Shipment.Delete"
ShipmentDeleteEventKey is a key containing Shipment.Delete
const ShipmentRejectEventKey KeyType = "Shipment.Reject"
ShipmentRejectEventKey is a key containing Shipment.Reject
const ShipmentRequestCancellationEventKey KeyType = "Shipment.RequestCancellation"
ShipmentRequestCancellationEventKey is a key containing Shipment.RequestCancellation
const ShipmentRequestDiversionEventKey KeyType = "Shipment.RequestDiversion"
ShipmentRequestDiversionEventKey is a key containing Shipment.RequestDiversion
const ShipmentRequestReweighEventKey KeyType = "Shipment.RequestReweigh"
ShipmentRequestReweighEventKey is a key containing Shipment.RequestReweigh
const TestCreateEventKey KeyType = "Test.Create"
TestCreateEventKey is a key containing Test.Create
const TestDeleteEventKey KeyType = "Test.Delete"
TestDeleteEventKey is a key containing Test.Delete
const TestUpdateEventKey KeyType = "Test.Update"
TestUpdateEventKey is a key containing Test.Update
type MoveTaskOrder ¶
type MoveTaskOrder struct { // available to prime at // Read Only: true // Format: date-time AvailableToPrimeAt *strfmt.DateTime `json:"availableToPrimeAt,omitempty"` // created at // Read Only: true // Format: date-time CreatedAt strfmt.DateTime `json:"createdAt,omitempty"` // e tag // Read Only: true ETag string `json:"eTag,omitempty"` // id // Format: uuid ID strfmt.UUID `json:"id,omitempty"` // is canceled IsCanceled *bool `json:"isCanceled,omitempty"` // order ID // Format: uuid OrderID strfmt.UUID `json:"orderID,omitempty"` // ppm estimated weight PpmEstimatedWeight int64 `json:"ppmEstimatedWeight,omitempty"` // ppm type // Enum: [FULL PARTIAL] PpmType string `json:"ppmType,omitempty"` // reference Id ReferenceID string `json:"referenceId,omitempty"` // updated at // Read Only: true // Format: date-time UpdatedAt strfmt.DateTime `json:"updatedAt,omitempty"` }
MoveTaskOrder has a custom payload definition, because it differs from the one in primeapi
func MoveTaskOrderModelToPayload ¶
func MoveTaskOrderModelToPayload(moveTaskOrder *models.Move) *MoveTaskOrder
MoveTaskOrderModelToPayload converts the Move model into a MoveTaskOrder payload Ideally it would be great to have this definition in the yaml - OpenAPI 3.0 should have ability to put callback payloads in the yaml
type RegisteredEventHandlerFunc ¶
RegisteredEventHandlerFunc is a type of func that can be registered as an event handler to be called by the eventing system