boletosimples 0.6.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (136) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ruby.yml +34 -0
  3. data/.rspec +3 -0
  4. data/.rubocop.yml +9 -0
  5. data/.ruby-version +1 -1
  6. data/CHANGELOG.md +6 -20
  7. data/Gemfile +2 -0
  8. data/README.md +12 -54
  9. data/Rakefile +3 -1
  10. data/boletosimples.gemspec +14 -11
  11. data/lib/boletosimples.rb +4 -6
  12. data/lib/boletosimples/configuration.rb +14 -25
  13. data/lib/boletosimples/last_request.rb +12 -9
  14. data/lib/boletosimples/middlewares/bearer.rb +12 -0
  15. data/lib/boletosimples/middlewares/last_request.rb +3 -1
  16. data/lib/boletosimples/middlewares/raise_error.rb +9 -2
  17. data/lib/boletosimples/middlewares/user_agent.rb +3 -1
  18. data/lib/boletosimples/resources/bank_billet.rb +5 -11
  19. data/lib/boletosimples/resources/bank_billet_account.rb +3 -1
  20. data/lib/boletosimples/resources/bank_billet_discharge.rb +3 -1
  21. data/lib/boletosimples/resources/bank_billet_payment.rb +3 -1
  22. data/lib/boletosimples/resources/bank_billet_remittance.rb +3 -1
  23. data/lib/boletosimples/resources/base_model.rb +3 -1
  24. data/lib/boletosimples/resources/customer.rb +3 -1
  25. data/lib/boletosimples/resources/customer_import.rb +5 -3
  26. data/lib/boletosimples/resources/customer_subscription.rb +3 -10
  27. data/lib/boletosimples/resources/customer_subscription_import.rb +5 -3
  28. data/lib/boletosimples/resources/discharge.rb +4 -11
  29. data/lib/boletosimples/resources/email_delivery.rb +3 -1
  30. data/lib/boletosimples/resources/event.rb +3 -1
  31. data/lib/boletosimples/resources/installment.rb +3 -1
  32. data/lib/boletosimples/resources/remittance.rb +3 -1
  33. data/lib/boletosimples/resources/sms_delivery.rb +6 -0
  34. data/lib/boletosimples/resources/transaction.rb +3 -1
  35. data/lib/boletosimples/resources/webhook.rb +3 -1
  36. data/lib/boletosimples/resources/webhook_delivery.rb +3 -1
  37. data/lib/boletosimples/response_error.rb +8 -3
  38. data/lib/boletosimples/version.rb +3 -1
  39. data/spec/boletosimples/configuration_spec.rb +71 -101
  40. data/spec/boletosimples/last_request_spec.rb +16 -28
  41. data/spec/boletosimples/resources/bank_billet_account_spec.rb +57 -33
  42. data/spec/boletosimples/resources/bank_billet_discharge_spec.rb +7 -12
  43. data/spec/boletosimples/resources/bank_billet_payment_spec.rb +7 -12
  44. data/spec/boletosimples/resources/bank_billet_remittance_spec.rb +7 -12
  45. data/spec/boletosimples/resources/bank_billet_spec.rb +56 -42
  46. data/spec/boletosimples/resources/customer_import_spec.rb +41 -30
  47. data/spec/boletosimples/resources/customer_spec.rb +52 -39
  48. data/spec/boletosimples/resources/customer_subscription_import_spec.rb +41 -30
  49. data/spec/boletosimples/resources/customer_subscription_spec.rb +61 -33
  50. data/spec/boletosimples/resources/discharge_spec.rb +64 -11
  51. data/spec/boletosimples/resources/email_delivery_spec.rb +6 -11
  52. data/spec/boletosimples/resources/event_spec.rb +7 -12
  53. data/spec/boletosimples/resources/installment_spec.rb +61 -32
  54. data/spec/boletosimples/resources/remittance_spec.rb +7 -12
  55. data/spec/boletosimples/resources/sms_delivery_spec.rb +12 -0
  56. data/spec/boletosimples/resources/transactions_spec.rb +7 -12
  57. data/spec/boletosimples/resources/webhook_delivery_spec.rb +7 -12
  58. data/spec/boletosimples/resources/webhook_spec.rb +7 -12
  59. data/spec/fixtures/discharge.RET +3 -0
  60. data/spec/fixtures/vcr_cassettes/last_request/bank_billets.yml +536 -88
  61. data/spec/fixtures/vcr_cassettes/resources/bank_billet/all.yml +537 -91
  62. data/spec/fixtures/vcr_cassettes/resources/bank_billet/cancel/success.yml +34 -92
  63. data/spec/fixtures/vcr_cassettes/resources/bank_billet/create/invalid_params.yml +32 -20
  64. data/spec/fixtures/vcr_cassettes/resources/bank_billet/create/invalid_root.yml +28 -17
  65. data/spec/fixtures/vcr_cassettes/resources/bank_billet/create/valid.yml +43 -27
  66. data/spec/fixtures/vcr_cassettes/resources/bank_billet/duplicate/success.yml +83 -0
  67. data/spec/fixtures/vcr_cassettes/resources/bank_billet/find.yml +51 -27
  68. data/spec/fixtures/vcr_cassettes/resources/bank_billet_account/all.yml +131 -20
  69. data/spec/fixtures/vcr_cassettes/resources/bank_billet_account/create/invalid_params.yml +34 -20
  70. data/spec/fixtures/vcr_cassettes/resources/bank_billet_account/create/invalid_root.yml +30 -19
  71. data/spec/fixtures/vcr_cassettes/resources/bank_billet_account/create/valid.yml +41 -21
  72. data/spec/fixtures/vcr_cassettes/resources/bank_billet_account/find.yml +38 -18
  73. data/spec/fixtures/vcr_cassettes/resources/bank_billet_discharge/all.yml +66 -47
  74. data/spec/fixtures/vcr_cassettes/resources/bank_billet_payment/all.yml +44 -42
  75. data/spec/fixtures/vcr_cassettes/resources/bank_billet_remittance/all.yml +95 -48
  76. data/spec/fixtures/vcr_cassettes/resources/customer/all.yml +79 -32
  77. data/spec/fixtures/vcr_cassettes/resources/customer/create/invalid_params.yml +30 -17
  78. data/spec/fixtures/vcr_cassettes/resources/customer/create/invalid_root.yml +28 -17
  79. data/spec/fixtures/vcr_cassettes/resources/customer/create/valid.yml +33 -21
  80. data/spec/fixtures/vcr_cassettes/resources/customer/find.yml +33 -19
  81. data/spec/fixtures/vcr_cassettes/resources/customer_import/all.yml +43 -60
  82. data/spec/fixtures/vcr_cassettes/resources/customer_import/create/invalid_params.yml +37 -51
  83. data/spec/fixtures/vcr_cassettes/resources/customer_import/create/invalid_root.yml +38 -52
  84. data/spec/fixtures/vcr_cassettes/resources/customer_import/create/valid.yml +43 -68
  85. data/spec/fixtures/vcr_cassettes/resources/customer_import/find.yml +40 -54
  86. data/spec/fixtures/vcr_cassettes/resources/customer_subscription/all.yml +102 -52
  87. data/spec/fixtures/vcr_cassettes/resources/customer_subscription/create/invalid_params.yml +40 -50
  88. data/spec/fixtures/vcr_cassettes/resources/customer_subscription/create/invalid_root.yml +36 -48
  89. data/spec/fixtures/vcr_cassettes/resources/customer_subscription/create/valid.yml +48 -53
  90. data/spec/fixtures/vcr_cassettes/resources/customer_subscription/find.yml +44 -50
  91. data/spec/fixtures/vcr_cassettes/resources/customer_subscription/next_charge.yml +45 -133
  92. data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/all.yml +44 -55
  93. data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/create/invalid_params.yml +37 -52
  94. data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/create/invalid_root.yml +39 -53
  95. data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/create/valid.yml +43 -70
  96. data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/find.yml +40 -55
  97. data/spec/fixtures/vcr_cassettes/resources/discharge/all.yml +64 -33
  98. data/spec/fixtures/vcr_cassettes/resources/discharge/create/invalid_params.yml +70 -0
  99. data/spec/fixtures/vcr_cassettes/resources/discharge/create/invalid_root.yml +69 -0
  100. data/spec/fixtures/vcr_cassettes/resources/discharge/create/valid.yml +84 -0
  101. data/spec/fixtures/vcr_cassettes/resources/discharge/find.yml +71 -0
  102. data/spec/fixtures/vcr_cassettes/resources/email_delivery/all.yml +40 -43
  103. data/spec/fixtures/vcr_cassettes/resources/event/all.yml +490 -166
  104. data/spec/fixtures/vcr_cassettes/resources/installment/all.yml +418 -52
  105. data/spec/fixtures/vcr_cassettes/resources/installment/create/invalid_params.yml +41 -52
  106. data/spec/fixtures/vcr_cassettes/resources/installment/create/invalid_root.yml +36 -48
  107. data/spec/fixtures/vcr_cassettes/resources/installment/create/valid.yml +48 -53
  108. data/spec/fixtures/vcr_cassettes/resources/installment/find.yml +44 -52
  109. data/spec/fixtures/vcr_cassettes/resources/remittance/all.yml +53 -33
  110. data/spec/fixtures/vcr_cassettes/resources/sns_delivery/all.yml +73 -0
  111. data/spec/fixtures/vcr_cassettes/resources/transaction/all.yml +34 -22
  112. data/spec/fixtures/vcr_cassettes/resources/web_hook/all.yml +42 -33
  113. data/spec/fixtures/vcr_cassettes/resources/webhook_delivery/all.yml +1232 -54
  114. data/spec/spec_helper.rb +3 -20
  115. data/spec/support/stub_env.rb +7 -0
  116. data/spec/support/vcr.rb +3 -4
  117. metadata +87 -52
  118. data/.coveralls.yml +0 -2
  119. data/.travis.yml +0 -46
  120. data/gemfiles/rails_42.gemfile +0 -8
  121. data/gemfiles/rails_50.gemfile +0 -8
  122. data/gemfiles/rails_51.gemfile +0 -8
  123. data/gemfiles/rails_52.gemfile +0 -9
  124. data/lib/boletosimples/extra.rb +0 -8
  125. data/lib/boletosimples/resources/partner/user.rb +0 -7
  126. data/lib/oauth2_patch.rb +0 -24
  127. data/spec/boletosimples/extra_spec.rb +0 -31
  128. data/spec/boletosimples/resources/partner/user_spec.rb +0 -19
  129. data/spec/fixtures/vcr_cassettes/configuration/client_credentials/invalid.yml +0 -64
  130. data/spec/fixtures/vcr_cassettes/configuration/client_credentials/valid.yml +0 -56
  131. data/spec/fixtures/vcr_cassettes/extra/userinfo/authenticated.yml +0 -58
  132. data/spec/fixtures/vcr_cassettes/extra/userinfo/not_authenticated.yml +0 -54
  133. data/spec/fixtures/vcr_cassettes/last_request/userinfo.yml +0 -58
  134. data/spec/fixtures/vcr_cassettes/resources/bank_billet/cancel/failure.yml +0 -118
  135. data/spec/fixtures/vcr_cassettes/resources/partner/user/create.yml +0 -60
  136. data/spec/spec.opts +0 -8
@@ -2,78 +2,125 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://sandbox.boletosimples.com.br/api/v1/bank_billet_remittances?access_token=BOLETOSIMPLES_ACCESS_TOKEN
5
+ uri: https://sandbox.boletosimples.com.br/api/v1/bank_billet_remittances
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
9
9
  headers:
10
10
  User-Agent:
11
- - BoletoSimples Ruby Client v0.5.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
23
25
  Connection:
24
26
  - keep-alive
25
- Content-Type:
26
- - application/json; charset=utf-8
27
- Transfer-Encoding:
28
- - chunked
29
- Status:
30
- - 200 OK
31
- Cache-Control:
32
- - must-revalidate, private, max-age=0
33
- Date:
34
- - Fri, 14 Dec 2018 19:23:00 GMT
35
- Vary:
36
- - Origin,Accept-Encoding
37
- Strict-Transport-Security:
38
- - max-age=2629746
39
- Referrer-Policy:
40
- - strict-origin-when-cross-origin
41
- X-Permitted-Cross-Domain-Policies:
42
- - none
27
+ X-Frame-Options:
28
+ - DENY
43
29
  X-Xss-Protection:
44
30
  - 1; mode=block
45
- X-Request-Id:
46
- - f062a888-d4b7-4ed0-a45b-4e03e3cac687
31
+ X-Content-Type-Options:
32
+ - nosniff
47
33
  X-Download-Options:
48
34
  - noopen
49
- Total:
50
- - '1'
35
+ X-Permitted-Cross-Domain-Policies:
36
+ - none
37
+ Referrer-Policy:
38
+ - strict-origin-when-cross-origin
39
+ Link:
40
+ - <https://sandbox.boletosimples.com.br/api/v1/bank_billet_remittances?page=2>;
41
+ rel="next"
42
+ Per-Page:
43
+ - '50'
44
+ Page:
45
+ - ''
46
+ Content-Type:
47
+ - application/json; charset=utf-8
48
+ X-Ratelimit-Limit:
49
+ - '60'
50
+ X-Ratelimit-Remaining:
51
+ - '36'
51
52
  Etag:
52
- - W/"79a2594c96025094523022e47afe286a"
53
- X-Frame-Options:
54
- - DENY
53
+ - W/"61a58e3e0b8ce637f9a1a286ee2a6a70"
54
+ Cache-Control:
55
+ - must-revalidate, private, max-age=0
56
+ X-Request-Id:
57
+ - b7de9a4e-83ad-4a54-9995-3c52c34c2e4b
55
58
  X-Runtime:
56
- - '0.042576'
57
- X-Content-Type-Options:
58
- - nosniff
59
+ - '0.071825'
60
+ Date:
61
+ - Tue, 13 Apr 2021 17:19:01 GMT
59
62
  X-Rack-Cache:
60
63
  - miss
61
- X-Powered-By:
62
- - Phusion Passenger 6.0.0
63
- Server:
64
- - nginx/1.15.7 + Phusion Passenger 6.0.0
64
+ Strict-Transport-Security:
65
+ - max-age=2629746
66
+ Vary:
67
+ - Origin,Accept-Encoding
68
+ Transfer-Encoding:
69
+ - chunked
65
70
  Via:
66
71
  - 1.1 vegur
67
72
  body:
68
73
  encoding: UTF-8
69
- string: '[{"id":106043,"our_code":"1001","occurrence":"01","remittance_id":1341,"bank_billet_id":133853,"bank_billet_account_id":12,"processed_at":"2018-12-14","occurrence_detail":"Entrada
70
- de Título","created_at":"2018-12-14","bank_billet":{"id":133853,"expire_at":"2018-12-14","paid_at":"2018-12-14","description":"teste","status":"paid","shorten_url":"https://bole.to/3/vjkxew","customer_person_type":"individual","customer_person_name":"Kivanio
71
- Barbosa","customer_cnpj_cpf":"000.233.771-19","customer_address":"Rua Quatro","customer_state":"MT","customer_neighborhood":"CPA
72
- III","customer_zipcode":"78058330","customer_address_number":"9","customer_address_complement":"","customer_phone_number":"6581214248","customer_email":"kivanio@gmail.com","customer_email_cc":null,"customer_ignore_email":null,"customer_mobile_local_code":null,"customer_mobile_number":null,"customer_nickname":"","customer_notes":null,"created_via_api":false,"customer_city_name":"Cuiabá","paid_amount":131.31,"amount":131.31,"url":"https://bole.to/3/vjkxew","formats":{"png":"https://bole.to/3/vjkxew.png?r=1544815148","pdf":"https://bole.to/3/vjkxew.pdf?r=1544815148"},"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":12,"beneficiary_name":"Kivanio
73
- Pereira Barbosa","beneficiary_cnpj_cpf":"000.233.771-19","beneficiary_address":"Rua
74
- Quatro, 9, 78058-330","beneficiary_assignor_code":"4327 / 1234567","guarantor_name":"","guarantor_cnpj_cpf":null,"payment_place":"Pagável
75
- em qualquer banco até a data de vencimento.","instructions":"teste","document_date":null,"document_type":"02","document_number":"","acceptance":"N","processed_our_number":"0000314-2","processed_our_number_raw":"00003142","bank_contract_slug":"sicoob-02","agency_number":"4327","agency_digit":"3","account_number":"00003666","account_digit":"8","extra1":"1234567","extra1_digit":null,"extra2":null,"extra2_digit":null,"line":"75691.43279
76
- 02123.456705 00031.420011 6 77380000013131","our_number":"0000314","customer_subscription_id":null,"installment_number":null,"installment_id":null,"carne_url":null,"bank_billet_layout_id":5,"remittance_id":null,"created_at":"2018-12-14","updated_at":"2018-12-14","tags":[],"tag_list":"","document_type_label":"DM","addons":null,"ignore_email":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":"","registered_at":null}}]'
77
- http_version:
78
- recorded_at: Fri, 14 Dec 2018 19:23:01 GMT
79
- recorded_with: VCR 4.0.0
74
+ string: '[{"id":348220,"our_code":"1001","occurrence":"01","remittance_id":null,"bank_billet_id":382372,"bank_billet_account_id":3547,"processed_at":null,"occurrence_detail":"Entrada
75
+ de Título","created_at":"2021-04-13T14:18:55-03:00"},{"id":348219,"our_code":"1001","occurrence":"01","remittance_id":null,"bank_billet_id":382371,"bank_billet_account_id":3547,"processed_at":null,"occurrence_detail":"Entrada
76
+ de Título","created_at":"2021-04-13T14:18:48-03:00"},{"id":348218,"our_code":"1001","occurrence":"01","remittance_id":null,"bank_billet_id":382370,"bank_billet_account_id":3547,"processed_at":null,"occurrence_detail":"Entrada
77
+ de Título","created_at":"2021-04-13T14:18:47-03:00"},{"id":348198,"our_code":"1001","occurrence":"01","remittance_id":null,"bank_billet_id":382350,"bank_billet_account_id":3547,"processed_at":null,"occurrence_detail":"Entrada
78
+ de Título","created_at":"2021-04-13T11:44:34-03:00"},{"id":348196,"our_code":"1001","occurrence":"01","remittance_id":null,"bank_billet_id":382348,"bank_billet_account_id":3547,"processed_at":null,"occurrence_detail":"Entrada
79
+ de Título","created_at":"2021-04-13T11:43:57-03:00"},{"id":348195,"our_code":"1001","occurrence":"01","remittance_id":null,"bank_billet_id":382347,"bank_billet_account_id":3547,"processed_at":null,"occurrence_detail":"Entrada
80
+ de Título","created_at":"2021-04-13T11:43:55-03:00"},{"id":348194,"our_code":"1001","occurrence":"01","remittance_id":null,"bank_billet_id":382346,"bank_billet_account_id":3547,"processed_at":null,"occurrence_detail":"Entrada
81
+ de Título","created_at":"2021-04-13T11:43:53-03:00"},{"id":348193,"our_code":"1001","occurrence":"01","remittance_id":null,"bank_billet_id":382345,"bank_billet_account_id":3547,"processed_at":null,"occurrence_detail":"Entrada
82
+ de Título","created_at":"2021-04-13T11:40:22-03:00"},{"id":348192,"our_code":"1001","occurrence":"01","remittance_id":null,"bank_billet_id":382344,"bank_billet_account_id":3547,"processed_at":null,"occurrence_detail":"Entrada
83
+ de Título","created_at":"2021-04-13T11:40:16-03:00"},{"id":348191,"our_code":"1001","occurrence":"01","remittance_id":null,"bank_billet_id":382343,"bank_billet_account_id":3547,"processed_at":null,"occurrence_detail":"Entrada
84
+ de Título","created_at":"2021-04-13T11:40:13-03:00"},{"id":348190,"our_code":"1001","occurrence":"01","remittance_id":null,"bank_billet_id":382342,"bank_billet_account_id":3547,"processed_at":null,"occurrence_detail":"Entrada
85
+ de Título","created_at":"2021-04-13T11:40:13-03:00"},{"id":348187,"our_code":"1001","occurrence":"01","remittance_id":null,"bank_billet_id":382338,"bank_billet_account_id":3547,"processed_at":null,"occurrence_detail":"Entrada
86
+ de Título","created_at":"2021-04-13T11:38:13-03:00"},{"id":348185,"our_code":"1001","occurrence":"01","remittance_id":null,"bank_billet_id":382336,"bank_billet_account_id":3547,"processed_at":null,"occurrence_detail":"Entrada
87
+ de Título","created_at":"2021-04-13T11:38:07-03:00"},{"id":348184,"our_code":"1001","occurrence":"01","remittance_id":null,"bank_billet_id":382335,"bank_billet_account_id":3547,"processed_at":null,"occurrence_detail":"Entrada
88
+ de Título","created_at":"2021-04-13T11:38:05-03:00"},{"id":348182,"our_code":"1001","occurrence":"01","remittance_id":null,"bank_billet_id":382333,"bank_billet_account_id":3547,"processed_at":null,"occurrence_detail":"Entrada
89
+ de Título","created_at":"2021-04-13T11:35:50-03:00"},{"id":348180,"our_code":"1001","occurrence":"01","remittance_id":null,"bank_billet_id":382331,"bank_billet_account_id":3547,"processed_at":null,"occurrence_detail":"Entrada
90
+ de Título","created_at":"2021-04-13T11:35:35-03:00"},{"id":348179,"our_code":"1001","occurrence":"01","remittance_id":null,"bank_billet_id":382330,"bank_billet_account_id":3547,"processed_at":null,"occurrence_detail":"Entrada
91
+ de Título","created_at":"2021-04-13T11:35:33-03:00"},{"id":348178,"our_code":"1001","occurrence":"01","remittance_id":null,"bank_billet_id":382329,"bank_billet_account_id":3547,"processed_at":null,"occurrence_detail":"Entrada
92
+ de Título","created_at":"2021-04-13T11:35:30-03:00"},{"id":348177,"our_code":"1001","occurrence":"01","remittance_id":null,"bank_billet_id":382328,"bank_billet_account_id":3547,"processed_at":null,"occurrence_detail":"Entrada
93
+ de Título","created_at":"2021-04-13T11:26:44-03:00"},{"id":348176,"our_code":"1001","occurrence":"01","remittance_id":null,"bank_billet_id":382327,"bank_billet_account_id":3547,"processed_at":null,"occurrence_detail":"Entrada
94
+ de Título","created_at":"2021-04-13T11:26:42-03:00"},{"id":348175,"our_code":"1001","occurrence":"01","remittance_id":null,"bank_billet_id":382326,"bank_billet_account_id":3547,"processed_at":null,"occurrence_detail":"Entrada
95
+ de Título","created_at":"2021-04-13T11:26:40-03:00"},{"id":348173,"our_code":"1001","occurrence":"01","remittance_id":null,"bank_billet_id":382324,"bank_billet_account_id":3547,"processed_at":null,"occurrence_detail":"Entrada
96
+ de Título","created_at":"2021-04-13T11:26:26-03:00"},{"id":348171,"our_code":"1001","occurrence":"01","remittance_id":null,"bank_billet_id":382322,"bank_billet_account_id":3547,"processed_at":null,"occurrence_detail":"Entrada
97
+ de Título","created_at":"2021-04-13T11:22:33-03:00"},{"id":348170,"our_code":"1001","occurrence":"01","remittance_id":null,"bank_billet_id":382321,"bank_billet_account_id":3547,"processed_at":null,"occurrence_detail":"Entrada
98
+ de Título","created_at":"2021-04-13T11:21:49-03:00"},{"id":348169,"our_code":"1001","occurrence":"01","remittance_id":null,"bank_billet_id":382320,"bank_billet_account_id":3547,"processed_at":null,"occurrence_detail":"Entrada
99
+ de Título","created_at":"2021-04-13T11:21:47-03:00"},{"id":348168,"our_code":"1001","occurrence":"01","remittance_id":null,"bank_billet_id":382319,"bank_billet_account_id":3547,"processed_at":null,"occurrence_detail":"Entrada
100
+ de Título","created_at":"2021-04-13T11:21:45-03:00"},{"id":348167,"our_code":"1001","occurrence":"01","remittance_id":null,"bank_billet_id":382318,"bank_billet_account_id":3547,"processed_at":null,"occurrence_detail":"Entrada
101
+ de Título","created_at":"2021-04-13T11:11:00-03:00"},{"id":348166,"our_code":"1001","occurrence":"01","remittance_id":null,"bank_billet_id":382317,"bank_billet_account_id":3547,"processed_at":null,"occurrence_detail":"Entrada
102
+ de Título","created_at":"2021-04-13T11:11:00-03:00"},{"id":348165,"our_code":"1001","occurrence":"01","remittance_id":null,"bank_billet_id":382316,"bank_billet_account_id":3547,"processed_at":null,"occurrence_detail":"Entrada
103
+ de Título","created_at":"2021-04-13T11:10:58-03:00"},{"id":348163,"our_code":"1001","occurrence":"01","remittance_id":null,"bank_billet_id":382314,"bank_billet_account_id":3547,"processed_at":null,"occurrence_detail":"Entrada
104
+ de Título","created_at":"2021-04-13T11:10:25-03:00"},{"id":348159,"our_code":"1001","occurrence":"01","remittance_id":null,"bank_billet_id":382309,"bank_billet_account_id":3547,"processed_at":null,"occurrence_detail":"Entrada
105
+ de Título","created_at":"2021-04-13T11:03:04-03:00"},{"id":348157,"our_code":"1001","occurrence":"01","remittance_id":null,"bank_billet_id":382307,"bank_billet_account_id":3547,"processed_at":null,"occurrence_detail":"Entrada
106
+ de Título","created_at":"2021-04-13T10:57:52-03:00"},{"id":348156,"our_code":"1001","occurrence":"01","remittance_id":null,"bank_billet_id":382306,"bank_billet_account_id":3547,"processed_at":null,"occurrence_detail":"Entrada
107
+ de Título","created_at":"2021-04-13T10:57:46-03:00"},{"id":348155,"our_code":"1001","occurrence":"01","remittance_id":null,"bank_billet_id":382305,"bank_billet_account_id":3547,"processed_at":null,"occurrence_detail":"Entrada
108
+ de Título","created_at":"2021-04-13T10:57:43-03:00"},{"id":348154,"our_code":"1001","occurrence":"01","remittance_id":null,"bank_billet_id":382304,"bank_billet_account_id":3547,"processed_at":null,"occurrence_detail":"Entrada
109
+ de Título","created_at":"2021-04-13T10:57:35-03:00"},{"id":348153,"our_code":"1001","occurrence":"01","remittance_id":null,"bank_billet_id":382303,"bank_billet_account_id":3547,"processed_at":null,"occurrence_detail":"Entrada
110
+ de Título","created_at":"2021-04-13T10:55:34-03:00"},{"id":348152,"our_code":"1001","occurrence":"01","remittance_id":null,"bank_billet_id":382302,"bank_billet_account_id":3547,"processed_at":null,"occurrence_detail":"Entrada
111
+ de Título","created_at":"2021-04-13T10:55:28-03:00"},{"id":348151,"our_code":"1001","occurrence":"01","remittance_id":null,"bank_billet_id":382301,"bank_billet_account_id":3547,"processed_at":null,"occurrence_detail":"Entrada
112
+ de Título","created_at":"2021-04-13T10:55:27-03:00"},{"id":348150,"our_code":"1001","occurrence":"01","remittance_id":null,"bank_billet_id":382300,"bank_billet_account_id":3547,"processed_at":null,"occurrence_detail":"Entrada
113
+ de Título","created_at":"2021-04-13T10:55:10-03:00"},{"id":348137,"our_code":"1001","occurrence":"01","remittance_id":null,"bank_billet_id":382282,"bank_billet_account_id":3547,"processed_at":null,"occurrence_detail":"Entrada
114
+ de Título","created_at":"2021-04-13T10:00:42-03:00"},{"id":348136,"our_code":"1001","occurrence":"01","remittance_id":null,"bank_billet_id":382281,"bank_billet_account_id":3547,"processed_at":null,"occurrence_detail":"Entrada
115
+ de Título","created_at":"2021-04-13T10:00:35-03:00"},{"id":348135,"our_code":"1001","occurrence":"01","remittance_id":null,"bank_billet_id":382280,"bank_billet_account_id":3547,"processed_at":null,"occurrence_detail":"Entrada
116
+ de Título","created_at":"2021-04-13T10:00:33-03:00"},{"id":348134,"our_code":"1001","occurrence":"01","remittance_id":null,"bank_billet_id":382279,"bank_billet_account_id":3547,"processed_at":null,"occurrence_detail":"Entrada
117
+ de Título","created_at":"2021-04-13T10:00:30-03:00"},{"id":348119,"our_code":"1034","occurrence":"34","remittance_id":2350,"bank_billet_id":382264,"bank_billet_account_id":3547,"processed_at":"2021-04-13T09:30:40-03:00","occurrence_detail":"Pago
118
+ diretamente ao beneficiário","created_at":"2021-04-13T09:30:20-03:00"},{"id":348118,"our_code":"1001","occurrence":"01","remittance_id":2350,"bank_billet_id":382264,"bank_billet_account_id":3547,"processed_at":"2021-04-13T09:30:40-03:00","occurrence_detail":"Entrada
119
+ de Título","created_at":"2021-04-13T09:27:31-03:00"},{"id":348117,"our_code":"1001","occurrence":"01","remittance_id":2350,"bank_billet_id":382263,"bank_billet_account_id":3547,"processed_at":"2021-04-13T09:30:40-03:00","occurrence_detail":"Entrada
120
+ de Título","created_at":"2021-04-13T09:27:25-03:00"},{"id":348116,"our_code":"1001","occurrence":"01","remittance_id":2350,"bank_billet_id":382262,"bank_billet_account_id":3547,"processed_at":"2021-04-13T09:30:40-03:00","occurrence_detail":"Entrada
121
+ de Título","created_at":"2021-04-13T09:27:23-03:00"},{"id":348115,"our_code":"1001","occurrence":"01","remittance_id":2350,"bank_billet_id":382261,"bank_billet_account_id":3547,"processed_at":"2021-04-13T09:30:40-03:00","occurrence_detail":"Entrada
122
+ de Título","created_at":"2021-04-13T09:27:23-03:00"},{"id":347983,"our_code":"1001","occurrence":"01","remittance_id":2350,"bank_billet_id":382122,"bank_billet_account_id":3547,"processed_at":"2021-04-13T09:30:40-03:00","occurrence_detail":"Entrada
123
+ de Título","created_at":"2021-04-12T11:55:20-03:00"},{"id":347982,"our_code":"1001","occurrence":"01","remittance_id":2350,"bank_billet_id":382121,"bank_billet_account_id":3547,"processed_at":"2021-04-13T09:30:40-03:00","occurrence_detail":"Entrada
124
+ de Título","created_at":"2021-04-12T11:55:18-03:00"}]'
125
+ recorded_at: Tue, 13 Apr 2021 17:19:01 GMT
126
+ recorded_with: VCR 6.0.0
@@ -2,19 +2,19 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://sandbox.boletosimples.com.br/api/v1/customers?access_token=BOLETOSIMPLES_ACCESS_TOKEN
5
+ uri: https://sandbox.boletosimples.com.br/api/v1/customers
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
@@ -24,49 +24,96 @@ http_interactions:
24
24
  - Cowboy
25
25
  Connection:
26
26
  - keep-alive
27
- Strict-Transport-Security:
28
- - max-age=2592000
29
- Total:
30
- - '7'
27
+ X-Frame-Options:
28
+ - DENY
29
+ X-Xss-Protection:
30
+ - 1; mode=block
31
+ X-Content-Type-Options:
32
+ - nosniff
33
+ X-Download-Options:
34
+ - noopen
35
+ X-Permitted-Cross-Domain-Policies:
36
+ - none
37
+ Referrer-Policy:
38
+ - strict-origin-when-cross-origin
39
+ Per-Page:
40
+ - '50'
41
+ Page:
42
+ - ''
31
43
  Content-Type:
32
44
  - application/json; charset=utf-8
33
45
  X-Ratelimit-Limit:
34
- - '500'
46
+ - '60'
35
47
  X-Ratelimit-Remaining:
36
- - '454'
48
+ - '32'
37
49
  Etag:
38
- - W/"11587a934bf44302614d1baa9fd3af13"
50
+ - W/"667a693af60595f15bccf9f8562b85cd"
39
51
  Cache-Control:
40
52
  - must-revalidate, private, max-age=0
41
53
  X-Request-Id:
42
- - b96cbb79-dfc0-4591-99ee-5d10f11d37b8
54
+ - 45f986c4-9cd6-4a4c-a891-89f48e51565f
43
55
  X-Runtime:
44
- - '0.044722'
56
+ - '0.033612'
45
57
  Date:
46
- - Sun, 08 Mar 2015 19:59:22 GMT
58
+ - Tue, 13 Apr 2021 17:19:10 GMT
47
59
  X-Rack-Cache:
48
60
  - miss
61
+ Strict-Transport-Security:
62
+ - max-age=2629746
49
63
  Vary:
50
- - Accept-Encoding
64
+ - Origin,Accept-Encoding
51
65
  Transfer-Encoding:
52
66
  - chunked
53
67
  Via:
54
68
  - 1.1 vegur
55
69
  body:
56
70
  encoding: UTF-8
57
- string: '[{"id":57,"city_name":"Rio de Janeiro","person_name":"Joao da Silva","address":"Rua
58
- quinhentos","address_complement":"Sala 4","address_number":"111","mobile_number":null,"cnpj_cpf":"012.345.678-90","email":"cliente@example.com","neighborhood":"Sao
59
- Francisco","person_type":"individual","phone_number":"2112123434","zipcode":"12312-123","mobile_local_code":null,"state":"RJ","created_via_api":true},{"id":63,"city_name":"Rio
60
- de Janeiro","person_name":"Joao da Silva","address":"Rua quinhentos","address_complement":"Sala
61
- 4","address_number":"111","mobile_number":null,"cnpj_cpf":"321.315.217-07","email":"cliente@example.com","neighborhood":"bairro","person_type":"individual","phone_number":"2112123434","zipcode":"12312-123","mobile_local_code":null,"state":"RJ","created_via_api":true},{"id":64,"city_name":null,"person_name":"Joao
62
- da Silva","address":null,"address_complement":null,"address_number":null,"mobile_number":null,"cnpj_cpf":"828.788.171-41","email":null,"neighborhood":null,"person_type":"individual","phone_number":null,"zipcode":"12312-123","mobile_local_code":null,"state":null,"created_via_api":true},{"id":65,"city_name":"Rio
63
- de Janeiro","person_name":"Maria José","address":"Rua quinhentos","address_complement":"Sala
64
- 4","address_number":"111","mobile_number":null,"cnpj_cpf":"811.536.151-85","email":"cliente@example.com","neighborhood":"bairro","person_type":"individual","phone_number":"2112123434","zipcode":"12312-123","mobile_local_code":null,"state":"RJ","created_via_api":true},{"id":58,"city_name":"Rio
65
- de Janeiro","person_name":"Maria José","address":"Rua quinhentos","address_complement":"Sala
66
- 4","address_number":"111","mobile_number":null,"cnpj_cpf":"223.886.692-27","email":"cliente@example.com","neighborhood":"bairro","person_type":"individual","phone_number":"2112123434","zipcode":"12312-123","mobile_local_code":null,"state":"RJ","created_via_api":true},{"id":59,"city_name":"Rio
67
- de Janeiro","person_name":"Maria José","address":"Rua quinhentos","address_complement":"Sala
68
- 4","address_number":"111","mobile_number":null,"cnpj_cpf":"79.563.027/0001-42","email":"cliente@example.com","neighborhood":"bairro","person_type":"juridical","phone_number":"2112123434","zipcode":"12312-123","mobile_local_code":null,"state":"RJ","created_via_api":true},{"id":60,"city_name":null,"person_name":"Rodolfo
69
- Lima","address":null,"address_complement":null,"address_number":null,"mobile_number":null,"cnpj_cpf":"748.885.399-79","email":null,"neighborhood":null,"person_type":"individual","phone_number":null,"zipcode":"24360-440","mobile_local_code":null,"state":null,"created_via_api":true}]'
70
- http_version:
71
- recorded_at: Sun, 08 Mar 2015 19:59:21 GMT
72
- recorded_with: VCR 2.9.3
71
+ string: '[{"id":80702,"city_name":"Rio de Janeiro","person_name":"Maria José","nickname":null,"address":"Rua
72
+ quinhentos","address_complement":"Sala 4","address_number":"111","mobile_number":null,"cnpj_cpf":"811.536.151-85","email":"cliente@example.com","neighborhood":"bairro","phone_number":"2112123434","zipcode":"12312123","mobile_local_code":null,"notes":null,"state":"RJ","created_via_api":true,"email_cc":null,"contact_person":null,"truncated_address":"Rua
73
+ quinhentos, 111","external_code":null,"tags":[],"tag_list":"","custom_data":null},{"id":80703,"city_name":"Rio
74
+ de Janeiro","person_name":"Joao da Silva","nickname":null,"address":"Rua quinhentos","address_complement":"Sala
75
+ 4","address_number":"111","mobile_number":null,"cnpj_cpf":"18.033.842/0001-05","email":"cliente@example.com","neighborhood":"Sao
76
+ Francisco","phone_number":"2112123434","zipcode":"12312123","mobile_local_code":null,"notes":null,"state":"RJ","created_via_api":true,"email_cc":null,"contact_person":null,"truncated_address":"Rua
77
+ quinhentos, 111","external_code":null,"tags":[],"tag_list":"","custom_data":null},{"id":80706,"city_name":"Rio
78
+ de Janeiro","person_name":"Maria José","nickname":null,"address":"Rua quinhentos","address_complement":"Sala
79
+ 4","address_number":"111","mobile_number":null,"cnpj_cpf":"02.854.339/0001-80","email":"cliente@example.com","neighborhood":"bairro","phone_number":"2112123434","zipcode":"12312123","mobile_local_code":null,"notes":null,"state":"RJ","created_via_api":true,"email_cc":null,"contact_person":null,"truncated_address":"Rua
80
+ quinhentos, 111","external_code":null,"tags":[],"tag_list":"","custom_data":null},{"id":80707,"city_name":"Rio
81
+ de Janeiro","person_name":"Joao da Silva","nickname":null,"address":"Rua quinhentos","address_complement":"Sala
82
+ 4","address_number":"111","mobile_number":null,"cnpj_cpf":"34.565.715/0001-03","email":"cliente@example.com","neighborhood":"Sao
83
+ Francisco","phone_number":"2112123434","zipcode":"12312123","mobile_local_code":null,"notes":null,"state":"RJ","created_via_api":true,"email_cc":null,"contact_person":null,"truncated_address":"Rua
84
+ quinhentos, 111","external_code":null,"tags":[],"tag_list":"","custom_data":null},{"id":80767,"city_name":"Rio
85
+ de Janeiro","person_name":"Maria José","nickname":null,"address":"Rua quinhentos","address_complement":"Sala
86
+ 4","address_number":"111","mobile_number":null,"cnpj_cpf":"48.350.663/0001-62","email":"cliente@example.com","neighborhood":"bairro","phone_number":"2112123434","zipcode":"12312123","mobile_local_code":null,"notes":null,"state":"RJ","created_via_api":true,"email_cc":null,"contact_person":null,"truncated_address":"Rua
87
+ quinhentos, 111","external_code":null,"tags":[],"tag_list":"","custom_data":null},{"id":80809,"city_name":"Rio
88
+ de Janeiro","person_name":"Maria José","nickname":null,"address":"Rua quinhentos","address_complement":"Sala
89
+ 4","address_number":"111","mobile_number":null,"cnpj_cpf":"75.587.633/0001-47","email":"cliente@example.com","neighborhood":"bairro","phone_number":"2112123434","zipcode":"12312123","mobile_local_code":null,"notes":null,"state":"RJ","created_via_api":true,"email_cc":null,"contact_person":null,"truncated_address":"Rua
90
+ quinhentos, 111","external_code":null,"tags":[],"tag_list":"","custom_data":null},{"id":80810,"city_name":"Rio
91
+ de Janeiro","person_name":"Maria José","nickname":null,"address":"Rua quinhentos","address_complement":"Sala
92
+ 4","address_number":"111","mobile_number":null,"cnpj_cpf":"61.711.627/0001-45","email":"cliente@example.com","neighborhood":"bairro","phone_number":"2112123434","zipcode":"12312123","mobile_local_code":null,"notes":null,"state":"RJ","created_via_api":true,"email_cc":null,"contact_person":null,"truncated_address":"Rua
93
+ quinhentos, 111","external_code":null,"tags":[],"tag_list":"","custom_data":null},{"id":80811,"city_name":"Rio
94
+ de Janeiro","person_name":"Maria José","nickname":null,"address":"Rua quinhentos","address_complement":"Sala
95
+ 4","address_number":"111","mobile_number":null,"cnpj_cpf":"12.120.044/0001-34","email":"cliente@example.com","neighborhood":"bairro","phone_number":"2112123434","zipcode":"12312123","mobile_local_code":null,"notes":null,"state":"RJ","created_via_api":true,"email_cc":null,"contact_person":null,"truncated_address":"Rua
96
+ quinhentos, 111","external_code":null,"tags":[],"tag_list":"","custom_data":null},{"id":80812,"city_name":"Rio
97
+ de Janeiro","person_name":"Maria José","nickname":null,"address":"Rua quinhentos","address_complement":"Sala
98
+ 4","address_number":"111","mobile_number":null,"cnpj_cpf":"79.270.635/0001-69","email":"cliente@example.com","neighborhood":"bairro","phone_number":"2112123434","zipcode":"12312123","mobile_local_code":null,"notes":null,"state":"RJ","created_via_api":true,"email_cc":null,"contact_person":null,"truncated_address":"Rua
99
+ quinhentos, 111","external_code":null,"tags":[],"tag_list":"","custom_data":null},{"id":80816,"city_name":"Rio
100
+ de Janeiro","person_name":"Maria José","nickname":null,"address":"Rua quinhentos","address_complement":"Sala
101
+ 4","address_number":"111","mobile_number":null,"cnpj_cpf":"73.197.200/0001-50","email":"cliente@example.com","neighborhood":"bairro","phone_number":"2112123434","zipcode":"12312123","mobile_local_code":null,"notes":null,"state":"RJ","created_via_api":true,"email_cc":null,"contact_person":null,"truncated_address":"Rua
102
+ quinhentos, 111","external_code":null,"tags":[],"tag_list":"","custom_data":null},{"id":80818,"city_name":"Rio
103
+ de Janeiro","person_name":"Maria José","nickname":null,"address":"Rua quinhentos","address_complement":"Sala
104
+ 4","address_number":"111","mobile_number":null,"cnpj_cpf":"64.186.371/0001-92","email":"cliente@example.com","neighborhood":"bairro","phone_number":"2112123434","zipcode":"12312123","mobile_local_code":null,"notes":null,"state":"RJ","created_via_api":true,"email_cc":null,"contact_person":null,"truncated_address":"Rua
105
+ quinhentos, 111","external_code":null,"tags":[],"tag_list":"","custom_data":null},{"id":80820,"city_name":"Rio
106
+ de Janeiro","person_name":"Maria José","nickname":null,"address":"Rua quinhentos","address_complement":"Sala
107
+ 4","address_number":"111","mobile_number":null,"cnpj_cpf":"20.341.932/0001-05","email":"cliente@example.com","neighborhood":"bairro","phone_number":"2112123434","zipcode":"12312123","mobile_local_code":null,"notes":null,"state":"RJ","created_via_api":true,"email_cc":null,"contact_person":null,"truncated_address":"Rua
108
+ quinhentos, 111","external_code":null,"tags":[],"tag_list":"","custom_data":null},{"id":80821,"city_name":"Rio
109
+ de Janeiro","person_name":"Maria José","nickname":null,"address":"Rua quinhentos","address_complement":"Sala
110
+ 4","address_number":"111","mobile_number":null,"cnpj_cpf":"74.286.849/0001-00","email":"cliente@example.com","neighborhood":"bairro","phone_number":"2112123434","zipcode":"12312123","mobile_local_code":null,"notes":null,"state":"RJ","created_via_api":true,"email_cc":null,"contact_person":null,"truncated_address":"Rua
111
+ quinhentos, 111","external_code":null,"tags":[],"tag_list":"","custom_data":null},{"id":80822,"city_name":"Rio
112
+ de Janeiro","person_name":"Maria José","nickname":null,"address":"Rua quinhentos","address_complement":"Sala
113
+ 4","address_number":"111","mobile_number":null,"cnpj_cpf":"01.588.073/0001-09","email":"cliente@example.com","neighborhood":"bairro","phone_number":"2112123434","zipcode":"12312123","mobile_local_code":null,"notes":null,"state":"RJ","created_via_api":true,"email_cc":null,"contact_person":null,"truncated_address":"Rua
114
+ quinhentos, 111","external_code":null,"tags":[],"tag_list":"","custom_data":null},{"id":80825,"city_name":"Rio
115
+ de Janeiro","person_name":"Maria José","nickname":null,"address":"Rua quinhentos","address_complement":"Sala
116
+ 4","address_number":"111","mobile_number":null,"cnpj_cpf":"54.872.822/0001-91","email":"cliente@example.com","neighborhood":"bairro","phone_number":"2112123434","zipcode":"12312123","mobile_local_code":null,"notes":null,"state":"RJ","created_via_api":true,"email_cc":null,"contact_person":null,"truncated_address":"Rua
117
+ quinhentos, 111","external_code":null,"tags":[],"tag_list":"","custom_data":null}]'
118
+ recorded_at: Tue, 13 Apr 2021 17:19:10 GMT
119
+ recorded_with: VCR 6.0.0
@@ -2,21 +2,21 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: https://sandbox.boletosimples.com.br/api/v1/customers?access_token=BOLETOSIMPLES_ACCESS_TOKEN
5
+ uri: https://sandbox.boletosimples.com.br/api/v1/customers
6
6
  body:
7
7
  encoding: UTF-8
8
8
  string: '{"customer":{"person_name":""}}'
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
14
  Content-Type:
15
15
  - application/json
16
+ Accept:
17
+ - application/json
16
18
  Accept-Encoding:
17
19
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
- Accept:
19
- - "*/*"
20
20
  response:
21
21
  status:
22
22
  code: 422
@@ -26,26 +26,38 @@ http_interactions:
26
26
  - Cowboy
27
27
  Connection:
28
28
  - keep-alive
29
- Strict-Transport-Security:
30
- - max-age=2592000
29
+ X-Frame-Options:
30
+ - DENY
31
+ X-Xss-Protection:
32
+ - 1; mode=block
33
+ X-Content-Type-Options:
34
+ - nosniff
35
+ X-Download-Options:
36
+ - noopen
37
+ X-Permitted-Cross-Domain-Policies:
38
+ - none
39
+ Referrer-Policy:
40
+ - strict-origin-when-cross-origin
31
41
  Content-Type:
32
42
  - application/json; charset=utf-8
33
43
  X-Ratelimit-Limit:
34
- - '500'
44
+ - '1000'
35
45
  X-Ratelimit-Remaining:
36
- - '455'
46
+ - '972'
37
47
  Cache-Control:
38
48
  - no-cache
39
49
  X-Request-Id:
40
- - bdd0e8f4-4742-4b6f-87af-abd3c192ee33
50
+ - b9e6e5c7-8f5b-41ee-94fa-6ec5bc1c15e5
41
51
  X-Runtime:
42
- - '0.045134'
52
+ - '0.026849'
43
53
  Date:
44
- - Sun, 08 Mar 2015 19:59:21 GMT
54
+ - Tue, 13 Apr 2021 17:19:11 GMT
45
55
  X-Rack-Cache:
46
56
  - invalidate, pass
57
+ Strict-Transport-Security:
58
+ - max-age=2629746
47
59
  Vary:
48
- - Accept-Encoding
60
+ - Origin,Accept-Encoding
49
61
  Transfer-Encoding:
50
62
  - chunked
51
63
  Via:
@@ -53,7 +65,8 @@ http_interactions:
53
65
  body:
54
66
  encoding: UTF-8
55
67
  string: '{"errors":{"person_name":["não pode ficar em branco"],"cnpj_cpf":["não
56
- pode ficar em branco"],"zipcode":["não pode ficar em branco"]}}'
57
- http_version:
58
- recorded_at: Sun, 08 Mar 2015 19:59:20 GMT
59
- recorded_with: VCR 2.9.3
68
+ pode ficar em branco"],"zipcode":["não pode ficar em branco"],"address":["não
69
+ pode ficar em branco"],"neighborhood":["não pode ficar em branco"],"city_name":["não
70
+ pode ficar em branco"],"state":["não está incluído na lista"]}}'
71
+ recorded_at: Tue, 13 Apr 2021 17:19:11 GMT
72
+ recorded_with: VCR 6.0.0
@@ -2,21 +2,21 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: https://sandbox.boletosimples.com.br/api/v1/customers?access_token=BOLETOSIMPLES_ACCESS_TOKEN
5
+ uri: https://sandbox.boletosimples.com.br/api/v1/customers
6
6
  body:
7
7
  encoding: UTF-8
8
8
  string: '{"customer":{}}'
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
14
  Content-Type:
15
15
  - application/json
16
+ Accept:
17
+ - application/json
16
18
  Accept-Encoding:
17
19
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
- Accept:
19
- - "*/*"
20
20
  response:
21
21
  status:
22
22
  code: 422
@@ -26,33 +26,44 @@ http_interactions:
26
26
  - Cowboy
27
27
  Connection:
28
28
  - keep-alive
29
- Strict-Transport-Security:
30
- - max-age=2592000
29
+ X-Frame-Options:
30
+ - DENY
31
+ X-Xss-Protection:
32
+ - 1; mode=block
33
+ X-Content-Type-Options:
34
+ - nosniff
35
+ X-Download-Options:
36
+ - noopen
37
+ X-Permitted-Cross-Domain-Policies:
38
+ - none
39
+ Referrer-Policy:
40
+ - strict-origin-when-cross-origin
31
41
  Content-Type:
32
42
  - application/json; charset=utf-8
33
43
  X-Ratelimit-Limit:
34
- - '500'
44
+ - '1000'
35
45
  X-Ratelimit-Remaining:
36
- - '456'
46
+ - '971'
37
47
  Cache-Control:
38
48
  - no-cache
39
49
  X-Request-Id:
40
- - 1119bf7c-038c-4c5a-a2c2-e5c5c66097fd
50
+ - 11cbaf30-2b23-4517-a48e-f38050c17f17
41
51
  X-Runtime:
42
- - '0.119195'
52
+ - '0.017993'
43
53
  Date:
44
- - Sun, 08 Mar 2015 19:59:20 GMT
54
+ - Tue, 13 Apr 2021 17:19:12 GMT
45
55
  X-Rack-Cache:
46
56
  - invalidate, pass
57
+ Strict-Transport-Security:
58
+ - max-age=2629746
47
59
  Vary:
48
- - Accept-Encoding
60
+ - Origin,Accept-Encoding
49
61
  Transfer-Encoding:
50
62
  - chunked
51
63
  Via:
52
64
  - 1.1 vegur
53
65
  body:
54
66
  encoding: UTF-8
55
- string: '{"errors":{"customer":["não pode ficar em branco"]}}'
56
- http_version:
57
- recorded_at: Sun, 08 Mar 2015 19:59:19 GMT
58
- recorded_with: VCR 2.9.3
67
+ string: '{"errors":[{"title":"customer não pode ficar em branco","status":422,"code":422}]}'
68
+ recorded_at: Tue, 13 Apr 2021 17:19:12 GMT
69
+ recorded_with: VCR 6.0.0