boletosimples 0.0.7 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +1 -1
  3. data/README.md +156 -3
  4. data/boletosimples.gemspec +9 -9
  5. data/lib/boletosimples.rb +38 -4
  6. data/lib/boletosimples/configuration.rb +69 -0
  7. data/lib/boletosimples/extra.rb +8 -0
  8. data/lib/boletosimples/last_request.rb +43 -0
  9. data/lib/boletosimples/middlewares/last_request.rb +9 -0
  10. data/lib/boletosimples/middlewares/raise_error.rb +11 -0
  11. data/lib/boletosimples/middlewares/user_agent.rb +10 -0
  12. data/lib/boletosimples/resources/bank_billet.rb +13 -0
  13. data/lib/boletosimples/resources/base_model.rb +8 -0
  14. data/lib/boletosimples/resources/customer.rb +4 -0
  15. data/lib/boletosimples/resources/partner/user.rb +7 -0
  16. data/lib/boletosimples/resources/transaction.rb +4 -0
  17. data/lib/boletosimples/response_error.rb +43 -0
  18. data/lib/boletosimples/version.rb +1 -1
  19. data/spec/boletosimples/configuration_spec.rb +84 -0
  20. data/spec/boletosimples/extra_spec.rb +31 -0
  21. data/spec/boletosimples/last_request_spec.rb +34 -0
  22. data/spec/boletosimples/resources/bank_billet_spec.rb +75 -0
  23. data/spec/boletosimples/resources/customer_spec.rb +66 -0
  24. data/spec/boletosimples/resources/partner/user_spec.rb +19 -0
  25. data/spec/boletosimples/resources/transactions_spec.rb +17 -0
  26. data/spec/fixtures/vcr_cassettes/configuration/client_credentials/invalid.yml +64 -0
  27. data/spec/fixtures/vcr_cassettes/configuration/client_credentials/valid.yml +56 -0
  28. data/spec/fixtures/vcr_cassettes/extra/userinfo/authenticated.yml +58 -0
  29. data/spec/fixtures/vcr_cassettes/extra/userinfo/not_authenticated.yml +54 -0
  30. data/spec/fixtures/vcr_cassettes/last_request/bank_billets.yml +129 -0
  31. data/spec/fixtures/vcr_cassettes/last_request/userinfo.yml +58 -0
  32. data/spec/fixtures/vcr_cassettes/resources/bank_billet/all.yml +132 -0
  33. data/spec/fixtures/vcr_cassettes/resources/bank_billet/cancel.yml +125 -0
  34. data/spec/fixtures/vcr_cassettes/resources/bank_billet/create/invalid_params.yml +61 -0
  35. data/spec/fixtures/vcr_cassettes/{BoletoSimples_Client/_cancel_bank_billet/already_canceled.yml → resources/bank_billet/create/invalid_root.yml} +24 -24
  36. data/spec/fixtures/vcr_cassettes/{BoletoSimples_Client/_create_bank_billet/with_valid_data.yml → resources/bank_billet/create/valid.yml} +32 -28
  37. data/spec/fixtures/vcr_cassettes/{BoletoSimples_Client/_bank_billet/existing_bank_billet.yml → resources/bank_billet/find.yml} +30 -28
  38. data/spec/fixtures/vcr_cassettes/resources/customer/all.yml +72 -0
  39. data/spec/fixtures/vcr_cassettes/resources/customer/create/invalid_params.yml +59 -0
  40. data/spec/fixtures/vcr_cassettes/resources/customer/create/invalid_root.yml +58 -0
  41. data/spec/fixtures/vcr_cassettes/{BoletoSimples_Client/_create_customer/with_valid_data.yml → resources/customer/create/valid.yml} +30 -26
  42. data/spec/fixtures/vcr_cassettes/resources/customer/find.yml +59 -0
  43. data/spec/fixtures/vcr_cassettes/resources/partner/user/create.yml +60 -0
  44. data/spec/fixtures/vcr_cassettes/resources/transaction/all.yml +62 -0
  45. data/spec/spec_helper.rb +10 -0
  46. data/spec/support/vcr.rb +8 -0
  47. metadata +97 -80
  48. data/example/access_token_example.rb +0 -79
  49. data/example/oauth_example.rb +0 -126
  50. data/lib/boletosimples/client.rb +0 -100
  51. data/lib/boletosimples/oauth_client.rb +0 -74
  52. data/spec/boletosimples/client_spec.rb +0 -415
  53. data/spec/boletosimples/oauth_client_spec.rb +0 -17
  54. data/spec/fixtures/vcr_cassettes/BoletoSimples_Client/_bank_billet/not_found.yml +0 -44
  55. data/spec/fixtures/vcr_cassettes/BoletoSimples_Client/_bank_billets.yml +0 -63
  56. data/spec/fixtures/vcr_cassettes/BoletoSimples_Client/_cancel_bank_billet/with_invalid_bank_billet.yml +0 -54
  57. data/spec/fixtures/vcr_cassettes/BoletoSimples_Client/_cancel_bank_billet/with_valid_bank_billet.yml +0 -71
  58. data/spec/fixtures/vcr_cassettes/BoletoSimples_Client/_create_bank_billet/with_invalid_data.yml +0 -64
  59. data/spec/fixtures/vcr_cassettes/BoletoSimples_Client/_create_customer/with_invalid_data.yml +0 -59
  60. data/spec/fixtures/vcr_cassettes/BoletoSimples_Client/_customer/existing_customer.yml +0 -57
  61. data/spec/fixtures/vcr_cassettes/BoletoSimples_Client/_customer/not_found.yml +0 -58
  62. data/spec/fixtures/vcr_cassettes/BoletoSimples_Client/_customers.yml +0 -59
  63. data/spec/fixtures/vcr_cassettes/BoletoSimples_Client/_transactions.yml +0 -67
  64. data/spec/fixtures/vcr_cassettes/BoletoSimples_Client/_userinfo/with_authentication.yml +0 -56
  65. data/spec/fixtures/vcr_cassettes/BoletoSimples_Client/_userinfo/with_authentication/.yml +0 -56
  66. data/spec/fixtures/vcr_cassettes/BoletoSimples_Client/_userinfo/without_authentication.yml +0 -54
  67. data/spec/fixtures/vcr_cassettes/BoletoSimples_Client/_userinfo/without_authentication/.yml +0 -54
  68. data/spec/fixtures/vcr_cassettes/BoletoSimples_OAuthClient/_userinfo/without_authentication/.yml +0 -62
@@ -1,17 +0,0 @@
1
- # encoding: UTF-8
2
-
3
- require 'spec_helper'
4
-
5
- RSpec.describe BoletoSimples::OAuthClient do
6
-
7
- describe '#userinfo' do
8
-
9
- context 'without authentication', :vcr do
10
- let(:credentials) { { token: 'invalid-token' } }
11
- let(:client_options) { { user_agent: 'Meu e-Commerce (meuecommerce@example.com)' } }
12
- let(:client) { BoletoSimples::OAuthClient.new(nil, nil, credentials, client_options) }
13
-
14
- it { expect(client.userinfo).to eq('error' => 'Você precisa se logar ou registrar antes de prosseguir.') }
15
- end
16
- end
17
- end
@@ -1,44 +0,0 @@
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
@@ -1,63 +0,0 @@
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
@@ -1,54 +0,0 @@
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
@@ -1,71 +0,0 @@
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
@@ -1,64 +0,0 @@
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
@@ -1,59 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: https://sandbox.boletosimples.com.br/api/v1/customers?access_token=9e616874dbf0674ace28170a748c9258ac1f0f87e0a544441ebffe976645bc09
6
- body:
7
- encoding: UTF-8
8
- string: '{"customer":{"person_name":"Joao da Silva","cnpj_cpf":"foo","email":"cliente@bom.com","address":"Rua
9
- quinhentos","city_name":"Rio de Janeiro","state":"RJ","neighborhood":"bairro","zipcode":"123","address_number":"111","address_complement":"Sala
10
- 4","phone_number":"2123434"}}'
11
- headers:
12
- Content-Type:
13
- - application/json
14
- User-Agent:
15
- - Meu e-Commerce (meuecommerce@example.com)
16
- response:
17
- status:
18
- code: 422
19
- message: Unprocessable Entity
20
- headers:
21
- Server:
22
- - Cowboy
23
- Connection:
24
- - close
25
- Date:
26
- - Fri, 24 Oct 2014 18:06:42 GMT
27
- Status:
28
- - 422 Unprocessable Entity
29
- Strict-Transport-Security:
30
- - max-age=2592000
31
- X-Frame-Options:
32
- - SAMEORIGIN
33
- X-Xss-Protection:
34
- - 1; mode=block
35
- X-Content-Type-Options:
36
- - nosniff
37
- Content-Type:
38
- - application/json; charset=utf-8
39
- Cache-Control:
40
- - no-cache
41
- X-Request-Id:
42
- - aca78138-b786-4179-9186-796e5a67d273
43
- X-Ratelimit-Limit:
44
- - '500'
45
- X-Ratelimit-Remaining:
46
- - '499'
47
- X-Runtime:
48
- - '0.035539'
49
- Via:
50
- - 1.1 vegur
51
- body:
52
- encoding: ASCII-8BIT
53
- string: !binary |-
54
- eyJlcnJvcnMiOnsiY25wal9jcGYiOlsibsOjbyBwb2RlIGZpY2FyIGVtIGJy
55
- YW5jbyJdLCJwaG9uZV9udW1iZXIiOlsiw6kgbXVpdG8gY3VydG8gKG3DrW5p
56
- bW86IDEwIGNhcmFjdGVyZXMpIl19fQ==
57
- http_version:
58
- recorded_at: Fri, 24 Oct 2014 18:06:42 GMT
59
- recorded_with: VCR 2.9.3
@@ -1,57 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://sandbox.boletosimples.com.br/api/v1/customers/32?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 18:33:53 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
- - '"4ed60beb3944fda9bb1e0c5d319c4bb3"'
39
- Cache-Control:
40
- - max-age=0, private, must-revalidate
41
- X-Request-Id:
42
- - 34045230-871c-4a10-aeb3-780b94d8efbe
43
- X-Ratelimit-Limit:
44
- - '500'
45
- X-Ratelimit-Remaining:
46
- - '499'
47
- X-Runtime:
48
- - '0.099872'
49
- Via:
50
- - 1.1 vegur
51
- body:
52
- encoding: UTF-8
53
- string: '{"id":32,"city_name":"Rio de Janeiro","person_name":"Joao da Silva","address":"Rua
54
- quinhentos","address_complement":"Sala 4","address_number":"111","mobile_number":null,"cnpj_cpf":"012.345.678-90","email":"cliente@bom.com","neighborhood":"bairro","person_type":"individual","phone_number":"2112123434","zipcode":"12312-123","mobile_local_code":null,"state":"RJ"}'
55
- http_version:
56
- recorded_at: Fri, 24 Oct 2014 18:33:53 GMT
57
- recorded_with: VCR 2.9.3
@@ -1,58 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://sandbox.boletosimples.com.br/api/v1/customers/42?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
- - close
23
- Date:
24
- - Fri, 05 Dec 2014 20:18:46 GMT
25
- Status:
26
- - 404 Not Found
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
- - a977a921-e10f-4cdb-b64a-ee9b527f4e21
41
- X-Ratelimit-Limit:
42
- - '500'
43
- X-Ratelimit-Remaining:
44
- - '499'
45
- X-Runtime:
46
- - '0.020316'
47
- X-Rack-Cache:
48
- - miss
49
- Vary:
50
- - Accept-Encoding
51
- Via:
52
- - 1.1 vegur
53
- body:
54
- encoding: UTF-8
55
- string: '{"status":404,"error":"Not Found"}'
56
- http_version:
57
- recorded_at: Fri, 05 Dec 2014 20:18:47 GMT
58
- recorded_with: VCR 2.9.3