pagueveloz - Version 1.0.2

Version Notes

Bugfix:

- Listagem de estados para cadastro ao assinar gateway de boletos pelo magento;
- Re-gerar boletos com número sequenciais adicionados -N ao final do número do pedido (10001-1, 10001-2...);
- Corrigido o load de configuração ao assinar gateway de pagamento;
- Corrigido para carregar link de boleto no success utilizando bloco próprio.
- Alterado para pegar cpf (taxvat) ao gerar boleto pelo cadastro do cliente;

Download this release

Release Info

Developer Trezo
Extension pagueveloz
Version 1.0.2
Comparing to
See all releases


Code changes from version 1.0.1 to 1.0.2

app/code/community/PagueVeloz/Api/Model/Dto/BoletoDTO.php CHANGED
@@ -130,7 +130,12 @@ class PagueVeloz_Api_Model_Dto_BoletoDTO
130
 
131
  public function getLinha2()
132
  {
 
 
 
 
133
  return $this->_linha2;
 
134
  }
135
 
136
  public function getCpfCnpjCedente()
130
 
131
  public function getLinha2()
132
  {
133
+ if (Mage::getStoreConfig('payment/pagueveloz_boleto/generate_line_2')) {
134
+ return " - Ref pedido {$this->getSeuNumero()} efetuado em " . Mage::getStoreConfig('web/unsecure/base_url');
135
+ }
136
+
137
  return $this->_linha2;
138
+
139
  }
140
 
141
  public function getCpfCnpjCedente()
app/code/community/PagueVeloz/Api/Model/Observer.php CHANGED
@@ -4,6 +4,8 @@ class PagueVeloz_Api_Model_Observer {
4
 
5
  public function savePaguevelozConfig($object)
6
  {
 
 
7
  $fields = array(
8
  'name' => 'setNome',
9
  'email' => 'setEmail',
@@ -15,12 +17,20 @@ class PagueVeloz_Api_Model_Observer {
15
  'cep' => 'setCep'
16
  );
17
 
 
18
  $webservice = Mage::getModel('pagueveloz_api/webservice');
19
  $clienteDto = Mage::getModel('pagueveloz_api/dto_clienteDTO');
20
  foreach ($fields as $field => $setMethod) {
21
- $clienteDto->$setMethod(Mage::getStoreConfig("pagueveloz/pagueveloz_cliente/{$field}"));
 
 
 
22
  }
23
 
 
 
 
 
24
  $result = $webservice->atualizaCliente($clienteDto);
25
  if (!$result)
26
  Mage::getSingleton('core/session')->addNotice('Cliente salvo no pagueveloz com sucesso');
4
 
5
  public function savePaguevelozConfig($object)
6
  {
7
+ $event = $object->getEvent();
8
+
9
  $fields = array(
10
  'name' => 'setNome',
11
  'email' => 'setEmail',
17
  'cep' => 'setCep'
18
  );
19
 
20
+ $hasData = false;
21
  $webservice = Mage::getModel('pagueveloz_api/webservice');
22
  $clienteDto = Mage::getModel('pagueveloz_api/dto_clienteDTO');
23
  foreach ($fields as $field => $setMethod) {
24
+ if (Mage::getStoreConfig("pagueveloz/pagueveloz_cliente/{$field}")) {
25
+ $hasData = true;
26
+ $clienteDto->$setMethod(Mage::getStoreConfig("pagueveloz/pagueveloz_cliente/{$field}"));
27
+ }
28
  }
29
 
30
+ // Se a configuracao de endereco não é alterado/cadastrado
31
+ if (!$hasData)
32
+ return;
33
+
34
  $result = $webservice->atualizaCliente($clienteDto);
35
  if (!$result)
36
  Mage::getSingleton('core/session')->addNotice('Cliente salvo no pagueveloz com sucesso');
app/code/community/PagueVeloz/Api/Model/Source/States.php ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class PagueVeloz_Api_Model_Source_States
3
+ {
4
+
5
+ public function toOptionArray() {
6
+ $options = array(
7
+ "AC" => "Acre",
8
+ "AL" => "Alagoas",
9
+ "AP" => "Amapá",
10
+ "AM" => "Amazonas",
11
+ "BA" => "Bahia",
12
+ "CE" => "Ceará",
13
+ "DF" => "Distrito Federal",
14
+ "ES" => "Espírito Santo",
15
+ "GO" => "Goiás",
16
+ "MA" => "Maranhão",
17
+ "MT" => "Mato Grosso",
18
+ "MS" => "Mato Grosso do Sul",
19
+ "MG" => "Minas Gerais",
20
+ "PA" => "Pará",
21
+ "PB" => "Paraíba",
22
+ "PR" => "Paraná",
23
+ "PE" => "Pernambuco",
24
+ "PI" => "Piauí",
25
+ "RJ" => "Rio de Janeiro",
26
+ "RN" => "Rio Grande do Norte",
27
+ "RS" => "Rio Grande do Sul",
28
+ "RO" => "Rondônia",
29
+ "SC" => "Santa Catarina",
30
+ "RR" => "Roraima",
31
+ "SP" => "São Paulo",
32
+ "SE" => "Sergipe",
33
+ "TO" => "Tocantins"
34
+ );
35
+
36
+ return $options;
37
+ }
38
+
39
+ }
app/code/community/PagueVeloz/Api/Model/Webservice.php CHANGED
@@ -157,7 +157,7 @@ class PagueVeloz_Api_Model_Webservice extends Mage_Core_Model_Abstract
157
  $dto->setCpfCnpjSacado($cpf);
158
  $dto->setParcela(1);
159
  $dto->setLinha1($boletoMethod->getConfig('instruction1'));
160
- $dto->setLinha2($boletoMethod->getConfig('instruction1'));
161
  $dto->setCpfCnpjCedente($boletoMethod->getConfig('taxvat'));
162
  $dto->setCedente($boletoMethod->getConfig('cedente_name'));
163
  $resposta_final = $boleto->Post($dto);
157
  $dto->setCpfCnpjSacado($cpf);
158
  $dto->setParcela(1);
159
  $dto->setLinha1($boletoMethod->getConfig('instruction1'));
160
+ $dto->setLinha2($boletoMethod->getConfig('instruction2'));
161
  $dto->setCpfCnpjCedente($boletoMethod->getConfig('taxvat'));
162
  $dto->setCedente($boletoMethod->getConfig('cedente_name'));
163
  $resposta_final = $boleto->Post($dto);
app/code/community/PagueVeloz/Api/Model/Webservice/Assinar.php CHANGED
@@ -38,7 +38,6 @@ class PagueVeloz_Api_Model_Webservice_Assinar extends PagueVeloz_Api_Model_Webse
38
  $json = json_encode($json);
39
 
40
  $contexto->setBody($json);
41
-
42
  return $this->getMachine()->Send($contexto);
43
  }
44
 
38
  $json = json_encode($json);
39
 
40
  $contexto->setBody($json);
 
41
  return $this->getMachine()->Send($contexto);
42
  }
43
 
app/code/community/PagueVeloz/Api/controllers/Adminhtml/PaguevelozController.php CHANGED
@@ -28,6 +28,8 @@ class PagueVeloz_Api_Adminhtml_PaguevelozController extends Mage_Adminhtml_Contr
28
 
29
  $config = new Mage_Core_Model_Config();
30
  $config->saveConfig('pagueveloz/pagueveloz_configuration/production', $isProduction);
 
 
31
 
32
  try {
33
  $webservice = Mage::getModel('pagueveloz_api/webservice');
28
 
29
  $config = new Mage_Core_Model_Config();
30
  $config->saveConfig('pagueveloz/pagueveloz_configuration/production', $isProduction);
31
+ Mage::app()->getConfig()->reinit(); // Reinicia as configuracoes do magento do getConfig
32
+
33
 
34
  try {
35
  $webservice = Mage::getModel('pagueveloz_api/webservice');
app/code/community/PagueVeloz/Boleto/Block/Onepage/Success.php CHANGED
@@ -1,5 +1,4 @@
1
  <?php
2
-
3
  class PagueVeloz_Boleto_Block_Onepage_Success extends Mage_Checkout_Block_Onepage_Success
4
  {
5
 
1
  <?php
 
2
  class PagueVeloz_Boleto_Block_Onepage_Success extends Mage_Checkout_Block_Onepage_Success
3
  {
4
 
app/code/community/PagueVeloz/Boleto/Model/Boleto.php CHANGED
@@ -44,14 +44,14 @@ class PagueVeloz_Boleto_Model_Boleto extends Mage_Core_Model_Abstract
44
 
45
  $_order = Mage::getModel('sales/order')->load($this->getOrderId());
46
  try {
47
- $_boletosData = $boletoMethod->getBoletoPago($_order->getIncrementId());
48
  if ($_boletosData) {
49
  foreach ($_boletosData as $_boleto) {
50
 
51
- if (($_boleto->SeuNumero == $_order->getIncrementId()) && $_boleto->TemPagamento) {
52
  $_order->setStatus($boletoMethod->getOrderStatus())
53
  ->setState($boletoMethod->getOrderStatus())
54
- ->addStatusHistoryComment("BOLETO PAGO EM: {$_boleto->DataPagamento} | {$_boleto->ValorPago} R$")
55
  ->save();
56
 
57
  $this->setStatus('pago')
@@ -61,7 +61,7 @@ class PagueVeloz_Boleto_Model_Boleto extends Mage_Core_Model_Abstract
61
 
62
  $_boleto->Status = 'pago';
63
 
64
- $boletoMethod->log("[{$_order->getIncrementId()}] Boleto Pago | ID: " . $_boleto->Id . " | URL: " . $_boleto->Url);
65
  return $_boleto;
66
  }
67
  }
@@ -73,10 +73,11 @@ class PagueVeloz_Boleto_Model_Boleto extends Mage_Core_Model_Abstract
73
 
74
  public function generate($order)
75
  {
 
76
  $valor = $order->getGrandTotal();
77
  $seuNumero = $order->getIncrementId();
78
  $nome = $order->getCustomerName();
79
- $cpf = $order->getCustomerTaxvat();
80
  $email = $order->getCustomerEmail();
81
  $boleto = $this->loadByOrderId($order->getId());
82
  if (!$boleto->getId()) {
@@ -86,6 +87,7 @@ class PagueVeloz_Boleto_Model_Boleto extends Mage_Core_Model_Abstract
86
  $this->setUrl($url);
87
  $this->setValor($valor);
88
  $this->setOrderId($order->getId());
 
89
  $this->saveWithConfigData();
90
  }
91
 
@@ -97,11 +99,14 @@ class PagueVeloz_Boleto_Model_Boleto extends Mage_Core_Model_Abstract
97
 
98
  public function regenerate()
99
  {
100
- $webservice = Mage::getModel('pagueveloz_api/webservice');
101
  $order = $this->getOrder();
102
- $seuNumero = $order->getIncrementId();
 
 
 
103
  $nome = $order->getCustomerName();
104
- $cpf = $order->getCustomerTaxvat();
105
  $email = $order->getCustomerEmail();
106
 
107
  $url = $webservice->generateBoletoUrl($this->getValor(), $seuNumero, $nome, $cpf, $email);
44
 
45
  $_order = Mage::getModel('sales/order')->load($this->getOrderId());
46
  try {
47
+ $_boletosData = $boletoMethod->getBoletoPago($this->getSeuNumero());
48
  if ($_boletosData) {
49
  foreach ($_boletosData as $_boleto) {
50
 
51
+ if (($_boleto->SeuNumero == $this->getSeuNumero()) && $_boleto->TemPagamento) {
52
  $_order->setStatus($boletoMethod->getOrderStatus())
53
  ->setState($boletoMethod->getOrderStatus())
54
+ ->addStatusHistoryComment("BOLETO PAGO EM: {$_boleto->DataPagamento} | R$ {$_boleto->ValorPago}")
55
  ->save();
56
 
57
  $this->setStatus('pago')
61
 
62
  $_boleto->Status = 'pago';
63
 
64
+ $boletoMethod->log("[{$this->getSeuNumero()}] Boleto Pago | ID: " . $_boleto->Id . " | URL: " . $_boleto->Url);
65
  return $_boleto;
66
  }
67
  }
73
 
74
  public function generate($order)
75
  {
76
+ $customer = Mage::getModel("customer/customer")->load($order->getCustomerId());
77
  $valor = $order->getGrandTotal();
78
  $seuNumero = $order->getIncrementId();
79
  $nome = $order->getCustomerName();
80
+ $cpf = $customer->getTaxvat();
81
  $email = $order->getCustomerEmail();
82
  $boleto = $this->loadByOrderId($order->getId());
83
  if (!$boleto->getId()) {
87
  $this->setUrl($url);
88
  $this->setValor($valor);
89
  $this->setOrderId($order->getId());
90
+ $this->setSeuNumero($seuNumero);
91
  $this->saveWithConfigData();
92
  }
93
 
99
 
100
  public function regenerate()
101
  {
102
+ $this->setQtyRegerado($this->getQtyRegerado()+1);
103
  $order = $this->getOrder();
104
+ $customer = Mage::getModel("customer/customer")->load($order->getCustomerId());
105
+ $webservice = Mage::getModel('pagueveloz_api/webservice');
106
+ $seuNumero = $order->getIncrementId() . "-" . $this->getQtyRegerado();
107
+ $this->setSeuNumero($seuNumero);
108
  $nome = $order->getCustomerName();
109
+ $cpf = $customer->getTaxvat();
110
  $email = $order->getCustomerEmail();
111
 
112
  $url = $webservice->generateBoletoUrl($this->getValor(), $seuNumero, $nome, $cpf, $email);
app/code/community/PagueVeloz/Boleto/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <PagueVeloz_Boleto>
5
- <version>1.0.1</version>
6
  </PagueVeloz_Boleto>
7
  </modules>
8
  <global>
2
  <config>
3
  <modules>
4
  <PagueVeloz_Boleto>
5
+ <version>1.0.2</version>
6
  </PagueVeloz_Boleto>
7
  </modules>
8
  <global>
app/code/community/PagueVeloz/Boleto/etc/system.xml CHANGED
@@ -81,6 +81,19 @@
81
  <show_in_website>1</show_in_website>
82
  <show_in_store>0</show_in_store>
83
  </vencimento>
 
 
 
 
 
 
 
 
 
 
 
 
 
84
  <instruction1 translate="label">
85
  <label>Instrução primeira linha</label>
86
  <frontend_type>text</frontend_type>
@@ -96,6 +109,7 @@
96
  <show_in_default>1</show_in_default>
97
  <show_in_website>1</show_in_website>
98
  <show_in_store>0</show_in_store>
 
99
  </instruction2>
100
  </fields>
101
  </pagueveloz_boleto>
81
  <show_in_website>1</show_in_website>
82
  <show_in_store>0</show_in_store>
83
  </vencimento>
84
+ <generate_line_2 translate="label">
85
+ <label>Gerar informações na segunda linha?</label>
86
+ <frontend_type>select</frontend_type>
87
+ <source_model>adminhtml/system_config_source_yesno</source_model>
88
+ <sort_order>475</sort_order>
89
+ <show_in_default>1</show_in_default>
90
+ <show_in_website>1</show_in_website>
91
+ <show_in_store>0</show_in_store>
92
+ <comment>
93
+ Na segunda linha do boleto irá as informações do pedido.
94
+ Ex.: Ref pedido 100000002 efetuado em www.trezo.com.br
95
+ </comment>
96
+ </generate_line_2>
97
  <instruction1 translate="label">
98
  <label>Instrução primeira linha</label>
99
  <frontend_type>text</frontend_type>
109
  <show_in_default>1</show_in_default>
110
  <show_in_website>1</show_in_website>
111
  <show_in_store>0</show_in_store>
112
+ <depends><generate_line_2>0</generate_line_2></depends>
113
  </instruction2>
114
  </fields>
115
  </pagueveloz_boleto>
app/code/community/PagueVeloz/Boleto/sql/pagueveloz_boleto_setup/mysql4-upgrade-1.0.1-1.0.2.php ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // here are the table creation for this module e.g.:
4
+ $this->startSetup();
5
+ $this->run("
6
+ ALTER TABLE {$this->getTable('pagueveloz_boleto')} ADD qty_regerado int;
7
+ ALTER TABLE {$this->getTable('pagueveloz_boleto')} ADD seu_numero text;
8
+ ");
9
+ $this->endSetup();
app/design/adminhtml/default/default/template/pagueveloz/js.phtml CHANGED
@@ -21,6 +21,7 @@
21
  cadastrarWindow += '<td class="label"><label for="pagueveloz_pagueveloz_configuration_token">Nome</label></td>';
22
  cadastrarWindow += '<td class="value">';
23
  cadastrarWindow += '<input type="text" class=" input-text" value="" name="name" id="name">';
 
24
  cadastrarWindow += '</td>';
25
  cadastrarWindow += "</tr>";
26
  cadastrarWindow += '<tr id="row_pagueveloz_pagueveloz_configuration_token">';
@@ -62,7 +63,16 @@
62
  cadastrarWindow += '<tr id="row_pagueveloz_pagueveloz_configuration_token">';
63
  cadastrarWindow += '<td class="label"><label for="pagueveloz_pagueveloz_configuration_token">Estado</label></td>';
64
  cadastrarWindow += '<td class="value">';
65
- cadastrarWindow += '<input type="text" class=" input-text" value="" name="state" id="state">';
 
 
 
 
 
 
 
 
 
66
  cadastrarWindow += '</td>';
67
  cadastrarWindow += "</tr>";
68
  cadastrarWindow += '<tr id="row_pagueveloz_pagueveloz_configuration_token">';
21
  cadastrarWindow += '<td class="label"><label for="pagueveloz_pagueveloz_configuration_token">Nome</label></td>';
22
  cadastrarWindow += '<td class="value">';
23
  cadastrarWindow += '<input type="text" class=" input-text" value="" name="name" id="name">';
24
+ cadastrarWindow += '<p class="note"><span>Sem Acentuação, ex: Joao da Silva</span></p>';
25
  cadastrarWindow += '</td>';
26
  cadastrarWindow += "</tr>";
27
  cadastrarWindow += '<tr id="row_pagueveloz_pagueveloz_configuration_token">';
63
  cadastrarWindow += '<tr id="row_pagueveloz_pagueveloz_configuration_token">';
64
  cadastrarWindow += '<td class="label"><label for="pagueveloz_pagueveloz_configuration_token">Estado</label></td>';
65
  cadastrarWindow += '<td class="value">';
66
+ cadastrarWindow += '<select name="state" id="state">';
67
+ <?php
68
+ $estados = new PagueVeloz_Api_Model_Source_States();
69
+ $estados = $estados->toOptionArray();
70
+ ?>
71
+ cadastrarWindow += '<option value="">Selecione...</option>';
72
+ <?php foreach ($estados as $sigla => $name): ?>
73
+ cadastrarWindow += '<option value="<?php echo $sigla; ?>"><?php echo $name ?></option>';
74
+ <?php endforeach; ?>
75
+ cadastrarWindow += '</select>';
76
  cadastrarWindow += '</td>';
77
  cadastrarWindow += "</tr>";
78
  cadastrarWindow += '<tr id="row_pagueveloz_pagueveloz_configuration_token">';
app/design/frontend/base/default/layout/pagueveloz_boleto.xml CHANGED
@@ -3,7 +3,7 @@
3
  <checkout_onepage_success translate="label">
4
  <reference name="content">
5
  <reference name="checkout.success">
6
- <block type="pagueveloz/onepage_success" name="pagueveloz_boleto" template="pagueveloz_boleto/success.phtml" />
7
  </reference>
8
  </reference>
9
  </checkout_onepage_success>
3
  <checkout_onepage_success translate="label">
4
  <reference name="content">
5
  <reference name="checkout.success">
6
+ <block type="pagueveloz_boleto/onepage_success" name="pagueveloz_boleto" template="pagueveloz_boleto/success.phtml" />
7
  </reference>
8
  </reference>
9
  </checkout_onepage_success>
app/design/frontend/base/default/template/pagueveloz_boleto/success.phtml CHANGED
@@ -1,3 +1,4 @@
 
1
  <?php
2
  $incrementId = $this->getOrderId();
3
 
@@ -11,10 +12,13 @@ if ($incrementId) {
11
  $boleto = Mage::getModel('pagueveloz_boleto/boleto')->generate($order);
12
 
13
  if ($boleto->getId()) {
14
- echo "<a href=\"{$boleto->getUrl()}\" target=\"_blank\">Imprimir Boleto</a>";
 
 
 
15
  }
16
  else {
17
- echo "<b>Não foi possível gerar o Boleto<br>"
18
  . "Favor contate o administrador do site</b>";
19
  }
20
  }
@@ -23,4 +27,5 @@ if ($incrementId) {
23
  }
24
  }
25
  }
26
- ?>
 
1
+ <br /><br />
2
  <?php
3
  $incrementId = $this->getOrderId();
4
 
12
  $boleto = Mage::getModel('pagueveloz_boleto/boleto')->generate($order);
13
 
14
  if ($boleto->getId()) {
15
+ echo "<a href=\"{$boleto->getUrl()}\" target=\"_blank\">Imprimir Boleto</a> <br /><br />";
16
+ if (Mage::getModel('pagueveloz_boleto/boletoMethod')->getConfig('send_email')) {
17
+ echo "Você reberá um e-mail com informações do boleto emitido pelo PagueVeloz";
18
+ }
19
  }
20
  else {
21
+ echo "<b>Não foi possível gerar o Boleto<br />"
22
  . "Favor contate o administrador do site</b>";
23
  }
24
  }
27
  }
28
  }
29
  }
30
+ ?>
31
+ <br /><br />
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>pagueveloz</name>
4
- <version>1.0.1</version>
5
  <stability>stable</stability>
6
  <license>Open Software License (OSL)</license>
7
  <channel>community</channel>
@@ -31,12 +31,15 @@ Envia SMS para o cliente sobre as suas transa&#xE7;&#xF5;es.&#xD;
31
  - Regerar boletos para o pedido pelo painel administrativo</description>
32
  <notes>Bugfix:&#xD;
33
  &#xD;
34
- - Vers&#xE3;o alpha&#xD;
35
- - Corre&#xE7;&#xF5;es de bugs</notes>
 
 
 
36
  <authors><author><name>Trezo</name><user>trezo</user><email>contato@trezo.com.br</email></author><author><name>Andr&#xE9; Felipe</name><user>AndrewDaluz</user><email>andrew.daluz@gmail.com</email></author></authors>
37
- <date>2015-05-15</date>
38
- <time>17:06:25</time>
39
- <contents><target name="magecommunity"><dir name="PagueVeloz"><dir name="Api"><dir name="Helper"><file name="Data.php" hash="5dd22a3dfaaec130dedf9beb9c7582c7"/></dir><dir name="Model"><dir name="Common"><file name="HttpContext.php" hash="87b8a23bb37ce28c8d133141f7192ea4"/><file name="HttpResponse.php" hash="8824a5b81f241eba95d1bb05eeaa2445"/></dir><dir name="Dto"><file name="AssinarDTO.php" hash="9f973ca8adbf9f03cfb49ff9945ab843"/><file name="AuthenticationDTO.php" hash="32adad741bd0488f153b6742b8ae05ef"/><file name="BoletoDTO.php" hash="afe1f52f9dc81166edefde5001a19552"/><file name="ClienteDTO.php" hash="68cc74cbe60d3aca11512cf428329e0e"/><file name="ComprarCreditosSMSDTO.php" hash="23faffe9ba86409a9baee5e9d5dc2d10"/><file name="ConsultarBoletoDTO.php" hash="d40d21746ddb2b5600b1126418c12126"/><file name="ConsultarClienteDTO.php" hash="81f0d0efd6c628e58036f411dcf4e54f"/><file name="ContaBancariaDTO.php" hash="ec010aca621bd4bd999d6a8690da3d73"/><file name="ContaDTO.php" hash="979c4cd877a5f4fe171741519d543837"/><file name="CreditoSMSDTO.php" hash="dc8ab72c5ce940fdf4703878e75af13b"/><file name="EmailDTO.php" hash="b59163a5e46981ad4f6766160de5b4f9"/><file name="EmitirBoletoDTO.php" hash="d643c25c36bdd9d84e047962a0206162"/><file name="MensagemSMSDTO.php" hash="1e82c6ebd460e71ed3d7f49229b324a7"/><file name="PacotesSMSDTO.php" hash="dc72eb8777fbb05f31a9545504ab0211"/><file name="SaqueDTO.php" hash="3088396e76abbcba0a0dd8946e74b849"/><file name="TransferenciaDTO.php" hash="4ec678f2308cca18ecc1ba4839e316f4"/></dir><dir name="Exceptions"><file name="ArgumentNullException.php" hash="849eab61181df20d28c76d27f90ea4e6"/><file name="InvalidEmailException.php" hash="78f26c55091d93311c561a3b82d23ede"/><file name="InvalidHostException.php" hash="1604677bc1ae445e078beb5c7eba3847"/><file name="InvalidJSONException.php" hash="802ef96e2f52fa168c3fb970e0f6c778"/><file name="InvalidMethodException.php" hash="a00a3f9e2ee43d7c2221c7fd87ec47d7"/><file name="InvalidValueException.php" hash="fd91721837c1a2b9d3762e0fd5b8c27c"/></dir><dir name="Interfaces"><file name="IHttpClient.php" hash="b4f3d163a7a5ee4e5f5a7ea6d132f3ed"/></dir><file name="Observer.php" hash="36a02938d94d9c37ebbbda239d359c40"/><dir name="Services"><file name="Curl.php" hash="c73fb2938c780fc7a652d86cff68b635"/></dir><dir name="Webservice"><file name="Assinar.php" hash="858816fe88e8af31f880d0e59af2e654"/><file name="Boleto.php" hash="5384f5fced8a083fe926e053ff1e6abc"/><file name="Cliente.php" hash="292297b56176d88033bd87064336fc07"/><file name="ComprarCreditosSMS.php" hash="805465acad1fa70fc0f0ca0164dbfd2a"/><file name="ConsultarBoleto.php" hash="4237724947a67f76cdeda0d261c3ddd7"/><file name="ConsultarCliente.php" hash="e1122f61ad83d0f83be61b58a8f3840a"/><file name="Conta.php" hash="20b39c7d57b5967be343f0ddfc54c4a9"/><file name="ContaBancaria.php" hash="9b9536d4e242755c42d104c5ca821747"/><file name="CreditoSMS.php" hash="e14cffd70ae25de85fdc385347d0ec55"/><file name="EmitirBoleto.php" hash="3a18a5f5dfec23ade179404a5b7612f2"/><file name="MensagemSMS.php" hash="7997c50d8e6295302c067b7ec0330f4c"/><file name="PacotesSMS.php" hash="ec8ca595e5dc6c4b44326f263ec0da59"/><file name="PagueVeloz.php" hash="22919d70c45a616760e1c54c34ae246b"/><file name="Saldo.php" hash="44cc18583e198e38f4dff2da7d28cded"/><file name="Saque.php" hash="d34c5726993945445e327f6f794ed8aa"/><file name="Transferencia.php" hash="a0e41d439c92ac87c7480b42ef35cbf2"/></dir><file name="Webservice.php" hash="1e3d9cd27f51fbc61b263af3adad76ae"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="PaguevelozController.php" hash="9ca1888e2bda4974d18e09799b79be04"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="9c7b1a6fdcd5f8406c6da0d25f6abf13"/><file name="config.xml" hash="8ef885b51b334c9ec421551d39c49510"/><file name="system.xml" hash="9dd946555687576e913a62c0da089bfd"/></dir></dir><dir name="Boleto"><dir name="Block"><dir name="Adminhtml"><file name="Content.php" hash="4cef37b3e9506ef93e535a6635fe6e0e"/><file name="Js.php" hash="70cffb7e203a75ba2fdddfa4b88b3ac5"/><dir name="Sales"><dir name="Order"><dir name="View"><dir name="Tab"><file name="Boleto.php" hash="311d65f72b67f967961725da616a120f"/></dir></dir></dir></dir></dir><dir name="Form"><file name="Boleto.php" hash="abbe1492aa0fd16117c3b565c2e57425"/></dir><dir name="Info"><file name="Boleto.php" hash="ed7f2649513be3643e929c0c2af2f98c"/></dir><dir name="Onepage"><file name="Success.php" hash="642ac439da2263e8eeea7273b6d7f655"/></dir></dir><dir name="Helper"><file name="Data.php" hash="6c396287706a2fae0fabca1f964632fc"/></dir><dir name="Model"><file name="Boleto.php" hash="286c6b096dd839c54ca6ade280fefb1b"/><file name="BoletoMethod.php" hash="0c35acba1c4a2ce0065628eb576a3711"/><file name="Cron.php" hash="2e776dd50ecbad80869419303c5a7219"/><dir name="Mysql4"><dir name="Boleto"><file name="Collection.php" hash="367a9911d7e9a98b58851e57c2556bea"/></dir><file name="Boleto.php" hash="ccd1b3c9f523236da3a7f26327ee158d"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="BoletoController.php" hash="a5e3b6fda6f793cef26dfc4a68faeac0"/><file name="ContaController.php" hash="9d4381834b4dee98effd2decdc38ed35"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="c1c2d8726d0985e26d2d96353b252161"/><file name="config.xml" hash="5949e09c93333bc3240a588358a0b115"/><file name="system.xml" hash="da4dd222df92423c06b45562a0925ac4"/></dir><dir name="sql"><dir name="pagueveloz_boleto_setup"><file name="mysql4-install-1.0.0.php" hash="95a197e8d72480a9fc2304e05808c7f1"/><file name="mysql4-upgrade-1.0.0-1.0.1.php" hash="55024d5f3b074e2302a57850a290bfad"/></dir></dir></dir><dir name="Sms"><dir name="Block"><dir name="Adminhtml"><file name="Content.php" hash="bb303d97dbdb73f0dd9672ae9457d470"/><file name="Js.php" hash="ba85fce0c0ef747e3cb2d5f9871c569a"/></dir></dir><dir name="Helper"><file name="Data.php" hash="c8018e7556f54eaf875bbe6f30630984"/></dir><dir name="Model"><file name="Cron.php" hash="4b2410d50a29f97a95e004bf374a4abd"/><dir name="Mysql4"><dir name="Sms"><file name="Collection.php" hash="b892e920b4e6c72ffad043d6136983e6"/></dir><file name="Sms.php" hash="cea8e93d288a3166ede32788212db818"/><dir name="Template"><file name="Collection.php" hash="f3f10f9a36161a00fd68b7d4c3938f8d"/></dir><file name="Template.php" hash="b23a4c8d530dd9c3bbe47f01c6c80ae4"/></dir><file name="Observer.php" hash="5ace26216c02db7fd4129924be66db2e"/><file name="Sms.php" hash="92bb8f32b0aca393af078745d5d71767"/><file name="Template.php" hash="4f6a500e1af540e03592a4416e71635b"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="SmsController.php" hash="37b3d3d6f72de79963bed53d7532591a"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="dac3f4eed8cefa32fadee773d4595208"/><file name="config.xml" hash="5adcbfdd6bfd9fad96c1a3f89478cf44"/><file name="system.xml" hash="134ddc80172a4c408d1f808e0730b41f"/></dir><dir name="sql"><dir name="pagueveloz_sms_setup"><file name="mysql4-install-1.0.0.php" hash="4a1e0fa19e30245ea70fe2319fbf901e"/><file name="mysql4-upgrade-1.0.0-1.0.1.php" hash="f206b98382ba544fb6dd60d7303eb2fc"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="pagueveloz_boleto.xml" hash="04bb884d0171f1018a9e21454cf3043e"/><file name="pagueveloz_sms.xml" hash="c4a3fd25cf57dd2f56e780211d981eb4"/></dir><dir name="template"><dir name="pagueveloz"><file name="boleto.phtml" hash="e331797b39ab943901d80da065b80c5a"/><file name="js.phtml" hash="de6c17cda6232df7ebae66c8cf2ea101"/></dir><dir name="pagueveloz_boleto"><file name="content.phtml" hash="53eeb2e00dec472ed8ed9d682eada203"/><file name="js.phtml" hash="7840ba742ba5375d34e5ee26452b4205"/></dir><dir name="pagueveloz_sms"><file name="content.phtml" hash="a55f737503bd54251c0f632db433caa6"/><file name="js.phtml" hash="dbfbb647452be17a39d94d3dff8e1dc2"/></dir><dir name="payment"><dir name="info"><file name="pagueveloz_boleto.phtml" hash="a6dc876486a849067454a3be07504a46"/></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="pagueveloz_boleto.xml" hash="f8e6caa105f8fe79e27fd2f3de742d0e"/></dir><dir name="template"><dir name="pagueveloz_boleto"><file name="success.phtml" hash="097a7f7015d0616b3f038992f915e55b"/></dir><dir name="payment"><dir name="form"><file name="pagueveloz_boleto.phtml" hash="9916b6426aeb0948e3910297594e06d2"/></dir><dir name="info"><file name="pagueveloz_boleto.phtml" hash="4abc3db354de1164cdbf64116877b8a8"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="PagueVeloz_All.xml" hash="fb817a06d78e0b2d688cbece00082b61"/></dir></target></contents>
40
  <compatible/>
41
  <dependencies><required><php><min>4.3.0</min><max>6.2.0</max></php></required></dependencies>
42
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>pagueveloz</name>
4
+ <version>1.0.2</version>
5
  <stability>stable</stability>
6
  <license>Open Software License (OSL)</license>
7
  <channel>community</channel>
31
  - Regerar boletos para o pedido pelo painel administrativo</description>
32
  <notes>Bugfix:&#xD;
33
  &#xD;
34
+ - Listagem de estados para cadastro ao assinar gateway de boletos pelo magento;&#xD;
35
+ - Re-gerar boletos com n&#xFA;mero sequenciais adicionados -N ao final do n&#xFA;mero do pedido (10001-1, 10001-2...);&#xD;
36
+ - Corrigido o load de configura&#xE7;&#xE3;o ao assinar gateway de pagamento;&#xD;
37
+ - Corrigido para carregar link de boleto no success utilizando bloco pr&#xF3;prio.&#xD;
38
+ - Alterado para pegar cpf (taxvat) ao gerar boleto pelo cadastro do cliente;</notes>
39
  <authors><author><name>Trezo</name><user>trezo</user><email>contato@trezo.com.br</email></author><author><name>Andr&#xE9; Felipe</name><user>AndrewDaluz</user><email>andrew.daluz@gmail.com</email></author></authors>
40
+ <date>2015-05-18</date>
41
+ <time>13:05:00</time>
42
+ <contents><target name="magecommunity"><dir name="PagueVeloz"><dir name="Api"><dir name="Helper"><file name="Data.php" hash="5dd22a3dfaaec130dedf9beb9c7582c7"/></dir><dir name="Model"><dir name="Common"><file name="HttpContext.php" hash="87b8a23bb37ce28c8d133141f7192ea4"/><file name="HttpResponse.php" hash="8824a5b81f241eba95d1bb05eeaa2445"/></dir><dir name="Dto"><file name="AssinarDTO.php" hash="9f973ca8adbf9f03cfb49ff9945ab843"/><file name="AuthenticationDTO.php" hash="32adad741bd0488f153b6742b8ae05ef"/><file name="BoletoDTO.php" hash="305cde3edf6251336764c877d7f0dc36"/><file name="ClienteDTO.php" hash="68cc74cbe60d3aca11512cf428329e0e"/><file name="ComprarCreditosSMSDTO.php" hash="23faffe9ba86409a9baee5e9d5dc2d10"/><file name="ConsultarBoletoDTO.php" hash="d40d21746ddb2b5600b1126418c12126"/><file name="ConsultarClienteDTO.php" hash="81f0d0efd6c628e58036f411dcf4e54f"/><file name="ContaBancariaDTO.php" hash="ec010aca621bd4bd999d6a8690da3d73"/><file name="ContaDTO.php" hash="979c4cd877a5f4fe171741519d543837"/><file name="CreditoSMSDTO.php" hash="dc8ab72c5ce940fdf4703878e75af13b"/><file name="EmailDTO.php" hash="b59163a5e46981ad4f6766160de5b4f9"/><file name="EmitirBoletoDTO.php" hash="d643c25c36bdd9d84e047962a0206162"/><file name="MensagemSMSDTO.php" hash="1e82c6ebd460e71ed3d7f49229b324a7"/><file name="PacotesSMSDTO.php" hash="dc72eb8777fbb05f31a9545504ab0211"/><file name="SaqueDTO.php" hash="3088396e76abbcba0a0dd8946e74b849"/><file name="TransferenciaDTO.php" hash="4ec678f2308cca18ecc1ba4839e316f4"/></dir><dir name="Exceptions"><file name="ArgumentNullException.php" hash="849eab61181df20d28c76d27f90ea4e6"/><file name="InvalidEmailException.php" hash="78f26c55091d93311c561a3b82d23ede"/><file name="InvalidHostException.php" hash="1604677bc1ae445e078beb5c7eba3847"/><file name="InvalidJSONException.php" hash="802ef96e2f52fa168c3fb970e0f6c778"/><file name="InvalidMethodException.php" hash="a00a3f9e2ee43d7c2221c7fd87ec47d7"/><file name="InvalidValueException.php" hash="fd91721837c1a2b9d3762e0fd5b8c27c"/></dir><dir name="Interfaces"><file name="IHttpClient.php" hash="b4f3d163a7a5ee4e5f5a7ea6d132f3ed"/></dir><file name="Observer.php" hash="1e672ee02cee0ffdb585c5a157d1aa95"/><dir name="Services"><file name="Curl.php" hash="c73fb2938c780fc7a652d86cff68b635"/></dir><dir name="Source"><file name="States.php" hash="e2c1ee6aaa6c5ee930e619a2de13f929"/></dir><dir name="Webservice"><file name="Assinar.php" hash="d7f6ff66c4c07cff0cdc68d357eced9c"/><file name="Boleto.php" hash="5384f5fced8a083fe926e053ff1e6abc"/><file name="Cliente.php" hash="292297b56176d88033bd87064336fc07"/><file name="ComprarCreditosSMS.php" hash="805465acad1fa70fc0f0ca0164dbfd2a"/><file name="ConsultarBoleto.php" hash="4237724947a67f76cdeda0d261c3ddd7"/><file name="ConsultarCliente.php" hash="e1122f61ad83d0f83be61b58a8f3840a"/><file name="Conta.php" hash="20b39c7d57b5967be343f0ddfc54c4a9"/><file name="ContaBancaria.php" hash="9b9536d4e242755c42d104c5ca821747"/><file name="CreditoSMS.php" hash="e14cffd70ae25de85fdc385347d0ec55"/><file name="EmitirBoleto.php" hash="3a18a5f5dfec23ade179404a5b7612f2"/><file name="MensagemSMS.php" hash="7997c50d8e6295302c067b7ec0330f4c"/><file name="PacotesSMS.php" hash="ec8ca595e5dc6c4b44326f263ec0da59"/><file name="PagueVeloz.php" hash="22919d70c45a616760e1c54c34ae246b"/><file name="Saldo.php" hash="44cc18583e198e38f4dff2da7d28cded"/><file name="Saque.php" hash="d34c5726993945445e327f6f794ed8aa"/><file name="Transferencia.php" hash="a0e41d439c92ac87c7480b42ef35cbf2"/></dir><file name="Webservice.php" hash="cd676d2dc2fa4d18ab68503f3f8d6a94"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="PaguevelozController.php" hash="05bea1a4ac58edb59bbac81f73dc28dd"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="9c7b1a6fdcd5f8406c6da0d25f6abf13"/><file name="config.xml" hash="8ef885b51b334c9ec421551d39c49510"/><file name="system.xml" hash="9dd946555687576e913a62c0da089bfd"/></dir></dir><dir name="Boleto"><dir name="Block"><dir name="Adminhtml"><file name="Content.php" hash="4cef37b3e9506ef93e535a6635fe6e0e"/><file name="Js.php" hash="70cffb7e203a75ba2fdddfa4b88b3ac5"/><dir name="Sales"><dir name="Order"><dir name="View"><dir name="Tab"><file name="Boleto.php" hash="311d65f72b67f967961725da616a120f"/></dir></dir></dir></dir></dir><dir name="Form"><file name="Boleto.php" hash="abbe1492aa0fd16117c3b565c2e57425"/></dir><dir name="Info"><file name="Boleto.php" hash="ed7f2649513be3643e929c0c2af2f98c"/></dir><dir name="Onepage"><file name="Success.php" hash="b9cf5a95c7c5a41fb889396e86d7bde8"/></dir></dir><dir name="Helper"><file name="Data.php" hash="6c396287706a2fae0fabca1f964632fc"/></dir><dir name="Model"><file name="Boleto.php" hash="90c06c10fec00886199d522955730aa6"/><file name="BoletoMethod.php" hash="0c35acba1c4a2ce0065628eb576a3711"/><file name="Cron.php" hash="2e776dd50ecbad80869419303c5a7219"/><dir name="Mysql4"><dir name="Boleto"><file name="Collection.php" hash="367a9911d7e9a98b58851e57c2556bea"/></dir><file name="Boleto.php" hash="ccd1b3c9f523236da3a7f26327ee158d"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="BoletoController.php" hash="a5e3b6fda6f793cef26dfc4a68faeac0"/><file name="ContaController.php" hash="9d4381834b4dee98effd2decdc38ed35"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="c1c2d8726d0985e26d2d96353b252161"/><file name="config.xml" hash="62cd45e1b7544178d3ed35c0d3db5665"/><file name="system.xml" hash="259f9a9c9915e4d79bc8845aca767f72"/></dir><dir name="sql"><dir name="pagueveloz_boleto_setup"><file name="mysql4-install-1.0.0.php" hash="95a197e8d72480a9fc2304e05808c7f1"/><file name="mysql4-upgrade-1.0.0-1.0.1.php" hash="55024d5f3b074e2302a57850a290bfad"/><file name="mysql4-upgrade-1.0.1-1.0.2.php" hash="dd01cbf26c2cea6ae99b7c559b62074b"/></dir></dir></dir><dir name="Sms"><dir name="Block"><dir name="Adminhtml"><file name="Content.php" hash="bb303d97dbdb73f0dd9672ae9457d470"/><file name="Js.php" hash="ba85fce0c0ef747e3cb2d5f9871c569a"/></dir></dir><dir name="Helper"><file name="Data.php" hash="c8018e7556f54eaf875bbe6f30630984"/></dir><dir name="Model"><file name="Cron.php" hash="4b2410d50a29f97a95e004bf374a4abd"/><dir name="Mysql4"><dir name="Sms"><file name="Collection.php" hash="b892e920b4e6c72ffad043d6136983e6"/></dir><file name="Sms.php" hash="cea8e93d288a3166ede32788212db818"/><dir name="Template"><file name="Collection.php" hash="f3f10f9a36161a00fd68b7d4c3938f8d"/></dir><file name="Template.php" hash="b23a4c8d530dd9c3bbe47f01c6c80ae4"/></dir><file name="Observer.php" hash="5ace26216c02db7fd4129924be66db2e"/><file name="Sms.php" hash="92bb8f32b0aca393af078745d5d71767"/><file name="Template.php" hash="4f6a500e1af540e03592a4416e71635b"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="SmsController.php" hash="37b3d3d6f72de79963bed53d7532591a"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="dac3f4eed8cefa32fadee773d4595208"/><file name="config.xml" hash="5adcbfdd6bfd9fad96c1a3f89478cf44"/><file name="system.xml" hash="134ddc80172a4c408d1f808e0730b41f"/></dir><dir name="sql"><dir name="pagueveloz_sms_setup"><file name="mysql4-install-1.0.0.php" hash="4a1e0fa19e30245ea70fe2319fbf901e"/><file name="mysql4-upgrade-1.0.0-1.0.1.php" hash="f206b98382ba544fb6dd60d7303eb2fc"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="pagueveloz_boleto.xml" hash="04bb884d0171f1018a9e21454cf3043e"/><file name="pagueveloz_sms.xml" hash="c4a3fd25cf57dd2f56e780211d981eb4"/></dir><dir name="template"><dir name="pagueveloz"><file name="boleto.phtml" hash="e331797b39ab943901d80da065b80c5a"/><file name="js.phtml" hash="3fb8c6613b14b63792d094ea6b3e9f7b"/></dir><dir name="pagueveloz_boleto"><file name="content.phtml" hash="53eeb2e00dec472ed8ed9d682eada203"/><file name="js.phtml" hash="7840ba742ba5375d34e5ee26452b4205"/></dir><dir name="pagueveloz_sms"><file name="content.phtml" hash="a55f737503bd54251c0f632db433caa6"/><file name="js.phtml" hash="dbfbb647452be17a39d94d3dff8e1dc2"/></dir><dir name="payment"><dir name="info"><file name="pagueveloz_boleto.phtml" hash="a6dc876486a849067454a3be07504a46"/></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="pagueveloz_boleto.xml" hash="32296931b036ace56f584349d191ddce"/></dir><dir name="template"><dir name="pagueveloz_boleto"><file name="success.phtml" hash="8482aa6e187a584ea09b47811a5343f5"/></dir><dir name="payment"><dir name="form"><file name="pagueveloz_boleto.phtml" hash="9916b6426aeb0948e3910297594e06d2"/></dir><dir name="info"><file name="pagueveloz_boleto.phtml" hash="4abc3db354de1164cdbf64116877b8a8"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="PagueVeloz_All.xml" hash="fb817a06d78e0b2d688cbece00082b61"/></dir></target></contents>
43
  <compatible/>
44
  <dependencies><required><php><min>4.3.0</min><max>6.2.0</max></php></required></dependencies>
45
  </package>