boletosimples 0.0.7 → 0.1.1

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 (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
@@ -0,0 +1,125 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://sandbox.boletosimples.com.br/api/v1/bank_billets/851?access_token=BOLETOSIMPLES_ACCESS_TOKEN
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - BoletoSimples Ruby Client v0.1.0 (contato@boletosimples.com.br)
12
+ Authorization:
13
+ - Token token="BOLETOSIMPLES_ACCESS_TOKEN"
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - "*/*"
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Server:
24
+ - Cowboy
25
+ Connection:
26
+ - keep-alive
27
+ Strict-Transport-Security:
28
+ - max-age=2592000
29
+ Content-Type:
30
+ - application/json; charset=utf-8
31
+ X-Ratelimit-Limit:
32
+ - '500'
33
+ X-Ratelimit-Remaining:
34
+ - '462'
35
+ Etag:
36
+ - W/"3e63641eb9f541ffab79e1d13c250890"
37
+ Cache-Control:
38
+ - must-revalidate, private, max-age=0
39
+ X-Request-Id:
40
+ - 459acce4-87bb-45e0-ba2b-4126250e7b48
41
+ X-Runtime:
42
+ - '0.041686'
43
+ Date:
44
+ - Sun, 08 Mar 2015 19:55:37 GMT
45
+ X-Rack-Cache:
46
+ - miss
47
+ Vary:
48
+ - Accept-Encoding
49
+ Transfer-Encoding:
50
+ - chunked
51
+ Via:
52
+ - 1.1 vegur
53
+ body:
54
+ encoding: UTF-8
55
+ string: '{"id":851,"expire_at":"2014-01-01","paid_at":null,"description":"Despesas
56
+ do contrato 0012","status":"opened","shorten_url":"http://staging.bole.to/nirjavew","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: Sun, 08 Mar 2015 19:55:36 GMT
63
+ - request:
64
+ method: put
65
+ uri: https://sandbox.boletosimples.com.br/api/v1/bank_billets/851/cancel?access_token=BOLETOSIMPLES_ACCESS_TOKEN
66
+ body:
67
+ encoding: UTF-8
68
+ string: "{}"
69
+ headers:
70
+ User-Agent:
71
+ - BoletoSimples Ruby Client v0.1.0 (contato@boletosimples.com.br)
72
+ Authorization:
73
+ - Token token="BOLETOSIMPLES_ACCESS_TOKEN"
74
+ Content-Type:
75
+ - application/json
76
+ Accept-Encoding:
77
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
78
+ Accept:
79
+ - "*/*"
80
+ response:
81
+ status:
82
+ code: 200
83
+ message: OK
84
+ headers:
85
+ Server:
86
+ - Cowboy
87
+ Connection:
88
+ - keep-alive
89
+ Strict-Transport-Security:
90
+ - max-age=2592000
91
+ Content-Type:
92
+ - application/json; charset=utf-8
93
+ X-Ratelimit-Limit:
94
+ - '500'
95
+ X-Ratelimit-Remaining:
96
+ - '461'
97
+ Etag:
98
+ - W/"d7665b0a15eb03d124030c5f13771e4a"
99
+ Cache-Control:
100
+ - max-age=0, private, must-revalidate
101
+ X-Request-Id:
102
+ - 7773008b-3423-4038-a157-100679061d62
103
+ X-Runtime:
104
+ - '0.185339'
105
+ Date:
106
+ - Sun, 08 Mar 2015 19:55:38 GMT
107
+ X-Rack-Cache:
108
+ - invalidate, pass
109
+ Vary:
110
+ - Accept-Encoding
111
+ Transfer-Encoding:
112
+ - chunked
113
+ Via:
114
+ - 1.1 vegur
115
+ body:
116
+ encoding: UTF-8
117
+ string: '{"id":851,"expire_at":"2014-01-01","paid_at":null,"description":"Despesas
118
+ do contrato 0012","status":"canceled","shorten_url":"http://staging.bole.to/nirjavew","customer_person_type":"individual","customer_person_name":"Joao
119
+ da Silva","customer_cnpj_cpf":"012.345.678-90","customer_address":"Rua quinhentos","customer_state":"RJ","customer_neighborhood":"Sao
120
+ Francisco","customer_zipcode":"12312-123","customer_address_number":"111","customer_address_complement":"Sala
121
+ 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
122
+ de Janeiro","paid_amount":0.0,"amount":9.01}'
123
+ http_version:
124
+ recorded_at: Sun, 08 Mar 2015 19:55:37 GMT
125
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,61 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://sandbox.boletosimples.com.br/api/v1/bank_billets?access_token=BOLETOSIMPLES_ACCESS_TOKEN
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"bank_billet":{"amount":9.1}}'
9
+ headers:
10
+ User-Agent:
11
+ - BoletoSimples Ruby Client v0.1.0 (contato@boletosimples.com.br)
12
+ Authorization:
13
+ - Token token="BOLETOSIMPLES_ACCESS_TOKEN"
14
+ Content-Type:
15
+ - application/json
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ Accept:
19
+ - "*/*"
20
+ response:
21
+ status:
22
+ code: 422
23
+ message: Unprocessable Entity
24
+ headers:
25
+ Server:
26
+ - Cowboy
27
+ Connection:
28
+ - keep-alive
29
+ Strict-Transport-Security:
30
+ - max-age=2592000
31
+ Content-Type:
32
+ - application/json; charset=utf-8
33
+ X-Ratelimit-Limit:
34
+ - '500'
35
+ X-Ratelimit-Remaining:
36
+ - '464'
37
+ Cache-Control:
38
+ - no-cache
39
+ X-Request-Id:
40
+ - 06416084-e98b-4810-b538-e23526138773
41
+ X-Runtime:
42
+ - '0.122267'
43
+ Date:
44
+ - Sun, 08 Mar 2015 19:55:34 GMT
45
+ X-Rack-Cache:
46
+ - invalidate, pass
47
+ Vary:
48
+ - Accept-Encoding
49
+ Transfer-Encoding:
50
+ - chunked
51
+ Via:
52
+ - 1.1 vegur
53
+ body:
54
+ encoding: UTF-8
55
+ string: '{"errors":{"expire_at":["não pode ficar em branco","não é uma data
56
+ válida"],"customer_person_name":["não pode ficar em branco"],"customer_cnpj_cpf":["não
57
+ pode ficar em branco"],"description":["não pode ficar em branco"],"customer_zipcode":["não
58
+ pode ficar em branco"]}}'
59
+ http_version:
60
+ recorded_at: Sun, 08 Mar 2015 19:55:34 GMT
61
+ recorded_with: VCR 2.9.3
@@ -1,16 +1,22 @@
1
1
  ---
2
2
  http_interactions:
3
3
  - request:
4
- method: put
5
- uri: https://sandbox.boletosimples.com.br/api/v1/bank_billets/245/cancel?access_token=9e616874dbf0674ace28170a748c9258ac1f0f87e0a544441ebffe976645bc09
4
+ method: post
5
+ uri: https://sandbox.boletosimples.com.br/api/v1/bank_billets?access_token=BOLETOSIMPLES_ACCESS_TOKEN
6
6
  body:
7
7
  encoding: UTF-8
8
- string: "{}"
8
+ string: '{"bank_billet":{}}'
9
9
  headers:
10
+ User-Agent:
11
+ - BoletoSimples Ruby Client v0.1.0 (contato@boletosimples.com.br)
12
+ Authorization:
13
+ - Token token="BOLETOSIMPLES_ACCESS_TOKEN"
10
14
  Content-Type:
11
15
  - application/json
12
- User-Agent:
13
- - Meu e-Commerce (meuecommerce@example.com)
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ Accept:
19
+ - "*/*"
14
20
  response:
15
21
  status:
16
22
  code: 422
@@ -19,40 +25,34 @@ http_interactions:
19
25
  Server:
20
26
  - Cowboy
21
27
  Connection:
22
- - close
23
- Date:
24
- - Fri, 05 Dec 2014 20:14:08 GMT
25
- Status:
26
- - 422 Unprocessable Entity
28
+ - keep-alive
27
29
  Strict-Transport-Security:
28
30
  - 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
31
  Content-Type:
36
32
  - application/json; charset=utf-8
37
- Cache-Control:
38
- - no-cache
39
- X-Request-Id:
40
- - 4183cec5-8a18-4630-b104-e7821f61fcff
41
33
  X-Ratelimit-Limit:
42
34
  - '500'
43
35
  X-Ratelimit-Remaining:
44
- - '499'
36
+ - '465'
37
+ Cache-Control:
38
+ - no-cache
39
+ X-Request-Id:
40
+ - 9960d0bb-e798-4a31-801c-eddbd2cd3afc
45
41
  X-Runtime:
46
- - '0.024256'
42
+ - '0.058479'
43
+ Date:
44
+ - Sun, 08 Mar 2015 19:55:33 GMT
47
45
  X-Rack-Cache:
48
46
  - invalidate, pass
49
47
  Vary:
50
48
  - Accept-Encoding
49
+ Transfer-Encoding:
50
+ - chunked
51
51
  Via:
52
52
  - 1.1 vegur
53
53
  body:
54
54
  encoding: UTF-8
55
- string: '{"errors":{"status":["cannot transition via cancel"]}}'
55
+ string: '{"errors":{"bank_billet":["não pode ficar em branco"]}}'
56
56
  http_version:
57
- recorded_at: Fri, 05 Dec 2014 20:14:08 GMT
57
+ recorded_at: Sun, 08 Mar 2015 19:55:33 GMT
58
58
  recorded_with: VCR 2.9.3
@@ -2,18 +2,24 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: https://sandbox.boletosimples.com.br/api/v1/bank_billets?access_token=9e616874dbf0674ace28170a748c9258ac1f0f87e0a544441ebffe976645bc09
5
+ uri: https://sandbox.boletosimples.com.br/api/v1/bank_billets?access_token=BOLETOSIMPLES_ACCESS_TOKEN
6
6
  body:
7
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"}}'
8
+ string: '{"bank_billet":{"amount":9.01,"description":"Despesas do contrato 0012","expire_at":"2014-01-01","customer_address":"Rua
9
+ quinhentos","customer_address_complement":"Sala 4","customer_address_number":"111","customer_city_name":"Rio
10
+ de Janeiro","customer_cnpj_cpf":"012.345.678-90","customer_email":"cliente@bom.com","customer_neighborhood":"Sao
11
+ 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"}}'
12
12
  headers:
13
+ User-Agent:
14
+ - BoletoSimples Ruby Client v0.1.0 (contato@boletosimples.com.br)
15
+ Authorization:
16
+ - Token token="BOLETOSIMPLES_ACCESS_TOKEN"
13
17
  Content-Type:
14
18
  - application/json
15
- User-Agent:
16
- - Meu e-Commerce (meuecommerce@example.com)
19
+ Accept-Encoding:
20
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
21
+ Accept:
22
+ - "*/*"
17
23
  response:
18
24
  status:
19
25
  code: 201
@@ -22,45 +28,43 @@ http_interactions:
22
28
  Server:
23
29
  - Cowboy
24
30
  Connection:
25
- - close
26
- Date:
27
- - Fri, 24 Oct 2014 20:11:14 GMT
28
- Status:
29
- - 201 Created
31
+ - keep-alive
30
32
  Strict-Transport-Security:
31
33
  - 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
34
  Location:
39
- - https://sandbox.boletosimples.com.br/api/v1/bank_billets/113
35
+ - https://sandbox.boletosimples.com.br/api/v1/bank_billets/851
40
36
  Content-Type:
41
37
  - application/json; charset=utf-8
38
+ X-Ratelimit-Limit:
39
+ - '500'
40
+ X-Ratelimit-Remaining:
41
+ - '466'
42
42
  Etag:
43
- - '"9e7977e69b5bea8f22b513c20958aaee"'
43
+ - W/"041ade0c7ea0750fb941604dfe6bf868"
44
44
  Cache-Control:
45
45
  - max-age=0, private, must-revalidate
46
46
  X-Request-Id:
47
- - ce91bf51-189d-438c-8767-da74beb19bf2
48
- X-Ratelimit-Limit:
49
- - '500'
50
- X-Ratelimit-Remaining:
51
- - '499'
47
+ - 5af00da9-557a-4907-a3fb-f1ed7a5b970e
52
48
  X-Runtime:
53
- - '0.283812'
49
+ - '0.225879'
50
+ Date:
51
+ - Sun, 08 Mar 2015 19:55:32 GMT
52
+ X-Rack-Cache:
53
+ - invalidate, pass
54
+ Vary:
55
+ - Accept-Encoding
56
+ Transfer-Encoding:
57
+ - chunked
54
58
  Via:
55
59
  - 1.1 vegur
56
60
  body:
57
61
  encoding: UTF-8
58
- string: '{"id":113,"expire_at":"2014-01-01","paid_at":null,"description":"Despesas
62
+ string: '{"id":851,"expire_at":"2014-01-01","paid_at":null,"description":"Despesas
59
63
  do contrato 0012","status":"generating","shorten_url":null,"customer_person_type":"individual","customer_person_name":"Joao
60
64
  da Silva","customer_cnpj_cpf":"012.345.678-90","customer_address":"Rua quinhentos","customer_state":"RJ","customer_neighborhood":"Sao
61
65
  Francisco","customer_zipcode":"12312-123","customer_address_number":"111","customer_address_complement":"Sala
62
66
  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
67
  de Janeiro","paid_amount":0.0,"amount":9.01}'
64
68
  http_version:
65
- recorded_at: Fri, 24 Oct 2014 20:11:15 GMT
69
+ recorded_at: Sun, 08 Mar 2015 19:55:32 GMT
66
70
  recorded_with: VCR 2.9.3
@@ -2,15 +2,19 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://sandbox.boletosimples.com.br/api/v1/bank_billets/113?access_token=9e616874dbf0674ace28170a748c9258ac1f0f87e0a544441ebffe976645bc09
5
+ uri: https://sandbox.boletosimples.com.br/api/v1/bank_billets/851?access_token=BOLETOSIMPLES_ACCESS_TOKEN
6
6
  body:
7
- encoding: UTF-8
8
- string: "{}"
7
+ encoding: US-ASCII
8
+ string: ''
9
9
  headers:
10
- Content-Type:
11
- - application/json
12
10
  User-Agent:
13
- - Meu e-Commerce (meuecommerce@example.com)
11
+ - BoletoSimples Ruby Client v0.1.0 (contato@boletosimples.com.br)
12
+ Authorization:
13
+ - Token token="BOLETOSIMPLES_ACCESS_TOKEN"
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - "*/*"
14
18
  response:
15
19
  status:
16
20
  code: 200
@@ -19,43 +23,41 @@ http_interactions:
19
23
  Server:
20
24
  - Cowboy
21
25
  Connection:
22
- - close
23
- Date:
24
- - Fri, 24 Oct 2014 20:25:41 GMT
25
- Status:
26
- - 200 OK
26
+ - keep-alive
27
27
  Strict-Transport-Security:
28
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
29
  Content-Type:
36
30
  - 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
31
  X-Ratelimit-Limit:
44
32
  - '500'
45
33
  X-Ratelimit-Remaining:
46
- - '499'
34
+ - '460'
35
+ Etag:
36
+ - W/"d7665b0a15eb03d124030c5f13771e4a"
37
+ Cache-Control:
38
+ - must-revalidate, private, max-age=0
39
+ X-Request-Id:
40
+ - ce28ce2c-bd0e-47eb-bb95-f7cfb764c024
47
41
  X-Runtime:
48
- - '0.144641'
42
+ - '0.049211'
43
+ Date:
44
+ - Sun, 08 Mar 2015 19:55:39 GMT
45
+ X-Rack-Cache:
46
+ - miss
47
+ Vary:
48
+ - Accept-Encoding
49
+ Transfer-Encoding:
50
+ - chunked
49
51
  Via:
50
52
  - 1.1 vegur
51
53
  body:
52
54
  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
+ string: '{"id":851,"expire_at":"2014-01-01","paid_at":null,"description":"Despesas
56
+ do contrato 0012","status":"canceled","shorten_url":"http://staging.bole.to/nirjavew","customer_person_type":"individual","customer_person_name":"Joao
55
57
  da Silva","customer_cnpj_cpf":"012.345.678-90","customer_address":"Rua quinhentos","customer_state":"RJ","customer_neighborhood":"Sao
56
58
  Francisco","customer_zipcode":"12312-123","customer_address_number":"111","customer_address_complement":"Sala
57
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
58
60
  de Janeiro","paid_amount":0.0,"amount":9.01}'
59
61
  http_version:
60
- recorded_at: Fri, 24 Oct 2014 20:25:42 GMT
62
+ recorded_at: Sun, 08 Mar 2015 19:55:38 GMT
61
63
  recorded_with: VCR 2.9.3