boletosimples 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/.ruby-version +1 -1
  3. data/CHANGELOG.md +14 -0
  4. data/boletosimples.gemspec +3 -1
  5. data/example/access_token_example.rb +29 -4
  6. data/example/oauth_example.rb +28 -4
  7. data/lib/boletosimples/client.rb +11 -4
  8. data/lib/boletosimples/version.rb +1 -1
  9. data/spec/boletosimples/client_spec.rb +407 -4
  10. data/spec/boletosimples/oauth_client_spec.rb +6 -3
  11. data/spec/fixtures/vcr_cassettes/BoletoSimples_Client/_bank_billet/existing_bank_billet.yml +61 -0
  12. data/spec/fixtures/vcr_cassettes/BoletoSimples_Client/_bank_billet/not_found.yml +44 -0
  13. data/spec/fixtures/vcr_cassettes/BoletoSimples_Client/_bank_billets.yml +63 -0
  14. data/spec/fixtures/vcr_cassettes/BoletoSimples_Client/_cancel_bank_billet/already_canceled.yml +58 -0
  15. data/spec/fixtures/vcr_cassettes/BoletoSimples_Client/_cancel_bank_billet/with_invalid_bank_billet.yml +54 -0
  16. data/spec/fixtures/vcr_cassettes/BoletoSimples_Client/_cancel_bank_billet/with_valid_bank_billet.yml +71 -0
  17. data/spec/fixtures/vcr_cassettes/BoletoSimples_Client/_create_bank_billet/with_invalid_data.yml +64 -0
  18. data/spec/fixtures/vcr_cassettes/BoletoSimples_Client/_create_bank_billet/with_valid_data.yml +66 -0
  19. data/spec/fixtures/vcr_cassettes/BoletoSimples_Client/_create_customer/with_invalid_data.yml +59 -0
  20. data/spec/fixtures/vcr_cassettes/BoletoSimples_Client/_create_customer/with_valid_data.yml +61 -0
  21. data/spec/fixtures/vcr_cassettes/BoletoSimples_Client/_customer/existing_customer.yml +57 -0
  22. data/spec/fixtures/vcr_cassettes/BoletoSimples_Client/_customer/not_found.yml +58 -0
  23. data/spec/fixtures/vcr_cassettes/BoletoSimples_Client/_customers.yml +59 -0
  24. data/spec/fixtures/vcr_cassettes/BoletoSimples_Client/_transactions.yml +67 -0
  25. data/spec/fixtures/vcr_cassettes/BoletoSimples_Client/_userinfo/with_authentication.yml +56 -0
  26. data/spec/fixtures/vcr_cassettes/BoletoSimples_Client/_userinfo/with_authentication/.yml +56 -0
  27. data/spec/fixtures/vcr_cassettes/BoletoSimples_Client/_userinfo/without_authentication.yml +54 -0
  28. data/spec/fixtures/vcr_cassettes/BoletoSimples_Client/_userinfo/without_authentication/.yml +54 -0
  29. data/spec/fixtures/vcr_cassettes/BoletoSimples_OAuthClient/_userinfo/without_authentication/.yml +62 -0
  30. data/spec/spec_helper.rb +18 -0
  31. data/spec/support/vcr.rb +7 -0
  32. metadata +72 -2
@@ -2,12 +2,15 @@
2
2
 
3
3
  require 'spec_helper'
4
4
 
5
- describe BoletoSimples::OAuthClient do
6
- describe :userinfo do
7
- context :without_authentication do
5
+ RSpec.describe BoletoSimples::OAuthClient do
6
+
7
+ describe '#userinfo' do
8
+
9
+ context 'without authentication', :vcr do
8
10
  let(:credentials) { { token: 'invalid-token' } }
9
11
  let(:client_options) { { user_agent: 'Meu e-Commerce (meuecommerce@example.com)' } }
10
12
  let(:client) { BoletoSimples::OAuthClient.new(nil, nil, credentials, client_options) }
13
+
11
14
  it { expect(client.userinfo).to eq('error' => 'Você precisa se logar ou registrar antes de prosseguir.') }
12
15
  end
13
16
  end
@@ -0,0 +1,61 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://sandbox.boletosimples.com.br/api/v1/bank_billets/113?access_token=9e616874dbf0674ace28170a748c9258ac1f0f87e0a544441ebffe976645bc09
6
+ body:
7
+ encoding: UTF-8
8
+ string: "{}"
9
+ headers:
10
+ Content-Type:
11
+ - application/json
12
+ User-Agent:
13
+ - Meu e-Commerce (meuecommerce@example.com)
14
+ response:
15
+ status:
16
+ code: 200
17
+ message: OK
18
+ headers:
19
+ Server:
20
+ - Cowboy
21
+ Connection:
22
+ - close
23
+ Date:
24
+ - Fri, 24 Oct 2014 20:25:41 GMT
25
+ Status:
26
+ - 200 OK
27
+ Strict-Transport-Security:
28
+ - max-age=2592000
29
+ X-Frame-Options:
30
+ - SAMEORIGIN
31
+ X-Xss-Protection:
32
+ - 1; mode=block
33
+ X-Content-Type-Options:
34
+ - nosniff
35
+ Content-Type:
36
+ - application/json; charset=utf-8
37
+ Etag:
38
+ - '"e51856d8d3656976a1e9d58f720255e8"'
39
+ Cache-Control:
40
+ - max-age=0, private, must-revalidate
41
+ X-Request-Id:
42
+ - 473a0a27-f5e7-4a70-82f6-57581b35f439
43
+ X-Ratelimit-Limit:
44
+ - '500'
45
+ X-Ratelimit-Remaining:
46
+ - '499'
47
+ X-Runtime:
48
+ - '0.144641'
49
+ Via:
50
+ - 1.1 vegur
51
+ body:
52
+ encoding: UTF-8
53
+ string: '{"id":113,"expire_at":"2014-01-01","paid_at":null,"description":"Despesas
54
+ do contrato 0012","status":"opened","shorten_url":"http://staging.bole.to/nhhvauui","customer_person_type":"individual","customer_person_name":"Joao
55
+ da Silva","customer_cnpj_cpf":"012.345.678-90","customer_address":"Rua quinhentos","customer_state":"RJ","customer_neighborhood":"Sao
56
+ Francisco","customer_zipcode":"12312-123","customer_address_number":"111","customer_address_complement":"Sala
57
+ 4","customer_phone_number":"2112123434","customer_email":"cliente@bom.com","notification_url":"http://example.com.br/notify","send_email_on_creation":null,"created_via_api":true,"customer_city_name":"Rio
58
+ de Janeiro","paid_amount":0.0,"amount":9.01}'
59
+ http_version:
60
+ recorded_at: Fri, 24 Oct 2014 20:25:42 GMT
61
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,44 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://sandbox.boletosimples.com.br/api/v1/bank_billets/4324?access_token=9e616874dbf0674ace28170a748c9258ac1f0f87e0a544441ebffe976645bc09
6
+ body:
7
+ encoding: UTF-8
8
+ string: "{}"
9
+ headers:
10
+ Content-Type:
11
+ - application/json
12
+ User-Agent:
13
+ - Meu e-Commerce (meuecommerce@example.com)
14
+ response:
15
+ status:
16
+ code: 404
17
+ message: Not Found
18
+ headers:
19
+ Server:
20
+ - Cowboy
21
+ Connection:
22
+ - keep-alive
23
+ Date:
24
+ - Fri, 24 Oct 2014 20:26:44 GMT
25
+ Status:
26
+ - 404 Not Found
27
+ Strict-Transport-Security:
28
+ - max-age=2592000
29
+ Content-Type:
30
+ - application/json; charset=utf-8
31
+ Content-Length:
32
+ - '36'
33
+ X-Request-Id:
34
+ - ebc4d51b-7722-4cad-b07f-385d287e3a06
35
+ X-Runtime:
36
+ - '0.046675'
37
+ Via:
38
+ - 1.1 vegur
39
+ body:
40
+ encoding: UTF-8
41
+ string: '{"status":"404","error":"Not Found"}'
42
+ http_version:
43
+ recorded_at: Fri, 24 Oct 2014 20:26:44 GMT
44
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,63 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://sandbox.boletosimples.com.br/api/v1/bank_billets?access_token=9e616874dbf0674ace28170a748c9258ac1f0f87e0a544441ebffe976645bc09
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"page":1}'
9
+ headers:
10
+ Content-Type:
11
+ - application/json
12
+ User-Agent:
13
+ - Meu e-Commerce (meuecommerce@example.com)
14
+ response:
15
+ status:
16
+ code: 200
17
+ message: OK
18
+ headers:
19
+ Server:
20
+ - Cowboy
21
+ Connection:
22
+ - close
23
+ Date:
24
+ - Fri, 24 Oct 2014 20:21:58 GMT
25
+ Status:
26
+ - 200 OK
27
+ Strict-Transport-Security:
28
+ - max-age=2592000
29
+ X-Frame-Options:
30
+ - SAMEORIGIN
31
+ X-Xss-Protection:
32
+ - 1; mode=block
33
+ X-Content-Type-Options:
34
+ - nosniff
35
+ Total:
36
+ - '1'
37
+ Content-Type:
38
+ - application/json; charset=utf-8
39
+ Etag:
40
+ - '"dc33a4d50beba22a570588267b96c1a3"'
41
+ Cache-Control:
42
+ - max-age=0, private, must-revalidate
43
+ X-Request-Id:
44
+ - 38b1861c-0c65-49fc-ab54-d7000d879b49
45
+ X-Ratelimit-Limit:
46
+ - '500'
47
+ X-Ratelimit-Remaining:
48
+ - '499'
49
+ X-Runtime:
50
+ - '0.052646'
51
+ Via:
52
+ - 1.1 vegur
53
+ body:
54
+ encoding: UTF-8
55
+ string: '[{"id":113,"expire_at":"2014-01-01","paid_at":null,"description":"Despesas
56
+ do contrato 0012","status":"opened","shorten_url":"http://staging.bole.to/nhhvauui","customer_person_type":"individual","customer_person_name":"Joao
57
+ da Silva","customer_cnpj_cpf":"012.345.678-90","customer_address":"Rua quinhentos","customer_state":"RJ","customer_neighborhood":"Sao
58
+ Francisco","customer_zipcode":"12312-123","customer_address_number":"111","customer_address_complement":"Sala
59
+ 4","customer_phone_number":"2112123434","customer_email":"cliente@bom.com","notification_url":"http://example.com.br/notify","send_email_on_creation":null,"created_via_api":true,"customer_city_name":"Rio
60
+ de Janeiro","paid_amount":0.0,"amount":9.01}]'
61
+ http_version:
62
+ recorded_at: Fri, 24 Oct 2014 20:21:58 GMT
63
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,58 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: https://sandbox.boletosimples.com.br/api/v1/bank_billets/245/cancel?access_token=9e616874dbf0674ace28170a748c9258ac1f0f87e0a544441ebffe976645bc09
6
+ body:
7
+ encoding: UTF-8
8
+ string: "{}"
9
+ headers:
10
+ Content-Type:
11
+ - application/json
12
+ User-Agent:
13
+ - Meu e-Commerce (meuecommerce@example.com)
14
+ response:
15
+ status:
16
+ code: 422
17
+ message: Unprocessable Entity
18
+ headers:
19
+ Server:
20
+ - Cowboy
21
+ Connection:
22
+ - close
23
+ Date:
24
+ - Fri, 05 Dec 2014 20:14:08 GMT
25
+ Status:
26
+ - 422 Unprocessable Entity
27
+ Strict-Transport-Security:
28
+ - max-age=2592000
29
+ X-Frame-Options:
30
+ - SAMEORIGIN
31
+ X-Xss-Protection:
32
+ - 1; mode=block
33
+ X-Content-Type-Options:
34
+ - nosniff
35
+ Content-Type:
36
+ - application/json; charset=utf-8
37
+ Cache-Control:
38
+ - no-cache
39
+ X-Request-Id:
40
+ - 4183cec5-8a18-4630-b104-e7821f61fcff
41
+ X-Ratelimit-Limit:
42
+ - '500'
43
+ X-Ratelimit-Remaining:
44
+ - '499'
45
+ X-Runtime:
46
+ - '0.024256'
47
+ X-Rack-Cache:
48
+ - invalidate, pass
49
+ Vary:
50
+ - Accept-Encoding
51
+ Via:
52
+ - 1.1 vegur
53
+ body:
54
+ encoding: UTF-8
55
+ string: '{"errors":{"status":["cannot transition via cancel"]}}'
56
+ http_version:
57
+ recorded_at: Fri, 05 Dec 2014 20:14:08 GMT
58
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,54 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: PUT
5
+ uri: https://sandbox.boletosimples.com.br/api/v1/bank_billets/113/cancel?access_token=9e616874dbf0674ace28170a748c9258ac1f0f87e0a544441ebffe976645bc09
6
+ body:
7
+ encoding: UTF-8
8
+ string: "{}"
9
+ headers:
10
+ Content-Type:
11
+ - application/json
12
+ User-Agent:
13
+ - Meu e-Commerce (meuecommerce@example.com)
14
+ response:
15
+ status:
16
+ code: 422
17
+ message: Unprocessable Entity
18
+ headers:
19
+ Server:
20
+ - Cowboy
21
+ Connection:
22
+ - close
23
+ Date:
24
+ - Wed, 19 Nov 2014 20:45:53 GMT
25
+ Status:
26
+ - 422 Unprocessable Entity
27
+ Strict-Transport-Security:
28
+ - max-age=2592000
29
+ X-Frame-Options:
30
+ - SAMEORIGIN
31
+ X-Xss-Protection:
32
+ - 1; mode=block
33
+ X-Content-Type-Options:
34
+ - nosniff
35
+ Content-Type:
36
+ - application/json; charset=utf-8
37
+ Cache-Control:
38
+ - no-cache
39
+ X-Request-Id:
40
+ - 76244580-1742-427d-8520-593529a5722a
41
+ X-Ratelimit-Limit:
42
+ - '500'
43
+ X-Ratelimit-Remaining:
44
+ - '499'
45
+ X-Runtime:
46
+ - '0.036462'
47
+ Via:
48
+ - 1.1 vegur
49
+ body:
50
+ encoding: UTF-8
51
+ string: '{"errors":{"status":["cannot transition via cancel"]}}'
52
+ http_version:
53
+ recorded_at: Wed, 19 Nov 2014 20:45:53 GMT
54
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,71 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: PUT
5
+ uri: https://sandbox.boletosimples.com.br/api/v1/bank_billets/245/cancel?access_token=9e616874dbf0674ace28170a748c9258ac1f0f87e0a544441ebffe976645bc09
6
+ body:
7
+ encoding: UTF-8
8
+ string: "{}"
9
+ headers:
10
+ Content-Type:
11
+ - application/json
12
+ User-Agent:
13
+ - Meu e-Commerce (meuecommerce@example.com)
14
+ response:
15
+ status:
16
+ code: 200
17
+ message: OK
18
+ headers:
19
+ Server:
20
+ - Cowboy
21
+ Connection:
22
+ - close
23
+ Date:
24
+ - Wed, 19 Nov 2014 20:40:20 GMT
25
+ Status:
26
+ - 200 OK
27
+ Strict-Transport-Security:
28
+ - max-age=2592000
29
+ X-Frame-Options:
30
+ - SAMEORIGIN
31
+ X-Xss-Protection:
32
+ - 1; mode=block
33
+ X-Content-Type-Options:
34
+ - nosniff
35
+ Content-Type:
36
+ - application/json; charset=utf-8
37
+ Etag:
38
+ - '"11a2dbe45f5d1334dcbf6ebdf78128f1"'
39
+ Cache-Control:
40
+ - max-age=0, private, must-revalidate
41
+ X-Request-Id:
42
+ - 5b2eab95-5d38-4c29-b3b8-e43db1db6753
43
+ X-Ratelimit-Limit:
44
+ - '500'
45
+ X-Ratelimit-Remaining:
46
+ - '499'
47
+ X-Runtime:
48
+ - '0.195508'
49
+ Via:
50
+ - 1.1 vegur
51
+ body:
52
+ encoding: ASCII-8BIT
53
+ string: !binary |-
54
+ eyJpZCI6MjQ1LCJleHBpcmVfYXQiOiIyMDE0LTEwLTE5IiwicGFpZF9hdCI6
55
+ bnVsbCwiZGVzY3JpcHRpb24iOiJmb28iLCJzdGF0dXMiOiJjYW5jZWxlZCIs
56
+ InNob3J0ZW5fdXJsIjoiaHR0cDovL3N0YWdpbmcuYm9sZS50by9uaThqYXYx
57
+ dyIsImN1c3RvbWVyX3BlcnNvbl90eXBlIjoianVyaWRpY2FsIiwiY3VzdG9t
58
+ ZXJfcGVyc29uX25hbWUiOiJtYXJjaW8ganVuaW9yIiwiY3VzdG9tZXJfY25w
59
+ al9jcGYiOiIzMy4zNjguNzUxLzAwMDEtMTQiLCJjdXN0b21lcl9hZGRyZXNz
60
+ IjoiUnVhIEpvc8OpIFNjaGV1ZXIiLCJjdXN0b21lcl9zdGF0ZSI6IlNDIiwi
61
+ Y3VzdG9tZXJfbmVpZ2hib3Job29kIjoiQW1pemFkZSIsImN1c3RvbWVyX3pp
62
+ cGNvZGUiOiI4OTI1NS04MDAiLCJjdXN0b21lcl9hZGRyZXNzX251bWJlciI6
63
+ IjEyIiwiY3VzdG9tZXJfYWRkcmVzc19jb21wbGVtZW50IjoiIiwiY3VzdG9t
64
+ ZXJfcGhvbmVfbnVtYmVyIjoiIiwiY3VzdG9tZXJfZW1haWwiOiJmb29AYmFy
65
+ LmNvbSIsIm5vdGlmaWNhdGlvbl91cmwiOm51bGwsInNlbmRfZW1haWxfb25f
66
+ Y3JlYXRpb24iOm51bGwsImNyZWF0ZWRfdmlhX2FwaSI6ZmFsc2UsImN1c3Rv
67
+ bWVyX2NpdHlfbmFtZSI6IkphcmFndcOhIGRvIFN1bCIsInBhaWRfYW1vdW50
68
+ IjowLjAsImFtb3VudCI6MTAuMH0=
69
+ http_version:
70
+ recorded_at: Wed, 19 Nov 2014 20:40:20 GMT
71
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,64 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://sandbox.boletosimples.com.br/api/v1/bank_billets?access_token=9e616874dbf0674ace28170a748c9258ac1f0f87e0a544441ebffe976645bc09
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"bank_billet":{"amount":19.01,"customer_address":"Rua quinhentos","customer_address_complement":"Sala
9
+ 4","customer_address_number":"111","customer_city_name":"Rio de Janeiro","customer_cnpj_cpf":"34567890","customer_email":"cliente","customer_neighborhood":"Sao
10
+ Francisco","customer_person_name":"Joao da Silva","customer_person_type":"individual","customer_phone_number":"123434","customer_state":"RJ","customer_zipcode":"12312","description":"Despesas
11
+ do contrato 0012","expire_at":"2014-01-01","notification_url":"http://example.com.br/notify"}}'
12
+ headers:
13
+ Content-Type:
14
+ - application/json
15
+ User-Agent:
16
+ - Meu e-Commerce (meuecommerce@example.com)
17
+ response:
18
+ status:
19
+ code: 422
20
+ message: Unprocessable Entity
21
+ headers:
22
+ Server:
23
+ - Cowboy
24
+ Connection:
25
+ - close
26
+ Date:
27
+ - Fri, 24 Oct 2014 20:13:05 GMT
28
+ Status:
29
+ - 422 Unprocessable Entity
30
+ Strict-Transport-Security:
31
+ - max-age=2592000
32
+ X-Frame-Options:
33
+ - SAMEORIGIN
34
+ X-Xss-Protection:
35
+ - 1; mode=block
36
+ X-Content-Type-Options:
37
+ - nosniff
38
+ Content-Type:
39
+ - application/json; charset=utf-8
40
+ Cache-Control:
41
+ - no-cache
42
+ X-Request-Id:
43
+ - f0205361-44f6-4533-bde7-b4b6b9ac07d8
44
+ X-Ratelimit-Limit:
45
+ - '500'
46
+ X-Ratelimit-Remaining:
47
+ - '499'
48
+ X-Runtime:
49
+ - '0.141423'
50
+ Via:
51
+ - 1.1 vegur
52
+ body:
53
+ encoding: ASCII-8BIT
54
+ string: !binary |-
55
+ eyJlcnJvcnMiOnsiY3VzdG9tZXJfY25wal9jcGYiOlsibsOjbyBwb2RlIGZp
56
+ Y2FyIGVtIGJyYW5jbyJdLCJjdXN0b21lcl9lbWFpbCI6WyJuw6NvIMOpIHbD
57
+ oWxpZG8iXSwiY3VzdG9tZXIiOlt7ImNucGpfY3BmIjpbIm7Do28gcG9kZSBm
58
+ aWNhciBlbSBicmFuY28iXSwicGhvbmVfbnVtYmVyIjpbIsOpIG11aXRvIGN1
59
+ cnRvIChtw61uaW1vOiAxMCBjYXJhY3RlcmVzKSJdLCJlbWFpbCI6WyJuw6Nv
60
+ IMOpIHbDoWxpZG8iXX1dLCJhbW91bnQiOlsiZGV2ZSBzZXIgbWVub3Igb3Ug
61
+ aWd1YWwgYSAxMCJdfX0=
62
+ http_version:
63
+ recorded_at: Fri, 24 Oct 2014 20:13:05 GMT
64
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,66 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://sandbox.boletosimples.com.br/api/v1/bank_billets?access_token=9e616874dbf0674ace28170a748c9258ac1f0f87e0a544441ebffe976645bc09
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"bank_billet":{"amount":9.01,"customer_address":"Rua quinhentos","customer_address_complement":"Sala
9
+ 4","customer_address_number":"111","customer_city_name":"Rio de Janeiro","customer_cnpj_cpf":"012.345.678-90","customer_email":"cliente@bom.com","customer_neighborhood":"Sao
10
+ Francisco","customer_person_name":"Joao da Silva","customer_person_type":"individual","customer_phone_number":"2112123434","customer_state":"RJ","customer_zipcode":"12312-123","description":"Despesas
11
+ do contrato 0012","expire_at":"2014-01-01","notification_url":"http://example.com.br/notify"}}'
12
+ headers:
13
+ Content-Type:
14
+ - application/json
15
+ User-Agent:
16
+ - Meu e-Commerce (meuecommerce@example.com)
17
+ response:
18
+ status:
19
+ code: 201
20
+ message: Created
21
+ headers:
22
+ Server:
23
+ - Cowboy
24
+ Connection:
25
+ - close
26
+ Date:
27
+ - Fri, 24 Oct 2014 20:11:14 GMT
28
+ Status:
29
+ - 201 Created
30
+ Strict-Transport-Security:
31
+ - max-age=2592000
32
+ X-Frame-Options:
33
+ - SAMEORIGIN
34
+ X-Xss-Protection:
35
+ - 1; mode=block
36
+ X-Content-Type-Options:
37
+ - nosniff
38
+ Location:
39
+ - https://sandbox.boletosimples.com.br/api/v1/bank_billets/113
40
+ Content-Type:
41
+ - application/json; charset=utf-8
42
+ Etag:
43
+ - '"9e7977e69b5bea8f22b513c20958aaee"'
44
+ Cache-Control:
45
+ - max-age=0, private, must-revalidate
46
+ X-Request-Id:
47
+ - ce91bf51-189d-438c-8767-da74beb19bf2
48
+ X-Ratelimit-Limit:
49
+ - '500'
50
+ X-Ratelimit-Remaining:
51
+ - '499'
52
+ X-Runtime:
53
+ - '0.283812'
54
+ Via:
55
+ - 1.1 vegur
56
+ body:
57
+ encoding: UTF-8
58
+ string: '{"id":113,"expire_at":"2014-01-01","paid_at":null,"description":"Despesas
59
+ do contrato 0012","status":"generating","shorten_url":null,"customer_person_type":"individual","customer_person_name":"Joao
60
+ da Silva","customer_cnpj_cpf":"012.345.678-90","customer_address":"Rua quinhentos","customer_state":"RJ","customer_neighborhood":"Sao
61
+ Francisco","customer_zipcode":"12312-123","customer_address_number":"111","customer_address_complement":"Sala
62
+ 4","customer_phone_number":"2112123434","customer_email":"cliente@bom.com","notification_url":"http://example.com.br/notify","send_email_on_creation":null,"created_via_api":true,"customer_city_name":"Rio
63
+ de Janeiro","paid_amount":0.0,"amount":9.01}'
64
+ http_version:
65
+ recorded_at: Fri, 24 Oct 2014 20:11:15 GMT
66
+ recorded_with: VCR 2.9.3