Tema
Provider
El proveedor al que se le compró.
Constructors
Constructor
ts
new Provider(options): Provider;Parameters
| Parameter | Type |
|---|---|
options | ProviderOptions |
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
| Parameter | Type |
|---|---|
options | { fullName: string; documentNumber: string; address: string; city: City; documentType?: "paraguayan_dni" | "passport" | "foreign_dni" | "residence_card"; houseNumber?: number; } |
options.fullName | string |
options.documentNumber | string |
options.address | string |
options.city | City |
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
| Parameter | Type |
|---|---|
options | { fullName: string; documentNumber: string; address: string; city: City; documentType?: "paraguayan_dni" | "passport" | "foreign_dni" | "residence_card"; houseNumber?: number; } |
options.fullName | string |
options.documentNumber | string |
options.address | string |
options.city | City |
options.documentType? | "paraguayan_dni" | "passport" | "foreign_dni" | "residence_card" |
options.houseNumber? | number |
Returns
Provider
toApi()
ts
toApi(): Body;