Skip to content

Commit

Permalink
bump to version 0.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelp committed Mar 8, 2015
1 parent 16d4efb commit 13eb067
Show file tree
Hide file tree
Showing 24 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Crie um arquivo chamado `composer.json` com o seguinte conteúdo:
"minimum-stability": "beta",
"prefer-stable" : true,
"require": {
"boletosimples/boletosimples": "0.0.2"
"boletosimples/boletosimples": "0.0.3"
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion src/BoletoSimples.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

class BoletoSimples {
const VERSION = "0.0.2";
const VERSION = "0.0.3";
public static $configuration = null;
public static $last_request = null;

Expand Down
2 changes: 1 addition & 1 deletion tests/BoletoSimples/ConfigurationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function testDefaults () {
}
public function testUserAgent() {
$this->subject = new BoletoSimples\Configuration();
$this->assertEquals ($this->subject->userAgent(), "BoletoSimples PHP Client v0.0.2 ([email protected])");
$this->assertEquals ($this->subject->userAgent(), "BoletoSimples PHP Client v0.0.3 ([email protected])");
}
public function testEnvironmentVariables() {
putenv('BOLETOSIMPLES_ENV=production');
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/bank_billets/all/success
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Host: sandbox.boletosimples.com.br
Accept-Encoding: null
Content-Type: application/json
User-Agent: 'BoletoSimples PHP Client v0.0.2 ([email protected])'
User-Agent: 'BoletoSimples PHP Client v0.0.3 ([email protected])'
Authorization: 'Bearer BOLETOSIMPLES_ACCESS_TOKEN'
Accept: null
response:
Expand Down
4 changes: 2 additions & 2 deletions tests/fixtures/bank_billets/cancel/success
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Host: sandbox.boletosimples.com.br
Accept-Encoding: null
Content-Type: application/json
User-Agent: 'BoletoSimples PHP Client v0.0.2 ([email protected])'
User-Agent: 'BoletoSimples PHP Client v0.0.3 ([email protected])'
Authorization: 'Bearer BOLETOSIMPLES_ACCESS_TOKEN'
Accept: null
response:
Expand Down Expand Up @@ -41,7 +41,7 @@
Content-Length: '0'
Accept-Encoding: null
Content-Type: application/json
User-Agent: 'BoletoSimples PHP Client v0.0.2 ([email protected])'
User-Agent: 'BoletoSimples PHP Client v0.0.3 ([email protected])'
Authorization: 'Bearer BOLETOSIMPLES_ACCESS_TOKEN'
Accept: null
response:
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/bank_billets/create/invalid_params
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
Expect: null
Accept-Encoding: null
Content-Type: application/json
User-Agent: 'BoletoSimples PHP Client v0.0.2 ([email protected])'
User-Agent: 'BoletoSimples PHP Client v0.0.3 ([email protected])'
Authorization: 'Bearer BOLETOSIMPLES_ACCESS_TOKEN'
Accept: null
body: '{"bank_billet":{"amount":9.1}}'
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/bank_billets/create/invalid_root
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
Expect: null
Accept-Encoding: null
Content-Type: application/json
User-Agent: 'BoletoSimples PHP Client v0.0.2 ([email protected])'
User-Agent: 'BoletoSimples PHP Client v0.0.3 ([email protected])'
Authorization: 'Bearer BOLETOSIMPLES_ACCESS_TOKEN'
Accept: null
body: '{"bank_billet":[]}'
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/bank_billets/create/success
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
Expect: null
Accept-Encoding: null
Content-Type: application/json
User-Agent: 'BoletoSimples PHP Client v0.0.2 ([email protected])'
User-Agent: 'BoletoSimples PHP Client v0.0.3 ([email protected])'
Authorization: 'Bearer BOLETOSIMPLES_ACCESS_TOKEN'
Accept: null
body: '{"bank_billet":{"amount":"9,01","description":"Despesas do contrato 0012","expire_at":"2014-01-01","customer_address":"Rua quinhentos","customer_address_complement":"Sala 4","customer_address_number":"111","customer_city_name":"Rio de Janeiro","customer_cnpj_cpf":"012.345.678-90","customer_email":"[email protected]","customer_neighborhood":"Sao Francisco","customer_person_name":"Joao da Silva","customer_person_type":"individual","customer_phone_number":"2112123434","customer_state":"RJ","customer_zipcode":"12312-123","notification_url":"http:\/\/example.com.br\/notify"}}'
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/bank_billets/find/failure
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Host: sandbox.boletosimples.com.br
Accept-Encoding: null
Content-Type: application/json
User-Agent: 'BoletoSimples PHP Client v0.0.2 ([email protected])'
User-Agent: 'BoletoSimples PHP Client v0.0.3 ([email protected])'
Authorization: 'Bearer BOLETOSIMPLES_ACCESS_TOKEN'
Accept: null
response:
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/bank_billets/find/success
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Host: sandbox.boletosimples.com.br
Accept-Encoding: null
Content-Type: application/json
User-Agent: 'BoletoSimples PHP Client v0.0.2 ([email protected])'
User-Agent: 'BoletoSimples PHP Client v0.0.3 ([email protected])'
Authorization: 'Bearer BOLETOSIMPLES_ACCESS_TOKEN'
Accept: null
response:
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/bank_billets/find/unauthenticated
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Host: sandbox.boletosimples.com.br
Accept-Encoding: null
Content-Type: application/json
User-Agent: 'BoletoSimples PHP Client v0.0.2 ([email protected])'
User-Agent: 'BoletoSimples PHP Client v0.0.3 ([email protected])'
Authorization: 'Bearer invalid'
Accept: null
response:
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/bank_billets/save/failure
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
Expect: null
Accept-Encoding: null
Content-Type: application/json
User-Agent: 'BoletoSimples PHP Client v0.0.2 ([email protected])'
User-Agent: 'BoletoSimples PHP Client v0.0.3 ([email protected])'
Authorization: 'Bearer BOLETOSIMPLES_ACCESS_TOKEN'
Accept: null
body: '{"bank_billet":{"amount":"199,99","expire_at":"2020-01-01","description":"Cobran\u00e7a XPTO"}}'
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/bank_billets/save/success
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
Expect: null
Accept-Encoding: null
Content-Type: application/json
User-Agent: 'BoletoSimples PHP Client v0.0.2 ([email protected])'
User-Agent: 'BoletoSimples PHP Client v0.0.3 ([email protected])'
Authorization: 'Bearer BOLETOSIMPLES_ACCESS_TOKEN'
Accept: null
body: '{"bank_billet":{"amount":"9,99","expire_at":"2015-01-01","customer_cnpj_cpf":"012.345.678-90","customer_person_name":"Joao da Silva","customer_zipcode":"12312-123","description":"Cobran\u00e7a XPTO"}}'
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/customers/all/success
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Host: sandbox.boletosimples.com.br
Accept-Encoding: null
Content-Type: application/json
User-Agent: 'BoletoSimples PHP Client v0.0.2 ([email protected])'
User-Agent: 'BoletoSimples PHP Client v0.0.3 ([email protected])'
Authorization: 'Bearer BOLETOSIMPLES_ACCESS_TOKEN'
Accept: null
response:
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/customers/create/invalid_params
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
Expect: null
Accept-Encoding: null
Content-Type: application/json
User-Agent: 'BoletoSimples PHP Client v0.0.2 ([email protected])'
User-Agent: 'BoletoSimples PHP Client v0.0.3 ([email protected])'
Authorization: 'Bearer BOLETOSIMPLES_ACCESS_TOKEN'
Accept: null
body: '{"customer":{"person_name":""}}'
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/customers/create/invalid_root
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
Expect: null
Accept-Encoding: null
Content-Type: application/json
User-Agent: 'BoletoSimples PHP Client v0.0.2 ([email protected])'
User-Agent: 'BoletoSimples PHP Client v0.0.3 ([email protected])'
Authorization: 'Bearer BOLETOSIMPLES_ACCESS_TOKEN'
Accept: null
body: '{"customer":[]}'
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/customers/create/success
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
Expect: null
Accept-Encoding: null
Content-Type: application/json
User-Agent: 'BoletoSimples PHP Client v0.0.2 ([email protected])'
User-Agent: 'BoletoSimples PHP Client v0.0.3 ([email protected])'
Authorization: 'Bearer BOLETOSIMPLES_ACCESS_TOKEN'
Accept: null
body: '{"customer":{"person_name":"Joao da Silva","cnpj_cpf":"321.315.217-07","email":"[email protected]","address":"Rua quinhentos","city_name":"Rio de Janeiro","state":"RJ","neighborhood":"bairro","zipcode":"12312-123","address_number":"111","address_complement":"Sala 4","phone_number":"2112123434"}}'
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/customers/find/failure
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Host: sandbox.boletosimples.com.br
Accept-Encoding: null
Content-Type: application/json
User-Agent: 'BoletoSimples PHP Client v0.0.2 ([email protected])'
User-Agent: 'BoletoSimples PHP Client v0.0.3 ([email protected])'
Authorization: 'Bearer BOLETOSIMPLES_ACCESS_TOKEN'
Accept: null
response:
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/customers/find/success
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Host: sandbox.boletosimples.com.br
Accept-Encoding: null
Content-Type: application/json
User-Agent: 'BoletoSimples PHP Client v0.0.2 ([email protected])'
User-Agent: 'BoletoSimples PHP Client v0.0.3 ([email protected])'
Authorization: 'Bearer BOLETOSIMPLES_ACCESS_TOKEN'
Accept: null
response:
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/customers/find/unauthenticated
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Host: sandbox.boletosimples.com.br
Accept-Encoding: null
Content-Type: application/json
User-Agent: 'BoletoSimples PHP Client v0.0.2 ([email protected])'
User-Agent: 'BoletoSimples PHP Client v0.0.3 ([email protected])'
Authorization: 'Bearer invalid'
Accept: null
response:
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/customers/save/failure
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
Expect: null
Accept-Encoding: null
Content-Type: application/json
User-Agent: 'BoletoSimples PHP Client v0.0.2 ([email protected])'
User-Agent: 'BoletoSimples PHP Client v0.0.3 ([email protected])'
Authorization: 'Bearer BOLETOSIMPLES_ACCESS_TOKEN'
Accept: null
body: '{"customer":{"person_name":"Joao da Silva","cnpj_cpf":"321.315.217-07"}}'
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/customers/save/success
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
Expect: null
Accept-Encoding: null
Content-Type: application/json
User-Agent: 'BoletoSimples PHP Client v0.0.2 ([email protected])'
User-Agent: 'BoletoSimples PHP Client v0.0.3 ([email protected])'
Authorization: 'Bearer BOLETOSIMPLES_ACCESS_TOKEN'
Accept: null
body: '{"customer":{"cnpj_cpf":"828.788.171-41","person_name":"Joao da Silva","zipcode":"12312-123"}}'
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/extra/userinfo
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Host: sandbox.boletosimples.com.br
Accept-Encoding: null
Content-Type: application/json
User-Agent: 'BoletoSimples PHP Client v0.0.2 ([email protected])'
User-Agent: 'BoletoSimples PHP Client v0.0.3 ([email protected])'
Authorization: 'Bearer BOLETOSIMPLES_ACCESS_TOKEN'
Accept: null
response:
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/transactions/all
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Host: sandbox.boletosimples.com.br
Accept-Encoding: null
Content-Type: application/json
User-Agent: 'BoletoSimples PHP Client v0.0.2 ([email protected])'
User-Agent: 'BoletoSimples PHP Client v0.0.3 ([email protected])'
Authorization: 'Bearer BOLETOSIMPLES_ACCESS_TOKEN'
Accept: null
response:
Expand Down

0 comments on commit 13eb067

Please sign in to comment.