Logo GenPRES

Dto Module

Holds the serializable shape of an order scenario and converts a scenario to and from the Dto. An order that cannot be created gives OrderNotCreated.

Types

Type Description

Dto

Functions and values

Function or value Description

fromDto dto

Full Usage: fromDto dto

Parameters:
Returns: Result<OrderScenario, DtoError list>

Reads a scenario from a Dto. Returns every error found; an order that cannot be created gives OrderNotCreated.

dto : Dto
Returns: Result<OrderScenario, DtoError list>

toDto sc

Full Usage: toDto sc

Parameters:
Returns: Dto
sc : OrderScenario
Returns: Dto

Type something to start searching.