Skip to content

Provider ​

El proveedor al que se le compró.

Constructors ​

Constructor ​

ts
new Provider(options): Provider;

Parameters ​

ParameterType
optionsProviderOptions

Returns ​

Provider

Properties ​

providerType ​

ts
readonly providerType: "no_ruc" | "foreign";

fullName ​

ts
readonly fullName: string;

documentType ​

ts
readonly documentType: "paraguayan_dni" | "passport" | "foreign_dni" | "residence_card";

documentNumber ​

ts
readonly documentNumber: string;

address ​

ts
readonly address: string;

city ​

ts
readonly city: City;

houseNumber ​

ts
readonly houseNumber: number;

Methods ​

noRuc() ​

ts
static noRuc(options): Provider;

Un proveedor paraguayo que no es contribuyente.

Parameters ​

ParameterType
options{ fullName: string; documentNumber: string; address: string; city: City; documentType?: "paraguayan_dni" | "passport" | "foreign_dni" | "residence_card"; houseNumber?: number; }
options.fullNamestring
options.documentNumberstring
options.addressstring
options.cityCity
options.documentType?"paraguayan_dni" | "passport" | "foreign_dni" | "residence_card"
options.houseNumber?number

Returns ​

Provider


foreign() ​

ts
static foreign(options): Provider;

Un proveedor del exterior.

Parameters ​

ParameterType
options{ fullName: string; documentNumber: string; address: string; city: City; documentType?: "paraguayan_dni" | "passport" | "foreign_dni" | "residence_card"; houseNumber?: number; }
options.fullNamestring
options.documentNumberstring
options.addressstring
options.cityCity
options.documentType?"paraguayan_dni" | "passport" | "foreign_dni" | "residence_card"
options.houseNumber?number

Returns ​

Provider


toApi() ​

ts
toApi(): Body;

Returns ​

Body