boletosimples 0.6.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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,77 +2,90 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://sandbox.boletosimples.com.br/api/v1/bank_billet_discharges?access_token=BOLETOSIMPLES_ACCESS_TOKEN
5
+ uri: https://api-sandbox.kobana.com.br/v1/bank_billet_discharges
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
- Connection:
24
- - keep-alive
25
23
  Content-Type:
26
24
  - application/json; charset=utf-8
27
25
  Transfer-Encoding:
28
26
  - 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:01 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
+ Connection:
28
+ - keep-alive
29
+ Server:
30
+ - Cowboy
31
+ X-Frame-Options:
32
+ - DENY
43
33
  X-Xss-Protection:
44
34
  - 1; mode=block
45
- X-Request-Id:
46
- - cea5a898-5942-4b05-9766-a7b225d3661c
47
- Link:
48
- - <https://sandbox.boletosimples.com.br/api/v1/bank_billet_discharges?access_token=BOLETOSIMPLES_ACCESS_TOKEN&page=2>;
49
- rel="last", <https://sandbox.boletosimples.com.br/api/v1/bank_billet_discharges?access_token=BOLETOSIMPLES_ACCESS_TOKEN&page=2>;
50
- rel="next"
35
+ X-Content-Type-Options:
36
+ - nosniff
51
37
  X-Download-Options:
52
38
  - noopen
53
- Total:
54
- - '31'
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
+ - ''
55
+ X-Ratelimit-Limit:
56
+ - '100'
57
+ X-Ratelimit-Remaining:
58
+ - '68'
55
59
  Etag:
56
- - W/"05b627a2e9ed0eaad53fb3abaab47053"
57
- X-Frame-Options:
58
- - DENY
60
+ - W/"0bfb9151ce3fe491ef699ca2ec507610"
61
+ Cache-Control:
62
+ - must-revalidate, private, max-age=0
63
+ X-Request-Id:
64
+ - b719ceae-e2fc-4655-9f2b-7089bff60ddf
59
65
  X-Runtime:
60
- - '0.133802'
61
- X-Content-Type-Options:
62
- - nosniff
66
+ - '0.026035'
67
+ Date:
68
+ - Tue, 22 Feb 2022 17:30:32 GMT
63
69
  X-Rack-Cache:
64
70
  - miss
65
- X-Powered-By:
66
- - Phusion Passenger 6.0.0
67
- Server:
68
- - nginx/1.15.7 + Phusion Passenger 6.0.0
71
+ Strict-Transport-Security:
72
+ - max-age=31556952; includeSubDomains; preload
73
+ Vary:
74
+ - Origin,Accept-Encoding
75
+ X-Rack-Cors:
76
+ - miss; no-origin
69
77
  Via:
70
- - 1.1 vegur
78
+ - 1.1 vegur, 1.1 d2c636aea3f69033bb2125c4038e1c48.cloudfront.net (CloudFront)
79
+ X-Cache:
80
+ - Miss from cloudfront
81
+ X-Amz-Cf-Pop:
82
+ - MIA3-C1
83
+ X-Amz-Cf-Id:
84
+ - q8E-4pU1szfLRYvoiH04mK9TEBbgKHmxEJMNSngwes-t7VO2RJcXdw==
71
85
  body:
72
86
  encoding: UTF-8
73
- string: '[{"id":15792,"occurrence":"05","date_of_occurrence":"2015-04-08","discharge_id":13,"bank_billet_id":null,"occurrence_error":"00","line_parsed":{"iof":"0","parcel":"01","paid_at":"2015-04-08","cnpj_cpf":"05813794000126","contract":"02","discount":"0","line_raw":"1020581379400012643270000036668000000 000000100670010000000OU00000000000000000000
74
- 0205080415 150415000000005610010441880990804150000180000000000000000000000000000000000000000000000000000000000000000000000000056100000000000000000000000000000000000000000000000000000010000000000000 0000000000000000000000000000000000000000000000000000000029","bank_rate":"180","credit_at":"2015-04-08","error_code":"00","event_type":"05","our_number":"00100670","billet_fine":"0","paid_amount":"56100","agency_digit":"0","other_credit":"0","value_rebate":"0","account_digit":"8","agency_number":"4327","credit_amount":"0","account_number":"00003666","banco_recebedor":"104","agencia_recebedora":"4188","processed_our_number_raw":"00100670"},"processed_at":"2018-12-14","occurrence_detail":"Liquidação
75
- Sem Registro","occurrence_error_detail":null,"our_occurrence":"2027","bank_billet":null}]'
76
- http_version:
77
- recorded_at: Fri, 14 Dec 2018 19:23:02 GMT
78
- recorded_with: VCR 4.0.0
87
+ string: '[{"id":21254,"occurrence":"10","date_of_occurrence":"2020-03-20","discharge_id":3321,"bank_billet_id":null,"occurrence_error":"00","line_parsed":{"iof":"0","paid_at":"2020-03-20","cnpj_cpf":"78796613000141","discount":"0","bank_rate":"30","credit_at":"2020-03-20","error_code":"00","event_type":"10","our_number":"0495853","billet_fine":"0","paid_amount":"0","other_credit":"0","value_rebate":"0","agency_number":"6519","credit_amount":"0","account_number":"90009999","conta_cobranca":"90009999","control_number":"","banco_recebedor":"033","document_number":"495853","agencia_recebedora":"1651","processed_our_number_raw":"04958535"},"line_raw":{"line_raw":"1027879661300014165199000999990009999 04958535 510200320495853 0495853500 12111900000000300350331651901000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
88
+ N 200320 SOLUCOES DIGITAIS L 00000000000000000000000000000000000000000C 325000002"},"processed_at":"2022-02-22T14:26:40-03:00","occurrence_detail":"Título
89
+ Baixado Conforme Instrução Ou Por Título Protestado 11 = Em Ser","occurrence_error_detail":null,"our_occurrence":"2074","bank_billet_account_id":null,"bank_number":"033","created_at":"2022-02-22T14:26:40-03:00","kind":"400"}]'
90
+ recorded_at: Tue, 22 Feb 2022 17:30:32 GMT
91
+ recorded_with: VCR 6.0.0
@@ -1,73 +1,76 @@
1
1
  ---
2
2
  http_interactions:
3
- - request:
4
- method: get
5
- uri: https://sandbox.boletosimples.com.br/api/v1/bank_billet_payments?access_token=BOLETOSIMPLES_ACCESS_TOKEN
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- User-Agent:
11
- - BoletoSimples Ruby Client v0.5.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
- Connection:
24
- - 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:22:59 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
43
- X-Xss-Protection:
44
- - 1; mode=block
45
- X-Request-Id:
46
- - 64c0e4e3-8d36-470e-9227-5424572242dc
47
- X-Download-Options:
48
- - noopen
49
- Total:
50
- - '1'
51
- Etag:
52
- - W/"37c99ac154561f1a274f018895045b86"
53
- X-Frame-Options:
54
- - DENY
55
- X-Runtime:
56
- - '0.045640'
57
- X-Content-Type-Options:
58
- - nosniff
59
- X-Rack-Cache:
60
- - miss
61
- X-Powered-By:
62
- - Phusion Passenger 6.0.0
63
- Server:
64
- - nginx/1.15.7 + Phusion Passenger 6.0.0
65
- Via:
66
- - 1.1 vegur
67
- body:
68
- encoding: UTF-8
69
- string: '[{"id":553,"bank_billet_id":133853,"bank_billet_account_id":12,"paid_at":"2018-12-14","paid_amount":131.31,"bank_rate":null,"paid_bank":null,"paid_agency":null,"created_at":"2018-12-14","our_number":"0000314","customer_person_name":"Kivanio
70
- Barbosa","expire_at":"2018-12-14","amount":131.31}]'
71
- http_version:
72
- recorded_at: Fri, 14 Dec 2018 19:23:00 GMT
73
- recorded_with: VCR 4.0.0
3
+ - request:
4
+ method: get
5
+ uri: https://api-sandbox.kobana.com.br/v1/bank_billet_payments
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - email@minhaempresa.com.br
12
+ Authorization:
13
+ - Bearer BOLETOSIMPLES_API_TOKEN
14
+ Accept:
15
+ - application/json
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Server:
24
+ - Cowboy
25
+ Connection:
26
+ - keep-alive
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
+ - ''
43
+ Content-Type:
44
+ - application/json; charset=utf-8
45
+ X-Ratelimit-Limit:
46
+ - '60'
47
+ X-Ratelimit-Remaining:
48
+ - '46'
49
+ Etag:
50
+ - W/"ca124465a697c6cc89fd806a70928df0"
51
+ Cache-Control:
52
+ - must-revalidate, private, max-age=0
53
+ X-Request-Id:
54
+ - 236ba38b-f38e-4f45-8c07-fac86c6cfba6
55
+ X-Runtime:
56
+ - '0.053624'
57
+ Date:
58
+ - Tue, 13 Apr 2021 17:18:41 GMT
59
+ X-Rack-Cache:
60
+ - miss
61
+ Strict-Transport-Security:
62
+ - max-age=2629746
63
+ Vary:
64
+ - Origin,Accept-Encoding
65
+ Transfer-Encoding:
66
+ - chunked
67
+ Via:
68
+ - 1.1 vegur
69
+ body:
70
+ encoding: UTF-8
71
+ string:
72
+ '[{"id":5796,"bank_billet_id":382262,"bank_billet_account_id":3547,"discharge_id":null,"paid_at":"2021-04-13","paid_amount":1120.4,"bank_rate":null,"paid_bank":null,"paid_agency":null,"created_at":"2021-04-13T09:30:30-03:00","credit_at":null,"direct":false,"created_via_api":false,"line_parsed":null,"our_number":"00000017","customer_person_name":"Joao
73
+ da Silva","expire_at":"2022-10-17","amount":1120.4},{"id":5795,"bank_billet_id":382264,"bank_billet_account_id":3547,"discharge_id":null,"paid_at":"2021-04-13","paid_amount":1120.4,"bank_rate":null,"paid_bank":null,"paid_agency":null,"created_at":"2021-04-13T09:30:19-03:00","credit_at":null,"direct":true,"created_via_api":false,"line_parsed":null,"our_number":"00000019","customer_person_name":"Joao
74
+ da Silva","expire_at":"2021-05-13","amount":1120.4}]'
75
+ recorded_at: Tue, 13 Apr 2021 17:18:41 GMT
76
+ recorded_with: VCR 6.0.0
@@ -2,78 +2,94 @@
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://api-sandbox.kobana.com.br/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
- Connection:
24
- - keep-alive
25
23
  Content-Type:
26
24
  - application/json; charset=utf-8
27
25
  Transfer-Encoding:
28
26
  - 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
+ Connection:
28
+ - keep-alive
29
+ Server:
30
+ - Cowboy
31
+ X-Frame-Options:
32
+ - DENY
43
33
  X-Xss-Protection:
44
34
  - 1; mode=block
45
- X-Request-Id:
46
- - f062a888-d4b7-4ed0-a45b-4e03e3cac687
35
+ X-Content-Type-Options:
36
+ - nosniff
47
37
  X-Download-Options:
48
38
  - noopen
49
- Total:
50
- - '1'
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
+ - ''
55
+ X-Ratelimit-Limit:
56
+ - '100'
57
+ X-Ratelimit-Remaining:
58
+ - '59'
51
59
  Etag:
52
- - W/"79a2594c96025094523022e47afe286a"
53
- X-Frame-Options:
54
- - DENY
60
+ - W/"be008f0e923787ce661f24d6a2ace6f7"
61
+ Cache-Control:
62
+ - must-revalidate, private, max-age=0
63
+ X-Request-Id:
64
+ - 0e3a565e-0a9a-4c18-b054-c288898b7dad
55
65
  X-Runtime:
56
- - '0.042576'
57
- X-Content-Type-Options:
58
- - nosniff
66
+ - '0.023621'
67
+ Date:
68
+ - Tue, 22 Feb 2022 17:30:41 GMT
59
69
  X-Rack-Cache:
60
70
  - miss
61
- X-Powered-By:
62
- - Phusion Passenger 6.0.0
63
- Server:
64
- - nginx/1.15.7 + Phusion Passenger 6.0.0
71
+ Strict-Transport-Security:
72
+ - max-age=31556952; includeSubDomains; preload
73
+ Vary:
74
+ - Origin,Accept-Encoding
75
+ X-Rack-Cors:
76
+ - miss; no-origin
65
77
  Via:
66
- - 1.1 vegur
78
+ - 1.1 vegur, 1.1 982dd7ed309ab3025635ef6f0ff61e82.cloudfront.net (CloudFront)
79
+ X-Cache:
80
+ - Miss from cloudfront
81
+ X-Amz-Cf-Pop:
82
+ - MIA3-C1
83
+ X-Amz-Cf-Id:
84
+ - SFnx2sEl0quYsYVllZ7ZC-AB4t7BT9Sju2Grgx43zvVrUanAr7qe0w==
67
85
  body:
68
86
  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
87
+ string: '[{"id":433979,"our_code":"1001","occurrence":"01","remittance_id":null,"bank_billet_id":472531,"bank_billet_account_id":659,"processed_at":null,"occurrence_detail":"Entrada
88
+ de Título","created_at":"2022-02-22T14:30:39-03:00"},{"id":433978,"our_code":"1001","occurrence":"01","remittance_id":null,"bank_billet_id":472530,"bank_billet_account_id":659,"processed_at":null,"occurrence_detail":"Entrada
89
+ de Título","created_at":"2022-02-22T14:30:28-03:00"},{"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
90
+ de Título","created_at":"2022-02-22T14:27:02-03:00"},{"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
91
+ de Título","created_at":"2022-02-22T14:27:02-03:00"},{"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
92
+ de Título","created_at":"2022-02-22T14:27:02-03:00"},{"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
93
+ de Título","created_at":"2022-02-22T14:26:58-03:00"}]'
94
+ recorded_at: Tue, 22 Feb 2022 17:30:41 GMT
95
+ recorded_with: VCR 6.0.0