Tema
DispatchPoints
Puntos de expedición (/dispatch_points). Como los establecimientos, no se borran.
Extends
Constructors
Constructor
ts
new DispatchPoints(transport, config): DispatchPoints;Parameters
| Parameter | Type |
|---|---|
transport | Transport |
config | IssuerConfig |
Returns
DispatchPoints
Inherited from
Methods
get()
ts
get(id): Promise<DispatchPoint>;Un recurso por su id.
Parameters
| Parameter | Type |
|---|---|
id | number |
Returns
Promise<DispatchPoint>
Inherited from
list()
ts
list(params?): Promise<Page<DispatchPoint>>;Una página de resultados.
Para recorrer todo sin escribir el bucle del cursor:
ts
for await (const factura of (await sd.invoices.list()).autoPaging()) { ... }Parameters
| Parameter | Type |
|---|---|
params | ListParams |
Returns
Promise<Page<DispatchPoint>>
Inherited from
create()
ts
create(fields): Promise<DispatchPoint>;Parameters
| Parameter | Type |
|---|---|
fields | { [key: string]: unknown; } |
Returns
Promise<DispatchPoint>
update()
ts
update(id, fields): Promise<DispatchPoint>;Parameters
| Parameter | Type |
|---|---|
id | number |
fields | { [key: string]: unknown; } |
Returns
Promise<DispatchPoint>
delete()
ts
delete(_id): Promise<never>;Borra el recurso.
Parameters
| Parameter | Type |
|---|---|
_id | number |
Returns
Promise<never>
