-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
25 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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'); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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}}' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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":[]}' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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"}}' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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"}}' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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"}}' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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":""}}' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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":[]}' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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"}}' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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"}}' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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"}}' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|