Skip to content

Instantly share code, notes, and snippets.

Avatar

David Azevedo davixz

View GitHub Profile
View gist:5cd6447ae4db5de4bd822c674a99c57a
{
"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"
View gist:852bf6235cfbc93af6674dfd83cb1f33
{
"location_id": "3",
"provider": "loggi",
"pickups": [
{
"address": {
"address": "Rua Alberto de Sequeira, 100 - Tijuca, Rio de Janeiro - RJ, Brasil",
"complement": "8o andar"
}
},
View gist:c9f4cc6a77c09a7509ce0342e7d67a6c
{ 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' },
View gist:7611e643be46dac092dcada579aa5411
REQUEST
estimate(
shopId: 10,
packagesDestination: [
{
lat: -23.5025491,
lng: -46.69607400000001
}
]
View gist:c863fb7b588d6bf15811d732b821dbc2
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"
View gist:dd4a64f7c98b6c124b103f7561d6fa12
{
"request": {
"headers": [
"Content-Type: application/json"
],
"url": "/CreateUpdatePessoa",
"method": "POST",
"timeout_connect": 8,
"timeout": 16,
"post_data": {
View gist:0fe7ef1f5d360e89eb9c5c246f165197
{
"request": {
"headers": [
"Content-Type: application/json"
],
"url": "/CreateUpdatePessoa",
"method": "POST",
"timeout_connect": 8,
"timeout": 16,
"post_data": {
View gist:78d0dbb336be1efc5ebe3f16109c5a55
{ 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',
View gist:d8d6baf73a76468a3b649d0c73c7c6fd
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.
View gist:ba8b653b0304ac7cc8e2bbc09b323afe
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.