Skip to content

Establishment ​

Un establecimiento.

Extends ​

Constructors ​

Constructor ​

ts
new Establishment(data?): Establishment;

Parameters ​

ParameterType
data| { [key: string]: unknown; } | null | undefined

Returns ​

Establishment

Inherited from ​

Record.constructor

Properties ​

raw ​

ts
readonly raw: Readonly<{
[key: string]: unknown;
}>;

El JSON completo tal como lo devolvió la API.

Inherited from ​

Record.raw

Accessors ​

id ​

Get Signature ​

ts
get id(): number;
Returns ​

number


code ​

Get Signature ​

ts
get code(): string;
Returns ​

string

Methods ​

get() ​

ts
get<T>(key, fallback?): T | undefined;

El valor de un campo que el SDK no modela.

Type Parameters ​

Type ParameterDefault type
Tunknown

Parameters ​

ParameterType
keystring
fallback?T

Returns ​

T | undefined

Inherited from ​

Record.get


has() ​

ts
has(key): boolean;

Si el campo vino en la respuesta.

Parameters ​

ParameterType
keystring

Returns ​

boolean

Inherited from ​

Record.has


toJSON() ​

ts
toJSON(): {
[key: string]: unknown;
};

Returns ​

ts
{
[key: string]: unknown;
}

Inherited from ​

Record.toJSON