boletosimples 0.6.0 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (138) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +16 -12
  3. data/README.md +21 -59
  4. data/lib/boletosimples/configuration.rb +25 -28
  5. data/lib/boletosimples/last_request.rb +17 -10
  6. data/lib/boletosimples/middlewares/bearer.rb +12 -0
  7. data/lib/boletosimples/middlewares/custom_headers.rb +12 -0
  8. data/lib/boletosimples/middlewares/debug.rb +30 -0
  9. data/lib/boletosimples/middlewares/last_request.rb +3 -1
  10. data/lib/boletosimples/middlewares/raise_error.rb +9 -2
  11. data/lib/boletosimples/middlewares/user_agent.rb +3 -1
  12. data/lib/boletosimples/resources/bank_billet.rb +5 -11
  13. data/lib/boletosimples/resources/bank_billet_account.rb +3 -1
  14. data/lib/boletosimples/resources/bank_billet_discharge.rb +3 -1
  15. data/lib/boletosimples/resources/bank_billet_payment.rb +3 -1
  16. data/lib/boletosimples/resources/bank_billet_remittance.rb +3 -1
  17. data/lib/boletosimples/resources/base_model.rb +3 -1
  18. data/lib/boletosimples/resources/customer.rb +3 -1
  19. data/lib/boletosimples/resources/customer_import.rb +5 -3
  20. data/lib/boletosimples/resources/customer_subscription.rb +3 -10
  21. data/lib/boletosimples/resources/customer_subscription_import.rb +5 -3
  22. data/lib/boletosimples/resources/discharge.rb +4 -11
  23. data/lib/boletosimples/resources/email_delivery.rb +3 -1
  24. data/lib/boletosimples/resources/event.rb +3 -1
  25. data/lib/boletosimples/resources/installment.rb +3 -1
  26. data/lib/boletosimples/resources/remittance.rb +3 -1
  27. data/lib/boletosimples/resources/sms_delivery.rb +6 -0
  28. data/lib/boletosimples/resources/transaction.rb +3 -1
  29. data/lib/boletosimples/resources/webhook.rb +3 -1
  30. data/lib/boletosimples/resources/webhook_delivery.rb +3 -1
  31. data/lib/boletosimples/response_error.rb +10 -5
  32. data/lib/boletosimples/version.rb +3 -1
  33. data/lib/boletosimples.rb +6 -6
  34. data/spec/boletosimples/configuration_spec.rb +67 -80
  35. data/spec/boletosimples/last_request_spec.rb +17 -28
  36. data/spec/boletosimples/middlewares/custom_headers_spec.rb +26 -0
  37. data/spec/boletosimples/resources/bank_billet_account_spec.rb +57 -33
  38. data/spec/boletosimples/resources/bank_billet_discharge_spec.rb +7 -12
  39. data/spec/boletosimples/resources/bank_billet_payment_spec.rb +7 -12
  40. data/spec/boletosimples/resources/bank_billet_remittance_spec.rb +7 -12
  41. data/spec/boletosimples/resources/bank_billet_spec.rb +56 -42
  42. data/spec/boletosimples/resources/customer_import_spec.rb +41 -30
  43. data/spec/boletosimples/resources/customer_spec.rb +57 -39
  44. data/spec/boletosimples/resources/customer_subscription_import_spec.rb +41 -30
  45. data/spec/boletosimples/resources/customer_subscription_spec.rb +61 -33
  46. data/spec/boletosimples/resources/discharge_spec.rb +64 -11
  47. data/spec/boletosimples/resources/email_delivery_spec.rb +6 -11
  48. data/spec/boletosimples/resources/event_spec.rb +7 -12
  49. data/spec/boletosimples/resources/installment_spec.rb +61 -32
  50. data/spec/boletosimples/resources/remittance_spec.rb +7 -12
  51. data/spec/boletosimples/resources/sms_delivery_spec.rb +12 -0
  52. data/spec/boletosimples/resources/transactions_spec.rb +7 -12
  53. data/spec/boletosimples/resources/webhook_delivery_spec.rb +7 -12
  54. data/spec/boletosimples/resources/webhook_spec.rb +7 -12
  55. data/spec/fixtures/discharge.RET +3 -0
  56. data/spec/fixtures/vcr_cassettes/custom_headers.yml +113 -0
  57. data/spec/fixtures/vcr_cassettes/last_request/bank_billets.yml +409 -95
  58. data/spec/fixtures/vcr_cassettes/resources/bank_billet/all.yml +101 -99
  59. data/spec/fixtures/vcr_cassettes/resources/bank_billet/cancel/success.yml +55 -95
  60. data/spec/fixtures/vcr_cassettes/resources/bank_billet/create/invalid_params.yml +55 -27
  61. data/spec/fixtures/vcr_cassettes/resources/bank_billet/create/invalid_root.yml +51 -24
  62. data/spec/fixtures/vcr_cassettes/resources/bank_billet/create/valid.yml +64 -34
  63. data/spec/fixtures/vcr_cassettes/resources/bank_billet/duplicate/success.yml +97 -0
  64. data/spec/fixtures/vcr_cassettes/resources/bank_billet/find.yml +73 -34
  65. data/spec/fixtures/vcr_cassettes/resources/bank_billet_account/all.yml +82 -27
  66. data/spec/fixtures/vcr_cassettes/resources/bank_billet_account/create/invalid_params.yml +57 -27
  67. data/spec/fixtures/vcr_cassettes/resources/bank_billet_account/create/invalid_root.yml +53 -26
  68. data/spec/fixtures/vcr_cassettes/resources/bank_billet_account/create/valid.yml +64 -28
  69. data/spec/fixtures/vcr_cassettes/resources/bank_billet_account/find.yml +61 -25
  70. data/spec/fixtures/vcr_cassettes/resources/bank_billet_discharge/all.yml +59 -46
  71. data/spec/fixtures/vcr_cassettes/resources/bank_billet_payment/all.yml +74 -71
  72. data/spec/fixtures/vcr_cassettes/resources/bank_billet_remittance/all.yml +63 -47
  73. data/spec/fixtures/vcr_cassettes/resources/customer/all.yml +141 -39
  74. data/spec/fixtures/vcr_cassettes/resources/customer/create/invalid_params.yml +54 -25
  75. data/spec/fixtures/vcr_cassettes/resources/customer/create/invalid_root.yml +54 -24
  76. data/spec/fixtures/vcr_cassettes/resources/customer/create/valid.yml +56 -28
  77. data/spec/fixtures/vcr_cassettes/resources/customer/find.yml +56 -26
  78. data/spec/fixtures/vcr_cassettes/resources/customer_import/all.yml +58 -59
  79. data/spec/fixtures/vcr_cassettes/resources/customer_import/create/invalid_params.yml +53 -51
  80. data/spec/fixtures/vcr_cassettes/resources/customer_import/create/invalid_root.yml +54 -52
  81. data/spec/fixtures/vcr_cassettes/resources/customer_import/create/valid.yml +58 -67
  82. data/spec/fixtures/vcr_cassettes/resources/customer_import/find.yml +55 -53
  83. data/spec/fixtures/vcr_cassettes/resources/customer_subscription/all.yml +65 -51
  84. data/spec/fixtures/vcr_cassettes/resources/customer_subscription/create/invalid_params.yml +56 -50
  85. data/spec/fixtures/vcr_cassettes/resources/customer_subscription/create/invalid_root.yml +52 -48
  86. data/spec/fixtures/vcr_cassettes/resources/customer_subscription/create/valid.yml +63 -52
  87. data/spec/fixtures/vcr_cassettes/resources/customer_subscription/find.yml +61 -51
  88. data/spec/fixtures/vcr_cassettes/resources/customer_subscription/next_charge.yml +60 -132
  89. data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/all.yml +58 -54
  90. data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/create/invalid_params.yml +53 -52
  91. data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/create/invalid_root.yml +55 -53
  92. data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/create/valid.yml +58 -69
  93. data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/find.yml +55 -54
  94. data/spec/fixtures/vcr_cassettes/resources/discharge/all.yml +63 -34
  95. data/spec/fixtures/vcr_cassettes/resources/discharge/create/invalid_params.yml +86 -0
  96. data/spec/fixtures/vcr_cassettes/resources/discharge/create/invalid_root.yml +85 -0
  97. data/spec/fixtures/vcr_cassettes/resources/discharge/create/valid.yml +100 -0
  98. data/spec/fixtures/vcr_cassettes/resources/discharge/find.yml +89 -0
  99. data/spec/fixtures/vcr_cassettes/resources/email_delivery/all.yml +40 -43
  100. data/spec/fixtures/vcr_cassettes/resources/event/all.yml +326 -167
  101. data/spec/fixtures/vcr_cassettes/resources/installment/all.yml +113 -51
  102. data/spec/fixtures/vcr_cassettes/resources/installment/create/invalid_params.yml +57 -52
  103. data/spec/fixtures/vcr_cassettes/resources/installment/create/invalid_root.yml +52 -48
  104. data/spec/fixtures/vcr_cassettes/resources/installment/create/valid.yml +63 -52
  105. data/spec/fixtures/vcr_cassettes/resources/installment/find.yml +83 -51
  106. data/spec/fixtures/vcr_cassettes/resources/remittance/all.yml +83 -62
  107. data/spec/fixtures/vcr_cassettes/resources/sns_delivery/all.yml +89 -0
  108. data/spec/fixtures/vcr_cassettes/resources/transaction/all.yml +73 -60
  109. data/spec/fixtures/vcr_cassettes/resources/web_hook/all.yml +59 -34
  110. data/spec/fixtures/vcr_cassettes/resources/webhook_delivery/all.yml +2684 -55
  111. data/spec/spec_helper.rb +3 -20
  112. data/spec/support/stub_env.rb +7 -0
  113. data/spec/support/vcr.rb +3 -4
  114. metadata +42 -176
  115. data/.coveralls.yml +0 -2
  116. data/.gitignore +0 -19
  117. data/.ruby-version +0 -1
  118. data/.travis.yml +0 -46
  119. data/Gemfile +0 -4
  120. data/Rakefile +0 -14
  121. data/boletosimples.gemspec +0 -38
  122. data/gemfiles/rails_42.gemfile +0 -8
  123. data/gemfiles/rails_50.gemfile +0 -8
  124. data/gemfiles/rails_51.gemfile +0 -8
  125. data/gemfiles/rails_52.gemfile +0 -9
  126. data/lib/boletosimples/extra.rb +0 -8
  127. data/lib/boletosimples/resources/partner/user.rb +0 -7
  128. data/lib/oauth2_patch.rb +0 -24
  129. data/spec/boletosimples/extra_spec.rb +0 -31
  130. data/spec/boletosimples/resources/partner/user_spec.rb +0 -19
  131. data/spec/fixtures/vcr_cassettes/configuration/client_credentials/invalid.yml +0 -64
  132. data/spec/fixtures/vcr_cassettes/configuration/client_credentials/valid.yml +0 -56
  133. data/spec/fixtures/vcr_cassettes/extra/userinfo/authenticated.yml +0 -58
  134. data/spec/fixtures/vcr_cassettes/extra/userinfo/not_authenticated.yml +0 -54
  135. data/spec/fixtures/vcr_cassettes/last_request/userinfo.yml +0 -58
  136. data/spec/fixtures/vcr_cassettes/resources/bank_billet/cancel/failure.yml +0 -118
  137. data/spec/fixtures/vcr_cassettes/resources/partner/user/create.yml +0 -60
  138. data/spec/spec.opts +0 -8
@@ -2,85 +2,89 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://sandbox.boletosimples.com.br/api/v1/imports/customer_subscriptions?access_token=BOLETOSIMPLES_ACCESS_TOKEN
5
+ uri: https://api-sandbox.kobana.com.br/v1/imports/customer_subscriptions
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
9
9
  headers:
10
10
  User-Agent:
11
- - BoletoSimples Ruby Client v0.4.1 (contato@boletosimples.com.br)
11
+ - email@minhaempresa.com.br
12
12
  Authorization:
13
- - Token token="BOLETOSIMPLES_ACCESS_TOKEN"
13
+ - Bearer BOLETOSIMPLES_API_TOKEN
14
+ Accept:
15
+ - application/json
14
16
  Accept-Encoding:
15
17
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
- Accept:
17
- - "*/*"
18
18
  response:
19
19
  status:
20
20
  code: 200
21
21
  message: OK
22
22
  headers:
23
- Connection:
24
- - keep-alive
25
23
  Content-Type:
26
24
  - application/json; charset=utf-8
27
25
  Transfer-Encoding:
28
26
  - chunked
29
- Status:
30
- - 200 OK
31
- Cache-Control:
32
- - must-revalidate, private, max-age=0
33
- Date:
34
- - Wed, 28 Jun 2017 06:47:23 GMT
35
- Vary:
36
- - Origin,Accept-Encoding
37
- Strict-Transport-Security:
38
- - max-age=631138519
39
- X-Permitted-Cross-Domain-Policies:
40
- - none
27
+ Connection:
28
+ - keep-alive
29
+ Server:
30
+ - Cowboy
31
+ X-Frame-Options:
32
+ - DENY
41
33
  X-Xss-Protection:
42
34
  - 1; mode=block
43
- X-Request-Id:
44
- - 718fce42-db50-48d8-8f9f-f57959ab2adc
45
- Content-Security-Policy-Report-Only:
46
- - 'default-src ''self''; child-src ''self'' www.googleadservices.com googleads.g.doubleclick.net
47
- www.google.com www.google.com.br app.popupdomination.com; connect-src ''self''
48
- ws: wss: *.intercom.io ws.pusherapp.com hn.inspectlet.com *.pusher.com boletosimples.com.br
49
- *.boletosimples.com.br boletosimples.zendesk.com; font-src ''self'' fonts.googleapis.com
50
- fonts.gstatic.com js.intercomcdn.com data: v2.zopim.com d25j7wj0q61kjj.cloudfront.net;
51
- img-src ''self'' https: data: maps.googleapis.com dev.bole.to:5001 bole.to
52
- boletosimples-sandbox.s3.amazonaws.com; script-src ''self'' ''unsafe-inline''
53
- static.intercomcdn.com cdn.inspectlet.com widget.intercom.io js.intercomcdn.com
54
- js.pusher.com stats.pusher.com zapier.com www.google-analytics.com www.googleadservices.com
55
- doug1izaerwt3.cloudfront.net app.popupdomination.com cdn.ywxi.net www.draw.io
56
- tag.getdrip.com www.getdrip.com js-agent.newrelic.com bam.nr-data.net cdnjs.cloudflare.com
57
- widget.pluga.co www.google.com www.gstatic.com boletosimples.zendesk.com assets.zendesk.com
58
- v2.zopim.com landing.vincent-ai.com d25j7wj0q61kjj.cloudfront.net; style-src
59
- ''self'' ''unsafe-inline'' fonts.googleapis.com d25j7wj0q61kjj.cloudfront.net;
60
- report-uri https://boletosimples.report-uri.io/r/default/csp/reportOnly'
61
- Total:
62
- - '1'
35
+ X-Content-Type-Options:
36
+ - nosniff
63
37
  X-Download-Options:
64
38
  - noopen
39
+ X-Permitted-Cross-Domain-Policies:
40
+ - none
41
+ Referrer-Policy:
42
+ - strict-origin-when-cross-origin
43
+ Expect-Ct:
44
+ - max-age=0, report-uri="https://boletosimples.report-uri.com/r/d/ct/reportOnly"
45
+ Cross-Origin-Resource-Policy:
46
+ - cross-origin
47
+ Cross-Origin-Embedder-Policy:
48
+ - unsafe-none
49
+ Cross-Origin-Opener-Policy:
50
+ - unsafe-none
51
+ Per-Page:
52
+ - '50'
53
+ Page:
54
+ - ''
55
+ X-Ratelimit-Limit:
56
+ - '100'
57
+ X-Ratelimit-Remaining:
58
+ - '71'
65
59
  Etag:
66
- - W/"960f89a8fe54f33debd0e70d7ba24511"
60
+ - W/"e1d3d8d2e233041ff07873654985aefe"
61
+ Cache-Control:
62
+ - must-revalidate, private, max-age=0
63
+ X-Request-Id:
64
+ - dd85f8b3-101d-4c1a-b4a5-2382dc3cd095
67
65
  X-Runtime:
68
- - '0.080101'
69
- X-Frame-Options:
70
- - sameorigin
71
- X-Content-Type-Options:
72
- - nosniff
66
+ - '0.047629'
67
+ Date:
68
+ - Tue, 22 Feb 2022 17:30:29 GMT
73
69
  X-Rack-Cache:
74
70
  - miss
75
- X-Powered-By:
76
- - Phusion Passenger 5.1.5
77
- Server:
78
- - nginx/1.10.3 + Phusion Passenger 5.1.5
71
+ Strict-Transport-Security:
72
+ - max-age=31556952; includeSubDomains; preload
73
+ Vary:
74
+ - Origin,Accept-Encoding
75
+ X-Rack-Cors:
76
+ - miss; no-origin
79
77
  Via:
80
- - 1.1 vegur
78
+ - 1.1 vegur, 1.1 57b326460a798c60c06d0be01006b3d6.cloudfront.net (CloudFront)
79
+ X-Cache:
80
+ - Miss from cloudfront
81
+ X-Amz-Cf-Pop:
82
+ - MIA3-C1
83
+ X-Amz-Cf-Id:
84
+ - WeJq5Zmohw52wnAGMOiMth2MlBLWLsErvl8mgXJ8S-rPrLoVfqSpbA==
81
85
  body:
82
86
  encoding: UTF-8
83
- string: '[{"id":7,"created_rows":0,"records_count":null,"enqueued_at":"2017-06-28T03:47:18-03:00","started_at":"2017-06-28T03:47:19-03:00","finished_at":"2017-06-28T03:47:19-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_content_type":"text/plain","source_file_name":"customer_subscriptions.csv","source_file_size":239,"source_updated_at":"2017-06-28T03:47:18-03:00","status":"done"}]'
84
- http_version:
85
- recorded_at: Wed, 28 Jun 2017 06:47:23 GMT
86
- recorded_with: VCR 3.0.3
87
+ string: '[{"id":1279,"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":"customer_subscriptions.csv","source_file_size":239,"status":"pending","created_via_api":true},{"id":1277,"created_rows":0,"enqueued_at":null,"started_at":"2022-02-22T14:27:22-03:00","finished_at":"2022-02-22T14:27:22-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":"customer_subscriptions.csv","source_file_size":239,"status":"fatal_error","created_via_api":true},{"id":1024,"created_rows":0,"enqueued_at":"2021-04-09T09:50:56-03:00","started_at":"2021-04-09T09:51:53-03:00","finished_at":"2021-04-09T09:51: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":"customer_subscriptions.csv","source_file_size":239,"status":"done","created_via_api":true},{"id":1023,"created_rows":0,"enqueued_at":"2021-04-09T09:12:24-03:00","started_at":"2021-04-09T09:14:34-03:00","finished_at":"2021-04-09T09:14: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":"customer_subscriptions.csv","source_file_size":239,"status":"done","created_via_api":true},{"id":845,"created_rows":0,"enqueued_at":"2020-10-06T09:17:27-03:00","started_at":"2020-10-06T09:17:27-03:00","finished_at":"2020-10-06T09:17: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":"customer_subscriptions.csv","source_file_size":239,"status":"done","created_via_api":true}]'
89
+ recorded_at: Tue, 22 Feb 2022 17:30:29 GMT
90
+ recorded_with: VCR 6.0.0
@@ -2,83 +2,84 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: https://sandbox.boletosimples.com.br/api/v1/imports/customer_subscriptions?access_token=BOLETOSIMPLES_ACCESS_TOKEN
5
+ uri: https://api-sandbox.kobana.com.br/v1/imports/customer_subscriptions
6
6
  body:
7
7
  encoding: UTF-8
8
- string: customer_subscription_import%5Bsource%5D=
8
+ string: '{"customer_subscription_import":{"source":""}}'
9
9
  headers:
10
10
  User-Agent:
11
- - BoletoSimples Ruby Client v0.4.1 (contato@boletosimples.com.br)
11
+ - email@minhaempresa.com.br
12
12
  Authorization:
13
- - Token token="BOLETOSIMPLES_ACCESS_TOKEN"
13
+ - Bearer BOLETOSIMPLES_API_TOKEN
14
14
  Content-Type:
15
- - application/x-www-form-urlencoded
15
+ - application/json
16
+ Accept:
17
+ - application/json
16
18
  Accept-Encoding:
17
19
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
- Accept:
19
- - "*/*"
20
20
  response:
21
21
  status:
22
22
  code: 422
23
23
  message: Unprocessable Entity
24
24
  headers:
25
- Connection:
26
- - keep-alive
27
25
  Content-Type:
28
26
  - application/json; charset=utf-8
29
27
  Transfer-Encoding:
30
28
  - chunked
31
- Status:
32
- - 422 Unprocessable Entity
33
- Cache-Control:
34
- - no-cache
35
- Date:
36
- - Wed, 28 Jun 2017 06:47:20 GMT
37
- Vary:
38
- - Origin,Accept-Encoding
39
- Strict-Transport-Security:
40
- - max-age=631138519
41
- X-Permitted-Cross-Domain-Policies:
42
- - none
29
+ Connection:
30
+ - keep-alive
31
+ Server:
32
+ - Cowboy
33
+ X-Frame-Options:
34
+ - DENY
43
35
  X-Xss-Protection:
44
36
  - 1; mode=block
45
- X-Request-Id:
46
- - 5ed6cd9e-823f-4666-84c4-0559c9725cf4
47
- Content-Security-Policy-Report-Only:
48
- - 'default-src ''self''; child-src ''self'' www.googleadservices.com googleads.g.doubleclick.net
49
- www.google.com www.google.com.br app.popupdomination.com; connect-src ''self''
50
- ws: wss: *.intercom.io ws.pusherapp.com hn.inspectlet.com *.pusher.com boletosimples.com.br
51
- *.boletosimples.com.br boletosimples.zendesk.com; font-src ''self'' fonts.googleapis.com
52
- fonts.gstatic.com js.intercomcdn.com data: v2.zopim.com d25j7wj0q61kjj.cloudfront.net;
53
- img-src ''self'' https: data: maps.googleapis.com dev.bole.to:5001 bole.to
54
- boletosimples-sandbox.s3.amazonaws.com; script-src ''self'' ''unsafe-inline''
55
- static.intercomcdn.com cdn.inspectlet.com widget.intercom.io js.intercomcdn.com
56
- js.pusher.com stats.pusher.com zapier.com www.google-analytics.com www.googleadservices.com
57
- doug1izaerwt3.cloudfront.net app.popupdomination.com cdn.ywxi.net www.draw.io
58
- tag.getdrip.com www.getdrip.com js-agent.newrelic.com bam.nr-data.net cdnjs.cloudflare.com
59
- widget.pluga.co www.google.com www.gstatic.com boletosimples.zendesk.com assets.zendesk.com
60
- v2.zopim.com landing.vincent-ai.com d25j7wj0q61kjj.cloudfront.net; style-src
61
- ''self'' ''unsafe-inline'' fonts.googleapis.com d25j7wj0q61kjj.cloudfront.net;
62
- report-uri https://boletosimples.report-uri.io/r/default/csp/reportOnly'
37
+ X-Content-Type-Options:
38
+ - nosniff
63
39
  X-Download-Options:
64
40
  - noopen
41
+ X-Permitted-Cross-Domain-Policies:
42
+ - none
43
+ Referrer-Policy:
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
53
+ X-Ratelimit-Limit:
54
+ - '18000'
55
+ X-Ratelimit-Remaining:
56
+ - '17966'
57
+ Cache-Control:
58
+ - no-cache
59
+ X-Request-Id:
60
+ - b54b032e-494b-4eb5-9188-054ab468cf95
65
61
  X-Runtime:
66
- - '0.040227'
67
- X-Frame-Options:
68
- - sameorigin
69
- X-Content-Type-Options:
70
- - nosniff
62
+ - '0.018397'
63
+ Date:
64
+ - Tue, 22 Feb 2022 17:30:30 GMT
71
65
  X-Rack-Cache:
72
66
  - invalidate, pass
73
- X-Powered-By:
74
- - Phusion Passenger 5.1.5
75
- Server:
76
- - nginx/1.10.3 + Phusion Passenger 5.1.5
67
+ Strict-Transport-Security:
68
+ - max-age=31556952; includeSubDomains; preload
69
+ Vary:
70
+ - Origin,Accept-Encoding
71
+ X-Rack-Cors:
72
+ - miss; no-origin
77
73
  Via:
78
- - 1.1 vegur
74
+ - 1.1 vegur, 1.1 d2c636aea3f69033bb2125c4038e1c48.cloudfront.net (CloudFront)
75
+ X-Cache:
76
+ - Error from cloudfront
77
+ X-Amz-Cf-Pop:
78
+ - MIA3-C1
79
+ X-Amz-Cf-Id:
80
+ - 4R9b1LHH1dD0kTB0YljVqYtyz6-s6RiDtwh7xCkEVAbqwSia9_SwmA==
79
81
  body:
80
82
  encoding: UTF-8
81
83
  string: '{"errors":{"source":["não pode ficar em branco"]}}'
82
- http_version:
83
- recorded_at: Wed, 28 Jun 2017 06:47:19 GMT
84
- recorded_with: VCR 3.0.3
84
+ recorded_at: Tue, 22 Feb 2022 17:30:30 GMT
85
+ recorded_with: VCR 6.0.0
@@ -2,83 +2,85 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: https://sandbox.boletosimples.com.br/api/v1/imports/customer_subscriptions?access_token=BOLETOSIMPLES_ACCESS_TOKEN
5
+ uri: https://api-sandbox.kobana.com.br/v1/imports/customer_subscriptions
6
6
  body:
7
7
  encoding: UTF-8
8
- string: ''
8
+ string: '{"customer_subscription_import":{}}'
9
9
  headers:
10
10
  User-Agent:
11
- - BoletoSimples Ruby Client v0.4.1 (contato@boletosimples.com.br)
11
+ - email@minhaempresa.com.br
12
12
  Authorization:
13
- - Token token="BOLETOSIMPLES_ACCESS_TOKEN"
13
+ - Bearer BOLETOSIMPLES_API_TOKEN
14
14
  Content-Type:
15
- - application/x-www-form-urlencoded
15
+ - application/json
16
+ Accept:
17
+ - application/json
16
18
  Accept-Encoding:
17
19
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
- Accept:
19
- - "*/*"
20
20
  response:
21
21
  status:
22
22
  code: 422
23
23
  message: Unprocessable Entity
24
24
  headers:
25
- Connection:
26
- - keep-alive
27
25
  Content-Type:
28
26
  - application/json; charset=utf-8
29
27
  Transfer-Encoding:
30
28
  - chunked
31
- Status:
32
- - 422 Unprocessable Entity
33
- Cache-Control:
34
- - no-cache
35
- Date:
36
- - Wed, 28 Jun 2017 06:47:20 GMT
37
- Vary:
38
- - Origin,Accept-Encoding
39
- Strict-Transport-Security:
40
- - max-age=631138519
41
- X-Permitted-Cross-Domain-Policies:
42
- - none
29
+ Connection:
30
+ - keep-alive
31
+ Server:
32
+ - Cowboy
33
+ X-Frame-Options:
34
+ - DENY
43
35
  X-Xss-Protection:
44
36
  - 1; mode=block
45
- X-Request-Id:
46
- - f7956662-fc9b-48d7-a847-5ef30e9d99d3
47
- Content-Security-Policy-Report-Only:
48
- - 'default-src ''self''; child-src ''self'' www.googleadservices.com googleads.g.doubleclick.net
49
- www.google.com www.google.com.br app.popupdomination.com; connect-src ''self''
50
- ws: wss: *.intercom.io ws.pusherapp.com hn.inspectlet.com *.pusher.com boletosimples.com.br
51
- *.boletosimples.com.br boletosimples.zendesk.com; font-src ''self'' fonts.googleapis.com
52
- fonts.gstatic.com js.intercomcdn.com data: v2.zopim.com d25j7wj0q61kjj.cloudfront.net;
53
- img-src ''self'' https: data: maps.googleapis.com dev.bole.to:5001 bole.to
54
- boletosimples-sandbox.s3.amazonaws.com; script-src ''self'' ''unsafe-inline''
55
- static.intercomcdn.com cdn.inspectlet.com widget.intercom.io js.intercomcdn.com
56
- js.pusher.com stats.pusher.com zapier.com www.google-analytics.com www.googleadservices.com
57
- doug1izaerwt3.cloudfront.net app.popupdomination.com cdn.ywxi.net www.draw.io
58
- tag.getdrip.com www.getdrip.com js-agent.newrelic.com bam.nr-data.net cdnjs.cloudflare.com
59
- widget.pluga.co www.google.com www.gstatic.com boletosimples.zendesk.com assets.zendesk.com
60
- v2.zopim.com landing.vincent-ai.com d25j7wj0q61kjj.cloudfront.net; style-src
61
- ''self'' ''unsafe-inline'' fonts.googleapis.com d25j7wj0q61kjj.cloudfront.net;
62
- report-uri https://boletosimples.report-uri.io/r/default/csp/reportOnly'
37
+ X-Content-Type-Options:
38
+ - nosniff
63
39
  X-Download-Options:
64
40
  - noopen
41
+ X-Permitted-Cross-Domain-Policies:
42
+ - none
43
+ Referrer-Policy:
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
53
+ X-Ratelimit-Limit:
54
+ - '18000'
55
+ X-Ratelimit-Remaining:
56
+ - '17965'
57
+ Cache-Control:
58
+ - no-cache
59
+ X-Request-Id:
60
+ - 76449dbc-a005-4512-af7e-0831d3442f97
65
61
  X-Runtime:
66
- - '0.020721'
67
- X-Frame-Options:
68
- - sameorigin
69
- X-Content-Type-Options:
70
- - nosniff
62
+ - '0.012940'
63
+ Date:
64
+ - Tue, 22 Feb 2022 17:30:30 GMT
71
65
  X-Rack-Cache:
72
66
  - invalidate, pass
73
- X-Powered-By:
74
- - Phusion Passenger 5.1.5
75
- Server:
76
- - nginx/1.10.3 + Phusion Passenger 5.1.5
67
+ Strict-Transport-Security:
68
+ - max-age=31556952; includeSubDomains; preload
69
+ Vary:
70
+ - Origin,Accept-Encoding
71
+ X-Rack-Cors:
72
+ - miss; no-origin
77
73
  Via:
78
- - 1.1 vegur
74
+ - 1.1 vegur, 1.1 3b6959d147738fd4bde35db4104f4052.cloudfront.net (CloudFront)
75
+ X-Cache:
76
+ - Error from cloudfront
77
+ X-Amz-Cf-Pop:
78
+ - MIA3-C1
79
+ X-Amz-Cf-Id:
80
+ - w1N8jMfXy1ZqwNLHwfeeMaYvRhqTKQocAb2QLH-i1Vdr8abY8OJJpQ==
79
81
  body:
80
82
  encoding: UTF-8
81
- string: '{"errors":{"customer_subscription_import":["não pode ficar em branco"]}}'
82
- http_version:
83
- recorded_at: Wed, 28 Jun 2017 06:47:20 GMT
84
- recorded_with: VCR 3.0.3
83
+ string: '{"errors":[{"title":"customer_subscription_import não pode ficar em
84
+ branco","status":422,"code":422}]}'
85
+ recorded_at: Tue, 22 Feb 2022 17:30:30 GMT
86
+ recorded_with: VCR 6.0.0
@@ -2,102 +2,91 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: https://sandbox.boletosimples.com.br/api/v1/imports/customer_subscriptions?access_token=BOLETOSIMPLES_ACCESS_TOKEN
5
+ uri: https://api-sandbox.kobana.com.br/v1/imports/customer_subscriptions
6
6
  body:
7
7
  encoding: ASCII-8BIT
8
8
  string: !binary |-
9
- LS0tLS0tLS0tLS0tLVJ1YnlNdWx0aXBhcnRQb3N0LWY0ZGFlZTNhZDRhNmY2
10
- MGVjZGY4ZjAyZDE0N2Q5Nzg3DQpDb250ZW50LURpc3Bvc2l0aW9uOiBmb3Jt
11
- LWRhdGE7IG5hbWU9ImN1c3RvbWVyX3N1YnNjcmlwdGlvbl9pbXBvcnRbc291
12
- cmNlXSI7IGZpbGVuYW1lPSJjdXN0b21lcl9zdWJzY3JpcHRpb25zLmNzdiIN
13
- CkNvbnRlbnQtTGVuZ3RoOiAyMzkNCkNvbnRlbnQtVHlwZTogdGV4dC9jc3YN
14
- CkNvbnRlbnQtVHJhbnNmZXItRW5jb2Rpbmc6IGJpbmFyeQ0KDQpJRCxJRCBk
15
- byBDbGllbnRlLElEIGRhIENhcnRlaXJhLElEIGRvIE1vZGVsbyxDTlBKL0NQ
16
- RiBkbyBDbGllbnRlLENpY2xvIGRhIEFzc2luYXR1cmEsUXVhbnRpYSAqLFBy
17
- aW1laXJhIENvYnJhbsOnYSxBbnRlY2Vkw6puY2lhLFBhcmFyIGVtLERlbW9u
18
- c3RyYXRpdm8gKixJbnN0cnXDp8O1ZXMgcGFyYSBvIENhaXhhLE11bHRhIHBv
19
- ciBBdHJhc28sSnVyb3MgZGUgTW9yYSBNZW5zYWwsRS1tYWlsLE9ic2VydmHD
20
- p8O1ZXMNCg0KLS0tLS0tLS0tLS0tLVJ1YnlNdWx0aXBhcnRQb3N0LWY0ZGFl
21
- ZTNhZDRhNmY2MGVjZGY4ZjAyZDE0N2Q5Nzg3LS0NCg0K
9
+ LS0tLS0tLS0tLS0tLVJ1YnlNdWx0aXBhcnRQb3N0LWM5NmY1NWU0MTdhNTQ3YzY4OWQ2MzM5YjQ0MTc0ZGY0DQpDb250ZW50LURpc3Bvc2l0aW9uOiBmb3JtLWRhdGE7IG5hbWU9ImN1c3RvbWVyX3N1YnNjcmlwdGlvbl9pbXBvcnRbc291cmNlXSI7IGZpbGVuYW1lPSJjdXN0b21lcl9zdWJzY3JpcHRpb25zLmNzdiINCkNvbnRlbnQtTGVuZ3RoOiAyMzkNCkNvbnRlbnQtVHlwZTogdGV4dC9jc3YNCkNvbnRlbnQtVHJhbnNmZXItRW5jb2Rpbmc6IGJpbmFyeQ0KDQpJRCxJRCBkbyBDbGllbnRlLElEIGRhIENhcnRlaXJhLElEIGRvIE1vZGVsbyxDTlBKL0NQRiBkbyBDbGllbnRlLENpY2xvIGRhIEFzc2luYXR1cmEsUXVhbnRpYSAqLFByaW1laXJhIENvYnJhbsOnYSxBbnRlY2Vkw6puY2lhLFBhcmFyIGVtLERlbW9uc3RyYXRpdm8gKixJbnN0cnXDp8O1ZXMgcGFyYSBvIENhaXhhLE11bHRhIHBvciBBdHJhc28sSnVyb3MgZGUgTW9yYSBNZW5zYWwsRS1tYWlsLE9ic2VydmHDp8O1ZXMNCg0KLS0tLS0tLS0tLS0tLVJ1YnlNdWx0aXBhcnRQb3N0LWM5NmY1NWU0MTdhNTQ3YzY4OWQ2MzM5YjQ0MTc0ZGY0LS0NCg==
22
10
  headers:
23
11
  User-Agent:
24
- - BoletoSimples Ruby Client v0.4.1 (contato@boletosimples.com.br)
12
+ - email@minhaempresa.com.br
25
13
  Authorization:
26
- - Token token="BOLETOSIMPLES_ACCESS_TOKEN"
14
+ - Bearer BOLETOSIMPLES_API_TOKEN
27
15
  Content-Type:
28
- - multipart/form-data; boundary=-----------RubyMultipartPost-f4daee3ad4a6f60ecdf8f02d147d9787
16
+ - multipart/form-data; boundary=-----------RubyMultipartPost-c96f55e417a547c689d6339b44174df4
29
17
  Content-Length:
30
- - '573'
18
+ - '571'
19
+ Accept:
20
+ - application/json
31
21
  Accept-Encoding:
32
22
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
33
- Accept:
34
- - "*/*"
35
23
  response:
36
24
  status:
37
25
  code: 201
38
26
  message: Created
39
27
  headers:
40
- Connection:
41
- - keep-alive
42
28
  Content-Type:
43
29
  - application/json; charset=utf-8
44
30
  Transfer-Encoding:
45
31
  - chunked
46
- Status:
47
- - 201 Created
48
- Cache-Control:
49
- - max-age=0, private, must-revalidate
50
- Date:
51
- - Wed, 28 Jun 2017 06:47:19 GMT
52
- Vary:
53
- - Origin,Accept-Encoding
54
- Strict-Transport-Security:
55
- - max-age=631138519
56
- X-Permitted-Cross-Domain-Policies:
57
- - none
32
+ Connection:
33
+ - keep-alive
34
+ Server:
35
+ - Cowboy
36
+ X-Frame-Options:
37
+ - DENY
58
38
  X-Xss-Protection:
59
39
  - 1; mode=block
60
- X-Request-Id:
61
- - 785e3884-4766-405b-b0ac-33a1e4a861ec
62
- Content-Security-Policy-Report-Only:
63
- - 'default-src ''self''; child-src ''self'' www.googleadservices.com googleads.g.doubleclick.net
64
- www.google.com www.google.com.br app.popupdomination.com; connect-src ''self''
65
- ws: wss: *.intercom.io ws.pusherapp.com hn.inspectlet.com *.pusher.com boletosimples.com.br
66
- *.boletosimples.com.br boletosimples.zendesk.com; font-src ''self'' fonts.googleapis.com
67
- fonts.gstatic.com js.intercomcdn.com data: v2.zopim.com d25j7wj0q61kjj.cloudfront.net;
68
- img-src ''self'' https: data: maps.googleapis.com dev.bole.to:5001 bole.to
69
- boletosimples-sandbox.s3.amazonaws.com; script-src ''self'' ''unsafe-inline''
70
- static.intercomcdn.com cdn.inspectlet.com widget.intercom.io js.intercomcdn.com
71
- js.pusher.com stats.pusher.com zapier.com www.google-analytics.com www.googleadservices.com
72
- doug1izaerwt3.cloudfront.net app.popupdomination.com cdn.ywxi.net www.draw.io
73
- tag.getdrip.com www.getdrip.com js-agent.newrelic.com bam.nr-data.net cdnjs.cloudflare.com
74
- widget.pluga.co www.google.com www.gstatic.com boletosimples.zendesk.com assets.zendesk.com
75
- v2.zopim.com landing.vincent-ai.com d25j7wj0q61kjj.cloudfront.net; style-src
76
- ''self'' ''unsafe-inline'' fonts.googleapis.com d25j7wj0q61kjj.cloudfront.net;
77
- report-uri https://boletosimples.report-uri.io/r/default/csp/reportOnly'
78
- Location:
79
- - https://sandbox.boletosimples.com.br/api/v1/imports/customer_subscriptions/7
40
+ X-Content-Type-Options:
41
+ - nosniff
80
42
  X-Download-Options:
81
43
  - noopen
44
+ X-Permitted-Cross-Domain-Policies:
45
+ - none
46
+ Referrer-Policy:
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
56
+ Location:
57
+ - https://api-sandbox.kobana.com.br/api/v1/imports/customer_subscriptions/1279
58
+ X-Ratelimit-Limit:
59
+ - '18000'
60
+ X-Ratelimit-Remaining:
61
+ - '17967'
82
62
  Etag:
83
- - W/"4ac3fd01c77a17d4db390124d121c4fd"
63
+ - W/"792b77874b2044afb755dcf78adbe6e5"
64
+ Cache-Control:
65
+ - max-age=0, private, must-revalidate
66
+ X-Request-Id:
67
+ - 2e5c8b62-883c-48c2-8a4f-19bf2802426c
84
68
  X-Runtime:
85
- - '0.537522'
86
- X-Frame-Options:
87
- - sameorigin
88
- X-Content-Type-Options:
89
- - nosniff
69
+ - '0.142736'
70
+ Date:
71
+ - Tue, 22 Feb 2022 17:30:29 GMT
90
72
  X-Rack-Cache:
91
73
  - invalidate, pass
92
- X-Powered-By:
93
- - Phusion Passenger 5.1.5
94
- Server:
95
- - nginx/1.10.3 + Phusion Passenger 5.1.5
74
+ Strict-Transport-Security:
75
+ - max-age=31556952; includeSubDomains; preload
76
+ Vary:
77
+ - Origin,Accept-Encoding
78
+ X-Rack-Cors:
79
+ - miss; no-origin
96
80
  Via:
97
- - 1.1 vegur
81
+ - 1.1 vegur, 1.1 a18ddfb379d1a4a5c2e721a55509e380.cloudfront.net (CloudFront)
82
+ X-Cache:
83
+ - Miss from cloudfront
84
+ X-Amz-Cf-Pop:
85
+ - MIA3-C1
86
+ X-Amz-Cf-Id:
87
+ - zIRK8IEAiq2_UBGdaBfEb7-_WuJHRDAxc99OtF8mp6Hcw5X9l5bX_A==
98
88
  body:
99
89
  encoding: UTF-8
100
- string: '{"id":7,"created_rows":0,"records_count":null,"enqueued_at":"2017-06-28T03:47:18-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_content_type":"text/plain","source_file_name":"customer_subscriptions.csv","source_file_size":239,"source_updated_at":"2017-06-28T03:47:18-03:00","status":"enqueued"}'
101
- http_version:
102
- recorded_at: Wed, 28 Jun 2017 06:47:18 GMT
103
- recorded_with: VCR 3.0.3
90
+ string: '{"id":1279,"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":"customer_subscriptions.csv","source_file_size":239,"status":"pending","created_via_api":true}'
91
+ recorded_at: Tue, 22 Feb 2022 17:30:29 GMT
92
+ recorded_with: VCR 6.0.0