Skip to content

TransportEndpoint ​

Un extremo del traslado: de dónde sale o a dónde llega.

Constructors ​

Constructor ​

ts
new TransportEndpoint(options): TransportEndpoint;

Parameters ​

ParameterType
optionsTransportEndpointOptions

Returns ​

TransportEndpoint

Properties ​

address ​

ts
readonly address: string;

city ​

ts
readonly city: City;

houseNumber ​

ts
readonly houseNumber: number;

Methods ​

toApi() ​

ts
toApi(prefix): Body;

Serializa con prefijo transportDeparture o transportArrival.

Parameters ​

ParameterType
prefixstring

Returns ​

Body