event

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

Documentation

Index

Constants

View Source
const GhcAPIName string = "ghcapi"

GhcAPIName is a const string to use the EndpointTypes

View Source
const GhcAcknowledgeExcessWeightRiskEndpointKey = "Ghc.AcknowledgeExcessWeightRisk"

GhcAcknowledgeExcessWeightRiskEndpointKey is the key for the AcknowledgeExcessWeightRisk endpoint in ghc

View Source
const GhcApproveSITExtensionEndpointKey = "Ghc.ApproveSITExtension"

GhcApproveSITExtensionEndpointKey is the key for the approveSITExtension endpoint in ghc

View Source
const GhcApproveShipmentDiversionEndpointKey = "Ghc.ApproveShipmentDiversion"

GhcApproveShipmentDiversionEndpointKey is the key for the approveShipmentDiversion endpoint in ghc

View Source
const GhcApproveShipmentEndpointKey = "Ghc.ApproveShipment"

GhcApproveShipmentEndpointKey is the key for the approveShipment endpoint in ghc

View Source
const GhcCounselingUpdateAllowanceEndpointKey = "Ghc.CounselingUpdateAllowance"

GhcCounselingUpdateAllowanceEndpointKey is the key for the counselingUpdateAllowance endpoint in ghc

View Source
const GhcCounselingUpdateOrderEndpointKey = "Ghc.CounselingUpdateOrder"

GhcCounselingUpdateOrderEndpointKey is the key for the counselingUpdateOrder endpoint in ghc

View Source
const GhcCreateMTOServiceItemEndpointKey = "Ghc.CreateMTOServiceItem"

GhcCreateMTOServiceItemEndpointKey is the key for the createMTOServiceItem endpoint in ghc

View Source
const GhcDeleteShipmentEndpointKey = "Ghc.DeleteShipment"

GhcDeleteShipmentEndpointKey is the key for the deleteShipment endpoint in ghc

View Source
const GhcDenySITExtensionEndpointKey = "Ghc.DenySITExtension"

GhcDenySITExtensionEndpointKey is the key for the denySITExtension endpoint in ghc

View Source
const GhcFetchMTOAgentListEndpointKey = "Ghc.FetchMTOAgentList"

GhcFetchMTOAgentListEndpointKey is the key for the fetchMTOAgentList endpoint in ghc

View Source
const GhcGetCustomerEndpointKey = "Ghc.GetCustomer"

GhcGetCustomerEndpointKey is the key for the getCustomer endpoint in ghc

View Source
const GhcGetEntitlementsEndpointKey = "Ghc.GetEntitlements"

GhcGetEntitlementsEndpointKey is the key for the getEntitlements endpoint in ghc

View Source
const GhcGetMTOServiceItemEndpointKey = "Ghc.GetMTOServiceItem"

GhcGetMTOServiceItemEndpointKey is the key for the getMTOServiceItem endpoint in ghc

View Source
const GhcGetMoveEndpointKey = "Ghc.GetMove"

GhcGetMoveEndpointKey is the key for the getMove endpoint in ghc

View Source
const GhcGetMoveTaskOrderEndpointKey = "Ghc.GetMoveTaskOrder"

GhcGetMoveTaskOrderEndpointKey is the key for the getMoveTaskOrder endpoint in ghc

View Source
const GhcGetMovesQueueEndpointKey = "Ghc.GetMovesQueue"

GhcGetMovesQueueEndpointKey is the key for the getMovesQueue endpoint in ghc

View Source
const GhcGetOrderEndpointKey = "Ghc.GetOrder"

GhcGetOrderEndpointKey is the key for the getOrder endpoint in ghc

View Source
const GhcGetPaymentRequestEndpointKey = "Ghc.GetPaymentRequest"

GhcGetPaymentRequestEndpointKey is the key for the getPaymentRequest endpoint in ghc

View Source
const GhcGetPaymentRequestsQueueEndpointKey = "Ghc.GetPaymentRequestsQueue"

GhcGetPaymentRequestsQueueEndpointKey is the key for the getPaymentRequestsQueue endpoint in ghc

View Source
const GhcListMTOServiceItemsEndpointKey = "Ghc.ListMTOServiceItems"

GhcListMTOServiceItemsEndpointKey is the key for the listMTOServiceItems endpoint in ghc

View Source
const GhcListMTOShipmentsEndpointKey = "Ghc.ListMTOShipments"

GhcListMTOShipmentsEndpointKey is the key for the listMTOShipments endpoint in ghc

View Source
const GhcRejectShipmentEndpointKey = "Ghc.RejectShipment"

GhcRejectShipmentEndpointKey is the key for the rejectShipment endpoint in ghc

View Source
const GhcRequestShipmentCancellationEndpointKey = "Ghc.RequestShipmentCancellation"

GhcRequestShipmentCancellationEndpointKey is the key for the requestShipmentCancellation endpoint in ghc

View Source
const GhcRequestShipmentDiversionEndpointKey = "Ghc.RequestShipmentDiversion"

GhcRequestShipmentDiversionEndpointKey is the key for the requestShipmentDiversion endpoint in ghc

View Source
const GhcRequestShipmentReweighEndpointKey = "Ghc.RequestShipmentReweigh"

GhcRequestShipmentReweighEndpointKey is the key for the requestShipmentReweigh endpoint in ghc

View Source
const GhcUpdateAllowanceEndpointKey = "Ghc.UpdateAllowance"

GhcUpdateAllowanceEndpointKey is the key for the updateAllowance endpoint in ghc

View Source
const GhcUpdateBillableWeightEndpointKey = "Ghc.UpdateBillableWeight"

GhcUpdateBillableWeightEndpointKey is the key for the updateBillableWeight endpoint in ghc

View Source
const GhcUpdateMTOReviewedBillableWeightsEndpointKey = "Ghc.UpdateMTOReviewedBillableWeightss"

GhcUpdateMTOReviewedBillableWeightsEndpointKey is the key for the UpdateMTOReviewedBillableWeights endpoint in ghc

View Source
const GhcUpdateMTOServiceItemEndpointKey = "Ghc.UpdateMTOServiceItem"

GhcUpdateMTOServiceItemEndpointKey is the key for the updateMTOServiceItem endpoint in ghc

View Source
const GhcUpdateMTOServiceItemStatusEndpointKey = "Ghc.UpdateMTOServiceItemStatus"

GhcUpdateMTOServiceItemStatusEndpointKey is the key for the updateMTOServiceItemStatus endpoint in ghc

View Source
const GhcUpdateMTOShipmentEndpointKey = "Ghc.UpdateMTOShipment"

GhcUpdateMTOShipmentEndpointKey is the key for the updateMTOShipment endpoint in ghc

View Source
const GhcUpdateMTOStatusServiceCounselingCompletedEndpointKey = "Ghc.UpdateMTOStatusServiceCounselingCompleted"

GhcUpdateMTOStatusServiceCounselingCompletedEndpointKey is the key for the updateMTOStatusServiceCounselingCompleted endpoint in ghc

View Source
const GhcUpdateMaxBillableWeightAsTIOEndpointKey = "Ghc.UpdateMaxBillableWeightAsTIO"

GhcUpdateMaxBillableWeightAsTIOEndpointKey is the key for the updateMaxBillableWeightAsTIO endpoint in ghc

View Source
const GhcUpdateMoveTIORemarksEndpointKey = "Ghc.UpdateMoveTIORemarks"

GhcUpdateMoveTIORemarksEndpointKey is the key for the UpdateMoveTIORemarks endpoint in ghc

View Source
const GhcUpdateMoveTaskOrderEndpointKey = "Ghc.UpdateMoveTaskOrder"

GhcUpdateMoveTaskOrderEndpointKey is the key for the updateMoveTaskOrder endpoint in ghc

View Source
const GhcUpdateMoveTaskOrderStatusEndpointKey = "Ghc.UpdateMoveTaskOrderStatus"

GhcUpdateMoveTaskOrderStatusEndpointKey is the key for the updateMoveTaskOrderStatus endpoint in ghc

View Source
const GhcUpdateOrderEndpointKey = "Ghc.UpdateOrder"

GhcUpdateOrderEndpointKey is the key for the updateOrder endpoint in ghc

View Source
const GhcUpdatePaymentRequestStatusEndpointKey = "Ghc.UpdatePaymentRequestStatus"

GhcUpdatePaymentRequestStatusEndpointKey is the key for the updatePaymentRequestStatus endpoint in ghc

View Source
const GhcUpdatePaymentServiceItemStatusEndpointKey = "Ghc.UpdatePaymentServiceItemStatus"

GhcUpdatePaymentServiceItemStatusEndpointKey is the key for the updatePaymentServiceItemStatus endpoint in ghc

View Source
const GhcUpdateSITServiceItemCustomerExpenseEndpointKey = "Ghc.UpdateSITServiceItemCustomerExpense"

GhcUpdateMTOServiceItemCustomerExpenseEndpointKey is the key for the updateSITServiceItemCustomerExpense endpoint in ghc

View Source
const InternalAPIName string = "internalapi"

InternalAPIName is a const string to use the EndpointTypes

View Source
const InternalApproveMoveEndpointKey = "Internal.ApproveMove"

InternalApproveMoveEndpointKey is the key for the approveMove endpoint in internal

View Source
const InternalApprovePPMEndpointKey = "Internal.ApprovePPM"

InternalApprovePPMEndpointKey is the key for the approvePPM endpoint in internal

View Source
const InternalApproveReimbursementEndpointKey = "Internal.ApproveReimbursement"

InternalApproveReimbursementEndpointKey is the key for the approveReimbursement endpoint in internal

View Source
const InternalCancelMoveEndpointKey = "Internal.CancelMove"

InternalCancelMoveEndpointKey is the key for the cancelMove endpoint in internal

View Source
const InternalCreateDocumentEndpointKey = "Internal.CreateDocument"

InternalCreateDocumentEndpointKey is the key for the createDocument endpoint in internal

View Source
const InternalCreateGenericMoveDocumentEndpointKey = "Internal.CreateGenericMoveDocument"

InternalCreateGenericMoveDocumentEndpointKey is the key for the createGenericMoveDocument endpoint in internal

View Source
const InternalCreateMTOShipmentEndpointKey = "Internal.CreateMTOShipment"

InternalCreateMTOShipmentEndpointKey is the key for the createMTOShipment endpoint in internal

View Source
const InternalCreateMovingExpenseDocumentEndpointKey = "Internal.CreateMovingExpenseDocument"

InternalCreateMovingExpenseDocumentEndpointKey is the key for the createMovingExpenseDocument endpoint in internal

View Source
const InternalCreateOrdersEndpointKey = "Internal.CreateOrders"

InternalCreateOrdersEndpointKey is the key for the createOrders endpoint in internal

View Source
const InternalCreateServiceMemberBackupContactEndpointKey = "Internal.CreateServiceMemberBackupContact"

InternalCreateServiceMemberBackupContactEndpointKey is the key for the createServiceMemberBackupContact endpoint in internal

View Source
const InternalCreateServiceMemberEndpointKey = "Internal.CreateServiceMember"

InternalCreateServiceMemberEndpointKey is the key for the createServiceMember endpoint in internal

View Source
const InternalCreateSignedCertificationEndpointKey = "Internal.CreateSignedCertification"

InternalCreateSignedCertificationEndpointKey is the key for the createSignedCertification endpoint in internal

View Source
const InternalCreateUploadEndpointKey = "Internal.CreateUpload"

InternalCreateUploadEndpointKey is the key for the createUpload endpoint in internal

View Source
const InternalCreateWeightTicketDocumentEndpointKey = "Internal.CreateWeightTicketDocument"

InternalCreateWeightTicketDocumentEndpointKey is the key for the createWeightTicketDocument endpoint in internal

View Source
const InternalCreateWeightTicketEndpointKey = "Internal.CreateWeightTicket"

InternalCreateWeightTicketEndpointKey is the key for the createWeightTicket endpoint in internal

View Source
const InternalGetCookieURLEndpointKey = "Internal.GetCookieURL"

InternalGetCookieURLEndpointKey is the key for the getCookieURL endpoint in internal

View Source
const InternalIndexEntitlementsEndpointKey = "Internal.IndexEntitlements"

InternalIndexEntitlementsEndpointKey is the key for the indexEntitlements endpoint in internal

View Source
const InternalIndexMoveDocumentsEndpointKey = "Internal.IndexMoveDocuments"

InternalIndexMoveDocumentsEndpointKey is the key for the indexMoveDocuments endpoint in internal

View Source
const InternalIndexServiceMemberBackupContactsEndpointKey = "Internal.IndexServiceMemberBackupContacts"

InternalIndexServiceMemberBackupContactsEndpointKey is the key for the indexServiceMemberBackupContacts endpoint in internal

View Source
const InternalIndexSignedCertificationEndpointKey = "Internal.IndexSignedCertification"

InternalIndexSignedCertificationEndpointKey is the key for the indexSignedCertification endpoint in internal

View Source
const InternalIsLoggedInUserEndpointKey = "Internal.IsLoggedInUser"

InternalIsLoggedInUserEndpointKey is the key for the isLoggedInUser endpoint in internal

View Source
const InternalPatchMoveEndpointKey = "Internal.PatchMove"

InternalPatchMoveEndpointKey is the key for the patchMove endpoint in internal

View Source
const InternalPatchServiceMemberEndpointKey = "Internal.PatchServiceMember"

InternalPatchServiceMemberEndpointKey is the key for the patchServiceMember endpoint in internal

View Source
const InternalSearchDutyLocationsEndpointKey = "Internal.SearchDutyLocations"

InternalSearchDutyLocationsEndpointKey is the key for the searchDutyLocations endpoint in internal

View Source
const InternalShowAddressEndpointKey = "Internal.ShowAddress"

InternalShowAddressEndpointKey is the key for the showAddress endpoint in internal

View Source
const InternalShowAvailableMoveDatesEndpointKey = "Internal.ShowAvailableMoveDates"

InternalShowAvailableMoveDatesEndpointKey is the key for the showAvailableMoveDates endpoint in internal

View Source
const InternalShowDocumentEndpointKey = "Internal.ShowDocument"

InternalShowDocumentEndpointKey is the key for the showDocument endpoint in internal

View Source
const InternalShowDutyLocationTransportationOfficeEndpointKey = "Internal.ShowDutyLocationTransportationOffice"

InternalShowDutyLocationsTransportationOfficeEndpointKey is the key for the showDutyLocationTransportationOffice endpoint in internal

View Source
const InternalShowLoggedInUserEndpointKey = "Internal.ShowLoggedInUser"

InternalShowLoggedInUserEndpointKey is the key for the showLoggedInUser endpoint in internal

View Source
const InternalShowMoveDatesSummaryEndpointKey = "Internal.ShowMoveDatesSummary"

InternalShowMoveDatesSummaryEndpointKey is the key for the showMoveDatesSummary endpoint in internal

View Source
const InternalShowMoveEndpointKey = "Internal.ShowMove"

InternalShowMoveEndpointKey is the key for the showMove endpoint in internal

View Source
const InternalShowOfficeOrdersEndpointKey = "Internal.ShowOfficeOrders"

InternalShowOfficeOrdersEndpointKey is the key for the showOfficeOrders endpoint in internal

View Source
const InternalShowOrdersEndpointKey = "Internal.ShowOrders"

InternalShowOrdersEndpointKey is the key for the showOrders endpoint in internal

View Source
const InternalShowQueueEndpointKey = "Internal.ShowQueue"

InternalShowQueueEndpointKey is the key for the showQueue endpoint in internal

View Source
const InternalShowServiceMemberBackupContactEndpointKey = "Internal.ShowServiceMemberBackupContact"

InternalShowServiceMemberBackupContactEndpointKey is the key for the showServiceMemberBackupContact endpoint in internal

View Source
const InternalShowServiceMemberEndpointKey = "Internal.ShowServiceMember"

InternalShowServiceMemberEndpointKey is the key for the showServiceMember endpoint in internal

View Source
const InternalShowServiceMemberOrdersEndpointKey = "Internal.ShowServiceMemberOrders"

InternalShowServiceMemberOrdersEndpointKey is the key for the showServiceMemberOrders endpoint in internal

View Source
const InternalShowShipmentSummaryWorksheetEndpointKey = "Internal.ShowShipmentSummaryWorksheet"

InternalShowShipmentSummaryWorksheetEndpointKey is the key for the showShipmentSummaryWorksheet endpoint in internal

View Source
const InternalSubmitMoveForApprovalEndpointKey = "Internal.SubmitMoveForApproval"

InternalSubmitMoveForApprovalEndpointKey is the key for the submitMoveForApproval endpoint in internal

View Source
const InternalUpdateMoveDocumentEndpointKey = "Internal.UpdateMoveDocument"

InternalUpdateMoveDocumentEndpointKey is the key for the updateMoveDocument endpoint in internal

View Source
const InternalUpdateOrdersEndpointKey = "Internal.UpdateOrders"

InternalUpdateOrdersEndpointKey is the key for the updateOrders endpoint in internal

View Source
const InternalUpdateServiceMemberBackupContactEndpointKey = "Internal.UpdateServiceMemberBackupContact"

InternalUpdateServiceMemberBackupContactEndpointKey is the key for the updateServiceMemberBackupContact endpoint in internal

View Source
const InternalUpdateWeightTicketEndpointKey = "Internal.UpdateWeightTicket"

InternalUpdateWeightTicketEndpointKey is the key for the updateWeightTicket endpoint in internal

View Source
const InternalUploadAmendedOrdersEndpointKey = "Internal.UploadAmendedOrders"

InternalUploadAmendedOrdersEndpointKey is the key for the UploadAmendedOrders endpoint in internal

View Source
const InternalValidateEntitlementEndpointKey = "Internal.ValidateEntitlement"

InternalValidateEntitlementEndpointKey is the key for the validateEntitlement endpoint in internal

View Source
const InternalValidatePostalCodeWithRateDataEndpointKey = "Internal.ValidatePostalCodeWithRateData"

InternalValidatePostalCodeWithRateDataEndpointKey is the key for the validatePostalCodeWithRateData endpoint in internal

View Source
const PrimeAPIName string = "primeapi"

PrimeAPIName is a const string to use the EndpointTypes

View Source
const SupportCreateMoveTaskOrderEndpointKey = "Support.CreateMoveTaskOrder"

SupportCreateMoveTaskOrderEndpointKey is the key for the createMoveTaskOrder endpoint in support

View Source
const SupportGetMoveTaskOrderEndpointKey = "Support.GetMoveTaskOrder"

SupportGetMoveTaskOrderEndpointKey is the key for the getMoveTaskOrder endpoint in support

View Source
const SupportListMTOPaymentRequestsEndpointKey = "Support.ListMTOPaymentRequests"

SupportListMTOPaymentRequestsEndpointKey is the key for the listMTOPaymentRequests endpoint in support

View Source
const SupportListMTOsEndpointKey = "Support.ListMTOs"

SupportListMTOsEndpointKey is the key for the listMTOs endpoint in support

View Source
const SupportMakeMoveTaskOrderAvailableEndpointKey = "Support.MakeMoveTaskOrderAvailable"

SupportMakeMoveTaskOrderAvailableEndpointKey is the key for the makeMoveTaskOrderAvailable endpoint in support

View Source
const SupportUpdateMTOServiceItemStatusEndpointKey = "Support.UpdateMTOServiceItemStatus"

SupportUpdateMTOServiceItemStatusEndpointKey is the key for the updateMTOServiceItemStatus endpoint in support

View Source
const SupportUpdateMTOShipmentStatusEndpointKey = "Support.UpdateMTOShipmentStatus"

SupportUpdateMTOShipmentStatusEndpointKey is the key for the updateMTOShipmentStatus endpoint in support

View Source
const SupportUpdatePaymentRequestStatusEndpointKey = "Support.UpdatePaymentRequestStatus"

SupportUpdatePaymentRequestStatusEndpointKey is the key for the updatePaymentRequestStatus endpoint in support

Variables

This section is empty.

Functions

func ExistsEventKey

func ExistsEventKey(e string) bool

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

func GetModelFromEvent(e KeyType) (interface{}, error)

GetModelFromEvent returns a model instance associated with this event

func IsCreateEvent

func IsCreateEvent(e KeyType) (bool, error)

IsCreateEvent returns true if this event is a create event

func NotificationEventHandler

func NotificationEventHandler(event *Event) error

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

type EndpointType struct {
	APIName     string
	OperationID string
}

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

func TriggerEvent(event Event) (*Event, error)

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

type RegisteredEventHandlerFunc func(event *Event) error

RegisteredEventHandlerFunc is a type of func that can be registered as an event handler to be called by the eventing system

Jump to

Keyboard shortcuts

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