Skip to content

Commit

Permalink
new status
Browse files Browse the repository at this point in the history
  • Loading branch information
luannsr12 committed Mar 12, 2024
1 parent d72e85a commit 7d8457b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ Using

// RastreadorDePacotes / EncomendaIo / MelhorRastreio / etc...
// Confira na tabela os nomes das classes
Services::setServiceTracking("RastreadorDePacotes"); // Site que o sdk irá fazer a busca
Services::setServiceTracking("MelhorRastreio"); // Site que o sdk irá fazer a busca
Services::setDebug(true);

$tracking = new Tracking();
$tracking->setCode("OBJETO1");
$tracking->setCode("OBJETO2");

var_dump($tracking->get());
echo json_encode($tracking->get());



Expand Down
4 changes: 4 additions & 0 deletions src/Config/Status.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@ public static function getStatus($string)
$status = Status::STATUS_STOLEN;
break;

case 'Objeto encaminhado':
$status = Status::STATUS_MOVEMENT;
break;

case 'Objeto saiu para entrega ao remetente':
$status = Status::STATUS_OUT_DELIVERY;
break;
Expand Down

0 comments on commit 7d8457b

Please sign in to comment.