boletosimples 1.0.4 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -0
  3. data/README.md +6 -7
  4. data/lib/boletosimples/configuration.rb +2 -2
  5. data/lib/boletosimples/response_error.rb +2 -2
  6. data/lib/boletosimples/version.rb +1 -1
  7. data/spec/boletosimples/configuration_spec.rb +3 -3
  8. data/spec/boletosimples/resources/bank_billet_spec.rb +2 -2
  9. data/spec/boletosimples/resources/customer_spec.rb +9 -4
  10. data/spec/boletosimples/resources/customer_subscription_spec.rb +1 -1
  11. data/spec/boletosimples/resources/installment_spec.rb +1 -1
  12. data/spec/fixtures/vcr_cassettes/last_request/bank_billets.yml +386 -520
  13. data/spec/fixtures/vcr_cassettes/resources/bank_billet/all.yml +78 -522
  14. data/spec/fixtures/vcr_cassettes/resources/bank_billet/cancel/success.yml +30 -12
  15. data/spec/fixtures/vcr_cassettes/resources/bank_billet/create/invalid_params.yml +32 -16
  16. data/spec/fixtures/vcr_cassettes/resources/bank_billet/create/invalid_root.yml +31 -15
  17. data/spec/fixtures/vcr_cassettes/resources/bank_billet/create/valid.yml +42 -28
  18. data/spec/fixtures/vcr_cassettes/resources/bank_billet/duplicate/success.yml +41 -27
  19. data/spec/fixtures/vcr_cassettes/resources/bank_billet/find.yml +46 -31
  20. data/spec/fixtures/vcr_cassettes/resources/bank_billet_account/all.yml +47 -103
  21. data/spec/fixtures/vcr_cassettes/resources/bank_billet_account/create/invalid_params.yml +31 -15
  22. data/spec/fixtures/vcr_cassettes/resources/bank_billet_account/create/invalid_root.yml +31 -15
  23. data/spec/fixtures/vcr_cassettes/resources/bank_billet_account/create/valid.yml +35 -19
  24. data/spec/fixtures/vcr_cassettes/resources/bank_billet_account/find.yml +35 -19
  25. data/spec/fixtures/vcr_cassettes/resources/bank_billet_discharge/all.yml +35 -41
  26. data/spec/fixtures/vcr_cassettes/resources/bank_billet_payment/all.yml +73 -72
  27. data/spec/fixtures/vcr_cassettes/resources/bank_billet_remittance/all.yml +39 -70
  28. data/spec/fixtures/vcr_cassettes/resources/customer/all.yml +111 -56
  29. data/spec/fixtures/vcr_cassettes/resources/customer/create/invalid_params.yml +35 -19
  30. data/spec/fixtures/vcr_cassettes/resources/customer/create/invalid_root.yml +35 -16
  31. data/spec/fixtures/vcr_cassettes/resources/customer/create/valid.yml +37 -21
  32. data/spec/fixtures/vcr_cassettes/resources/customer/find.yml +36 -20
  33. data/spec/fixtures/vcr_cassettes/resources/customer_import/all.yml +34 -18
  34. data/spec/fixtures/vcr_cassettes/resources/customer_import/create/invalid_params.yml +31 -15
  35. data/spec/fixtures/vcr_cassettes/resources/customer_import/create/invalid_root.yml +31 -15
  36. data/spec/fixtures/vcr_cassettes/resources/customer_import/create/valid.yml +36 -20
  37. data/spec/fixtures/vcr_cassettes/resources/customer_import/find.yml +34 -18
  38. data/spec/fixtures/vcr_cassettes/resources/customer_subscription/all.yml +35 -71
  39. data/spec/fixtures/vcr_cassettes/resources/customer_subscription/create/invalid_params.yml +32 -16
  40. data/spec/fixtures/vcr_cassettes/resources/customer_subscription/create/invalid_root.yml +31 -15
  41. data/spec/fixtures/vcr_cassettes/resources/customer_subscription/create/valid.yml +35 -19
  42. data/spec/fixtures/vcr_cassettes/resources/customer_subscription/find.yml +36 -20
  43. data/spec/fixtures/vcr_cassettes/resources/customer_subscription/next_charge.yml +36 -20
  44. data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/all.yml +34 -19
  45. data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/create/invalid_params.yml +31 -15
  46. data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/create/invalid_root.yml +31 -15
  47. data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/create/valid.yml +36 -20
  48. data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/find.yml +34 -18
  49. data/spec/fixtures/vcr_cassettes/resources/discharge/all.yml +37 -39
  50. data/spec/fixtures/vcr_cassettes/resources/discharge/create/invalid_params.yml +31 -15
  51. data/spec/fixtures/vcr_cassettes/resources/discharge/create/invalid_root.yml +31 -15
  52. data/spec/fixtures/vcr_cassettes/resources/discharge/create/valid.yml +37 -21
  53. data/spec/fixtures/vcr_cassettes/resources/discharge/find.yml +36 -18
  54. data/spec/fixtures/vcr_cassettes/resources/email_delivery/all.yml +1 -1
  55. data/spec/fixtures/vcr_cassettes/resources/event/all.yml +267 -432
  56. data/spec/fixtures/vcr_cassettes/resources/installment/all.yml +71 -375
  57. data/spec/fixtures/vcr_cassettes/resources/installment/create/invalid_params.yml +32 -16
  58. data/spec/fixtures/vcr_cassettes/resources/installment/create/invalid_root.yml +31 -15
  59. data/spec/fixtures/vcr_cassettes/resources/installment/create/valid.yml +35 -19
  60. data/spec/fixtures/vcr_cassettes/resources/installment/find.yml +59 -19
  61. data/spec/fixtures/vcr_cassettes/resources/remittance/all.yml +82 -81
  62. data/spec/fixtures/vcr_cassettes/resources/sns_delivery/all.yml +31 -15
  63. data/spec/fixtures/vcr_cassettes/resources/transaction/all.yml +72 -71
  64. data/spec/fixtures/vcr_cassettes/resources/web_hook/all.yml +33 -17
  65. data/spec/fixtures/vcr_cassettes/resources/webhook_delivery/all.yml +2657 -1206
  66. metadata +5 -186
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: https://sandbox.boletosimples.com.br/api/v1/bank_billet_accounts
5
+ uri: https://api-sandbox.kobana.com.br/v1/bank_billet_accounts
6
6
  body:
7
7
  encoding: UTF-8
8
8
  string: '{"bank_billet_account":{"bank_contract_slug":"sicoob-02","next_our_number":"1","agency_number":"4327","agency_digit":"3","account_number":"3666","account_digit":"8","extra1":"1234567","beneficiary_name":"XPTO
@@ -24,10 +24,14 @@ http_interactions:
24
24
  code: 201
25
25
  message: Created
26
26
  headers:
27
- Server:
28
- - Cowboy
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Transfer-Encoding:
30
+ - chunked
29
31
  Connection:
30
32
  - keep-alive
33
+ Server:
34
+ - Cowboy
31
35
  X-Frame-Options:
32
36
  - DENY
33
37
  X-Xss-Protection:
@@ -40,43 +44,55 @@ http_interactions:
40
44
  - none
41
45
  Referrer-Policy:
42
46
  - strict-origin-when-cross-origin
47
+ Expect-Ct:
48
+ - max-age=0, report-uri="https://boletosimples.report-uri.com/r/d/ct/reportOnly"
49
+ Cross-Origin-Resource-Policy:
50
+ - cross-origin
51
+ Cross-Origin-Embedder-Policy:
52
+ - unsafe-none
53
+ Cross-Origin-Opener-Policy:
54
+ - unsafe-none
43
55
  Location:
44
- - https://sandbox.boletosimples.com.br/api/v1/bank_billet_accounts/3562
45
- Content-Type:
46
- - application/json; charset=utf-8
56
+ - https://api-sandbox.kobana.com.br/api/v1/bank_billet_accounts/4364
47
57
  X-Ratelimit-Limit:
48
- - '1000'
58
+ - '18000'
49
59
  X-Ratelimit-Remaining:
50
- - '980'
60
+ - '17964'
51
61
  Etag:
52
- - W/"bf3d5ab0ca5f9e0058f0cce47f121d91"
62
+ - W/"b1d2c1acaf9f0b8c624a6ac468256ea1"
53
63
  Cache-Control:
54
64
  - max-age=0, private, must-revalidate
55
65
  X-Request-Id:
56
- - 21c3fa74-7053-4428-848f-90270b6665e2
66
+ - be500f02-5434-4cdc-bbd4-5ec2f0de77e8
57
67
  X-Runtime:
58
- - '0.137156'
68
+ - '0.056559'
59
69
  Date:
60
- - Tue, 13 Apr 2021 17:18:50 GMT
70
+ - Tue, 22 Feb 2022 17:30:32 GMT
61
71
  X-Rack-Cache:
62
72
  - invalidate, pass
63
73
  Strict-Transport-Security:
64
- - max-age=2629746
74
+ - max-age=31556952; includeSubDomains; preload
65
75
  Vary:
66
76
  - Origin,Accept-Encoding
67
- Transfer-Encoding:
68
- - chunked
77
+ X-Rack-Cors:
78
+ - miss; no-origin
69
79
  Via:
70
- - 1.1 vegur
80
+ - 1.1 vegur, 1.1 4b55539e55239f4c2ab64bc16c112d4e.cloudfront.net (CloudFront)
81
+ X-Cache:
82
+ - Miss from cloudfront
83
+ X-Amz-Cf-Pop:
84
+ - MIA3-C1
85
+ X-Amz-Cf-Id:
86
+ - H6ydiP2efF11tiNSTpcxuZsOOLYEvfTVisugkC8GL7pODqRRe99B0Q==
71
87
  body:
72
88
  encoding: UTF-8
73
- string: '{"id":3562,"bank_contract_slug":"sicoob-02","next_our_number":1,"agency_number":"4327","agency_digit":"3","account_number":"00003666","account_digit":"8","extra1":"1234567","extra1_digit":null,"extra2":null,"extra2_digit":null,"extra3":null,"beneficiary_name":"XPTO
89
+ string: '{"id":4364,"bank_contract_slug":"sicoob-02","next_our_number":1,"agency_number":"4327","agency_digit":"3","account_number":"00003666","account_digit":"8","extra1":"1234567","extra1_digit":null,"extra2":null,"extra2_digit":null,"extra3":null,"beneficiary_name":"XPTO
74
90
  S.A.","beneficiary_cnpj_cpf":"22.622.867/0001-11","beneficiary_address":"Rua
75
- S, , - Moema, São Paulo - SP, 04524030","name":"Bancoob/Sicoob 02 CC: 00003666-8
91
+ S, Moema, São Paulo, SP, 04524030","name":"Bancoob/Sicoob 02 CC: 00003666-8
76
92
  1234567","status":"pending","bank_contract":{"bank":{"code":"sicoob","name":"Bancoob/Sicoob","number":"756"},"slug":"sicoob-02","code":"2","sufix":"02","variation":null,"name":"1/02
77
93
  - Simples Sem Registro"},"integration":false,"created_via_api":true,"homologated_at":null,"next_remittance_number":1,"configuration":null,"default":false,"custom_name":"Bancoob/Sicoob
78
94
  02 CC: 3666-8 1234567","kind":"cnab400","beneficiary_address_street":"Rua
79
95
  S","beneficiary_address_street_number":null,"beneficiary_address_complement":null,"beneficiary_address_city":"São
80
96
  Paulo","beneficiary_address_neighborhood":"Moema","beneficiary_address_state":"SP","beneficiary_address_zipcode":"04524030","allow_expiration_on_weekends":false}'
81
- recorded_at: Tue, 13 Apr 2021 17:18:50 GMT
97
+ recorded_at: Tue, 22 Feb 2022 17:30:32 GMT
82
98
  recorded_with: VCR 6.0.0
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://sandbox.boletosimples.com.br/api/v1/bank_billet_accounts/3562
5
+ uri: https://api-sandbox.kobana.com.br/v1/bank_billet_accounts/4364
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -20,10 +20,14 @@ http_interactions:
20
20
  code: 200
21
21
  message: OK
22
22
  headers:
23
- Server:
24
- - Cowboy
23
+ Content-Type:
24
+ - application/json; charset=utf-8
25
+ Transfer-Encoding:
26
+ - chunked
25
27
  Connection:
26
28
  - keep-alive
29
+ Server:
30
+ - Cowboy
27
31
  X-Frame-Options:
28
32
  - DENY
29
33
  X-Xss-Protection:
@@ -36,43 +40,55 @@ http_interactions:
36
40
  - none
37
41
  Referrer-Policy:
38
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
39
51
  Location:
40
- - https://sandbox.boletosimples.com.br/api/v1/bank_billet_accounts/3562
41
- Content-Type:
42
- - application/json; charset=utf-8
52
+ - https://api-sandbox.kobana.com.br/api/v1/bank_billet_accounts/4364
43
53
  X-Ratelimit-Limit:
44
- - '60'
54
+ - '100'
45
55
  X-Ratelimit-Remaining:
46
- - '41'
56
+ - '66'
47
57
  Etag:
48
- - W/"bf3d5ab0ca5f9e0058f0cce47f121d91"
58
+ - W/"b1d2c1acaf9f0b8c624a6ac468256ea1"
49
59
  Cache-Control:
50
60
  - must-revalidate, private, max-age=0
51
61
  X-Request-Id:
52
- - 88798a01-6635-4430-9eb5-685884f2f797
62
+ - 02ad2df1-df98-4042-926f-cbf302fbbcd9
53
63
  X-Runtime:
54
- - '0.088745'
64
+ - '0.020163'
55
65
  Date:
56
- - Tue, 13 Apr 2021 17:18:53 GMT
66
+ - Tue, 22 Feb 2022 17:30:35 GMT
57
67
  X-Rack-Cache:
58
68
  - miss
59
69
  Strict-Transport-Security:
60
- - max-age=2629746
70
+ - max-age=31556952; includeSubDomains; preload
61
71
  Vary:
62
72
  - Origin,Accept-Encoding
63
- Transfer-Encoding:
64
- - chunked
73
+ X-Rack-Cors:
74
+ - miss; no-origin
65
75
  Via:
66
- - 1.1 vegur
76
+ - 1.1 vegur, 1.1 3b888dcc047b71c0685c3b793d031fb2.cloudfront.net (CloudFront)
77
+ X-Cache:
78
+ - Miss from cloudfront
79
+ X-Amz-Cf-Pop:
80
+ - MIA3-C1
81
+ X-Amz-Cf-Id:
82
+ - blpLXroAg64ix-URtyGjCIj3G7YcMwL1_0y4CZWJOkR5GHXlFURFHg==
67
83
  body:
68
84
  encoding: UTF-8
69
- string: '{"id":3562,"bank_contract_slug":"sicoob-02","next_our_number":1,"agency_number":"4327","agency_digit":"3","account_number":"00003666","account_digit":"8","extra1":"1234567","extra1_digit":null,"extra2":null,"extra2_digit":null,"extra3":null,"beneficiary_name":"XPTO
85
+ string: '{"id":4364,"bank_contract_slug":"sicoob-02","next_our_number":1,"agency_number":"4327","agency_digit":"3","account_number":"00003666","account_digit":"8","extra1":"1234567","extra1_digit":null,"extra2":null,"extra2_digit":null,"extra3":null,"beneficiary_name":"XPTO
70
86
  S.A.","beneficiary_cnpj_cpf":"22.622.867/0001-11","beneficiary_address":"Rua
71
- S, , - Moema, São Paulo - SP, 04524030","name":"Bancoob/Sicoob 02 CC: 00003666-8
87
+ S, Moema, São Paulo, SP, 04524030","name":"Bancoob/Sicoob 02 CC: 00003666-8
72
88
  1234567","status":"pending","bank_contract":{"bank":{"code":"sicoob","name":"Bancoob/Sicoob","number":"756"},"slug":"sicoob-02","code":"2","sufix":"02","variation":null,"name":"1/02
73
89
  - Simples Sem Registro"},"integration":false,"created_via_api":true,"homologated_at":null,"next_remittance_number":1,"configuration":null,"default":false,"custom_name":"Bancoob/Sicoob
74
90
  02 CC: 3666-8 1234567","kind":"cnab400","beneficiary_address_street":"Rua
75
91
  S","beneficiary_address_street_number":null,"beneficiary_address_complement":null,"beneficiary_address_city":"São
76
92
  Paulo","beneficiary_address_neighborhood":"Moema","beneficiary_address_state":"SP","beneficiary_address_zipcode":"04524030","allow_expiration_on_weekends":false}'
77
- recorded_at: Tue, 13 Apr 2021 17:18:54 GMT
93
+ recorded_at: Tue, 22 Feb 2022 17:30:35 GMT
78
94
  recorded_with: VCR 6.0.0
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://sandbox.boletosimples.com.br/api/v1/bank_billet_discharges
5
+ uri: https://api-sandbox.kobana.com.br/v1/bank_billet_discharges
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -20,10 +20,14 @@ http_interactions:
20
20
  code: 200
21
21
  message: OK
22
22
  headers:
23
- Server:
24
- - Cowboy
23
+ Content-Type:
24
+ - application/json; charset=utf-8
25
+ Transfer-Encoding:
26
+ - chunked
25
27
  Connection:
26
28
  - keep-alive
29
+ Server:
30
+ - Cowboy
27
31
  X-Frame-Options:
28
32
  - DENY
29
33
  X-Xss-Protection:
@@ -36,62 +40,52 @@ http_interactions:
36
40
  - none
37
41
  Referrer-Policy:
38
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
39
51
  Per-Page:
40
52
  - '50'
41
53
  Page:
42
54
  - ''
43
- Content-Type:
44
- - application/json; charset=utf-8
45
55
  X-Ratelimit-Limit:
46
- - '60'
56
+ - '100'
47
57
  X-Ratelimit-Remaining:
48
- - '35'
58
+ - '68'
49
59
  Etag:
50
- - W/"83d94cd19dfdfbbdcd3423e405beb4de"
60
+ - W/"0bfb9151ce3fe491ef699ca2ec507610"
51
61
  Cache-Control:
52
62
  - must-revalidate, private, max-age=0
53
63
  X-Request-Id:
54
- - d325b022-cfb0-44b0-9275-a8fd3f54b65d
64
+ - b719ceae-e2fc-4655-9f2b-7089bff60ddf
55
65
  X-Runtime:
56
- - '0.034622'
66
+ - '0.026035'
57
67
  Date:
58
- - Tue, 13 Apr 2021 17:19:02 GMT
68
+ - Tue, 22 Feb 2022 17:30:32 GMT
59
69
  X-Rack-Cache:
60
70
  - miss
61
71
  Strict-Transport-Security:
62
- - max-age=2629746
72
+ - max-age=31556952; includeSubDomains; preload
63
73
  Vary:
64
74
  - Origin,Accept-Encoding
65
- Transfer-Encoding:
66
- - chunked
75
+ X-Rack-Cors:
76
+ - miss; no-origin
67
77
  Via:
68
- - 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==
69
85
  body:
70
86
  encoding: UTF-8
71
- string: '[{"id":19810,"occurrence":"10","date_of_occurrence":"2020-03-20","discharge_id":3192,"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":"04958535","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"},"line_raw":{"line_raw":"1027879661300014165199000999990009999 04958535 510200320495853 0495853500 12111900000000300350331651901000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
72
- N 200320 SOLUCOES DIGITAIS L 00000000000000000000000000000000000000000C 325000002"},"processed_at":"2021-04-13T14:18:50-03:00","occurrence_detail":"Título
73
- 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":"2021-04-13T14:18:50-03:00","kind":"400"},{"id":19809,"occurrence":"10","date_of_occurrence":"2020-03-20","discharge_id":3191,"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":"04958535","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"},"line_raw":{"line_raw":"1027879661300014165199000999990009999 04958535 510200320495853 0495853500 12111900000000300350331651901000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
74
- N 200320 SOLUCOES DIGITAIS L 00000000000000000000000000000000000000000C 325000002"},"processed_at":"2021-04-13T11:44:18-03:00","occurrence_detail":"Título
75
- 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":"2021-04-13T11:44:18-03:00","kind":"400"},{"id":19808,"occurrence":"10","date_of_occurrence":"2020-03-20","discharge_id":3190,"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":"04958535","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"},"line_raw":{"line_raw":"1027879661300014165199000999990009999 04958535 510200320495853 0495853500 12111900000000300350331651901000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
76
- N 200320 SOLUCOES DIGITAIS L 00000000000000000000000000000000000000000C 325000002"},"processed_at":"2021-04-13T11:40:03-03:00","occurrence_detail":"Título
77
- 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":"2021-04-13T11:40:03-03:00","kind":"400"},{"id":19807,"occurrence":"10","date_of_occurrence":"2020-03-20","discharge_id":3189,"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":"04958535","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"},"line_raw":{"line_raw":"1027879661300014165199000999990009999 04958535 510200320495853 0495853500 12111900000000300350331651901000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
78
- N 200320 SOLUCOES DIGITAIS L 00000000000000000000000000000000000000000C 325000002"},"processed_at":"2021-04-13T11:35:31-03:00","occurrence_detail":"Título
79
- 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":"2021-04-13T11:35:31-03:00","kind":"400"},{"id":19806,"occurrence":"10","date_of_occurrence":"2020-03-20","discharge_id":3188,"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":"04958535","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"},"line_raw":{"line_raw":"1027879661300014165199000999990009999 04958535 510200320495853 0495853500 12111900000000300350331651901000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
80
- N 200320 SOLUCOES DIGITAIS L 00000000000000000000000000000000000000000C 325000002"},"processed_at":"2021-04-13T11:26:08-03:00","occurrence_detail":"Título
81
- 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":"2021-04-13T11:26:08-03:00","kind":"400"},{"id":19805,"occurrence":"10","date_of_occurrence":"2020-03-20","discharge_id":3187,"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":"04958535","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"},"line_raw":{"line_raw":"1027879661300014165199000999990009999 04958535 510200320495853 0495853500 12111900000000300350331651901000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
82
- N 200320 SOLUCOES DIGITAIS L 00000000000000000000000000000000000000000C 325000002"},"processed_at":"2021-04-13T11:22:11-03:00","occurrence_detail":"Título
83
- 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":"2021-04-13T11:22:11-03:00","kind":"400"},{"id":19804,"occurrence":"10","date_of_occurrence":"2020-03-20","discharge_id":3186,"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":"04958535","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"},"line_raw":{"line_raw":"1027879661300014165199000999990009999 04958535 510200320495853 0495853500 12111900000000300350331651901000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
84
- N 200320 SOLUCOES DIGITAIS L 00000000000000000000000000000000000000000C 325000002"},"processed_at":"2021-04-13T11:10:39-03:00","occurrence_detail":"Título
85
- 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":"2021-04-13T11:10:39-03:00","kind":"400"},{"id":19803,"occurrence":"10","date_of_occurrence":"2020-03-20","discharge_id":3185,"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":"04958535","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"},"line_raw":{"line_raw":"1027879661300014165199000999990009999 04958535 510200320495853 0495853500 12111900000000300350331651901000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
86
- N 200320 SOLUCOES DIGITAIS L 00000000000000000000000000000000000000000C 325000002"},"processed_at":"2021-04-13T11:05:50-03:00","occurrence_detail":"Título
87
- 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":"2021-04-13T11:05:50-03:00","kind":"400"},{"id":19802,"occurrence":"10","date_of_occurrence":"2020-03-20","discharge_id":3184,"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":"04958535","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"},"line_raw":{"line_raw":"1027879661300014165199000999990009999 04958535 510200320495853 0495853500 12111900000000300350331651901000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
88
- N 200320 SOLUCOES DIGITAIS L 00000000000000000000000000000000000000000C 325000002"},"processed_at":"2021-04-13T10:55:37-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":"2021-04-13T10:55:37-03:00","kind":"400"},{"id":19801,"occurrence":"10","date_of_occurrence":"2020-03-20","discharge_id":3183,"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":"04958535","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"},"line_raw":{"line_raw":"1027879661300014165199000999990009999 04958535 510200320495853 0495853500 12111900000000300350331651901000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
90
- N 200320 SOLUCOES DIGITAIS L 00000000000000000000000000000000000000000C 325000002"},"processed_at":"2021-04-13T09:59:46-03:00","occurrence_detail":"Título
91
- 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":"2021-04-13T09:59:46-03:00","kind":"400"},{"id":19800,"occurrence":"10","date_of_occurrence":"2020-03-20","discharge_id":3182,"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":"04958535","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"},"line_raw":{"line_raw":"1027879661300014165199000999990009999 04958535 510200320495853 0495853500 12111900000000300350331651901000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
92
- N 200320 SOLUCOES DIGITAIS L 00000000000000000000000000000000000000000C 325000002"},"processed_at":"2021-04-13T09:27:09-03:00","occurrence_detail":"Título
93
- 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":"2021-04-13T09:27:09-03:00","kind":"400"},{"id":19799,"occurrence":"10","date_of_occurrence":"2020-03-20","discharge_id":3181,"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":"04958535","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"},"line_raw":{"line_raw":"1027879661300014165199000999990009999 04958535 510200320495853 0495853500 12111900000000300350331651901000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
94
- N 200320 SOLUCOES DIGITAIS L 00000000000000000000000000000000000000000C 325000002"},"processed_at":"2021-04-12T11:55:07-03:00","occurrence_detail":"Título
95
- 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":"2021-04-12T11:55:07-03:00","kind":"400"}]'
96
- recorded_at: Tue, 13 Apr 2021 17:19:02 GMT
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
97
91
  recorded_with: VCR 6.0.0
@@ -1,75 +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
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: '[{"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
72
- 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
73
- da Silva","expire_at":"2021-05-13","amount":1120.4}]'
74
- recorded_at: Tue, 13 Apr 2021 17:18:41 GMT
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
75
76
  recorded_with: VCR 6.0.0