Skip to content

Commit

Permalink
Adicionado Tipo do Frete no retorno
Browse files Browse the repository at this point in the history
Adicionado o tipo do frete no retorno. ex: "Pac", "Sedex", etc
  • Loading branch information
lucassmacedo authored Sep 11, 2020
1 parent eefba56 commit d271053
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Cagartner/CorreiosConsulta/CorreiosConsulta.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ public function frete($data, $options = [])

$return[] = [
'codigo' => (int)$rate->Codigo,
'tipo' => ucfirst(str_replace('_', '', self::getTipoIndex($rate->Codigo))),
'valor' => self::cleanMoney($rate->Valor),
'prazo' => self::cleanInteger($rate->PrazoEntrega),
'mao_propria' => self::cleanMoney($rate->ValorMaoPropria),
Expand Down

0 comments on commit d271053

Please sign in to comment.