Skip to content

ClientRecord ​

Un cliente cargado en SmartDoc.

Extends ​

Constructors ​

Constructor ​

ts
new ClientRecord(data?): ClientRecord;

Parameters ​

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

Returns ​

ClientRecord

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


ruc ​

Get Signature ​

ts
get ruc(): string;
Returns ​

string


socialName ​

Get Signature ​

ts
get socialName(): 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