Skip to content

Commit

Permalink
pedro-teixeira#265 Correção do build
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelpatro committed May 27, 2017
1 parent 1651f6f commit ebfb37f
Show file tree
Hide file tree
Showing 11 changed files with 256 additions and 127 deletions.
15 changes: 10 additions & 5 deletions app/code/community/PedroTeixeira/Correios/Model/Sro.php
Expand Up @@ -19,6 +19,11 @@ class PedroTeixeira_Correios_Model_Sro extends Varien_Object

protected $_trackList = array();

/**
* Retrieves all valid tracking codes
*
* @return PedroTeixeira_Correios_Model_Sro
*/
public function init()
{
$collection = $this->getShippedTracks();
Expand Down Expand Up @@ -140,7 +145,7 @@ public function getComment($obj)
/**
* Returns an Update Shipping e-mail comment
*
* @param Correios_Rastro_Objeto $obj Response Object
* @param Correios_Rastro_Objeto $obj Response Object
* @param Mage_Sales_Model_Order_Shipment_Track $track Tracking instance
*
* @return string
Expand Down Expand Up @@ -171,8 +176,8 @@ public function getEmailComment($obj, $track)
/**
* Check the event type
*
* @param Correios_Rastro_Objeto $obj Response Object
* @param string $mode Event Type Mode
* @param Correios_Rastro_Objeto $obj Response Object
* @param string $mode Event Type Mode
*
* @return boolean
*/
Expand Down Expand Up @@ -255,10 +260,10 @@ public function validateTrackNumber($trackNumber)
/**
* Retrieves the tracking instance
*
* @throws Exception
*
* @param Correios_Rastro_Objeto $obj Return Object
*
* @throws Exception
*
* @return Mage_Sales_Model_Order_Shipment_Track
*/
public function getTrack($obj)
Expand Down
24 changes: 20 additions & 4 deletions app/lib/Correios/Rastro.php
@@ -1,5 +1,16 @@
<?php

/**
* This source file is subject to the MIT License.
* It is also available through http://opensource.org/licenses/MIT
*
* @category PedroTeixeira
* @package PedroTeixeira_Correios
* @author Pedro Teixeira <hello@pedroteixeira.io>
* @copyright 2015 Pedro Teixeira (http://pedroteixeira.io)
* @license http://opensource.org/licenses/MIT MIT
* @link https://github.com/pedro-teixeira/correios
*/
class Correios_Rastro extends SoapClient
{

Expand All @@ -19,8 +30,9 @@ class Correios_Rastro extends SoapClient
'BuscaEventosResponse' => 'Correios_Rastro_BuscaEventosResponse');

/**
* @param array $options A array of config values
* @param string $wsdl The wsdl file to use
* @param array $options An array of config values
* @param string $wsdl The wsdl file to use
*
* @access public
*/
public function __construct(array $options = array(), $wsdl = 'Rastro.wsdl')
Expand All @@ -35,8 +47,10 @@ public function __construct(array $options = array(), $wsdl = 'Rastro.wsdl')
}

/**
* @param Correios_Rastro_BuscaEventos $parameters
* @param Correios_Rastro_BuscaEventos $parameters Parameters
*
* @access public
*
* @return Correios_Rastro_BuscaEventosResponse
*/
public function buscaEventos(Correios_Rastro_BuscaEventos $parameters)
Expand All @@ -45,8 +59,10 @@ public function buscaEventos(Correios_Rastro_BuscaEventos $parameters)
}

/**
* @param Correios_Rastro_BuscaEventosLista $parameters
* @param Correios_Rastro_BuscaEventosLista $parameters Parameters
*
* @access public
*
* @return Correios_Rastro_BuscaEventosListaResponse
*/
public function buscaEventosLista(Correios_Rastro_BuscaEventosLista $parameters)
Expand Down
36 changes: 24 additions & 12 deletions app/lib/Correios/Rastro/BuscaEventos.php
@@ -1,5 +1,16 @@
<?php

/**
* This source file is subject to the MIT License.
* It is also available through http://opensource.org/licenses/MIT
*
* @category PedroTeixeira
* @package PedroTeixeira_Correios
* @author Pedro Teixeira <hello@pedroteixeira.io>
* @copyright 2015 Pedro Teixeira (http://pedroteixeira.io)
* @license http://opensource.org/licenses/MIT MIT
* @link https://github.com/pedro-teixeira/correios
*/
class Correios_Rastro_BuscaEventos
{

Expand Down Expand Up @@ -40,22 +51,23 @@ class Correios_Rastro_BuscaEventos
public $objetos = null;

/**
* @param string $usuario
* @param string $senha
* @param string $tipo
* @param string $resultado
* @param string $lingua
* @param string $objetos
* @param string $usuario Username
* @param string $senha Password
* @param string $tipo Type
* @param string $resultado Result
* @param string $lingua Language
* @param string $objetos Objects
*
* @access public
*/
public function __construct($usuario, $senha, $tipo, $resultado, $lingua, $objetos)
{
$this->usuario = $usuario;
$this->senha = $senha;
$this->tipo = $tipo;
$this->resultado = $resultado;
$this->lingua = $lingua;
$this->objetos = $objetos;
$this->usuario = $usuario;
$this->senha = $senha;
$this->tipo = $tipo;
$this->resultado = $resultado;
$this->lingua = $lingua;
$this->objetos = $objetos;
}

}
36 changes: 24 additions & 12 deletions app/lib/Correios/Rastro/BuscaEventosLista.php
@@ -1,5 +1,16 @@
<?php

/**
* This source file is subject to the MIT License.
* It is also available through http://opensource.org/licenses/MIT
*
* @category PedroTeixeira
* @package PedroTeixeira_Correios
* @author Pedro Teixeira <hello@pedroteixeira.io>
* @copyright 2015 Pedro Teixeira (http://pedroteixeira.io)
* @license http://opensource.org/licenses/MIT MIT
* @link https://github.com/pedro-teixeira/correios
*/
class Correios_Rastro_BuscaEventosLista
{

Expand Down Expand Up @@ -40,22 +51,23 @@ class Correios_Rastro_BuscaEventosLista
public $objetos = null;

/**
* @param string $usuario
* @param string $senha
* @param string $tipo
* @param string $resultado
* @param string $lingua
* @param string[] $objetos
* @param string $usuario Username
* @param string $senha Password
* @param string $tipo Type
* @param string $resultado Result
* @param string $lingua Language
* @param string[] $objetos Object List
*
* @access public
*/
public function __construct($usuario, $senha, $tipo, $resultado, $lingua, $objetos)
{
$this->usuario = $usuario;
$this->senha = $senha;
$this->tipo = $tipo;
$this->resultado = $resultado;
$this->lingua = $lingua;
$this->objetos = $objetos;
$this->usuario = $usuario;
$this->senha = $senha;
$this->tipo = $tipo;
$this->resultado = $resultado;
$this->lingua = $lingua;
$this->objetos = $objetos;
}

}
16 changes: 14 additions & 2 deletions app/lib/Correios/Rastro/BuscaEventosListaResponse.php
@@ -1,5 +1,16 @@
<?php

/**
* This source file is subject to the MIT License.
* It is also available through http://opensource.org/licenses/MIT
*
* @category PedroTeixeira
* @package PedroTeixeira_Correios
* @author Pedro Teixeira <hello@pedroteixeira.io>
* @copyright 2015 Pedro Teixeira (http://pedroteixeira.io)
* @license http://opensource.org/licenses/MIT MIT
* @link https://github.com/pedro-teixeira/correios
*/
class Correios_Rastro_BuscaEventosListaResponse
{

Expand All @@ -10,12 +21,13 @@ class Correios_Rastro_BuscaEventosListaResponse
public $return = null;

/**
* @param Correios_Rastro_Sroxml $return
* @param Correios_Rastro_Sroxml $return Sroxml Object
*
* @access public
*/
public function __construct($return)
{
$this->return = $return;
$this->return = $return;
}

}
16 changes: 14 additions & 2 deletions app/lib/Correios/Rastro/BuscaEventosResponse.php
@@ -1,5 +1,16 @@
<?php

/**
* This source file is subject to the MIT License.
* It is also available through http://opensource.org/licenses/MIT
*
* @category PedroTeixeira
* @package PedroTeixeira_Correios
* @author Pedro Teixeira <hello@pedroteixeira.io>
* @copyright 2015 Pedro Teixeira (http://pedroteixeira.io)
* @license http://opensource.org/licenses/MIT MIT
* @link https://github.com/pedro-teixeira/correios
*/
class Correios_Rastro_BuscaEventosResponse
{

Expand All @@ -10,12 +21,13 @@ class Correios_Rastro_BuscaEventosResponse
public $return = null;

/**
* @param Correios_Rastro_Sroxml $return
* @param Correios_Rastro_Sroxml $return Sroxml Object
*
* @access public
*/
public function __construct($return)
{
$this->return = $return;
$this->return = $return;
}

}
32 changes: 22 additions & 10 deletions app/lib/Correios/Rastro/Destinos.php
@@ -1,5 +1,16 @@
<?php

/**
* This source file is subject to the MIT License.
* It is also available through http://opensource.org/licenses/MIT
*
* @category PedroTeixeira
* @package PedroTeixeira_Correios
* @author Pedro Teixeira <hello@pedroteixeira.io>
* @copyright 2015 Pedro Teixeira (http://pedroteixeira.io)
* @license http://opensource.org/licenses/MIT MIT
* @link https://github.com/pedro-teixeira/correios
*/
class Correios_Rastro_Destinos
{

Expand Down Expand Up @@ -34,20 +45,21 @@ class Correios_Rastro_Destinos
public $uf = null;

/**
* @param string $local
* @param string $codigo
* @param string $cidade
* @param string $bairro
* @param string $uf
* @param string $local Local
* @param string $codigo Code
* @param string $cidade City
* @param string $bairro Address
* @param string $uf Region Code
*
* @access public
*/
public function __construct($local, $codigo, $cidade, $bairro, $uf)
{
$this->local = $local;
$this->codigo = $codigo;
$this->cidade = $cidade;
$this->bairro = $bairro;
$this->uf = $uf;
$this->local = $local;
$this->codigo = $codigo;
$this->cidade = $cidade;
$this->bairro = $bairro;
$this->uf = $uf;
}

}
56 changes: 34 additions & 22 deletions app/lib/Correios/Rastro/EnderecoMobile.php
@@ -1,5 +1,16 @@
<?php

/**
* This source file is subject to the MIT License.
* It is also available through http://opensource.org/licenses/MIT
*
* @category PedroTeixeira
* @package PedroTeixeira_Correios
* @author Pedro Teixeira <hello@pedroteixeira.io>
* @copyright 2015 Pedro Teixeira (http://pedroteixeira.io)
* @license http://opensource.org/licenses/MIT MIT
* @link https://github.com/pedro-teixeira/correios
*/
class Correios_Rastro_EnderecoMobile
{

Expand Down Expand Up @@ -70,32 +81,33 @@ class Correios_Rastro_EnderecoMobile
public $celular = null;

/**
* @param string $codigo
* @param string $cep
* @param string $logradouro
* @param string $complemento
* @param string $numero
* @param string $localidade
* @param string $uf
* @param string $bairro
* @param string $latitude
* @param string $longitude
* @param string $celular
* @param string $codigo Code
* @param string $cep Zip
* @param string $logradouro Street
* @param string $complemento Street 2
* @param string $numero Number
* @param string $localidade Region
* @param string $uf Region Code
* @param string $bairro Address
* @param string $latitude Latitude
* @param string $longitude Longitude
* @param string $celular Cellphone
*
* @access public
*/
public function __construct($codigo, $cep, $logradouro, $complemento, $numero, $localidade, $uf, $bairro, $latitude, $longitude, $celular)
{
$this->codigo = $codigo;
$this->cep = $cep;
$this->logradouro = $logradouro;
$this->complemento = $complemento;
$this->numero = $numero;
$this->localidade = $localidade;
$this->uf = $uf;
$this->bairro = $bairro;
$this->latitude = $latitude;
$this->longitude = $longitude;
$this->celular = $celular;
$this->codigo = $codigo;
$this->cep = $cep;
$this->logradouro = $logradouro;
$this->complemento = $complemento;
$this->numero = $numero;
$this->localidade = $localidade;
$this->uf = $uf;
$this->bairro = $bairro;
$this->latitude = $latitude;
$this->longitude = $longitude;
$this->celular = $celular;
}

}

0 comments on commit ebfb37f

Please sign in to comment.