-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcotizar.js
30 lines (30 loc) · 872 Bytes
/
cotizar.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
module.exports = (client, apiKey, secretKey) => {
return {
costo: {
// GET /cotizar/costo
// envioPack.cotizar.costo.all(query)
async all(query = {}) {
const {data} = await client.get("/cotizar/costo", {params: query});
return data;
}
},
precio: {
aDomicilio: {
// GET /cotizar/precio/a-domicilio
// envioPack.cotizar.precio.aDomicilio.all(query)
async all(query) {
const {data} = await client.get("/cotizar/precio/a-domicilio", {params: query});
return data;
},
},
aSucursal: {
// GET /cotizar/precio/a-sucursal
// envioPack.cotizar.precio.aSucursal.all(query)
async all(query) {
const {data} = await client.get("/cotizar/precio/a-sucursal", {params: query});
return data;
}
}
}
}
}