boletosimples 0.6.0 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (138) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +16 -12
  3. data/README.md +21 -59
  4. data/lib/boletosimples/configuration.rb +25 -28
  5. data/lib/boletosimples/last_request.rb +17 -10
  6. data/lib/boletosimples/middlewares/bearer.rb +12 -0
  7. data/lib/boletosimples/middlewares/custom_headers.rb +12 -0
  8. data/lib/boletosimples/middlewares/debug.rb +30 -0
  9. data/lib/boletosimples/middlewares/last_request.rb +3 -1
  10. data/lib/boletosimples/middlewares/raise_error.rb +9 -2
  11. data/lib/boletosimples/middlewares/user_agent.rb +3 -1
  12. data/lib/boletosimples/resources/bank_billet.rb +5 -11
  13. data/lib/boletosimples/resources/bank_billet_account.rb +3 -1
  14. data/lib/boletosimples/resources/bank_billet_discharge.rb +3 -1
  15. data/lib/boletosimples/resources/bank_billet_payment.rb +3 -1
  16. data/lib/boletosimples/resources/bank_billet_remittance.rb +3 -1
  17. data/lib/boletosimples/resources/base_model.rb +3 -1
  18. data/lib/boletosimples/resources/customer.rb +3 -1
  19. data/lib/boletosimples/resources/customer_import.rb +5 -3
  20. data/lib/boletosimples/resources/customer_subscription.rb +3 -10
  21. data/lib/boletosimples/resources/customer_subscription_import.rb +5 -3
  22. data/lib/boletosimples/resources/discharge.rb +4 -11
  23. data/lib/boletosimples/resources/email_delivery.rb +3 -1
  24. data/lib/boletosimples/resources/event.rb +3 -1
  25. data/lib/boletosimples/resources/installment.rb +3 -1
  26. data/lib/boletosimples/resources/remittance.rb +3 -1
  27. data/lib/boletosimples/resources/sms_delivery.rb +6 -0
  28. data/lib/boletosimples/resources/transaction.rb +3 -1
  29. data/lib/boletosimples/resources/webhook.rb +3 -1
  30. data/lib/boletosimples/resources/webhook_delivery.rb +3 -1
  31. data/lib/boletosimples/response_error.rb +10 -5
  32. data/lib/boletosimples/version.rb +3 -1
  33. data/lib/boletosimples.rb +6 -6
  34. data/spec/boletosimples/configuration_spec.rb +67 -80
  35. data/spec/boletosimples/last_request_spec.rb +17 -28
  36. data/spec/boletosimples/middlewares/custom_headers_spec.rb +26 -0
  37. data/spec/boletosimples/resources/bank_billet_account_spec.rb +57 -33
  38. data/spec/boletosimples/resources/bank_billet_discharge_spec.rb +7 -12
  39. data/spec/boletosimples/resources/bank_billet_payment_spec.rb +7 -12
  40. data/spec/boletosimples/resources/bank_billet_remittance_spec.rb +7 -12
  41. data/spec/boletosimples/resources/bank_billet_spec.rb +56 -42
  42. data/spec/boletosimples/resources/customer_import_spec.rb +41 -30
  43. data/spec/boletosimples/resources/customer_spec.rb +57 -39
  44. data/spec/boletosimples/resources/customer_subscription_import_spec.rb +41 -30
  45. data/spec/boletosimples/resources/customer_subscription_spec.rb +61 -33
  46. data/spec/boletosimples/resources/discharge_spec.rb +64 -11
  47. data/spec/boletosimples/resources/email_delivery_spec.rb +6 -11
  48. data/spec/boletosimples/resources/event_spec.rb +7 -12
  49. data/spec/boletosimples/resources/installment_spec.rb +61 -32
  50. data/spec/boletosimples/resources/remittance_spec.rb +7 -12
  51. data/spec/boletosimples/resources/sms_delivery_spec.rb +12 -0
  52. data/spec/boletosimples/resources/transactions_spec.rb +7 -12
  53. data/spec/boletosimples/resources/webhook_delivery_spec.rb +7 -12
  54. data/spec/boletosimples/resources/webhook_spec.rb +7 -12
  55. data/spec/fixtures/discharge.RET +3 -0
  56. data/spec/fixtures/vcr_cassettes/custom_headers.yml +113 -0
  57. data/spec/fixtures/vcr_cassettes/last_request/bank_billets.yml +409 -95
  58. data/spec/fixtures/vcr_cassettes/resources/bank_billet/all.yml +101 -99
  59. data/spec/fixtures/vcr_cassettes/resources/bank_billet/cancel/success.yml +55 -95
  60. data/spec/fixtures/vcr_cassettes/resources/bank_billet/create/invalid_params.yml +55 -27
  61. data/spec/fixtures/vcr_cassettes/resources/bank_billet/create/invalid_root.yml +51 -24
  62. data/spec/fixtures/vcr_cassettes/resources/bank_billet/create/valid.yml +64 -34
  63. data/spec/fixtures/vcr_cassettes/resources/bank_billet/duplicate/success.yml +97 -0
  64. data/spec/fixtures/vcr_cassettes/resources/bank_billet/find.yml +73 -34
  65. data/spec/fixtures/vcr_cassettes/resources/bank_billet_account/all.yml +82 -27
  66. data/spec/fixtures/vcr_cassettes/resources/bank_billet_account/create/invalid_params.yml +57 -27
  67. data/spec/fixtures/vcr_cassettes/resources/bank_billet_account/create/invalid_root.yml +53 -26
  68. data/spec/fixtures/vcr_cassettes/resources/bank_billet_account/create/valid.yml +64 -28
  69. data/spec/fixtures/vcr_cassettes/resources/bank_billet_account/find.yml +61 -25
  70. data/spec/fixtures/vcr_cassettes/resources/bank_billet_discharge/all.yml +59 -46
  71. data/spec/fixtures/vcr_cassettes/resources/bank_billet_payment/all.yml +74 -71
  72. data/spec/fixtures/vcr_cassettes/resources/bank_billet_remittance/all.yml +63 -47
  73. data/spec/fixtures/vcr_cassettes/resources/customer/all.yml +141 -39
  74. data/spec/fixtures/vcr_cassettes/resources/customer/create/invalid_params.yml +54 -25
  75. data/spec/fixtures/vcr_cassettes/resources/customer/create/invalid_root.yml +54 -24
  76. data/spec/fixtures/vcr_cassettes/resources/customer/create/valid.yml +56 -28
  77. data/spec/fixtures/vcr_cassettes/resources/customer/find.yml +56 -26
  78. data/spec/fixtures/vcr_cassettes/resources/customer_import/all.yml +58 -59
  79. data/spec/fixtures/vcr_cassettes/resources/customer_import/create/invalid_params.yml +53 -51
  80. data/spec/fixtures/vcr_cassettes/resources/customer_import/create/invalid_root.yml +54 -52
  81. data/spec/fixtures/vcr_cassettes/resources/customer_import/create/valid.yml +58 -67
  82. data/spec/fixtures/vcr_cassettes/resources/customer_import/find.yml +55 -53
  83. data/spec/fixtures/vcr_cassettes/resources/customer_subscription/all.yml +65 -51
  84. data/spec/fixtures/vcr_cassettes/resources/customer_subscription/create/invalid_params.yml +56 -50
  85. data/spec/fixtures/vcr_cassettes/resources/customer_subscription/create/invalid_root.yml +52 -48
  86. data/spec/fixtures/vcr_cassettes/resources/customer_subscription/create/valid.yml +63 -52
  87. data/spec/fixtures/vcr_cassettes/resources/customer_subscription/find.yml +61 -51
  88. data/spec/fixtures/vcr_cassettes/resources/customer_subscription/next_charge.yml +60 -132
  89. data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/all.yml +58 -54
  90. data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/create/invalid_params.yml +53 -52
  91. data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/create/invalid_root.yml +55 -53
  92. data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/create/valid.yml +58 -69
  93. data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/find.yml +55 -54
  94. data/spec/fixtures/vcr_cassettes/resources/discharge/all.yml +63 -34
  95. data/spec/fixtures/vcr_cassettes/resources/discharge/create/invalid_params.yml +86 -0
  96. data/spec/fixtures/vcr_cassettes/resources/discharge/create/invalid_root.yml +85 -0
  97. data/spec/fixtures/vcr_cassettes/resources/discharge/create/valid.yml +100 -0
  98. data/spec/fixtures/vcr_cassettes/resources/discharge/find.yml +89 -0
  99. data/spec/fixtures/vcr_cassettes/resources/email_delivery/all.yml +40 -43
  100. data/spec/fixtures/vcr_cassettes/resources/event/all.yml +326 -167
  101. data/spec/fixtures/vcr_cassettes/resources/installment/all.yml +113 -51
  102. data/spec/fixtures/vcr_cassettes/resources/installment/create/invalid_params.yml +57 -52
  103. data/spec/fixtures/vcr_cassettes/resources/installment/create/invalid_root.yml +52 -48
  104. data/spec/fixtures/vcr_cassettes/resources/installment/create/valid.yml +63 -52
  105. data/spec/fixtures/vcr_cassettes/resources/installment/find.yml +83 -51
  106. data/spec/fixtures/vcr_cassettes/resources/remittance/all.yml +83 -62
  107. data/spec/fixtures/vcr_cassettes/resources/sns_delivery/all.yml +89 -0
  108. data/spec/fixtures/vcr_cassettes/resources/transaction/all.yml +73 -60
  109. data/spec/fixtures/vcr_cassettes/resources/web_hook/all.yml +59 -34
  110. data/spec/fixtures/vcr_cassettes/resources/webhook_delivery/all.yml +2684 -55
  111. data/spec/spec_helper.rb +3 -20
  112. data/spec/support/stub_env.rb +7 -0
  113. data/spec/support/vcr.rb +3 -4
  114. metadata +42 -176
  115. data/.coveralls.yml +0 -2
  116. data/.gitignore +0 -19
  117. data/.ruby-version +0 -1
  118. data/.travis.yml +0 -46
  119. data/Gemfile +0 -4
  120. data/Rakefile +0 -14
  121. data/boletosimples.gemspec +0 -38
  122. data/gemfiles/rails_42.gemfile +0 -8
  123. data/gemfiles/rails_50.gemfile +0 -8
  124. data/gemfiles/rails_51.gemfile +0 -8
  125. data/gemfiles/rails_52.gemfile +0 -9
  126. data/lib/boletosimples/extra.rb +0 -8
  127. data/lib/boletosimples/resources/partner/user.rb +0 -7
  128. data/lib/oauth2_patch.rb +0 -24
  129. data/spec/boletosimples/extra_spec.rb +0 -31
  130. data/spec/boletosimples/resources/partner/user_spec.rb +0 -19
  131. data/spec/fixtures/vcr_cassettes/configuration/client_credentials/invalid.yml +0 -64
  132. data/spec/fixtures/vcr_cassettes/configuration/client_credentials/valid.yml +0 -56
  133. data/spec/fixtures/vcr_cassettes/extra/userinfo/authenticated.yml +0 -58
  134. data/spec/fixtures/vcr_cassettes/extra/userinfo/not_authenticated.yml +0 -54
  135. data/spec/fixtures/vcr_cassettes/last_request/userinfo.yml +0 -58
  136. data/spec/fixtures/vcr_cassettes/resources/bank_billet/cancel/failure.yml +0 -118
  137. data/spec/fixtures/vcr_cassettes/resources/partner/user/create.yml +0 -60
  138. data/spec/spec.opts +0 -8
@@ -2,131 +2,133 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://sandbox.boletosimples.com.br/api/v1/bank_billets?access_token=BOLETOSIMPLES_ACCESS_TOKEN
5
+ uri: https://api-sandbox.kobana.com.br/v1/bank_billets
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
9
9
  headers:
10
10
  User-Agent:
11
- - BoletoSimples Ruby Client v0.1.0 (contato@boletosimples.com.br)
11
+ - email@minhaempresa.com.br
12
12
  Authorization:
13
- - Token token="BOLETOSIMPLES_ACCESS_TOKEN"
13
+ - Bearer BOLETOSIMPLES_API_TOKEN
14
+ Accept:
15
+ - application/json
14
16
  Accept-Encoding:
15
17
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
- Accept:
17
- - "*/*"
18
18
  response:
19
19
  status:
20
20
  code: 200
21
21
  message: OK
22
22
  headers:
23
- Server:
24
- - Cowboy
25
- Connection:
26
- - keep-alive
27
- Strict-Transport-Security:
28
- - max-age=2592000
29
- Link:
30
- - <https://sandbox.boletosimples.com.br/api/v1/bank_billets?access_token=BOLETOSIMPLES_ACCESS_TOKEN&page=5>;
31
- rel="last", <https://sandbox.boletosimples.com.br/api/v1/bank_billets?access_token=BOLETOSIMPLES_ACCESS_TOKEN&page=2>;
32
- rel="next"
33
- Total:
34
- - '112'
35
23
  Content-Type:
36
24
  - application/json; charset=utf-8
25
+ Transfer-Encoding:
26
+ - chunked
27
+ Connection:
28
+ - keep-alive
29
+ Server:
30
+ - Cowboy
31
+ X-Frame-Options:
32
+ - DENY
33
+ X-Xss-Protection:
34
+ - 1; mode=block
35
+ X-Content-Type-Options:
36
+ - nosniff
37
+ X-Download-Options:
38
+ - noopen
39
+ X-Permitted-Cross-Domain-Policies:
40
+ - none
41
+ Referrer-Policy:
42
+ - strict-origin-when-cross-origin
43
+ Expect-Ct:
44
+ - max-age=0, report-uri="https://boletosimples.report-uri.com/r/d/ct/reportOnly"
45
+ Cross-Origin-Resource-Policy:
46
+ - cross-origin
47
+ Cross-Origin-Embedder-Policy:
48
+ - unsafe-none
49
+ Cross-Origin-Opener-Policy:
50
+ - unsafe-none
51
+ Per-Page:
52
+ - '50'
53
+ Page:
54
+ - ''
37
55
  X-Ratelimit-Limit:
38
- - '500'
56
+ - '100'
39
57
  X-Ratelimit-Remaining:
40
- - '463'
58
+ - '73'
41
59
  Etag:
42
- - W/"9e2d03ef9ae3b3f4fc3e329c90b3141a"
60
+ - W/"7fb9ac96ea2050ae2723ec8d674b89fe"
43
61
  Cache-Control:
44
62
  - must-revalidate, private, max-age=0
45
63
  X-Request-Id:
46
- - a02eae3e-694f-4ba6-ba28-c895cb77fa2b
64
+ - 2893c3b0-a422-4c34-bbb3-011f6a829a7b
47
65
  X-Runtime:
48
- - '0.091243'
66
+ - '0.088968'
49
67
  Date:
50
- - Sun, 08 Mar 2015 19:55:35 GMT
68
+ - Tue, 22 Feb 2022 17:30:25 GMT
51
69
  X-Rack-Cache:
52
70
  - miss
71
+ Strict-Transport-Security:
72
+ - max-age=31556952; includeSubDomains; preload
53
73
  Vary:
54
- - Accept-Encoding
55
- Transfer-Encoding:
56
- - chunked
74
+ - Origin,Accept-Encoding
75
+ X-Rack-Cors:
76
+ - miss; no-origin
57
77
  Via:
58
- - 1.1 vegur
78
+ - 1.1 vegur, 1.1 a849aab265796f3b1c80dee87a056b44.cloudfront.net (CloudFront)
79
+ X-Cache:
80
+ - Miss from cloudfront
81
+ X-Amz-Cf-Pop:
82
+ - MIA3-C1
83
+ X-Amz-Cf-Id:
84
+ - 8tz8o43MTNe9z2TypUFmTMotu6BtCubRMU_vyq9HTbgk27I0_lF_5Q==
59
85
  body:
60
86
  encoding: UTF-8
61
- string: '[{"id":851,"expire_at":"2014-01-01","paid_at":null,"description":"Despesas
62
- do contrato 0012","status":"opened","shorten_url":"http://staging.bole.to/nirjavew","customer_person_type":"individual","customer_person_name":"Joao
63
- da Silva","customer_cnpj_cpf":"012.345.678-90","customer_address":"Rua quinhentos","customer_state":"RJ","customer_neighborhood":"Sao
64
- Francisco","customer_zipcode":"12312-123","customer_address_number":"111","customer_address_complement":"Sala
65
- 4","customer_phone_number":"2112123434","customer_email":"cliente@example.com","notification_url":"http://example.com.br/notify","send_email_on_creation":null,"created_via_api":true,"customer_city_name":"Rio
66
- de Janeiro","paid_amount":0.0,"amount":9.01},{"id":850,"expire_at":"2014-01-01","paid_at":null,"description":"Despesas
67
- do contrato 0012","status":"canceled","shorten_url":"http://staging.bole.to/niriavev","customer_person_type":"individual","customer_person_name":"Joao
68
- da Silva","customer_cnpj_cpf":"012.345.678-90","customer_address":"Rua quinhentos","customer_state":"RJ","customer_neighborhood":"Sao
69
- Francisco","customer_zipcode":"12312-123","customer_address_number":"111","customer_address_complement":"Sala
70
- 4","customer_phone_number":"2112123434","customer_email":"cliente@example.com","notification_url":"http://example.com.br/notify","send_email_on_creation":null,"created_via_api":true,"customer_city_name":"Rio
71
- de Janeiro","paid_amount":0.0,"amount":9.01},{"id":799,"expire_at":"2015-01-01","paid_at":null,"description":"Cobrança
72
- XPTO","status":"opened","shorten_url":"http://staging.bole.to/niq5avd4","customer_person_type":"individual","customer_person_name":"Joao
73
- da Silva","customer_cnpj_cpf":"012.345.678-90","customer_address":"Rua quinhentos","customer_state":"RJ","customer_neighborhood":"Sao
74
- Francisco","customer_zipcode":"12312-123","customer_address_number":"111","customer_address_complement":"Sala
75
- 4","customer_phone_number":"2112123434","customer_email":"cliente@example.com","notification_url":null,"send_email_on_creation":null,"created_via_api":true,"customer_city_name":"Rio
76
- de Janeiro","paid_amount":0.0,"amount":9.99},{"id":798,"expire_at":"2014-01-01","paid_at":null,"description":"Despesas
77
- do contrato 0012","status":"canceled","shorten_url":"http://staging.bole.to/niq6avd3","customer_person_type":"individual","customer_person_name":"Joao
78
- da Silva","customer_cnpj_cpf":"012.345.678-90","customer_address":"Rua quinhentos","customer_state":"RJ","customer_neighborhood":"Sao
79
- Francisco","customer_zipcode":"12312-123","customer_address_number":"111","customer_address_complement":"Sala
80
- 4","customer_phone_number":"2112123434","customer_email":"cliente@example.com","notification_url":"http://example.com.br/notify","send_email_on_creation":null,"created_via_api":true,"customer_city_name":"Rio
81
- de Janeiro","paid_amount":0.0,"amount":9.01},{"id":797,"expire_at":"2014-01-01","paid_at":null,"description":"Despesas
82
- do contrato 0012","status":"opened","shorten_url":"http://staging.bole.to/niq7avd2","customer_person_type":"individual","customer_person_name":"Joao
83
- da Silva","customer_cnpj_cpf":"012.345.678-90","customer_address":"Rua quinhentos","customer_state":"RJ","customer_neighborhood":"Sao
84
- Francisco","customer_zipcode":"12312-123","customer_address_number":"111","customer_address_complement":"Sala
85
- 4","customer_phone_number":"2112123434","customer_email":"cliente@example.com","notification_url":"http://example.com.br/notify","send_email_on_creation":null,"created_via_api":true,"customer_city_name":"Rio
86
- de Janeiro","paid_amount":0.0,"amount":9.01},{"id":796,"expire_at":"2014-01-01","paid_at":null,"description":"Despesas
87
- do contrato 0012","status":"opened","shorten_url":"http://staging.bole.to/niq8avd1","customer_person_type":"individual","customer_person_name":"Joao
88
- da Silva","customer_cnpj_cpf":"012.345.678-90","customer_address":"Rua quinhentos","customer_state":"RJ","customer_neighborhood":"Sao
89
- Francisco","customer_zipcode":"12312-123","customer_address_number":"111","customer_address_complement":"Sala
90
- 4","customer_phone_number":"2112123434","customer_email":"cliente@example.com","notification_url":"http://example.com.br/notify","send_email_on_creation":null,"created_via_api":true,"customer_city_name":"Rio
91
- de Janeiro","paid_amount":0.0,"amount":9.01},{"id":793,"expire_at":"2015-01-02","paid_at":null,"description":"Teste
92
- de geração de boleto","status":"opened","shorten_url":"http://staging.bole.to/nioiavbv","customer_person_type":"individual","customer_person_name":"Rodolfo
93
- Lima","customer_cnpj_cpf":"748.885.399-79","customer_address":null,"customer_state":null,"customer_neighborhood":null,"customer_zipcode":"24360-440","customer_address_number":null,"customer_address_complement":null,"customer_phone_number":null,"customer_email":null,"notification_url":null,"send_email_on_creation":null,"created_via_api":true,"customer_city_name":null,"paid_amount":0.0,"amount":7.2},{"id":792,"expire_at":"2015-01-02","paid_at":null,"description":"Teste
94
- de geração de boleto","status":"opened","shorten_url":"http://staging.bole.to/niojavbw","customer_person_type":"individual","customer_person_name":"Fernanda
95
- Lima","customer_cnpj_cpf":"748.885.399-79","customer_address":null,"customer_state":null,"customer_neighborhood":null,"customer_zipcode":"24360-440","customer_address_number":null,"customer_address_complement":null,"customer_phone_number":null,"customer_email":null,"notification_url":null,"send_email_on_creation":null,"created_via_api":true,"customer_city_name":null,"paid_amount":0.0,"amount":7.2},{"id":791,"expire_at":"2015-01-01","paid_at":null,"description":"Teste
96
- de geração de boleto","status":"opened","shorten_url":"http://staging.bole.to/nioaavbn","customer_person_type":"individual","customer_person_name":"Rodolfo
97
- Lima","customer_cnpj_cpf":"748.885.399-79","customer_address":null,"customer_state":null,"customer_neighborhood":null,"customer_zipcode":"24360-440","customer_address_number":null,"customer_address_complement":null,"customer_phone_number":null,"customer_email":null,"notification_url":null,"send_email_on_creation":null,"created_via_api":true,"customer_city_name":null,"paid_amount":0.0,"amount":9.1},{"id":790,"expire_at":"2015-01-01","paid_at":null,"description":"Teste
98
- de geração de boleto","status":"opened","shorten_url":"http://staging.bole.to/niozavbm","customer_person_type":"individual","customer_person_name":"Rodolfo
99
- Lima","customer_cnpj_cpf":"748.885.399-79","customer_address":null,"customer_state":null,"customer_neighborhood":null,"customer_zipcode":"24360-440","customer_address_number":null,"customer_address_complement":null,"customer_phone_number":null,"customer_email":null,"notification_url":null,"send_email_on_creation":null,"created_via_api":true,"customer_city_name":null,"paid_amount":0.0,"amount":9.1},{"id":789,"expire_at":"2015-01-01","paid_at":null,"description":"Teste
100
- de geração de boleto","status":"opened","shorten_url":"http://staging.bole.to/nioyavbl","customer_person_type":"individual","customer_person_name":"Rodolfo
101
- Lima","customer_cnpj_cpf":"748.885.399-79","customer_address":null,"customer_state":null,"customer_neighborhood":null,"customer_zipcode":"24360-440","customer_address_number":null,"customer_address_complement":null,"customer_phone_number":null,"customer_email":null,"notification_url":null,"send_email_on_creation":null,"created_via_api":true,"customer_city_name":null,"paid_amount":0.0,"amount":9.1},{"id":788,"expire_at":"2015-01-01","paid_at":null,"description":"Teste
102
- de geração de boleto","status":"opened","shorten_url":"http://staging.bole.to/nioxavbk","customer_person_type":"individual","customer_person_name":"Rodolfo
103
- Lima","customer_cnpj_cpf":"748.885.399-79","customer_address":null,"customer_state":null,"customer_neighborhood":null,"customer_zipcode":"24360-440","customer_address_number":null,"customer_address_complement":null,"customer_phone_number":null,"customer_email":null,"notification_url":null,"send_email_on_creation":null,"created_via_api":true,"customer_city_name":null,"paid_amount":0.0,"amount":9.1},{"id":787,"expire_at":"2015-01-01","paid_at":null,"description":"Teste
104
- de geração de boleto","status":"opened","shorten_url":"http://staging.bole.to/niowavbj","customer_person_type":"individual","customer_person_name":"Rodolfo
105
- Lima","customer_cnpj_cpf":"748.885.399-79","customer_address":null,"customer_state":null,"customer_neighborhood":null,"customer_zipcode":"24360-440","customer_address_number":null,"customer_address_complement":null,"customer_phone_number":null,"customer_email":null,"notification_url":null,"send_email_on_creation":null,"created_via_api":true,"customer_city_name":null,"paid_amount":0.0,"amount":9.1},{"id":786,"expire_at":"2015-01-01","paid_at":null,"description":"Teste
106
- de geração de boleto","status":"opened","shorten_url":"http://staging.bole.to/niovavbi","customer_person_type":"individual","customer_person_name":"Rodolfo
107
- Lima","customer_cnpj_cpf":"748.885.399-79","customer_address":null,"customer_state":null,"customer_neighborhood":null,"customer_zipcode":"24360-440","customer_address_number":null,"customer_address_complement":null,"customer_phone_number":null,"customer_email":null,"notification_url":null,"send_email_on_creation":null,"created_via_api":true,"customer_city_name":null,"paid_amount":0.0,"amount":9.1},{"id":785,"expire_at":"2015-01-01","paid_at":null,"description":"Teste
108
- de geração de boleto","status":"opened","shorten_url":"http://staging.bole.to/niouavbh","customer_person_type":"individual","customer_person_name":"Rodolfo
109
- Lima","customer_cnpj_cpf":"748.885.399-79","customer_address":null,"customer_state":null,"customer_neighborhood":null,"customer_zipcode":"24360-440","customer_address_number":null,"customer_address_complement":null,"customer_phone_number":null,"customer_email":null,"notification_url":null,"send_email_on_creation":null,"created_via_api":true,"customer_city_name":null,"paid_amount":0.0,"amount":9.1},{"id":784,"expire_at":"2015-01-01","paid_at":null,"description":"Teste
110
- de geração de boleto","status":"opened","shorten_url":"http://staging.bole.to/niotavbg","customer_person_type":"individual","customer_person_name":"Rodolfo
111
- Lima","customer_cnpj_cpf":"748.885.399-79","customer_address":null,"customer_state":null,"customer_neighborhood":null,"customer_zipcode":"24360-440","customer_address_number":null,"customer_address_complement":null,"customer_phone_number":null,"customer_email":null,"notification_url":null,"send_email_on_creation":null,"created_via_api":true,"customer_city_name":null,"paid_amount":0.0,"amount":9.1},{"id":783,"expire_at":"2015-01-01","paid_at":null,"description":"Teste
112
- de geração de boleto","status":"opened","shorten_url":"http://staging.bole.to/nioravbe","customer_person_type":"individual","customer_person_name":"Rodolfo
113
- Lima","customer_cnpj_cpf":"748.885.399-79","customer_address":null,"customer_state":null,"customer_neighborhood":null,"customer_zipcode":"24360-440","customer_address_number":null,"customer_address_complement":null,"customer_phone_number":null,"customer_email":null,"notification_url":null,"send_email_on_creation":null,"created_via_api":true,"customer_city_name":null,"paid_amount":0.0,"amount":9.1},{"id":782,"expire_at":"2015-01-01","paid_at":null,"description":"Teste
114
- de geração de boleto","status":"opened","shorten_url":"http://staging.bole.to/niosavbf","customer_person_type":"individual","customer_person_name":"Rodolfo
115
- Lima","customer_cnpj_cpf":"748.885.399-79","customer_address":null,"customer_state":null,"customer_neighborhood":null,"customer_zipcode":"24360-440","customer_address_number":null,"customer_address_complement":null,"customer_phone_number":null,"customer_email":null,"notification_url":null,"send_email_on_creation":null,"created_via_api":true,"customer_city_name":null,"paid_amount":0.0,"amount":9.1},{"id":781,"expire_at":"2015-01-01","paid_at":null,"description":"Teste
116
- de geração de boleto","status":"opened","shorten_url":"http://staging.bole.to/niopavbc","customer_person_type":"individual","customer_person_name":"Rodolfo
117
- Lima","customer_cnpj_cpf":"748.885.399-79","customer_address":null,"customer_state":null,"customer_neighborhood":null,"customer_zipcode":"24360-440","customer_address_number":null,"customer_address_complement":null,"customer_phone_number":null,"customer_email":null,"notification_url":null,"send_email_on_creation":null,"created_via_api":true,"customer_city_name":null,"paid_amount":0.0,"amount":9.1},{"id":780,"expire_at":"2015-01-01","paid_at":null,"description":"Teste
118
- de geração de boleto","status":"opened","shorten_url":"http://staging.bole.to/nionavba","customer_person_type":"individual","customer_person_name":"Rodolfo
119
- Lima","customer_cnpj_cpf":"748.885.399-79","customer_address":null,"customer_state":null,"customer_neighborhood":null,"customer_zipcode":"24360-440","customer_address_number":null,"customer_address_complement":null,"customer_phone_number":null,"customer_email":null,"notification_url":null,"send_email_on_creation":null,"created_via_api":true,"customer_city_name":null,"paid_amount":0.0,"amount":9.1},{"id":779,"expire_at":"2015-01-01","paid_at":null,"description":"Teste
120
- de geração de boleto","status":"opened","shorten_url":"http://staging.bole.to/niooavbb","customer_person_type":"individual","customer_person_name":"Rodolfo
121
- Lima","customer_cnpj_cpf":"748.885.399-79","customer_address":null,"customer_state":null,"customer_neighborhood":null,"customer_zipcode":"24360-440","customer_address_number":null,"customer_address_complement":null,"customer_phone_number":null,"customer_email":null,"notification_url":null,"send_email_on_creation":null,"created_via_api":true,"customer_city_name":null,"paid_amount":0.0,"amount":9.1},{"id":778,"expire_at":"2015-01-01","paid_at":null,"description":"Teste
122
- de geração de boleto","status":"opened","shorten_url":"http://staging.bole.to/nio1avb8","customer_person_type":"individual","customer_person_name":"Rodolfo
123
- Lima","customer_cnpj_cpf":"748.885.399-79","customer_address":null,"customer_state":null,"customer_neighborhood":null,"customer_zipcode":"24360-440","customer_address_number":null,"customer_address_complement":null,"customer_phone_number":null,"customer_email":null,"notification_url":null,"send_email_on_creation":null,"created_via_api":true,"customer_city_name":null,"paid_amount":0.0,"amount":9.1},{"id":777,"expire_at":"2015-01-01","paid_at":null,"description":"Teste
124
- de geração de boleto","status":"opened","shorten_url":"http://staging.bole.to/nio1avb9","customer_person_type":"individual","customer_person_name":"Rodolfo
125
- Lima","customer_cnpj_cpf":"748.885.399-79","customer_address":null,"customer_state":null,"customer_neighborhood":null,"customer_zipcode":"24360-440","customer_address_number":null,"customer_address_complement":null,"customer_phone_number":null,"customer_email":null,"notification_url":null,"send_email_on_creation":null,"created_via_api":true,"customer_city_name":null,"paid_amount":0.0,"amount":9.1},{"id":776,"expire_at":"2015-01-01","paid_at":null,"description":"Teste
126
- de geração de boleto","status":"opened","shorten_url":"http://staging.bole.to/nio2avb7","customer_person_type":"individual","customer_person_name":"Rodolfo
127
- Lima","customer_cnpj_cpf":"748.885.399-79","customer_address":null,"customer_state":null,"customer_neighborhood":null,"customer_zipcode":"24360-440","customer_address_number":null,"customer_address_complement":null,"customer_phone_number":null,"customer_email":null,"notification_url":null,"send_email_on_creation":null,"created_via_api":true,"customer_city_name":null,"paid_amount":0.0,"amount":9.1},{"id":775,"expire_at":"2015-01-01","paid_at":null,"description":"Teste
128
- de geração de boleto","status":"opened","shorten_url":"http://staging.bole.to/nio3avb6","customer_person_type":"individual","customer_person_name":"Rodolfo
129
- Lima","customer_cnpj_cpf":"748.885.399-79","customer_address":null,"customer_state":null,"customer_neighborhood":null,"customer_zipcode":"24360-440","customer_address_number":null,"customer_address_complement":null,"customer_phone_number":null,"customer_email":null,"notification_url":null,"send_email_on_creation":null,"created_via_api":true,"customer_city_name":null,"paid_amount":0.0,"amount":9.1}]'
130
- http_version:
131
- recorded_at: Sun, 08 Mar 2015 19:55:35 GMT
132
- recorded_with: VCR 2.9.3
87
+ string: '[{"id":472529,"expire_at":"2024-01-02","paid_at":null,"description":"Despesas
88
+ do contrato 0012","status":"opened","customer_person_name":"Joao da Silva","customer_cnpj_cpf":"34.565.715/0001-03","customer_address":"Rua
89
+ quinhentos","customer_state":"RJ","customer_neighborhood":"Sao Francisco","customer_zipcode":"12312123","customer_address_number":"111","customer_address_complement":"Sala
90
+ 4","customer_phone_number":"2112123434","customer_email":"cliente@example.com","customer_email_cc":null,"customer_ignore_email":null,"customer_ignore_sms":null,"customer_mobile_local_code":null,"customer_mobile_number":null,"customer_nickname":null,"customer_notes":null,"created_via_api":true,"customer_city_name":"Rio
91
+ de Janeiro","paid_amount":0.0,"amount":9.01,"url":"https://sandbox.bole.to/3/lodlme","formats":{"default":"https://sandbox.bole.to/3/lodlme","png":"https://sandbox.bole.to/3/lodlme.png","pdf":"https://sandbox.bole.to/3/lodlme.pdf","boleto_hibrido":"https://sandbox.bole.to/3/lodlme/boleto_hibrido","boleto_pix":"https://sandbox.bole.to/3/lodlme/boleto_pix","barcode":"https://sandbox.bole.to/3/lodlme/barcode","envelope":"https://sandbox.bole.to/3/lodlme/envelope","letter":"https://sandbox.bole.to/3/lodlme/letter","line":"https://sandbox.bole.to/3/lodlme/line","recibo":"https://sandbox.bole.to/3/lodlme/recibo"},"meta":null,"fine_for_delay":null,"fine_type":0,"fine_percentage":null,"fine_value":null,"days_for_fine":null,"late_payment_interest":null,"interest_type":0,"interest_daily_value":null,"interest_daily_percentage":null,"interest_monthly_percentage":null,"days_for_interest":null,"discount_type":0,"discount_limit_date":null,"discount_value":null,"discount_percentage":null,"days_for_revoke":null,"notes":null,"payment_count":1,"bank_billet_account_id":659,"beneficiary_name":"Kivanio
92
+ Pereira Barbosa","beneficiary_cnpj_cpf":"000.233.771-19","beneficiary_address":"Rua
93
+ Quatro, 9, 78058-330","beneficiary_assignor_code":"0001/123322-0","guarantor_name":null,"guarantor_cnpj_cpf":null,"payment_place":"Pagável
94
+ em qualquer banco até a data de vencimento.","instructions":null,"document_date":null,"document_type":"02","document_number":null,"acceptance":"N","processed_our_number":"14000000000000085-5","processed_our_number_raw":"140000000000000855","bank_contract_slug":"caixa-rg","agency_number":"2342","agency_digit":"2","account_number":"0012432","account_digit":"1","extra1":"0123322","extra1_digit":null,"extra2":null,"extra2_digit":null,"line":"10491.23324
95
+ 20000.100048 00000.008581 1 95830000000901","our_number":"000000000000085","customer_subscription_id":null,"installment_total":null,"installment_number":null,"installment_id":null,"carne_url":null,"bank_billet_layout_id":null,"created_at":"2022-02-22T14:30:25-03:00","updated_at":"2022-02-22T14:30:25-03:00","tags":[],"tag_list":null,"document_type_label":"DM","addons":null,"ignore_email":false,"ignore_sms":false,"sue_code":null,"revoke_code":null,"first_instruction":null,"second_instruction":null,"guarantor_address_number":null,"guarantor_neighborhood":null,"guarantor_phone_number":null,"guarantor_city_name":null,"guarantor_state":null,"guarantor_zipcode":null,"guarantor_address":null,"guarantor_address_complement":null,"barcode":"10491958300000009011233220000100040000000858","registered_at":null,"prevent_registration":false,"customer_id":93341,"control_number":null,"divergent_payment_type":null,"divergent_payment_value_type":null,"divergent_payment_maximum_value":null,"divergent_payment_minimum_value":null,"divergent_payment_maximum_percentage":null,"divergent_payment_minimum_percentage":null,"divergent_payment_limit":null,"days_for_discount":null,"days_for_second_discount":null,"second_discount_percentage":null,"second_discount_value":null,"days_for_third_discount":null,"third_discount_percentage":null,"third_discount_value":null,"days_for_sue":null,"days_for_negativation":null,"interest_percentage":null,"interest_value":null,"interest_days_type":0,"customer_contact_person":null,"custom_attachment_name":null,"split_payment":false,"dispatch_type":1,"charge_type":1,"custom_data":null,"issued_at":"2022-02-22T14:30:25-03:00","shorten_url":"https://sandbox.bole.to/3/lodlme","pix_enabled":false,"pix_qrcode":null,"password_protected_mode":null,"revoked_at":null,"bank_billet_discharges":[],"bank_billet_remittances":[{"id":433977,"our_code":"1001","occurrence":"01","remittance_id":null,"bank_billet_id":472529,"bank_billet_account_id":659,"processed_at":null,"occurrence_detail":"Entrada
96
+ de Título","created_at":"2022-02-22T14:30:25-03:00"}],"bank_billet_payments":[],"bank_billet_registrations":[],"bank_billet_split_accounts":[],"pix":[]},{"id":472528,"expire_at":"2022-11-16","paid_at":null,"description":"Hospedagem","status":"opened","customer_person_name":"Joao
97
+ da Silva","customer_cnpj_cpf":"18.033.842/0001-05","customer_address":"Rua
98
+ quinhentos","customer_state":"RJ","customer_neighborhood":"Sao Francisco","customer_zipcode":"12312123","customer_address_number":"111","customer_address_complement":"Sala
99
+ 4","customer_phone_number":"2112123434","customer_email":"cliente@example.com","customer_email_cc":null,"customer_ignore_email":null,"customer_ignore_sms":null,"customer_mobile_local_code":null,"customer_mobile_number":null,"customer_nickname":null,"customer_notes":null,"created_via_api":false,"customer_city_name":"Rio
100
+ de Janeiro","paid_amount":0.0,"amount":1120.4,"url":"https://sandbox.bole.to/3/yqrngb","formats":{"default":"https://sandbox.bole.to/3/yqrngb","png":"https://sandbox.bole.to/3/yqrngb.png","pdf":"https://sandbox.bole.to/3/yqrngb.pdf","boleto_hibrido":"https://sandbox.bole.to/3/yqrngb/boleto_hibrido","boleto_pix":"https://sandbox.bole.to/3/yqrngb/boleto_pix","barcode":"https://sandbox.bole.to/3/yqrngb/barcode","envelope":"https://sandbox.bole.to/3/yqrngb/envelope","letter":"https://sandbox.bole.to/3/yqrngb/letter","line":"https://sandbox.bole.to/3/yqrngb/line","recibo":"https://sandbox.bole.to/3/yqrngb/recibo","carne":"https://sandbox.bole.to/3/yqrngb/carne"},"meta":null,"fine_for_delay":null,"fine_type":0,"fine_percentage":null,"fine_value":null,"days_for_fine":null,"late_payment_interest":null,"interest_type":0,"interest_daily_value":null,"interest_daily_percentage":null,"interest_monthly_percentage":null,"days_for_interest":null,"discount_type":0,"discount_limit_date":null,"discount_value":null,"discount_percentage":null,"days_for_revoke":null,"notes":null,"payment_count":1,"bank_billet_account_id":659,"beneficiary_name":"Kivanio
101
+ Pereira Barbosa","beneficiary_cnpj_cpf":"000.233.771-19","beneficiary_address":"Rua
102
+ Quatro, 9, 78058-330","beneficiary_assignor_code":"0001/123322-0","guarantor_name":null,"guarantor_cnpj_cpf":null,"payment_place":"Pagável
103
+ em qualquer banco até a data de vencimento.","instructions":null,"document_date":null,"document_type":"02","document_number":null,"acceptance":"N","processed_our_number":"14000000000000084-7","processed_our_number_raw":"140000000000000847","bank_contract_slug":"caixa-rg","agency_number":"2342","agency_digit":"2","account_number":"0012432","account_digit":"1","extra1":"0123322","extra1_digit":null,"extra2":null,"extra2_digit":null,"line":"10491.23324
104
+ 20000.100048 00000.008409 1 91710000112040","our_number":"000000000000084","customer_subscription_id":null,"installment_total":3,"installment_number":3,"installment_id":15264,"carne_url":"https://sandbox.bole.to/3/yqrngb/carne","bank_billet_layout_id":null,"created_at":"2022-02-22T14:27:01-03:00","updated_at":"2022-02-22T14:27:02-03:00","tags":[],"tag_list":null,"document_type_label":"DM","addons":null,"ignore_email":false,"ignore_sms":false,"sue_code":null,"revoke_code":null,"first_instruction":null,"second_instruction":null,"guarantor_address_number":null,"guarantor_neighborhood":null,"guarantor_phone_number":null,"guarantor_city_name":null,"guarantor_state":null,"guarantor_zipcode":null,"guarantor_address":null,"guarantor_address_complement":null,"barcode":"10491917100001120401233220000100040000000840","registered_at":null,"prevent_registration":false,"customer_id":93340,"control_number":null,"divergent_payment_type":null,"divergent_payment_value_type":null,"divergent_payment_maximum_value":null,"divergent_payment_minimum_value":null,"divergent_payment_maximum_percentage":null,"divergent_payment_minimum_percentage":null,"divergent_payment_limit":null,"days_for_discount":null,"days_for_second_discount":null,"second_discount_percentage":null,"second_discount_value":null,"days_for_third_discount":null,"third_discount_percentage":null,"third_discount_value":null,"days_for_sue":null,"days_for_negativation":null,"interest_percentage":null,"interest_value":null,"interest_days_type":0,"customer_contact_person":null,"custom_attachment_name":null,"split_payment":false,"dispatch_type":1,"charge_type":1,"custom_data":null,"issued_at":"2022-02-22T14:27:01-03:00","shorten_url":"https://sandbox.bole.to/3/yqrngb","pix_enabled":false,"pix_qrcode":null,"password_protected_mode":null,"revoked_at":null,"bank_billet_discharges":[],"bank_billet_remittances":[{"id":433976,"our_code":"1001","occurrence":"01","remittance_id":null,"bank_billet_id":472528,"bank_billet_account_id":659,"processed_at":null,"occurrence_detail":"Entrada
105
+ de Título","created_at":"2022-02-22T14:27:02-03:00"}],"bank_billet_payments":[],"bank_billet_registrations":[],"bank_billet_split_accounts":[],"pix":[]},{"id":472527,"expire_at":"2022-10-17","paid_at":null,"description":"Hospedagem","status":"opened","customer_person_name":"Joao
106
+ da Silva","customer_cnpj_cpf":"18.033.842/0001-05","customer_address":"Rua
107
+ quinhentos","customer_state":"RJ","customer_neighborhood":"Sao Francisco","customer_zipcode":"12312123","customer_address_number":"111","customer_address_complement":"Sala
108
+ 4","customer_phone_number":"2112123434","customer_email":"cliente@example.com","customer_email_cc":null,"customer_ignore_email":null,"customer_ignore_sms":null,"customer_mobile_local_code":null,"customer_mobile_number":null,"customer_nickname":null,"customer_notes":null,"created_via_api":false,"customer_city_name":"Rio
109
+ de Janeiro","paid_amount":0.0,"amount":1120.4,"url":"https://sandbox.bole.to/3/mvzyld","formats":{"default":"https://sandbox.bole.to/3/mvzyld","png":"https://sandbox.bole.to/3/mvzyld.png","pdf":"https://sandbox.bole.to/3/mvzyld.pdf","boleto_hibrido":"https://sandbox.bole.to/3/mvzyld/boleto_hibrido","boleto_pix":"https://sandbox.bole.to/3/mvzyld/boleto_pix","barcode":"https://sandbox.bole.to/3/mvzyld/barcode","envelope":"https://sandbox.bole.to/3/mvzyld/envelope","letter":"https://sandbox.bole.to/3/mvzyld/letter","line":"https://sandbox.bole.to/3/mvzyld/line","recibo":"https://sandbox.bole.to/3/mvzyld/recibo","carne":"https://sandbox.bole.to/3/mvzyld/carne"},"meta":null,"fine_for_delay":null,"fine_type":0,"fine_percentage":null,"fine_value":null,"days_for_fine":null,"late_payment_interest":null,"interest_type":0,"interest_daily_value":null,"interest_daily_percentage":null,"interest_monthly_percentage":null,"days_for_interest":null,"discount_type":0,"discount_limit_date":null,"discount_value":null,"discount_percentage":null,"days_for_revoke":null,"notes":null,"payment_count":1,"bank_billet_account_id":659,"beneficiary_name":"Kivanio
110
+ Pereira Barbosa","beneficiary_cnpj_cpf":"000.233.771-19","beneficiary_address":"Rua
111
+ Quatro, 9, 78058-330","beneficiary_assignor_code":"0001/123322-0","guarantor_name":null,"guarantor_cnpj_cpf":null,"payment_place":"Pagável
112
+ em qualquer banco até a data de vencimento.","instructions":null,"document_date":null,"document_type":"02","document_number":null,"acceptance":"N","processed_our_number":"14000000000000083-9","processed_our_number_raw":"140000000000000839","bank_contract_slug":"caixa-rg","agency_number":"2342","agency_digit":"2","account_number":"0012432","account_digit":"1","extra1":"0123322","extra1_digit":null,"extra2":null,"extra2_digit":null,"line":"10491.23324
113
+ 20000.100048 00000.008318 9 91410000112040","our_number":"000000000000083","customer_subscription_id":null,"installment_total":3,"installment_number":2,"installment_id":15264,"carne_url":"https://sandbox.bole.to/3/mvzyld/carne","bank_billet_layout_id":null,"created_at":"2022-02-22T14:27:01-03:00","updated_at":"2022-02-22T14:27:02-03:00","tags":[],"tag_list":null,"document_type_label":"DM","addons":null,"ignore_email":false,"ignore_sms":false,"sue_code":null,"revoke_code":null,"first_instruction":null,"second_instruction":null,"guarantor_address_number":null,"guarantor_neighborhood":null,"guarantor_phone_number":null,"guarantor_city_name":null,"guarantor_state":null,"guarantor_zipcode":null,"guarantor_address":null,"guarantor_address_complement":null,"barcode":"10499914100001120401233220000100040000000831","registered_at":null,"prevent_registration":false,"customer_id":93340,"control_number":null,"divergent_payment_type":null,"divergent_payment_value_type":null,"divergent_payment_maximum_value":null,"divergent_payment_minimum_value":null,"divergent_payment_maximum_percentage":null,"divergent_payment_minimum_percentage":null,"divergent_payment_limit":null,"days_for_discount":null,"days_for_second_discount":null,"second_discount_percentage":null,"second_discount_value":null,"days_for_third_discount":null,"third_discount_percentage":null,"third_discount_value":null,"days_for_sue":null,"days_for_negativation":null,"interest_percentage":null,"interest_value":null,"interest_days_type":0,"customer_contact_person":null,"custom_attachment_name":null,"split_payment":false,"dispatch_type":1,"charge_type":1,"custom_data":null,"issued_at":"2022-02-22T14:27:01-03:00","shorten_url":"https://sandbox.bole.to/3/mvzyld","pix_enabled":false,"pix_qrcode":null,"password_protected_mode":null,"revoked_at":null,"bank_billet_discharges":[],"bank_billet_remittances":[{"id":433974,"our_code":"1001","occurrence":"01","remittance_id":null,"bank_billet_id":472527,"bank_billet_account_id":659,"processed_at":null,"occurrence_detail":"Entrada
114
+ de Título","created_at":"2022-02-22T14:27:02-03:00"}],"bank_billet_payments":[],"bank_billet_registrations":[],"bank_billet_split_accounts":[],"pix":[]},{"id":472526,"expire_at":"2022-09-15","paid_at":null,"description":"Hospedagem","status":"opened","customer_person_name":"Joao
115
+ da Silva","customer_cnpj_cpf":"18.033.842/0001-05","customer_address":"Rua
116
+ quinhentos","customer_state":"RJ","customer_neighborhood":"Sao Francisco","customer_zipcode":"12312123","customer_address_number":"111","customer_address_complement":"Sala
117
+ 4","customer_phone_number":"2112123434","customer_email":"cliente@example.com","customer_email_cc":null,"customer_ignore_email":null,"customer_ignore_sms":null,"customer_mobile_local_code":null,"customer_mobile_number":null,"customer_nickname":null,"customer_notes":null,"created_via_api":false,"customer_city_name":"Rio
118
+ de Janeiro","paid_amount":0.0,"amount":1120.4,"url":"https://sandbox.bole.to/3/rdvrov","formats":{"default":"https://sandbox.bole.to/3/rdvrov","png":"https://sandbox.bole.to/3/rdvrov.png","pdf":"https://sandbox.bole.to/3/rdvrov.pdf","boleto_hibrido":"https://sandbox.bole.to/3/rdvrov/boleto_hibrido","boleto_pix":"https://sandbox.bole.to/3/rdvrov/boleto_pix","barcode":"https://sandbox.bole.to/3/rdvrov/barcode","envelope":"https://sandbox.bole.to/3/rdvrov/envelope","letter":"https://sandbox.bole.to/3/rdvrov/letter","line":"https://sandbox.bole.to/3/rdvrov/line","recibo":"https://sandbox.bole.to/3/rdvrov/recibo","carne":"https://sandbox.bole.to/3/rdvrov/carne"},"meta":null,"fine_for_delay":null,"fine_type":0,"fine_percentage":null,"fine_value":null,"days_for_fine":null,"late_payment_interest":null,"interest_type":0,"interest_daily_value":null,"interest_daily_percentage":null,"interest_monthly_percentage":null,"days_for_interest":null,"discount_type":0,"discount_limit_date":null,"discount_value":null,"discount_percentage":null,"days_for_revoke":null,"notes":null,"payment_count":1,"bank_billet_account_id":659,"beneficiary_name":"Kivanio
119
+ Pereira Barbosa","beneficiary_cnpj_cpf":"000.233.771-19","beneficiary_address":"Rua
120
+ Quatro, 9, 78058-330","beneficiary_assignor_code":"0001/123322-0","guarantor_name":null,"guarantor_cnpj_cpf":null,"payment_place":"Pagável
121
+ em qualquer banco até a data de vencimento.","instructions":null,"document_date":null,"document_type":"02","document_number":null,"acceptance":"N","processed_our_number":"14000000000000082-0","processed_our_number_raw":"140000000000000820","bank_contract_slug":"caixa-rg","agency_number":"2342","agency_digit":"2","account_number":"0012432","account_digit":"1","extra1":"0123322","extra1_digit":null,"extra2":null,"extra2_digit":null,"line":"10491.23324
122
+ 20000.100048 00000.008235 3 91090000112040","our_number":"000000000000082","customer_subscription_id":null,"installment_total":3,"installment_number":1,"installment_id":15264,"carne_url":"https://sandbox.bole.to/3/rdvrov/carne","bank_billet_layout_id":null,"created_at":"2022-02-22T14:27:01-03:00","updated_at":"2022-02-22T14:27:02-03:00","tags":[],"tag_list":null,"document_type_label":"DM","addons":null,"ignore_email":false,"ignore_sms":false,"sue_code":null,"revoke_code":null,"first_instruction":null,"second_instruction":null,"guarantor_address_number":null,"guarantor_neighborhood":null,"guarantor_phone_number":null,"guarantor_city_name":null,"guarantor_state":null,"guarantor_zipcode":null,"guarantor_address":null,"guarantor_address_complement":null,"barcode":"10493910900001120401233220000100040000000823","registered_at":null,"prevent_registration":false,"customer_id":93340,"control_number":null,"divergent_payment_type":null,"divergent_payment_value_type":null,"divergent_payment_maximum_value":null,"divergent_payment_minimum_value":null,"divergent_payment_maximum_percentage":null,"divergent_payment_minimum_percentage":null,"divergent_payment_limit":null,"days_for_discount":null,"days_for_second_discount":null,"second_discount_percentage":null,"second_discount_value":null,"days_for_third_discount":null,"third_discount_percentage":null,"third_discount_value":null,"days_for_sue":null,"days_for_negativation":null,"interest_percentage":null,"interest_value":null,"interest_days_type":0,"customer_contact_person":null,"custom_attachment_name":null,"split_payment":false,"dispatch_type":1,"charge_type":1,"custom_data":null,"issued_at":"2022-02-22T14:27:01-03:00","shorten_url":"https://sandbox.bole.to/3/rdvrov","pix_enabled":false,"pix_qrcode":null,"password_protected_mode":null,"revoked_at":null,"bank_billet_discharges":[],"bank_billet_remittances":[{"id":433975,"our_code":"1001","occurrence":"01","remittance_id":null,"bank_billet_id":472526,"bank_billet_account_id":659,"processed_at":null,"occurrence_detail":"Entrada
123
+ de Título","created_at":"2022-02-22T14:27:02-03:00"}],"bank_billet_payments":[],"bank_billet_registrations":[],"bank_billet_split_accounts":[],"pix":[]},{"id":472525,"expire_at":"2022-03-22","paid_at":null,"description":"Hospedagem","status":"opened","customer_person_name":"Joao
124
+ da Silva","customer_cnpj_cpf":"18.033.842/0001-05","customer_address":"Rua
125
+ quinhentos","customer_state":"RJ","customer_neighborhood":"Sao Francisco","customer_zipcode":"12312123","customer_address_number":"111","customer_address_complement":"Sala
126
+ 4","customer_phone_number":"2112123434","customer_email":"cliente@example.com","customer_email_cc":null,"customer_ignore_email":null,"customer_ignore_sms":null,"customer_mobile_local_code":null,"customer_mobile_number":null,"customer_nickname":null,"customer_notes":null,"created_via_api":false,"customer_city_name":"Rio
127
+ de Janeiro","paid_amount":0.0,"amount":1120.4,"url":"https://sandbox.bole.to/3/zgmjoq","formats":{"default":"https://sandbox.bole.to/3/zgmjoq","png":"https://sandbox.bole.to/3/zgmjoq.png","pdf":"https://sandbox.bole.to/3/zgmjoq.pdf","boleto_hibrido":"https://sandbox.bole.to/3/zgmjoq/boleto_hibrido","boleto_pix":"https://sandbox.bole.to/3/zgmjoq/boleto_pix","barcode":"https://sandbox.bole.to/3/zgmjoq/barcode","envelope":"https://sandbox.bole.to/3/zgmjoq/envelope","letter":"https://sandbox.bole.to/3/zgmjoq/letter","line":"https://sandbox.bole.to/3/zgmjoq/line","recibo":"https://sandbox.bole.to/3/zgmjoq/recibo"},"meta":null,"fine_for_delay":null,"fine_type":0,"fine_percentage":null,"fine_value":null,"days_for_fine":null,"late_payment_interest":null,"interest_type":0,"interest_daily_value":null,"interest_daily_percentage":null,"interest_monthly_percentage":null,"days_for_interest":null,"discount_type":0,"discount_limit_date":null,"discount_value":null,"discount_percentage":null,"days_for_revoke":null,"notes":null,"payment_count":1,"bank_billet_account_id":659,"beneficiary_name":"Kivanio
128
+ Pereira Barbosa","beneficiary_cnpj_cpf":"000.233.771-19","beneficiary_address":"Rua
129
+ Quatro, 9, 78058-330","beneficiary_assignor_code":"0001/123322-0","guarantor_name":null,"guarantor_cnpj_cpf":null,"payment_place":"Pagável
130
+ em qualquer banco até a data de vencimento.","instructions":null,"document_date":null,"document_type":"02","document_number":null,"acceptance":"N","processed_our_number":"14000000000000081-2","processed_our_number_raw":"140000000000000812","bank_contract_slug":"caixa-rg","agency_number":"2342","agency_digit":"2","account_number":"0012432","account_digit":"1","extra1":"0123322","extra1_digit":null,"extra2":null,"extra2_digit":null,"line":"10491.23324
131
+ 20000.100048 00000.008151 4 89320000112040","our_number":"000000000000081","customer_subscription_id":3200,"installment_total":null,"installment_number":null,"installment_id":null,"carne_url":null,"bank_billet_layout_id":null,"created_at":"2022-02-22T14:26:58-03:00","updated_at":"2022-02-22T14:26:58-03:00","tags":[],"tag_list":null,"document_type_label":"DM","addons":null,"ignore_email":false,"ignore_sms":false,"sue_code":null,"revoke_code":null,"first_instruction":null,"second_instruction":null,"guarantor_address_number":null,"guarantor_neighborhood":null,"guarantor_phone_number":null,"guarantor_city_name":null,"guarantor_state":null,"guarantor_zipcode":null,"guarantor_address":null,"guarantor_address_complement":null,"barcode":"10494893200001120401233220000100040000000815","registered_at":null,"prevent_registration":false,"customer_id":93340,"control_number":null,"divergent_payment_type":null,"divergent_payment_value_type":null,"divergent_payment_maximum_value":null,"divergent_payment_minimum_value":null,"divergent_payment_maximum_percentage":null,"divergent_payment_minimum_percentage":null,"divergent_payment_limit":null,"days_for_discount":null,"days_for_second_discount":null,"second_discount_percentage":null,"second_discount_value":null,"days_for_third_discount":null,"third_discount_percentage":null,"third_discount_value":null,"days_for_sue":null,"days_for_negativation":null,"interest_percentage":null,"interest_value":null,"interest_days_type":0,"customer_contact_person":null,"custom_attachment_name":null,"split_payment":false,"dispatch_type":1,"charge_type":1,"custom_data":null,"issued_at":"2022-02-22T14:26:58-03:00","shorten_url":"https://sandbox.bole.to/3/zgmjoq","pix_enabled":false,"pix_qrcode":null,"password_protected_mode":null,"revoked_at":null,"bank_billet_discharges":[],"bank_billet_remittances":[{"id":433973,"our_code":"1001","occurrence":"01","remittance_id":null,"bank_billet_id":472525,"bank_billet_account_id":659,"processed_at":null,"occurrence_detail":"Entrada
132
+ de Título","created_at":"2022-02-22T14:26:58-03:00"}],"bank_billet_payments":[],"bank_billet_registrations":[],"bank_billet_split_accounts":[],"pix":[]}]'
133
+ recorded_at: Tue, 22 Feb 2022 17:30:25 GMT
134
+ recorded_with: VCR 6.0.0
@@ -1,125 +1,85 @@
1
1
  ---
2
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@example.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
3
  - request:
64
4
  method: put
65
- uri: https://sandbox.boletosimples.com.br/api/v1/bank_billets/851/cancel?access_token=BOLETOSIMPLES_ACCESS_TOKEN
5
+ uri: https://api-sandbox.kobana.com.br/v1/bank_billets/472529/cancel
66
6
  body:
67
7
  encoding: UTF-8
68
- string: "{}"
8
+ string: '{"bank_billet":{"id":472529}}'
69
9
  headers:
70
10
  User-Agent:
71
- - BoletoSimples Ruby Client v0.1.0 (contato@boletosimples.com.br)
11
+ - email@minhaempresa.com.br
72
12
  Authorization:
73
- - Token token="BOLETOSIMPLES_ACCESS_TOKEN"
13
+ - Bearer BOLETOSIMPLES_API_TOKEN
74
14
  Content-Type:
75
15
  - application/json
16
+ Accept:
17
+ - application/json
76
18
  Accept-Encoding:
77
19
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
78
- Accept:
79
- - "*/*"
80
20
  response:
81
21
  status:
82
- code: 200
83
- message: OK
22
+ code: 204
23
+ message: No Content
84
24
  headers:
85
- Server:
86
- - Cowboy
25
+ Content-Length:
26
+ - '0'
87
27
  Connection:
88
28
  - keep-alive
89
- Strict-Transport-Security:
90
- - max-age=2592000
91
- Content-Type:
92
- - application/json; charset=utf-8
29
+ Server:
30
+ - Cowboy
31
+ X-Frame-Options:
32
+ - DENY
33
+ X-Xss-Protection:
34
+ - 1; mode=block
35
+ X-Content-Type-Options:
36
+ - nosniff
37
+ X-Download-Options:
38
+ - noopen
39
+ X-Permitted-Cross-Domain-Policies:
40
+ - none
41
+ Referrer-Policy:
42
+ - strict-origin-when-cross-origin
43
+ Expect-Ct:
44
+ - max-age=0, report-uri="https://boletosimples.report-uri.com/r/d/ct/reportOnly"
45
+ Cross-Origin-Resource-Policy:
46
+ - cross-origin
47
+ Cross-Origin-Embedder-Policy:
48
+ - unsafe-none
49
+ Cross-Origin-Opener-Policy:
50
+ - unsafe-none
51
+ Location:
52
+ - https://api-sandbox.kobana.com.br/api/v1/bank_billets/472529
93
53
  X-Ratelimit-Limit:
94
- - '500'
54
+ - '18000'
95
55
  X-Ratelimit-Remaining:
96
- - '461'
97
- Etag:
98
- - W/"d7665b0a15eb03d124030c5f13771e4a"
56
+ - '17971'
99
57
  Cache-Control:
100
- - max-age=0, private, must-revalidate
58
+ - no-cache
101
59
  X-Request-Id:
102
- - 7773008b-3423-4038-a157-100679061d62
60
+ - adfbe68a-a22e-4362-b3de-81f158d05295
103
61
  X-Runtime:
104
- - '0.185339'
62
+ - '0.093577'
105
63
  Date:
106
- - Sun, 08 Mar 2015 19:55:38 GMT
64
+ - Tue, 22 Feb 2022 17:30:26 GMT
107
65
  X-Rack-Cache:
108
66
  - invalidate, pass
67
+ Strict-Transport-Security:
68
+ - max-age=31556952; includeSubDomains; preload
109
69
  Vary:
110
- - Accept-Encoding
111
- Transfer-Encoding:
112
- - chunked
70
+ - Origin
71
+ X-Rack-Cors:
72
+ - miss; no-origin
113
73
  Via:
114
- - 1.1 vegur
74
+ - 1.1 vegur, 1.1 d2c636aea3f69033bb2125c4038e1c48.cloudfront.net (CloudFront)
75
+ X-Cache:
76
+ - Miss from cloudfront
77
+ X-Amz-Cf-Pop:
78
+ - MIA3-C1
79
+ X-Amz-Cf-Id:
80
+ - tSDnksGSthqa2kgGQBHJQoiUNaTJy5gOPtiv_J6oqM1_heTZvl1qYg==
115
81
  body:
116
82
  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@example.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
83
+ string: ''
84
+ recorded_at: Tue, 22 Feb 2022 17:30:26 GMT
85
+ recorded_with: VCR 6.0.0