Dto Module
Holds the serializable shape of an order, converts an order to and from the Dto and creates a new order Dto for each schedule kind. Reading a Dto returns OrderCouldNotBeCreated when it fails.
Types
| Type | Description |
|
|
Functions and values
| Function or value |
Description
|
|
|
Full Usage:
continuous start id orbN rte cmps
Parameters:
DateTime
-
The moment the Order starts, decided by the caller, in UTC
id : string
-
The id of the Order
orbN : string
-
The name of the Orderable
rte : string
-
The Route of the Order
cmps : (string * string * string list) seq
-
The Components of the Orderable
Returns: Dto
|
Create a new Order Dto with a Continuous Schedule
|
Full Usage:
discontinuous start id orbN rte cmps
Parameters:
DateTime
-
The moment the Order starts, decided by the caller, in UTC
id : string
-
The id of the Order
orbN : string
-
The name of the Orderable
rte : string
-
The Route of the Order
cmps : (string * string * string list) seq
-
The Components of the Orderable
Returns: Dto
|
Create a new Order Dto with a Discontinuous Schedule
|
|
|
Full Usage:
once start id orbN rte cmps
Parameters:
DateTime
-
The moment the Order starts, decided by the caller, in UTC
id : string
-
The id of the Order
orbN : string
-
The name of the Orderable
rte : string
-
The Route of the Order
cmps : (string * string * string list) seq
-
The Components of the Orderable
Returns: Dto
|
Create a new Order Dto with a Once Schedule
|
Full Usage:
onceTimed start id orbN rte cmps
Parameters:
DateTime
-
The moment the Order starts, decided by the caller, in UTC
id : string
-
The id of the Order
orbN : string
-
The name of the Orderable
rte : string
-
The Route of the Order
cmps : (string * string * string list) seq
-
The Components of the Orderable
Returns: Dto
|
Create a new Order Dto with a OnceTimed Schedule
|
|
|
|
|
|
|
|
|
|
|
Full Usage:
timed start id orbN rte cmps
Parameters:
DateTime
-
The moment the Order starts, decided by the caller, in UTC
id : string
-
The id of the Order
orbN : string
-
The name of the Orderable
rte : string
-
The Route of the Order
cmps : (string * string * string list) seq
-
The Components of the Orderable
Returns: Dto
|
Create a new Order Dto with a Timed Schedule
|
|
|
GenPRES