package
0.54.10
Repository: https://github.com/sneat-co/sneat-go-backend.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
GetCounterpartyTypeByRole returns counterparty type by role.
No description provided by the author
NewLogistSpaceEntry creates new LogistSpaceEntry.
NewOrder creates new order context.
NewOrderKey create new order key.
No description provided by the author
No description provided by the author
ValidateOrderCounterpartyRoles returns nil if valid, or error if not.
ValidateSegmentCounterpartyRole returns nil if role is valid, otherwise returns bad record field error.
No description provided by the author
ValidateShippingPointTasksRecord validates shipping point tasks.
ValidateShippingPointTasksRequest validates shipping point tasks.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Freight agent can be either a CounterpartyRoleDispatchAgent or CounterpartyRoleReceiveAgent.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
High Cube.
No description provided by the author
High Cube.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Point where container needs to be brought and loaded.
Final point to drop a container.
Final point to drop a container.
No description provided by the author
Original point to pick up a container.
No description provided by the author
No description provided by the author
No description provided by the author
Point to unload a container without leaving the container.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ModuleID is the unique identifier for this module.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
OrderStepStatusCompleted = "completed".
OrderStepStatusPending = "pending".
No description provided by the author
No description provided by the author
No description provided by the author
Leave container with all the goods.
Load container with goods.
Pickup container.
Unload goods from container.
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
ShippingDoc is a document definition for shipping.

# Structs

ContainerEndpoint represents a shipping arrival or departure point of a container.
ContainerEndpoints holds dates of a container.
ContainerPoint represents a shipping point of a container.
ContainerSegment is a segment of the OrderDbo and is referenced by WithSegments.
ContainerSegmentKey contains the contacts of the ContainerSegment.
No description provided by the author
FreightLoad is a model for freight load.
No description provided by the author
LogistSpaceDbo is a DTO for LogistTeam.
Milestone is a milestone of an order.
Order is a context for an order.
OrderBase is a base for order - we use it for storing orders in Firestore and in request for creating a new order.
OrderBrief is brief information about an order.
OrderContact is summary of contact information stored in order TODO: Try to remove or document why we can't use only OrderCounterparty instead.
OrderContainer is a container for an order.
OrderContainerBase is a base type for OrderContainer.
OrderCounter is a counter for orders.
OrderCounterparty is a counterparty in an order.
OrderDbo is a DTO for an order.
OrderRoute is a route for an order.
OrderShippingPoint represents a pick-up or drop-off point for an order.
OrderStep - TODO: document intended usage.
SegmentCounterparty is a counterparty of the ContainerSegment.
SegmentDates is a dates of the ContainerSegment.
SegmentEndpoint is a segment endpoint of the ContainerSegment.
SegmentsFilter is a filter for ContainerSegments.
ShippingPointBase is used in OrderShippingPoint and ContainerPoint.
ShippingPointCounterparty is used in OrderShippingPoint.
ShippingPointLocation is used in OrderShippingPoint.
TransitPoint is a transit point of an order route.
WithContainerPoints represents containers with their shipping points.
WithCounterparties is a base type that defines Counterparties for OrderDbo.
WithMilestones is a struct with milestones.
WithOrderContacts is a struct that contains contacts in OrderDbo.
WithOrderContainers is a type that has order containers.
WithSegments is a struct that contains a list of segments.
WithShippingPoints holds a list of OrderShippingPoint's We do need the `ShippingPoints` field as it can not be fully deducted from `Contacts`, `Containers` & `Segments`.

# Type aliases

No description provided by the author
CounterpartyRole is a role of a counterparty in an order.
CounterpartyType is a type of a counterparty in an order.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author