This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"data": { | |
"estimateCreateOrder": { | |
"totalEstimate": { | |
"totalCost": "81.04", | |
"totalEta": 2552, | |
"totalDistance": 50.18 | |
}, | |
"ordersEstimate": [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"data": { | |
"estimateCreateOrder": { | |
"totalEstimate": null, | |
"ordersEstimate": [], | |
"packagesWithErrors": [ | |
{ | |
"originalIndex": 1, | |
"error": "Local fora da área de cobertura para a cidade Nilopolis", | |
"resolvedAddress": "Av. das Américas, 4666 - Barra da Tijuca, Rio de Janeiro - RJ, 22640-102, Brazil" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"location_id": "3", | |
"provider": "loggi", | |
"pickups": [ | |
{ | |
"address": { | |
"address": "Rua Alberto de Sequeira, 100 - Tijuca, Rio de Janeiro - RJ, Brasil", | |
"complement": "8o andar" | |
} | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ installment: 1, fee: '13,50', commission: '3,00' }, | |
{ installment: 2, fee: '13,00', commission: '5,00' }, | |
{ installment: 3, fee: '12,50', commission: '5,00' }, | |
{ installment: 4, fee: '10,30', commission: '5,00' }, | |
{ installment: 5, fee: '9,00', commission: '5,00' }, | |
{ installment: 6, fee: '7,60', commission: '5,00' }, | |
{ installment: 7, fee: '7,40', commission: '6,00' }, | |
{ installment: 8, fee: '6,70', commission: '6,00' }, | |
{ installment: 9, fee: '6,00', commission: '6,00' }, | |
{ installment: 10, fee: '5,50', commission: '6,00' }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REQUEST | |
estimate( | |
shopId: 10, | |
packagesDestination: [ | |
{ | |
lat: -23.5025491, | |
lng: -46.69607400000001 | |
} | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REQUEST | |
estimateCreateOrder( | |
shopId: 1 | |
pickups: [{ | |
address: { | |
lat: -23.5703022 | |
lng: -46.6473154 | |
address: "Av. Paulista, 100 - Bela Vista, São Paulo - SP, Brasil" | |
complement: "8o andar" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"request": { | |
"headers": [ | |
"Content-Type: application/json" | |
], | |
"url": "/CreateUpdatePessoa", | |
"method": "POST", | |
"timeout_connect": 8, | |
"timeout": 16, | |
"post_data": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"request": { | |
"headers": [ | |
"Content-Type: application/json" | |
], | |
"url": "/CreateUpdatePessoa", | |
"method": "POST", | |
"timeout_connect": 8, | |
"timeout": 16, | |
"post_data": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ Error: Request failed with status code 400 | |
at createError (/var/www/newtail/newtail-logistic-hub/node_modules/axios/lib/core/createError.js:16:15) | |
at settle (/var/www/newtail/newtail-logistic-hub/node_modules/axios/lib/core/settle.js:17:12) | |
at IncomingMessage.handleStreamEnd (/var/www/newtail/newtail-logistic-hub/node_modules/axios/lib/adapters/http.js:244:11) | |
at IncomingMessage.emit (events.js:203:15) | |
at endReadableNT (_stream_readable.js:1145:12) | |
at process._tickCallback (internal/process/next_tick.js:63:19) | |
config: | |
{ url: '/?=', | |
method: 'post', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Nomeclatura | |
conta digital 'online' = saldo que esta na hub | |
conta digital 'local' = saldo que esta na 2taps (autorizador externo) | |
Vejam se é possivel, | |
Eu poderia por exemplo ter uma conta digital 'online' da empresa 2taps na hub, e deixar sempre dinheiro la, por exemplo, fazer cashin de R$ 100.000 e deixar la. | |
Sempre ir recarregando isso conforme esse saldo fosse abaixando. Nos criamos avisos e tal. |