boletosimples 1.0.2 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +18 -0
  3. data/README.md +11 -8
  4. data/lib/boletosimples/configuration.rb +10 -4
  5. data/lib/boletosimples/middlewares/debug.rb +30 -0
  6. data/lib/boletosimples/response_error.rb +2 -2
  7. data/lib/boletosimples/version.rb +1 -1
  8. data/lib/boletosimples.rb +1 -0
  9. data/spec/boletosimples/configuration_spec.rb +3 -3
  10. data/spec/boletosimples/resources/bank_billet_spec.rb +2 -2
  11. data/spec/boletosimples/resources/customer_spec.rb +9 -4
  12. data/spec/boletosimples/resources/customer_subscription_spec.rb +1 -1
  13. data/spec/boletosimples/resources/installment_spec.rb +1 -1
  14. data/spec/fixtures/vcr_cassettes/last_request/bank_billets.yml +386 -520
  15. data/spec/fixtures/vcr_cassettes/resources/bank_billet/all.yml +78 -522
  16. data/spec/fixtures/vcr_cassettes/resources/bank_billet/cancel/success.yml +30 -12
  17. data/spec/fixtures/vcr_cassettes/resources/bank_billet/create/invalid_params.yml +32 -16
  18. data/spec/fixtures/vcr_cassettes/resources/bank_billet/create/invalid_root.yml +31 -15
  19. data/spec/fixtures/vcr_cassettes/resources/bank_billet/create/valid.yml +42 -28
  20. data/spec/fixtures/vcr_cassettes/resources/bank_billet/duplicate/success.yml +41 -27
  21. data/spec/fixtures/vcr_cassettes/resources/bank_billet/find.yml +46 -31
  22. data/spec/fixtures/vcr_cassettes/resources/bank_billet_account/all.yml +47 -103
  23. data/spec/fixtures/vcr_cassettes/resources/bank_billet_account/create/invalid_params.yml +31 -15
  24. data/spec/fixtures/vcr_cassettes/resources/bank_billet_account/create/invalid_root.yml +31 -15
  25. data/spec/fixtures/vcr_cassettes/resources/bank_billet_account/create/valid.yml +35 -19
  26. data/spec/fixtures/vcr_cassettes/resources/bank_billet_account/find.yml +35 -19
  27. data/spec/fixtures/vcr_cassettes/resources/bank_billet_discharge/all.yml +35 -41
  28. data/spec/fixtures/vcr_cassettes/resources/bank_billet_payment/all.yml +73 -72
  29. data/spec/fixtures/vcr_cassettes/resources/bank_billet_remittance/all.yml +39 -70
  30. data/spec/fixtures/vcr_cassettes/resources/customer/all.yml +111 -56
  31. data/spec/fixtures/vcr_cassettes/resources/customer/create/invalid_params.yml +35 -19
  32. data/spec/fixtures/vcr_cassettes/resources/customer/create/invalid_root.yml +35 -16
  33. data/spec/fixtures/vcr_cassettes/resources/customer/create/valid.yml +37 -21
  34. data/spec/fixtures/vcr_cassettes/resources/customer/find.yml +36 -20
  35. data/spec/fixtures/vcr_cassettes/resources/customer_import/all.yml +34 -18
  36. data/spec/fixtures/vcr_cassettes/resources/customer_import/create/invalid_params.yml +31 -15
  37. data/spec/fixtures/vcr_cassettes/resources/customer_import/create/invalid_root.yml +31 -15
  38. data/spec/fixtures/vcr_cassettes/resources/customer_import/create/valid.yml +36 -20
  39. data/spec/fixtures/vcr_cassettes/resources/customer_import/find.yml +34 -18
  40. data/spec/fixtures/vcr_cassettes/resources/customer_subscription/all.yml +35 -71
  41. data/spec/fixtures/vcr_cassettes/resources/customer_subscription/create/invalid_params.yml +32 -16
  42. data/spec/fixtures/vcr_cassettes/resources/customer_subscription/create/invalid_root.yml +31 -15
  43. data/spec/fixtures/vcr_cassettes/resources/customer_subscription/create/valid.yml +35 -19
  44. data/spec/fixtures/vcr_cassettes/resources/customer_subscription/find.yml +36 -20
  45. data/spec/fixtures/vcr_cassettes/resources/customer_subscription/next_charge.yml +36 -20
  46. data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/all.yml +34 -19
  47. data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/create/invalid_params.yml +31 -15
  48. data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/create/invalid_root.yml +31 -15
  49. data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/create/valid.yml +36 -20
  50. data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/find.yml +34 -18
  51. data/spec/fixtures/vcr_cassettes/resources/discharge/all.yml +37 -39
  52. data/spec/fixtures/vcr_cassettes/resources/discharge/create/invalid_params.yml +31 -15
  53. data/spec/fixtures/vcr_cassettes/resources/discharge/create/invalid_root.yml +31 -15
  54. data/spec/fixtures/vcr_cassettes/resources/discharge/create/valid.yml +37 -21
  55. data/spec/fixtures/vcr_cassettes/resources/discharge/find.yml +36 -18
  56. data/spec/fixtures/vcr_cassettes/resources/email_delivery/all.yml +1 -1
  57. data/spec/fixtures/vcr_cassettes/resources/event/all.yml +267 -432
  58. data/spec/fixtures/vcr_cassettes/resources/installment/all.yml +71 -375
  59. data/spec/fixtures/vcr_cassettes/resources/installment/create/invalid_params.yml +32 -16
  60. data/spec/fixtures/vcr_cassettes/resources/installment/create/invalid_root.yml +31 -15
  61. data/spec/fixtures/vcr_cassettes/resources/installment/create/valid.yml +35 -19
  62. data/spec/fixtures/vcr_cassettes/resources/installment/find.yml +59 -19
  63. data/spec/fixtures/vcr_cassettes/resources/remittance/all.yml +82 -81
  64. data/spec/fixtures/vcr_cassettes/resources/sns_delivery/all.yml +31 -15
  65. data/spec/fixtures/vcr_cassettes/resources/transaction/all.yml +72 -71
  66. data/spec/fixtures/vcr_cassettes/resources/web_hook/all.yml +33 -17
  67. data/spec/fixtures/vcr_cassettes/resources/webhook_delivery/all.yml +2657 -1206
  68. metadata +6 -186
@@ -2,10 +2,10 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: put
5
- uri: https://sandbox.boletosimples.com.br/api/v1/bank_billets/382369/cancel
5
+ uri: https://api-sandbox.kobana.com.br/v1/bank_billets/472529/cancel
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"bank_billet":{"id":382369}}'
8
+ string: '{"bank_billet":{"id":472529}}'
9
9
  headers:
10
10
  User-Agent:
11
11
  - email@minhaempresa.com.br
@@ -22,12 +22,12 @@ http_interactions:
22
22
  code: 204
23
23
  message: No Content
24
24
  headers:
25
- Server:
26
- - Cowboy
27
25
  Content-Length:
28
26
  - '0'
29
27
  Connection:
30
28
  - keep-alive
29
+ Server:
30
+ - Cowboy
31
31
  X-Frame-Options:
32
32
  - DENY
33
33
  X-Xss-Protection:
@@ -40,28 +40,46 @@ http_interactions:
40
40
  - none
41
41
  Referrer-Policy:
42
42
  - strict-origin-when-cross-origin
43
+ Expect-Ct:
44
+ - max-age=0, report-uri="https://boletosimples.report-uri.com/r/d/ct/reportOnly"
45
+ Cross-Origin-Resource-Policy:
46
+ - cross-origin
47
+ Cross-Origin-Embedder-Policy:
48
+ - unsafe-none
49
+ Cross-Origin-Opener-Policy:
50
+ - unsafe-none
51
+ Location:
52
+ - https://api-sandbox.kobana.com.br/api/v1/bank_billets/472529
43
53
  X-Ratelimit-Limit:
44
- - '1000'
54
+ - '18000'
45
55
  X-Ratelimit-Remaining:
46
- - '992'
56
+ - '17971'
47
57
  Cache-Control:
48
58
  - no-cache
49
59
  X-Request-Id:
50
- - 98887c96-4671-4127-a41f-2aa02a5f03c8
60
+ - adfbe68a-a22e-4362-b3de-81f158d05295
51
61
  X-Runtime:
52
- - '0.152161'
62
+ - '0.093577'
53
63
  Date:
54
- - Tue, 13 Apr 2021 17:18:32 GMT
64
+ - Tue, 22 Feb 2022 17:30:26 GMT
55
65
  X-Rack-Cache:
56
66
  - invalidate, pass
57
67
  Strict-Transport-Security:
58
- - max-age=2629746
68
+ - max-age=31556952; includeSubDomains; preload
59
69
  Vary:
60
70
  - Origin
71
+ X-Rack-Cors:
72
+ - miss; no-origin
61
73
  Via:
62
- - 1.1 vegur
74
+ - 1.1 vegur, 1.1 d2c636aea3f69033bb2125c4038e1c48.cloudfront.net (CloudFront)
75
+ X-Cache:
76
+ - Miss from cloudfront
77
+ X-Amz-Cf-Pop:
78
+ - MIA3-C1
79
+ X-Amz-Cf-Id:
80
+ - tSDnksGSthqa2kgGQBHJQoiUNaTJy5gOPtiv_J6oqM1_heTZvl1qYg==
63
81
  body:
64
82
  encoding: UTF-8
65
83
  string: ''
66
- recorded_at: Tue, 13 Apr 2021 17:18:32 GMT
84
+ recorded_at: Tue, 22 Feb 2022 17:30:26 GMT
67
85
  recorded_with: VCR 6.0.0
@@ -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_billets
5
+ uri: https://api-sandbox.kobana.com.br/v1/bank_billets
6
6
  body:
7
7
  encoding: UTF-8
8
8
  string: '{"bank_billet":{"amount":9.1}}'
@@ -22,10 +22,14 @@ http_interactions:
22
22
  code: 422
23
23
  message: Unprocessable Entity
24
24
  headers:
25
- Server:
26
- - Cowboy
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Transfer-Encoding:
28
+ - chunked
27
29
  Connection:
28
30
  - keep-alive
31
+ Server:
32
+ - Cowboy
29
33
  X-Frame-Options:
30
34
  - DENY
31
35
  X-Xss-Protection:
@@ -38,36 +42,48 @@ http_interactions:
38
42
  - none
39
43
  Referrer-Policy:
40
44
  - strict-origin-when-cross-origin
41
- Content-Type:
42
- - application/json; charset=utf-8
45
+ Expect-Ct:
46
+ - max-age=0, report-uri="https://boletosimples.report-uri.com/r/d/ct/reportOnly"
47
+ Cross-Origin-Resource-Policy:
48
+ - cross-origin
49
+ Cross-Origin-Embedder-Policy:
50
+ - unsafe-none
51
+ Cross-Origin-Opener-Policy:
52
+ - unsafe-none
43
53
  X-Ratelimit-Limit:
44
- - '1000'
54
+ - '18000'
45
55
  X-Ratelimit-Remaining:
46
- - '991'
56
+ - '17969'
47
57
  Cache-Control:
48
58
  - no-cache
49
59
  X-Request-Id:
50
- - ce5fa906-d46d-47d9-ae93-aadfb66e3b39
60
+ - 5019b0f5-6976-4b76-8d8a-b109d99bdfae
51
61
  X-Runtime:
52
- - '0.054244'
62
+ - '0.029409'
53
63
  Date:
54
- - Tue, 13 Apr 2021 17:18:33 GMT
64
+ - Tue, 22 Feb 2022 17:30:27 GMT
55
65
  X-Rack-Cache:
56
66
  - invalidate, pass
57
67
  Strict-Transport-Security:
58
- - max-age=2629746
68
+ - max-age=31556952; includeSubDomains; preload
59
69
  Vary:
60
70
  - Origin,Accept-Encoding
61
- Transfer-Encoding:
62
- - chunked
71
+ X-Rack-Cors:
72
+ - miss; no-origin
63
73
  Via:
64
- - 1.1 vegur
74
+ - 1.1 vegur, 1.1 bc5ca942c588917a31bb32f85c8bfee4.cloudfront.net (CloudFront)
75
+ X-Cache:
76
+ - Error from cloudfront
77
+ X-Amz-Cf-Pop:
78
+ - MIA3-C1
79
+ X-Amz-Cf-Id:
80
+ - 88rp4v0AVhnJ-nSp1HLDPK2eAC2LOMP0QCzovmDYEa5oZTorxkC-1Q==
65
81
  body:
66
82
  encoding: UTF-8
67
83
  string: '{"errors":{"customer_person_name":["não pode ficar em branco"],"customer_cnpj_cpf":["não
68
- pode ficar em branco"],"customer_zipcode":["não pode ficar em branco"],"expire_at":["não
84
+ é um CNPJ ou CPF válido"],"customer_zipcode":["não pode ficar em branco"],"expire_at":["não
69
85
  pode ficar em branco","não é uma data válida"],"customer_address":["não pode
70
86
  ficar em branco"],"customer_neighborhood":["não pode ficar em branco"],"customer_city_name":["não
71
87
  pode ficar em branco"],"customer_state":["não está incluído na lista"]}}'
72
- recorded_at: Tue, 13 Apr 2021 17:18:33 GMT
88
+ recorded_at: Tue, 22 Feb 2022 17:30:27 GMT
73
89
  recorded_with: VCR 6.0.0
@@ -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_billets
5
+ uri: https://api-sandbox.kobana.com.br/v1/bank_billets
6
6
  body:
7
7
  encoding: UTF-8
8
8
  string: '{"bank_billet":{}}'
@@ -22,10 +22,14 @@ http_interactions:
22
22
  code: 422
23
23
  message: Unprocessable Entity
24
24
  headers:
25
- Server:
26
- - Cowboy
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Transfer-Encoding:
28
+ - chunked
27
29
  Connection:
28
30
  - keep-alive
31
+ Server:
32
+ - Cowboy
29
33
  X-Frame-Options:
30
34
  - DENY
31
35
  X-Xss-Protection:
@@ -38,32 +42,44 @@ http_interactions:
38
42
  - none
39
43
  Referrer-Policy:
40
44
  - strict-origin-when-cross-origin
41
- Content-Type:
42
- - application/json; charset=utf-8
45
+ Expect-Ct:
46
+ - max-age=0, report-uri="https://boletosimples.report-uri.com/r/d/ct/reportOnly"
47
+ Cross-Origin-Resource-Policy:
48
+ - cross-origin
49
+ Cross-Origin-Embedder-Policy:
50
+ - unsafe-none
51
+ Cross-Origin-Opener-Policy:
52
+ - unsafe-none
43
53
  X-Ratelimit-Limit:
44
- - '1000'
54
+ - '18000'
45
55
  X-Ratelimit-Remaining:
46
- - '990'
56
+ - '17970'
47
57
  Cache-Control:
48
58
  - no-cache
49
59
  X-Request-Id:
50
- - 9661fa3c-f0bd-4b8f-af56-c27947e50984
60
+ - eb3f1717-44fa-4d83-b3b3-61fff861fb4b
51
61
  X-Runtime:
52
- - '0.025355'
62
+ - '0.019192'
53
63
  Date:
54
- - Tue, 13 Apr 2021 17:18:34 GMT
64
+ - Tue, 22 Feb 2022 17:30:27 GMT
55
65
  X-Rack-Cache:
56
66
  - invalidate, pass
57
67
  Strict-Transport-Security:
58
- - max-age=2629746
68
+ - max-age=31556952; includeSubDomains; preload
59
69
  Vary:
60
70
  - Origin,Accept-Encoding
61
- Transfer-Encoding:
62
- - chunked
71
+ X-Rack-Cors:
72
+ - miss; no-origin
63
73
  Via:
64
- - 1.1 vegur
74
+ - 1.1 vegur, 1.1 ea905bc41494afa044dd561d2410d0a0.cloudfront.net (CloudFront)
75
+ X-Cache:
76
+ - Error from cloudfront
77
+ X-Amz-Cf-Pop:
78
+ - MIA3-C1
79
+ X-Amz-Cf-Id:
80
+ - WhAWiNXtLNKa4ZwUXVQ5LoyfCiajOC7-5aFWYuFLFr1esTWLvBQO5w==
65
81
  body:
66
82
  encoding: UTF-8
67
83
  string: '{"errors":[{"title":"bank_billet não pode ficar em branco","status":422,"code":422}]}'
68
- recorded_at: Tue, 13 Apr 2021 17:18:34 GMT
84
+ recorded_at: Tue, 22 Feb 2022 17:30:27 GMT
69
85
  recorded_with: VCR 6.0.0
@@ -2,10 +2,10 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: https://sandbox.boletosimples.com.br/api/v1/bank_billets
5
+ uri: https://api-sandbox.kobana.com.br/v1/bank_billets
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"bank_billet":{"amount":9.01,"description":"Despesas do contrato 0012","expire_at":"2022-01-01","customer_address":"Rua
8
+ string: '{"bank_billet":{"amount":9.01,"description":"Despesas do contrato 0012","expire_at":"2024-01-01","customer_address":"Rua
9
9
  quinhentos","customer_address_complement":"Sala 4","customer_address_number":"111","customer_city_name":"Rio
10
10
  de Janeiro","customer_cnpj_cpf":"34.565.715/0001-03","customer_email":"cliente@example.com","customer_neighborhood":"Sao
11
11
  Francisco","customer_person_name":"Joao da Silva","customer_person_type":"individual","customer_phone_number":"2112123434","customer_state":"RJ","customer_zipcode":"12312-123"}}'
@@ -25,10 +25,14 @@ http_interactions:
25
25
  code: 201
26
26
  message: Created
27
27
  headers:
28
- Server:
29
- - Cowboy
28
+ Content-Type:
29
+ - application/json; charset=utf-8
30
+ Transfer-Encoding:
31
+ - chunked
30
32
  Connection:
31
33
  - keep-alive
34
+ Server:
35
+ - Cowboy
32
36
  X-Frame-Options:
33
37
  - DENY
34
38
  X-Xss-Protection:
@@ -41,46 +45,56 @@ http_interactions:
41
45
  - none
42
46
  Referrer-Policy:
43
47
  - strict-origin-when-cross-origin
48
+ Expect-Ct:
49
+ - max-age=0, report-uri="https://boletosimples.report-uri.com/r/d/ct/reportOnly"
50
+ Cross-Origin-Resource-Policy:
51
+ - cross-origin
52
+ Cross-Origin-Embedder-Policy:
53
+ - unsafe-none
54
+ Cross-Origin-Opener-Policy:
55
+ - unsafe-none
44
56
  Location:
45
- - https://sandbox.boletosimples.com.br/api/v1/bank_billets/382369
46
- Content-Type:
47
- - application/json; charset=utf-8
57
+ - https://api-sandbox.kobana.com.br/api/v1/bank_billets/472529
48
58
  X-Ratelimit-Limit:
49
- - '1000'
59
+ - '18000'
50
60
  X-Ratelimit-Remaining:
51
- - '993'
61
+ - '17972'
52
62
  Etag:
53
- - W/"bd19073eed4ab3aeb15a251e5af870ee"
63
+ - W/"1ef3d7869d8bf0227b135e317932e97a"
54
64
  Cache-Control:
55
65
  - max-age=0, private, must-revalidate
56
66
  X-Request-Id:
57
- - 044c4197-9bfe-488e-bed4-752bb520bda8
67
+ - 399e78bb-9af5-42af-802e-49340b7af8de
58
68
  X-Runtime:
59
- - '0.300482'
69
+ - '0.070999'
60
70
  Date:
61
- - Tue, 13 Apr 2021 17:18:30 GMT
71
+ - Tue, 22 Feb 2022 17:30:25 GMT
62
72
  X-Rack-Cache:
63
73
  - invalidate, pass
64
74
  Strict-Transport-Security:
65
- - max-age=2629746
75
+ - max-age=31556952; includeSubDomains; preload
66
76
  Vary:
67
77
  - Origin,Accept-Encoding
68
- Transfer-Encoding:
69
- - chunked
78
+ X-Rack-Cors:
79
+ - miss; no-origin
70
80
  Via:
71
- - 1.1 vegur
81
+ - 1.1 vegur, 1.1 ef571e66c5038660a5b767dcaa4205a4.cloudfront.net (CloudFront)
82
+ X-Cache:
83
+ - Miss from cloudfront
84
+ X-Amz-Cf-Pop:
85
+ - MIA3-C1
86
+ X-Amz-Cf-Id:
87
+ - Qshb_PmQvg8_CR5ZW30mSu01cq7ANJdfKw5fTuE-pSXZtj_n3buzKQ==
72
88
  body:
73
89
  encoding: UTF-8
74
- string: '{"id":382369,"expire_at":"2022-01-03","paid_at":null,"description":"Despesas
75
- do contrato 0012","status":"generating","shorten_url":"https://sandbox.bole.to/3/ojkxyw","customer_person_name":"Joao
76
- da Silva","customer_cnpj_cpf":"34.565.715/0001-03","customer_address":"Rua
90
+ string: '{"id":472529,"expire_at":"2024-01-02","paid_at":null,"description":"Despesas
91
+ do contrato 0012","status":"generating","customer_person_name":"Joao da Silva","customer_cnpj_cpf":"34.565.715/0001-03","customer_address":"Rua
77
92
  quinhentos","customer_state":"RJ","customer_neighborhood":"Sao Francisco","customer_zipcode":"12312123","customer_address_number":"111","customer_address_complement":"Sala
78
- 4","customer_phone_number":"2112123434","customer_email":"cliente@example.com","customer_email_cc":null,"customer_ignore_email":null,"customer_mobile_local_code":null,"customer_mobile_number":null,"customer_nickname":null,"customer_notes":null,"created_via_api":true,"customer_city_name":"Rio
79
- de Janeiro","paid_amount":0.0,"amount":9.01,"url":"https://sandbox.bole.to/3/ojkxyw","formats":{"default":"https://sandbox.bole.to/3/ojkxyw","png":"https://sandbox.bole.to/3/ojkxyw.png?r=1618334310","pdf":"https://sandbox.bole.to/3/ojkxyw.pdf?r=1618334310","boleto_hibrido":"https://sandbox.bole.to/3/ojkxyw/boleto_hibrido?r=1618334310","boleto_pix":"https://sandbox.bole.to/3/ojkxyw/boleto_pix?r=1618334310","barcode":"https://sandbox.bole.to/3/ojkxyw/barcode","envelope":"https://sandbox.bole.to/3/ojkxyw/envelope","letter":"https://sandbox.bole.to/3/ojkxyw/letter","line":"https://sandbox.bole.to/3/ojkxyw/line","recibo":"https://sandbox.bole.to/3/ojkxyw/recibo"},"meta":null,"fine_for_delay":null,"fine_type":0,"fine_percentage":null,"fine_value":null,"days_for_fine":null,"late_payment_interest":null,"interest_type":0,"interest_daily_value":null,"interest_daily_percentage":null,"interest_monthly_percentage":null,"days_for_interest":null,"discount_type":0,"discount_limit_date":null,"discount_value":null,"discount_percentage":null,"days_for_revoke":null,"notes":null,"payment_count":1,"bank_billet_account_id":3547,"beneficiary_name":"J
80
- Calçados","beneficiary_cnpj_cpf":"74.766.527/0001-68","beneficiary_address":"Praça
81
- dos Três Poderes, 171, - Zona Cívico-Administrativa, Brasília - DF, 70165900","beneficiary_assignor_code":"2332
82
- / 12312-0","guarantor_name":null,"guarantor_cnpj_cpf":null,"payment_place":"Pagável
83
- em qualquer banco até a data de vencimento.","instructions":null,"document_date":null,"document_type":"02","document_number":null,"acceptance":"N","processed_our_number":"109/00000067-1","processed_our_number_raw":"109000000671","bank_contract_slug":"itau-bs-109","agency_number":"2332","agency_digit":"3","account_number":"12312","account_digit":"2","extra1":null,"extra1_digit":null,"extra2":null,"extra2_digit":null,"line":"34191.09008
84
- 00006.712335 21231.200003 3 88540000000901","our_number":"00000067","customer_subscription_id":null,"installment_number":null,"installment_id":null,"carne_url":null,"bank_billet_layout_id":null,"created_at":"2021-04-13T14:18:30-03:00","updated_at":"2021-04-13T14:18:30-03:00","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":"34193885400000009011090000006712332123120000","registered_at":null,"prevent_registration":false,"customer_id":80707,"control_number":null,"divergent_payment_type":null,"divergent_payment_value_type":null,"divergent_payment_maximum_value":null,"divergent_payment_minimum_value":null,"divergent_payment_maximum_percentage":null,"divergent_payment_minimum_percentage":null,"divergent_payment_limit":null,"days_for_discount":null,"days_for_second_discount":null,"second_discount_percentage":null,"second_discount_value":null,"days_for_third_discount":null,"third_discount_percentage":null,"third_discount_value":null,"days_for_sue":null,"days_for_negativation":null,"interest_percentage":null,"interest_value":null,"interest_days_type":0,"customer_contact_person":null,"custom_attachment_name":null,"split_payment":false,"dispatch_type":1,"charge_type":1,"custom_data":null,"bank_billet_discharges":[],"bank_billet_remittances":[],"bank_billet_payments":[],"bank_billet_registrations":[],"bank_billet_split_accounts":[]}'
85
- recorded_at: Tue, 13 Apr 2021 17:18:30 GMT
93
+ 4","customer_phone_number":"2112123434","customer_email":"cliente@example.com","customer_email_cc":null,"customer_ignore_email":null,"customer_ignore_sms":null,"customer_mobile_local_code":null,"customer_mobile_number":null,"customer_nickname":null,"customer_notes":null,"created_via_api":true,"customer_city_name":"Rio
94
+ de Janeiro","paid_amount":0.0,"amount":9.01,"url":"https://sandbox.bole.to/3/lodlme","formats":{"default":"https://sandbox.bole.to/3/lodlme","png":"https://sandbox.bole.to/3/lodlme.png","pdf":"https://sandbox.bole.to/3/lodlme.pdf","boleto_hibrido":"https://sandbox.bole.to/3/lodlme/boleto_hibrido","boleto_pix":"https://sandbox.bole.to/3/lodlme/boleto_pix","barcode":"https://sandbox.bole.to/3/lodlme/barcode","envelope":"https://sandbox.bole.to/3/lodlme/envelope","letter":"https://sandbox.bole.to/3/lodlme/letter","line":"https://sandbox.bole.to/3/lodlme/line","recibo":"https://sandbox.bole.to/3/lodlme/recibo"},"meta":null,"fine_for_delay":null,"fine_type":0,"fine_percentage":null,"fine_value":null,"days_for_fine":null,"late_payment_interest":null,"interest_type":0,"interest_daily_value":null,"interest_daily_percentage":null,"interest_monthly_percentage":null,"days_for_interest":null,"discount_type":0,"discount_limit_date":null,"discount_value":null,"discount_percentage":null,"days_for_revoke":null,"notes":null,"payment_count":1,"bank_billet_account_id":659,"beneficiary_name":"Kivanio
95
+ Pereira Barbosa","beneficiary_cnpj_cpf":"000.233.771-19","beneficiary_address":"Rua
96
+ Quatro, 9, 78058-330","beneficiary_assignor_code":"0001/123322-0","guarantor_name":null,"guarantor_cnpj_cpf":null,"payment_place":"Pagável
97
+ em qualquer banco até a data de vencimento.","instructions":null,"document_date":null,"document_type":"02","document_number":null,"acceptance":"N","processed_our_number":"14000000000000085-5","processed_our_number_raw":"140000000000000855","bank_contract_slug":"caixa-rg","agency_number":"2342","agency_digit":"2","account_number":"0012432","account_digit":"1","extra1":"0123322","extra1_digit":null,"extra2":null,"extra2_digit":null,"line":"10491.23324
98
+ 20000.100048 00000.008581 1 95830000000901","our_number":"000000000000085","customer_subscription_id":null,"installment_total":null,"installment_number":null,"installment_id":null,"carne_url":null,"bank_billet_layout_id":null,"created_at":"2022-02-22T14:30:25-03:00","updated_at":"2022-02-22T14:30:25-03:00","tags":[],"tag_list":null,"document_type_label":"DM","addons":null,"ignore_email":false,"ignore_sms":false,"sue_code":null,"revoke_code":null,"first_instruction":null,"second_instruction":null,"guarantor_address_number":null,"guarantor_neighborhood":null,"guarantor_phone_number":null,"guarantor_city_name":null,"guarantor_state":null,"guarantor_zipcode":null,"guarantor_address":null,"guarantor_address_complement":null,"barcode":"10491958300000009011233220000100040000000858","registered_at":null,"prevent_registration":false,"customer_id":null,"control_number":null,"divergent_payment_type":null,"divergent_payment_value_type":null,"divergent_payment_maximum_value":null,"divergent_payment_minimum_value":null,"divergent_payment_maximum_percentage":null,"divergent_payment_minimum_percentage":null,"divergent_payment_limit":null,"days_for_discount":null,"days_for_second_discount":null,"second_discount_percentage":null,"second_discount_value":null,"days_for_third_discount":null,"third_discount_percentage":null,"third_discount_value":null,"days_for_sue":null,"days_for_negativation":null,"interest_percentage":null,"interest_value":null,"interest_days_type":0,"customer_contact_person":null,"custom_attachment_name":null,"split_payment":false,"dispatch_type":1,"charge_type":1,"custom_data":null,"issued_at":"2022-02-22T14:30:25-03:00","shorten_url":"https://sandbox.bole.to/3/lodlme","pix_enabled":false,"pix_qrcode":null,"password_protected_mode":null,"revoked_at":null,"bank_billet_discharges":[],"bank_billet_remittances":[],"bank_billet_payments":[],"bank_billet_registrations":[],"bank_billet_split_accounts":[],"pix":[]}'
99
+ recorded_at: Tue, 22 Feb 2022 17:30:25 GMT
86
100
  recorded_with: VCR 6.0.0
@@ -2,10 +2,10 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: https://sandbox.boletosimples.com.br/api/v1/bank_billets/382369/duplicate
5
+ uri: https://api-sandbox.kobana.com.br/v1/bank_billets/472529/duplicate
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"bank_billet":{"id":382369}}'
8
+ string: '{"bank_billet":{"id":472529}}'
9
9
  headers:
10
10
  User-Agent:
11
11
  - email@minhaempresa.com.br
@@ -22,10 +22,14 @@ http_interactions:
22
22
  code: 201
23
23
  message: Created
24
24
  headers:
25
- Server:
26
- - Cowboy
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Transfer-Encoding:
28
+ - chunked
27
29
  Connection:
28
30
  - keep-alive
31
+ Server:
32
+ - Cowboy
29
33
  X-Frame-Options:
30
34
  - DENY
31
35
  X-Xss-Protection:
@@ -38,46 +42,56 @@ http_interactions:
38
42
  - none
39
43
  Referrer-Policy:
40
44
  - strict-origin-when-cross-origin
45
+ Expect-Ct:
46
+ - max-age=0, report-uri="https://boletosimples.report-uri.com/r/d/ct/reportOnly"
47
+ Cross-Origin-Resource-Policy:
48
+ - cross-origin
49
+ Cross-Origin-Embedder-Policy:
50
+ - unsafe-none
51
+ Cross-Origin-Opener-Policy:
52
+ - unsafe-none
41
53
  Location:
42
- - https://sandbox.boletosimples.com.br/api/v1/bank_billets/382602
43
- Content-Type:
44
- - application/json; charset=utf-8
54
+ - https://api-sandbox.kobana.com.br/api/v1/bank_billets/472530
45
55
  X-Ratelimit-Limit:
46
56
  - '18000'
47
57
  X-Ratelimit-Remaining:
48
- - '17997'
58
+ - '17968'
49
59
  Etag:
50
- - W/"bb8f4b7fc0db6474494e528e349a34af"
60
+ - W/"ccda87b3da5ffbd4da9c0fd62a429483"
51
61
  Cache-Control:
52
62
  - max-age=0, private, must-revalidate
53
63
  X-Request-Id:
54
- - 2d728ac3-6e78-40bd-93d9-205509507a89
64
+ - de1988c5-dd7f-48e3-8bc7-364105ab6e15
55
65
  X-Runtime:
56
- - '0.858514'
66
+ - '0.087328'
57
67
  Date:
58
- - Tue, 13 Apr 2021 19:47:35 GMT
68
+ - Tue, 22 Feb 2022 17:30:28 GMT
59
69
  X-Rack-Cache:
60
70
  - invalidate, pass
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 0cf45531e6680fc654de9fce5ded19c6.cloudfront.net (CloudFront)
79
+ X-Cache:
80
+ - Miss from cloudfront
81
+ X-Amz-Cf-Pop:
82
+ - MIA3-C1
83
+ X-Amz-Cf-Id:
84
+ - NL5AcloK9zDo0Ym7g_YyX5_L3DkC2SAibC4tnafoDL7O9D9Me8sd6w==
69
85
  body:
70
86
  encoding: UTF-8
71
- string: '{"id":382602,"expire_at":"2021-04-20","paid_at":null,"description":"Despesas
72
- do contrato 0012","status":"generating","shorten_url":"https://sandbox.bole.to/3/vxomzq","customer_person_name":"Joao
73
- da Silva","customer_cnpj_cpf":"34.565.715/0001-03","customer_address":"Rua
87
+ string: '{"id":472530,"expire_at":"2022-03-01","paid_at":null,"description":"Despesas
88
+ do contrato 0012","status":"generating","customer_person_name":"Joao da Silva","customer_cnpj_cpf":"34.565.715/0001-03","customer_address":"Rua
74
89
  quinhentos","customer_state":"RJ","customer_neighborhood":"Sao Francisco","customer_zipcode":"12312123","customer_address_number":"111","customer_address_complement":"Sala
75
- 4","customer_phone_number":"2112123434","customer_email":"cliente@example.com","customer_email_cc":null,"customer_ignore_email":null,"customer_mobile_local_code":null,"customer_mobile_number":null,"customer_nickname":null,"customer_notes":null,"created_via_api":false,"customer_city_name":"Rio
76
- de Janeiro","paid_amount":0.0,"amount":9.01,"url":"https://sandbox.bole.to/3/vxomzq","formats":{"default":"https://sandbox.bole.to/3/vxomzq","png":"https://sandbox.bole.to/3/vxomzq.png?r=1618343254","pdf":"https://sandbox.bole.to/3/vxomzq.pdf?r=1618343254","boleto_hibrido":"https://sandbox.bole.to/3/vxomzq/boleto_hibrido?r=1618343254","boleto_pix":"https://sandbox.bole.to/3/vxomzq/boleto_pix?r=1618343254","barcode":"https://sandbox.bole.to/3/vxomzq/barcode","envelope":"https://sandbox.bole.to/3/vxomzq/envelope","letter":"https://sandbox.bole.to/3/vxomzq/letter","line":"https://sandbox.bole.to/3/vxomzq/line","recibo":"https://sandbox.bole.to/3/vxomzq/recibo"},"meta":null,"fine_for_delay":null,"fine_type":0,"fine_percentage":null,"fine_value":null,"days_for_fine":null,"late_payment_interest":null,"interest_type":0,"interest_daily_value":null,"interest_daily_percentage":null,"interest_monthly_percentage":null,"days_for_interest":null,"discount_type":0,"discount_limit_date":null,"discount_value":null,"discount_percentage":null,"days_for_revoke":null,"notes":null,"payment_count":1,"bank_billet_account_id":3547,"beneficiary_name":"J
77
- Calçados","beneficiary_cnpj_cpf":"74.766.527/0001-68","beneficiary_address":"Praça
78
- dos Três Poderes, 171, - Zona Cívico-Administrativa, Brasília - DF, 70165900","beneficiary_assignor_code":"2332
79
- / 12312-0","guarantor_name":null,"guarantor_cnpj_cpf":null,"payment_place":"Pagável
80
- em qualquer banco até a data de vencimento.","instructions":null,"document_date":null,"document_type":"02","document_number":null,"acceptance":"N","processed_our_number":"109/00000172-9","processed_our_number_raw":"109000001729","bank_contract_slug":"itau-bs-109","agency_number":"2332","agency_digit":"3","account_number":"12312","account_digit":"2","extra1":null,"extra1_digit":null,"extra2":null,"extra2_digit":null,"line":"34191.09008
81
- 00017.292335 21231.200003 7 85960000000901","our_number":"00000172","customer_subscription_id":null,"installment_number":null,"installment_id":null,"carne_url":null,"bank_billet_layout_id":null,"created_at":"2021-04-13T16:47:34-03:00","updated_at":"2021-04-13T16:47:34-03:00","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":"34197859600000009011090000017292332123120000","registered_at":null,"prevent_registration":false,"customer_id":80707,"control_number":null,"divergent_payment_type":null,"divergent_payment_value_type":null,"divergent_payment_maximum_value":null,"divergent_payment_minimum_value":null,"divergent_payment_maximum_percentage":null,"divergent_payment_minimum_percentage":null,"divergent_payment_limit":null,"days_for_discount":null,"days_for_second_discount":null,"second_discount_percentage":null,"second_discount_value":null,"days_for_third_discount":null,"third_discount_percentage":null,"third_discount_value":null,"days_for_sue":null,"days_for_negativation":null,"interest_percentage":null,"interest_value":null,"interest_days_type":0,"customer_contact_person":null,"custom_attachment_name":null,"split_payment":false,"dispatch_type":1,"charge_type":1,"custom_data":null,"bank_billet_discharges":[],"bank_billet_remittances":[],"bank_billet_payments":[],"bank_billet_registrations":[],"bank_billet_split_accounts":[]}'
82
- recorded_at: Tue, 13 Apr 2021 19:47:35 GMT
90
+ 4","customer_phone_number":"2112123434","customer_email":"cliente@example.com","customer_email_cc":null,"customer_ignore_email":null,"customer_ignore_sms":null,"customer_mobile_local_code":null,"customer_mobile_number":null,"customer_nickname":null,"customer_notes":null,"created_via_api":false,"customer_city_name":"Rio
91
+ de Janeiro","paid_amount":0.0,"amount":9.01,"url":"https://sandbox.bole.to/3/jnbrqy","formats":{"default":"https://sandbox.bole.to/3/jnbrqy","png":"https://sandbox.bole.to/3/jnbrqy.png","pdf":"https://sandbox.bole.to/3/jnbrqy.pdf","boleto_hibrido":"https://sandbox.bole.to/3/jnbrqy/boleto_hibrido","boleto_pix":"https://sandbox.bole.to/3/jnbrqy/boleto_pix","barcode":"https://sandbox.bole.to/3/jnbrqy/barcode","envelope":"https://sandbox.bole.to/3/jnbrqy/envelope","letter":"https://sandbox.bole.to/3/jnbrqy/letter","line":"https://sandbox.bole.to/3/jnbrqy/line","recibo":"https://sandbox.bole.to/3/jnbrqy/recibo"},"meta":null,"fine_for_delay":null,"fine_type":0,"fine_percentage":null,"fine_value":null,"days_for_fine":null,"late_payment_interest":null,"interest_type":0,"interest_daily_value":null,"interest_daily_percentage":null,"interest_monthly_percentage":null,"days_for_interest":null,"discount_type":0,"discount_limit_date":null,"discount_value":null,"discount_percentage":null,"days_for_revoke":null,"notes":null,"payment_count":1,"bank_billet_account_id":659,"beneficiary_name":"Kivanio
92
+ Pereira Barbosa","beneficiary_cnpj_cpf":"000.233.771-19","beneficiary_address":"Rua
93
+ Quatro, 9, 78058-330","beneficiary_assignor_code":"0001/123322-0","guarantor_name":null,"guarantor_cnpj_cpf":null,"payment_place":"Pagável
94
+ em qualquer banco até a data de vencimento.","instructions":null,"document_date":null,"document_type":"02","document_number":null,"acceptance":"N","processed_our_number":"14000000000000086-3","processed_our_number_raw":"140000000000000863","bank_contract_slug":"caixa-rg","agency_number":"2342","agency_digit":"2","account_number":"0012432","account_digit":"1","extra1":"0123322","extra1_digit":null,"extra2":null,"extra2_digit":null,"line":"10491.23324
95
+ 20000.100048 00000.008664 1 89110000000901","our_number":"000000000000086","customer_subscription_id":null,"installment_total":null,"installment_number":null,"installment_id":null,"carne_url":null,"bank_billet_layout_id":null,"created_at":"2022-02-22T14:30:28-03:00","updated_at":"2022-02-22T14:30:28-03:00","tags":[],"tag_list":null,"document_type_label":"DM","addons":null,"ignore_email":false,"ignore_sms":false,"sue_code":null,"revoke_code":null,"first_instruction":null,"second_instruction":null,"guarantor_address_number":null,"guarantor_neighborhood":null,"guarantor_phone_number":null,"guarantor_city_name":null,"guarantor_state":null,"guarantor_zipcode":null,"guarantor_address":null,"guarantor_address_complement":null,"barcode":"10491891100000009011233220000100040000000866","registered_at":null,"prevent_registration":false,"customer_id":93341,"control_number":null,"divergent_payment_type":null,"divergent_payment_value_type":null,"divergent_payment_maximum_value":null,"divergent_payment_minimum_value":null,"divergent_payment_maximum_percentage":null,"divergent_payment_minimum_percentage":null,"divergent_payment_limit":null,"days_for_discount":null,"days_for_second_discount":null,"second_discount_percentage":null,"second_discount_value":null,"days_for_third_discount":null,"third_discount_percentage":null,"third_discount_value":null,"days_for_sue":null,"days_for_negativation":null,"interest_percentage":null,"interest_value":null,"interest_days_type":0,"customer_contact_person":null,"custom_attachment_name":null,"split_payment":false,"dispatch_type":1,"charge_type":1,"custom_data":null,"issued_at":"2022-02-22T14:30:28-03:00","shorten_url":"https://sandbox.bole.to/3/jnbrqy","pix_enabled":false,"pix_qrcode":null,"password_protected_mode":null,"revoked_at":null,"bank_billet_discharges":[],"bank_billet_remittances":[],"bank_billet_payments":[],"bank_billet_registrations":[],"bank_billet_split_accounts":[],"pix":[]}'
96
+ recorded_at: Tue, 22 Feb 2022 17:30:28 GMT
83
97
  recorded_with: VCR 6.0.0