Skip to content

RecipientOptions ​

Lo que comparten todos los constructores de Recipient.

Extends ​

Properties ​

fantasyName? ​

ts
optional fantasyName?: string;

Nombre de fantasía.

Inherited from ​

RecipientCommon.fantasyName


countryCode? ​

ts
optional countryCode?: string;

Código de país. Por defecto PRY.

Inherited from ​

RecipientCommon.countryCode


city? ​

ts
optional city?: City;

Ciudad, con geo.findCity. Obligatoria si se pasa address, salvo con un receptor extranjero.

Inherited from ​

RecipientCommon.city


address? ​

ts
optional address?: string;

Dirección. Si se pasa, hacen falta también city y houseNumber.

Inherited from ​

RecipientCommon.address


houseNumber? ​

ts
optional houseNumber?: number;

Número de casa.

Inherited from ​

RecipientCommon.houseNumber


email? ​

ts
optional email?: string;

Correo al que SmartDoc manda el documento.

Inherited from ​

RecipientCommon.email


phone? ​

ts
optional phone?: string;

Teléfono.

Inherited from ​

RecipientCommon.phone


code? ​

ts
optional code?: string;

Identificador propio, de 3 a 15 caracteres. Queda impreso en el documento y sirve para conciliar contra tu base.

Inherited from ​

RecipientCommon.code


clientId? ​

ts
optional clientId?: number;

Id del cliente en SmartDoc, si ya está cargado.

Inherited from ​

RecipientCommon.clientId


extra? ​

ts
optional extra?: {
[key: string]: unknown;
};

Campos crudos que el SDK no modela.

Index Signature ​

ts
[key: string]: unknown

Inherited from ​

RecipientCommon.extra


clientType ​

ts
clientType: 
  | "person"
  | "entity"
  | "foreign_entity"
  | "not_nominated"
  | "diplomatic"
  | "government";

Tipo de receptor. Lo fija el constructor que se use.


ruc? ​

ts
optional ruc?: string;

RUC con dígito verificador. Con una persona que no es contribuyente va la cédula; con un extranjero, su documento.


socialName? ​

ts
optional socialName?: string;

Razón social o nombre, tal como va impreso.


isTaxPayer? ​

ts
optional isTaxPayer?: boolean;

Si el receptor es contribuyente.