Skip to content

Commit

Permalink
v0.4.1: New version commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Thiago Resende | Gerencianet committed Jan 29, 2019
1 parent 191ed34 commit 4989cf7
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 8 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# v0.4.1
- Fix: Atualização no link do boleto gerado, agora o link encaminha para um PDF.

# v0.4.0
- Delete: Bandeiras jcb, aura e discover do checkout da Gerencianet.
- Add: Bandeira hipertcard no checkout da Gerencianet.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Módulo Oficial da Gerencianet para o Magento - Versão 0.4.0
# Módulo Oficial da Gerencianet para o Magento - Versão 0.4.1

**Em caso de dúvidas, você pode verificar a [Documentação](https://docs.gerencianet.com.br) da API na Gerencianet e, necessitando de mais detalhes ou informações, entre em contato com nossa consultoria técnica, via nossos [Canais de Comunicação](https://gerencianet.com.br/central-de-ajuda).**

Expand Down
2 changes: 1 addition & 1 deletion app/code/local/Gerencianet/Transparent/Model/Billet.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function authorize(Varien_Object $payment, $amount)
if ($pay['code'] == 200) {
$add_data = unserialize($this->getOrder()->getPayment()->getAdditionalData());
$add_data['billet']['barcode'] = $pay['data']['barcode'];
$add_data['billet']['link'] = $pay['data']['link'];
$add_data['billet']['link'] = $pay['data']['pdf']['charge'];
$add_data['charge_id'] = $pay['data']['charge_id'];

$payment->setAdditionalData(serialize($add_data));
Expand Down
2 changes: 1 addition & 1 deletion app/code/local/Gerencianet/Transparent/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<config>
<modules>
<Gerencianet_Transparent>
<version>0.4.0</version>
<version>0.4.1</version>
</Gerencianet_Transparent>
</modules>

Expand Down
2 changes: 1 addition & 1 deletion app/code/local/Gerencianet/Transparent/etc/system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<show_in_store>1</show_in_store>
<fields>
<title_page translate="label">
<label>Versão do Módulo: v0.4.0</label>
<label>Versão do Módulo: v0.4.1</label>
<frontend_model>adminhtml/system_config_form_field_heading</frontend_model>
<sort_order>1</sort_order>
<show_in_default>1</show_in_default>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
$_code = $this->getMethodCode();
$isSandbox = Mage::helper('gerencianet_transparent')->isSandbox();
?>
<!-- v0.4.0 -->
<!-- v0.4.1 -->
<div class="gn-osc-billet-payment-box">
<ul class="form-list billet-payment" id="payment_form_<?php echo $_code ?>" style="display:none;">
<?php if ($this->order_total<5): ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ public function send($method, $route, $body)

try {
return $this->request->send($method, $route, ['json' => $body,
'headers' => ['Authorization' => 'Bearer '.$this->auth->accessToken, 'api-sdk' => 'magento-0.4.0', 'partner-token' => $partner_token]]);
'headers' => ['Authorization' => 'Bearer '.$this->auth->accessToken, 'api-sdk' => 'magento-0.4.1', 'partner-token' => $partner_token]]);
} catch (AuthorizationException $e) {
$this->auth->authorize();

return $this->request->send($method, $route, ['json' => $body,
'headers' => ['Authorization' => 'Bearer '.$this->auth->accessToken, 'api-sdk' => 'magento-0.4.0', 'partner-token' => $partner_token]]);
'headers' => ['Authorization' => 'Bearer '.$this->auth->accessToken, 'api-sdk' => 'magento-0.4.1', 'partner-token' => $partner_token]]);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function __construct(array $options = null)
'base_url' => $this->config['baseUri'],
'headers' => [
'Content-Type' => 'application/json',
'api-sdk' => 'magento-0.4.0',
'api-sdk' => 'magento-0.4.1',
'partner-token' => $partner_token
],
]);
Expand Down

0 comments on commit 4989cf7

Please sign in to comment.