Logo GenPRES

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

Dto

Functions and values

Function or value Description

cleanDose dto

Full Usage: cleanDose dto

Parameters:
dto : Dto

continuous start id orbN rte cmps

Full Usage: continuous start id orbN rte cmps

Parameters:
    start : 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

start : 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

discontinuous start id orbN rte cmps

Full Usage: discontinuous start id orbN rte cmps

Parameters:
    start : 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

start : 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

fromDto dto

Full Usage: fromDto dto

Parameters:
Returns: Result<Order, Message>
dto : Dto
Returns: Result<Order, Message>

once start id orbN rte cmps

Full Usage: once start id orbN rte cmps

Parameters:
    start : 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

start : 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

onceTimed start id orbN rte cmps

Full Usage: onceTimed start id orbN rte cmps

Parameters:
    start : 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

start : 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

setToContinuous dto

Full Usage: setToContinuous dto

Parameters:
Returns: Dto
dto : Dto
Returns: Dto

setToDiscontinuous dto

Full Usage: setToDiscontinuous dto

Parameters:
Returns: Dto
dto : Dto
Returns: Dto

setToOnce dto

Full Usage: setToOnce dto

Parameters:
Returns: Dto
dto : Dto
Returns: Dto

setToOnceTimed dto

Full Usage: setToOnceTimed dto

Parameters:
Returns: Dto
dto : Dto
Returns: Dto

setToTimed dto

Full Usage: setToTimed dto

Parameters:
Returns: Dto
dto : Dto
Returns: Dto

timed start id orbN rte cmps

Full Usage: timed start id orbN rte cmps

Parameters:
    start : 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

start : 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

toDto ord

Full Usage: toDto ord

Parameters:
Returns: Dto
ord : Order
Returns: Dto

toString dto

Full Usage: toString dto

Parameters:
Returns: string
dto : Dto
Returns: string

Type something to start searching.