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,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: https://sandbox.boletosimples.com.br/api/v1/customers
5
+ uri: https://api-sandbox.kobana.com.br/v1/customers
6
6
  body:
7
7
  encoding: UTF-8
8
8
  string: '{"customer":{}}'
@@ -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,47 @@ 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
- - '971'
56
+ - '17944'
47
57
  Cache-Control:
48
58
  - no-cache
49
59
  X-Request-Id:
50
- - 11cbaf30-2b23-4517-a48e-f38050c17f17
60
+ - d20e889b-59e6-4d9f-90f6-37cb5b2ebde5
51
61
  X-Runtime:
52
- - '0.017993'
62
+ - '0.017494'
53
63
  Date:
54
- - Tue, 13 Apr 2021 17:19:12 GMT
64
+ - Tue, 22 Feb 2022 17:34:25 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 5b065c27afb6cf16a3aa6aae83715630.cloudfront.net (CloudFront)
75
+ X-Cache:
76
+ - Error from cloudfront
77
+ X-Amz-Cf-Pop:
78
+ - MIA3-C1
79
+ X-Amz-Cf-Id:
80
+ - zAKntt6cRIv2PQbOBb4mMOnrIiz3iTdK2hw87caprYvmD8XJJDeziw==
65
81
  body:
66
82
  encoding: UTF-8
67
- string: '{"errors":[{"title":"customer não pode ficar em branco","status":422,"code":422}]}'
68
- recorded_at: Tue, 13 Apr 2021 17:19:12 GMT
83
+ string: '{"errors":{"person_name":["não pode ficar em branco"],"zipcode":["não
84
+ pode ficar em branco"],"address":["não pode ficar em branco"],"neighborhood":["não
85
+ pode ficar em branco"],"city_name":["não pode ficar em branco"],"cnpj_cpf":["não
86
+ é um CNPJ ou CPF válido"],"state":["não está incluído na lista"]}}'
87
+ recorded_at: Tue, 22 Feb 2022 17:34:25 GMT
69
88
  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/customers
5
+ uri: https://api-sandbox.kobana.com.br/v1/customers
6
6
  body:
7
7
  encoding: UTF-8
8
- string: '{"customer":{"person_name":"Maria José","cnpj_cpf":"54.872.822/0001-91","email":"cliente@example.com","address":"Rua
8
+ string: '{"customer":{"person_name":"Maria José","cnpj_cpf":"84.232.027/0001-08","email":"cliente@example.com","address":"Rua
9
9
  quinhentos","city_name":"Rio de Janeiro","state":"RJ","neighborhood":"bairro","zipcode":"12312-123","address_number":"111","address_complement":"Sala
10
10
  4","phone_number":"2112123434"}}'
11
11
  headers:
@@ -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,38 +44,50 @@ 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/customers/80825
45
- Content-Type:
46
- - application/json; charset=utf-8
56
+ - https://api-sandbox.kobana.com.br/api/v1/customers/93343
47
57
  X-Ratelimit-Limit:
48
- - '1000'
58
+ - '18000'
49
59
  X-Ratelimit-Remaining:
50
- - '973'
60
+ - '17945'
51
61
  Etag:
52
- - W/"bf421a7739e6fb5b4a0a6574f14546dc"
62
+ - W/"1db2e1b192053f54b3b632644ef709b0"
53
63
  Cache-Control:
54
64
  - max-age=0, private, must-revalidate
55
65
  X-Request-Id:
56
- - bb3b5ce6-4428-40df-a4b7-1fa6bcf98aec
66
+ - d34ecca5-1100-4746-82f6-f5a5ccfcde11
57
67
  X-Runtime:
58
- - '0.069261'
68
+ - '0.025702'
59
69
  Date:
60
- - Tue, 13 Apr 2021 17:19:09 GMT
70
+ - Tue, 22 Feb 2022 17:34:24 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 6dda9c60465801404125720fa2c0e500.cloudfront.net (CloudFront)
81
+ X-Cache:
82
+ - Miss from cloudfront
83
+ X-Amz-Cf-Pop:
84
+ - MIA3-C1
85
+ X-Amz-Cf-Id:
86
+ - IVKiwxdJaL3zbCyqMsC3b1v0Ms5hXZTsGRkAtzBw9mo-GnWqYUxAxg==
71
87
  body:
72
88
  encoding: UTF-8
73
- string: '{"id":80825,"city_name":"Rio de Janeiro","person_name":"Maria José","nickname":null,"address":"Rua
74
- quinhentos","address_complement":"Sala 4","address_number":"111","mobile_number":null,"cnpj_cpf":"54.872.822/0001-91","email":"cliente@example.com","neighborhood":"bairro","phone_number":"2112123434","zipcode":"12312123","mobile_local_code":null,"notes":null,"state":"RJ","created_via_api":true,"email_cc":null,"contact_person":null,"truncated_address":"Rua
75
- quinhentos, 111","external_code":null,"tags":[],"tag_list":"","custom_data":null}'
76
- recorded_at: Tue, 13 Apr 2021 17:19:09 GMT
89
+ string: '{"id":93343,"city_name":"Rio de Janeiro","person_name":"Maria José","nickname":null,"address":"Rua
90
+ quinhentos","address_complement":"Sala 4","address_number":"111","mobile_number":null,"cnpj_cpf":"84.232.027/0001-08","email":"cliente@example.com","neighborhood":"bairro","phone_number":"2112123434","zipcode":"12312123","mobile_local_code":null,"notes":null,"state":"RJ","created_via_api":true,"email_cc":null,"contact_person":null,"truncated_address":"Rua
91
+ quinhentos, 111","external_code":null,"tags":[],"tag_list":null,"custom_data":null}'
92
+ recorded_at: Tue, 22 Feb 2022 17:34:24 GMT
77
93
  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/customers/80825
5
+ uri: https://api-sandbox.kobana.com.br/v1/customers/93343
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,38 +40,50 @@ 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/customers/80825
41
- Content-Type:
42
- - application/json; charset=utf-8
52
+ - https://api-sandbox.kobana.com.br/api/v1/customers/93343
43
53
  X-Ratelimit-Limit:
44
- - '60'
54
+ - '100'
45
55
  X-Ratelimit-Remaining:
46
- - '33'
56
+ - '46'
47
57
  Etag:
48
- - W/"bf421a7739e6fb5b4a0a6574f14546dc"
58
+ - W/"1db2e1b192053f54b3b632644ef709b0"
49
59
  Cache-Control:
50
60
  - must-revalidate, private, max-age=0
51
61
  X-Request-Id:
52
- - 63ba0393-f0c9-4be2-82b6-f954656cdee5
62
+ - 345770fd-d68c-4184-accb-7fe2a6e4d093
53
63
  X-Runtime:
54
- - '0.031891'
64
+ - '0.018560'
55
65
  Date:
56
- - Tue, 13 Apr 2021 17:19:10 GMT
66
+ - Tue, 22 Feb 2022 17:34:26 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
+ - 21TiFmRZzkS-d2gDHS6G9m7fodQ5_Zophs5LX2yG46I3qNfGZBvQMg==
67
83
  body:
68
84
  encoding: UTF-8
69
- string: '{"id":80825,"city_name":"Rio de Janeiro","person_name":"Maria José","nickname":null,"address":"Rua
70
- quinhentos","address_complement":"Sala 4","address_number":"111","mobile_number":null,"cnpj_cpf":"54.872.822/0001-91","email":"cliente@example.com","neighborhood":"bairro","phone_number":"2112123434","zipcode":"12312123","mobile_local_code":null,"notes":null,"state":"RJ","created_via_api":true,"email_cc":null,"contact_person":null,"truncated_address":"Rua
71
- quinhentos, 111","external_code":null,"tags":[],"tag_list":"","custom_data":null}'
72
- recorded_at: Tue, 13 Apr 2021 17:19:10 GMT
85
+ string: '{"id":93343,"city_name":"Rio de Janeiro","person_name":"Maria José","nickname":null,"address":"Rua
86
+ quinhentos","address_complement":"Sala 4","address_number":"111","mobile_number":null,"cnpj_cpf":"84.232.027/0001-08","email":"cliente@example.com","neighborhood":"bairro","phone_number":"2112123434","zipcode":"12312123","mobile_local_code":null,"notes":null,"state":"RJ","created_via_api":true,"email_cc":null,"contact_person":null,"truncated_address":"Rua
87
+ quinhentos, 111","external_code":null,"tags":[],"tag_list":null,"custom_data":null}'
88
+ recorded_at: Tue, 22 Feb 2022 17:34:26 GMT
73
89
  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/imports/customers
5
+ uri: https://api-sandbox.kobana.com.br/v1/imports/customers
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,39 +40,51 @@ 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
- - '55'
58
+ - '54'
49
59
  Etag:
50
- - W/"b2fa3b7aea3069b3f91a25409d0357da"
60
+ - W/"99302283bf335bb8458a703a245d1597"
51
61
  Cache-Control:
52
62
  - must-revalidate, private, max-age=0
53
63
  X-Request-Id:
54
- - a4954e35-0a78-44db-9bfc-e5f57ea14ecc
64
+ - aa441ad2-4138-4abc-9d00-7ff1f05f020f
55
65
  X-Runtime:
56
- - '0.029875'
66
+ - '0.036888'
57
67
  Date:
58
- - Tue, 13 Apr 2021 17:18:26 GMT
68
+ - Tue, 22 Feb 2022 17:30:45 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 189ad47cf7c6f3a8b745cb053efec004.cloudfront.net (CloudFront)
79
+ X-Cache:
80
+ - Miss from cloudfront
81
+ X-Amz-Cf-Pop:
82
+ - MIA3-C1
83
+ X-Amz-Cf-Id:
84
+ - 9LpscuaUQ3VLu0knktPEVCHZE8nugUR9UEJdm3SSgwsBRZwlO2i_VA==
69
85
  body:
70
86
  encoding: UTF-8
71
- string: '[{"id":1054,"created_rows":0,"enqueued_at":"2021-04-13T14:18:22-03:00","started_at":null,"finished_at":null,"processed_at":null,"failed_to_create_rows":0,"failed_to_update_rows":0,"import_errors":null,"processed_rows":0,"total_rows":null,"updated_rows":0,"source_file_name":"customers.csv","source_file_size":190,"status":"enqueued","created_via_api":true},{"id":1052,"created_rows":0,"enqueued_at":"2021-04-13T11:44:07-03:00","started_at":"2021-04-13T11:46:17-03:00","finished_at":"2021-04-13T11:46:18-03:00","processed_at":null,"failed_to_create_rows":0,"failed_to_update_rows":0,"import_errors":[],"processed_rows":0,"total_rows":0,"updated_rows":0,"source_file_name":"customers.csv","source_file_size":190,"status":"done","created_via_api":true},{"id":1049,"created_rows":0,"enqueued_at":"2021-04-13T11:39:53-03:00","started_at":"2021-04-13T11:39:53-03:00","finished_at":"2021-04-13T11:39:54-03:00","processed_at":null,"failed_to_create_rows":0,"failed_to_update_rows":0,"import_errors":[],"processed_rows":0,"total_rows":0,"updated_rows":0,"source_file_name":"customers.csv","source_file_size":190,"status":"done","created_via_api":true},{"id":1048,"created_rows":0,"enqueued_at":"2021-04-13T11:38:10-03:00","started_at":"2021-04-13T11:39:38-03:00","finished_at":"2021-04-13T11:39:39-03:00","processed_at":null,"failed_to_create_rows":0,"failed_to_update_rows":0,"import_errors":[],"processed_rows":0,"total_rows":0,"updated_rows":0,"source_file_name":"customers.csv","source_file_size":190,"status":"done","created_via_api":true},{"id":1046,"created_rows":0,"enqueued_at":"2021-04-13T11:35:36-03:00","started_at":"2021-04-13T11:39:36-03:00","finished_at":"2021-04-13T11:39:37-03:00","processed_at":null,"failed_to_create_rows":0,"failed_to_update_rows":0,"import_errors":[],"processed_rows":0,"total_rows":0,"updated_rows":0,"source_file_name":"customers.csv","source_file_size":190,"status":"done","created_via_api":true},{"id":1044,"created_rows":0,"enqueued_at":"2021-04-13T11:26:17-03:00","started_at":"2021-04-13T11:39:35-03:00","finished_at":"2021-04-13T11:39:35-03:00","processed_at":null,"failed_to_create_rows":0,"failed_to_update_rows":0,"import_errors":[],"processed_rows":0,"total_rows":0,"updated_rows":0,"source_file_name":"customers.csv","source_file_size":190,"status":"done","created_via_api":true},{"id":1041,"created_rows":0,"enqueued_at":"2021-04-13T11:10:03-03:00","started_at":"2021-04-13T11:12:08-03:00","finished_at":"2021-04-13T11:12:08-03:00","processed_at":null,"failed_to_create_rows":0,"failed_to_update_rows":0,"import_errors":"ERR
72
- max number of clients reached","processed_rows":0,"total_rows":null,"updated_rows":0,"source_file_name":"customers.csv","source_file_size":190,"status":"fatal_error","created_via_api":true},{"id":1039,"created_rows":0,"enqueued_at":"2021-04-13T10:57:26-03:00","started_at":"2021-04-13T10:57:26-03:00","finished_at":"2021-04-13T10:57:27-03:00","processed_at":null,"failed_to_create_rows":0,"failed_to_update_rows":0,"import_errors":[],"processed_rows":0,"total_rows":0,"updated_rows":0,"source_file_name":"customers.csv","source_file_size":190,"status":"done","created_via_api":true},{"id":1038,"created_rows":0,"enqueued_at":"2021-04-13T10:55:38-03:00","started_at":"2021-04-13T10:57:01-03:00","finished_at":"2021-04-13T10:57:02-03:00","processed_at":null,"failed_to_create_rows":0,"failed_to_update_rows":0,"import_errors":[],"processed_rows":0,"total_rows":0,"updated_rows":0,"source_file_name":"customers.csv","source_file_size":190,"status":"done","created_via_api":true},{"id":1036,"created_rows":0,"enqueued_at":"2021-04-13T10:05:24-03:00","started_at":"2021-04-13T10:07:35-03:00","finished_at":"2021-04-13T10:07:37-03:00","processed_at":null,"failed_to_create_rows":0,"failed_to_update_rows":0,"import_errors":[],"processed_rows":0,"total_rows":0,"updated_rows":0,"source_file_name":"customers.csv","source_file_size":190,"status":"done","created_via_api":true},{"id":1035,"created_rows":0,"enqueued_at":"2021-04-13T10:00:20-03:00","started_at":"2021-04-13T10:02:04-03:00","finished_at":"2021-04-13T10:02:05-03:00","processed_at":null,"failed_to_create_rows":0,"failed_to_update_rows":0,"import_errors":[],"processed_rows":0,"total_rows":0,"updated_rows":0,"source_file_name":"customers.csv","source_file_size":190,"status":"done","created_via_api":true},{"id":1032,"created_rows":0,"enqueued_at":"2021-04-13T09:27:06-03:00","started_at":"2021-04-13T09:28:53-03:00","finished_at":"2021-04-13T09:28:54-03:00","processed_at":null,"failed_to_create_rows":0,"failed_to_update_rows":0,"import_errors":[],"processed_rows":0,"total_rows":0,"updated_rows":0,"source_file_name":"customers.csv","source_file_size":190,"status":"done","created_via_api":true},{"id":1030,"created_rows":0,"enqueued_at":"2021-04-12T11:55:23-03:00","started_at":"2021-04-12T11:57:07-03:00","finished_at":"2021-04-12T11:57:08-03:00","processed_at":null,"failed_to_create_rows":0,"failed_to_update_rows":0,"import_errors":[],"processed_rows":0,"total_rows":0,"updated_rows":0,"source_file_name":"customers.csv","source_file_size":190,"status":"done","created_via_api":true},{"id":1029,"created_rows":0,"enqueued_at":"2021-04-09T11:17:02-03:00","started_at":"2021-04-09T11:19:25-03:00","finished_at":"2021-04-09T11:19:27-03:00","processed_at":null,"failed_to_create_rows":0,"failed_to_update_rows":0,"import_errors":[],"processed_rows":0,"total_rows":0,"updated_rows":0,"source_file_name":"customers.csv","source_file_size":190,"status":"done","created_via_api":true},{"id":1026,"created_rows":0,"enqueued_at":"2021-04-09T10:01:56-03:00","started_at":"2021-04-09T10:03:37-03:00","finished_at":"2021-04-09T10:03:39-03:00","processed_at":null,"failed_to_create_rows":0,"failed_to_update_rows":0,"import_errors":[],"processed_rows":0,"total_rows":0,"updated_rows":0,"source_file_name":"customers.csv","source_file_size":190,"status":"done","created_via_api":true}]'
73
- recorded_at: Tue, 13 Apr 2021 17:18:26 GMT
87
+ string: '[{"id":1280,"created_rows":0,"enqueued_at":null,"started_at":null,"finished_at":null,"processed_at":null,"failed_to_create_rows":0,"failed_to_update_rows":0,"import_errors":null,"processed_rows":0,"total_rows":null,"updated_rows":0,"source_file_name":"customers.csv","source_file_size":190,"status":"pending","created_via_api":true},{"id":1278,"created_rows":0,"enqueued_at":null,"started_at":"2022-02-22T14:27:22-03:00","finished_at":"2022-02-22T14:27:23-03:00","processed_at":null,"failed_to_create_rows":0,"failed_to_update_rows":0,"import_errors":"ERR
88
+ max number of clients reached","processed_rows":0,"total_rows":null,"updated_rows":0,"source_file_name":"customers.csv","source_file_size":190,"status":"fatal_error","created_via_api":true},{"id":1025,"created_rows":0,"enqueued_at":"2021-04-09T09:51:10-03:00","started_at":"2021-04-09T09:51:55-03:00","finished_at":"2021-04-09T09:51:55-03:00","processed_at":null,"failed_to_create_rows":0,"failed_to_update_rows":0,"import_errors":[],"processed_rows":0,"total_rows":0,"updated_rows":0,"source_file_name":"customers.csv","source_file_size":190,"status":"done","created_via_api":true},{"id":1022,"created_rows":0,"enqueued_at":"2021-04-09T09:12:03-03:00","started_at":"2021-04-09T09:14:32-03:00","finished_at":"2021-04-09T09:14:34-03:00","processed_at":null,"failed_to_create_rows":0,"failed_to_update_rows":0,"import_errors":[],"processed_rows":0,"total_rows":0,"updated_rows":0,"source_file_name":"customers.csv","source_file_size":190,"status":"done","created_via_api":true},{"id":844,"created_rows":0,"enqueued_at":"2020-10-06T09:17:21-03:00","started_at":"2020-10-06T09:17:22-03:00","finished_at":"2020-10-06T09:17:23-03:00","processed_at":null,"failed_to_create_rows":0,"failed_to_update_rows":0,"import_errors":[],"processed_rows":0,"total_rows":0,"updated_rows":0,"source_file_name":"customers.csv","source_file_size":190,"status":"done","created_via_api":true}]'
89
+ recorded_at: Tue, 22 Feb 2022 17:30:45 GMT
74
90
  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/imports/customers
5
+ uri: https://api-sandbox.kobana.com.br/v1/imports/customers
6
6
  body:
7
7
  encoding: UTF-8
8
8
  string: '{"customer_import":{"source":""}}'
@@ -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
- - '994'
56
+ - '17953'
47
57
  Cache-Control:
48
58
  - no-cache
49
59
  X-Request-Id:
50
- - a395df61-0cf9-4fb0-bebc-268f79161a70
60
+ - '0791ea37-99be-42da-bbe5-82947d0cd4c0'
51
61
  X-Runtime:
52
- - '0.020696'
62
+ - '0.018423'
53
63
  Date:
54
- - Tue, 13 Apr 2021 17:18:25 GMT
64
+ - Tue, 22 Feb 2022 17:30:46 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 a390f799acc33be35de7bc42ed295f38.cloudfront.net (CloudFront)
75
+ X-Cache:
76
+ - Error from cloudfront
77
+ X-Amz-Cf-Pop:
78
+ - MIA3-C1
79
+ X-Amz-Cf-Id:
80
+ - q6cNI8VTSf7h3cPa2Rte2NBK52p3kRqe0-nQTnsIqo0G4Sy9oU8bjw==
65
81
  body:
66
82
  encoding: UTF-8
67
83
  string: '{"errors":{"source":["não pode ficar em branco"]}}'
68
- recorded_at: Tue, 13 Apr 2021 17:18:25 GMT
84
+ recorded_at: Tue, 22 Feb 2022 17:30:46 GMT
69
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/imports/customers
5
+ uri: https://api-sandbox.kobana.com.br/v1/imports/customers
6
6
  body:
7
7
  encoding: UTF-8
8
8
  string: '{"customer_import":{}}'
@@ -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
- - '995'
56
+ - '17952'
47
57
  Cache-Control:
48
58
  - no-cache
49
59
  X-Request-Id:
50
- - e7116d6b-79c4-4fa2-ae97-92ff6c54ce5f
60
+ - 4b0c3e0b-e9ff-4e4c-bd6e-1ee49ad30ea9
51
61
  X-Runtime:
52
- - '0.018460'
62
+ - '0.017162'
53
63
  Date:
54
- - Tue, 13 Apr 2021 17:18:24 GMT
64
+ - Tue, 22 Feb 2022 17:30:46 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 b6efbf009f233af7a7aa7da68e6e2848.cloudfront.net (CloudFront)
75
+ X-Cache:
76
+ - Error from cloudfront
77
+ X-Amz-Cf-Pop:
78
+ - MIA3-C1
79
+ X-Amz-Cf-Id:
80
+ - IIUV_tB_yy9Ea36IA-L46rTyvEEeo0H8sOXZXnqo-f2W6yrKRFcmAQ==
65
81
  body:
66
82
  encoding: UTF-8
67
83
  string: '{"errors":[{"title":"customer_import não pode ficar em branco","status":422,"code":422}]}'
68
- recorded_at: Tue, 13 Apr 2021 17:18:24 GMT
84
+ recorded_at: Tue, 22 Feb 2022 17:30:46 GMT
69
85
  recorded_with: VCR 6.0.0