boletosimples 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (27) hide show
  1. checksums.yaml +4 -4
  2. data/.ruby-version +1 -1
  3. data/.travis.yml +4 -3
  4. data/CHANGELOG.md +6 -0
  5. data/boletosimples.gemspec +12 -11
  6. data/lib/boletosimples.rb +2 -0
  7. data/lib/boletosimples/configuration.rb +6 -6
  8. data/lib/boletosimples/resources/customer_import.rb +6 -0
  9. data/lib/boletosimples/resources/customer_subscription_import.rb +6 -0
  10. data/lib/boletosimples/version.rb +1 -1
  11. data/spec/boletosimples/configuration_spec.rb +25 -9
  12. data/spec/boletosimples/resources/customer_import_spec.rb +56 -0
  13. data/spec/boletosimples/resources/customer_subscription_import_spec.rb +56 -0
  14. data/spec/fixtures/customer_imports.csv +1 -0
  15. data/spec/fixtures/customer_subscription_imports.csv +1 -0
  16. data/spec/fixtures/vcr_cassettes/resources/customer_import/all.yml +91 -0
  17. data/spec/fixtures/vcr_cassettes/resources/customer_import/create/invalid_params.yml +83 -0
  18. data/spec/fixtures/vcr_cassettes/resources/customer_import/create/invalid_root.yml +83 -0
  19. data/spec/fixtures/vcr_cassettes/resources/customer_import/create/valid.yml +101 -0
  20. data/spec/fixtures/vcr_cassettes/resources/customer_import/find.yml +85 -0
  21. data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/all.yml +86 -0
  22. data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/create/invalid_params.yml +84 -0
  23. data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/create/invalid_root.yml +84 -0
  24. data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/create/valid.yml +103 -0
  25. data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/find.yml +86 -0
  26. data/spec/spec_helper.rb +2 -2
  27. metadata +82 -38
@@ -0,0 +1,83 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://sandbox.boletosimples.com.br/api/v1/imports/customers?access_token=BOLETOSIMPLES_ACCESS_TOKEN
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - BoletoSimples Ruby Client v0.4.1 (contato@boletosimples.com.br)
12
+ Authorization:
13
+ - Token token="BOLETOSIMPLES_ACCESS_TOKEN"
14
+ Content-Type:
15
+ - application/x-www-form-urlencoded
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ Accept:
19
+ - "*/*"
20
+ response:
21
+ status:
22
+ code: 422
23
+ message: Unprocessable Entity
24
+ headers:
25
+ Connection:
26
+ - keep-alive
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Transfer-Encoding:
30
+ - chunked
31
+ Status:
32
+ - 422 Unprocessable Entity
33
+ Cache-Control:
34
+ - no-cache
35
+ Date:
36
+ - Fri, 16 Jun 2017 03:50:17 GMT
37
+ Vary:
38
+ - Origin,Accept-Encoding
39
+ Strict-Transport-Security:
40
+ - max-age=631138519
41
+ X-Permitted-Cross-Domain-Policies:
42
+ - none
43
+ X-Xss-Protection:
44
+ - 1; mode=block
45
+ X-Request-Id:
46
+ - 209c80e6-44a8-4fde-804c-bffa97e08935
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 d25j7wj0q61kjj.cloudfront.net; style-src ''self'' ''unsafe-inline''
61
+ fonts.googleapis.com d25j7wj0q61kjj.cloudfront.net; report-uri https://boletosimples.report-uri.io/r/default/csp/reportOnly'
62
+ X-Download-Options:
63
+ - noopen
64
+ X-Runtime:
65
+ - '0.022271'
66
+ X-Frame-Options:
67
+ - sameorigin
68
+ X-Content-Type-Options:
69
+ - nosniff
70
+ X-Rack-Cache:
71
+ - invalidate, pass
72
+ X-Powered-By:
73
+ - Phusion Passenger 5.1.4
74
+ Server:
75
+ - nginx/1.10.3 + Phusion Passenger 5.1.4
76
+ Via:
77
+ - 1.1 vegur
78
+ body:
79
+ encoding: UTF-8
80
+ string: '{"errors":{"customer_import":["não pode ficar em branco"]}}'
81
+ http_version:
82
+ recorded_at: Fri, 16 Jun 2017 03:50:17 GMT
83
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,101 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://sandbox.boletosimples.com.br/api/v1/imports/customers?access_token=BOLETOSIMPLES_ACCESS_TOKEN
6
+ body:
7
+ encoding: ASCII-8BIT
8
+ string: !binary |-
9
+ LS0tLS0tLS0tLS0tLVJ1YnlNdWx0aXBhcnRQb3N0LTI0MWU1YWY1ZTlkYzcw
10
+ YjY4MTZiOWQxYjQ3Mjk5ZmU3DQpDb250ZW50LURpc3Bvc2l0aW9uOiBmb3Jt
11
+ LWRhdGE7IG5hbWU9ImN1c3RvbWVyX2ltcG9ydFtzb3VyY2VdIjsgZmlsZW5h
12
+ bWU9ImN1c3RvbWVycy5jc3YiDQpDb250ZW50LUxlbmd0aDogMTkwDQpDb250
13
+ ZW50LVR5cGU6IHRleHQvY3N2DQpDb250ZW50LVRyYW5zZmVyLUVuY29kaW5n
14
+ OiBiaW5hcnkNCg0KTm9tZS9SYXphbyBTb2NpYWwsQXBlbGlkby9Ob21lIEZh
15
+ bnRhc2lhLENOUEovQ1BGLEUtbWFpbCxDRVAsRW5kZXJlw6dvLE51bWVybyBk
16
+ byBFbmRlcmVjbyxDb21wbGVtZW50byxCYWlycm8sQ2lkYWRlLEVzdGFkbyxU
17
+ ZWxlZm9uZSAoY29tIERERCksREREIGRvIENlbHVsYXIsTnVtZXJvIGRvIENl
18
+ bHVsYXIsRS1tYWlsIG9wY2lvbmFsCg0KLS0tLS0tLS0tLS0tLVJ1YnlNdWx0
19
+ aXBhcnRQb3N0LTI0MWU1YWY1ZTlkYzcwYjY4MTZiOWQxYjQ3Mjk5ZmU3LS0N
20
+ Cg0K
21
+ headers:
22
+ User-Agent:
23
+ - BoletoSimples Ruby Client v0.4.1 (contato@boletosimples.com.br)
24
+ Authorization:
25
+ - Token token="BOLETOSIMPLES_ACCESS_TOKEN"
26
+ Content-Type:
27
+ - multipart/form-data; boundary=-----------RubyMultipartPost-241e5af5e9dc70b6816b9d1b47299fe7
28
+ Content-Length:
29
+ - '498'
30
+ Accept-Encoding:
31
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
32
+ Accept:
33
+ - "*/*"
34
+ response:
35
+ status:
36
+ code: 201
37
+ message: Created
38
+ headers:
39
+ Connection:
40
+ - keep-alive
41
+ Content-Type:
42
+ - application/json; charset=utf-8
43
+ Transfer-Encoding:
44
+ - chunked
45
+ Status:
46
+ - 201 Created
47
+ Cache-Control:
48
+ - max-age=0, private, must-revalidate
49
+ Date:
50
+ - Fri, 16 Jun 2017 03:50:16 GMT
51
+ Vary:
52
+ - Origin,Accept-Encoding
53
+ Strict-Transport-Security:
54
+ - max-age=631138519
55
+ X-Permitted-Cross-Domain-Policies:
56
+ - none
57
+ X-Xss-Protection:
58
+ - 1; mode=block
59
+ X-Request-Id:
60
+ - 685c0992-20c4-4530-839b-00999cce1797
61
+ Content-Security-Policy-Report-Only:
62
+ - 'default-src ''self''; child-src ''self'' www.googleadservices.com googleads.g.doubleclick.net
63
+ www.google.com www.google.com.br app.popupdomination.com; connect-src ''self''
64
+ ws: wss: *.intercom.io ws.pusherapp.com hn.inspectlet.com *.pusher.com boletosimples.com.br
65
+ *.boletosimples.com.br boletosimples.zendesk.com; font-src ''self'' fonts.googleapis.com
66
+ fonts.gstatic.com js.intercomcdn.com data: v2.zopim.com d25j7wj0q61kjj.cloudfront.net;
67
+ img-src ''self'' https: data: maps.googleapis.com dev.bole.to:5001 bole.to
68
+ boletosimples-sandbox.s3.amazonaws.com; script-src ''self'' ''unsafe-inline''
69
+ static.intercomcdn.com cdn.inspectlet.com widget.intercom.io js.intercomcdn.com
70
+ js.pusher.com stats.pusher.com zapier.com www.google-analytics.com www.googleadservices.com
71
+ doug1izaerwt3.cloudfront.net app.popupdomination.com cdn.ywxi.net www.draw.io
72
+ tag.getdrip.com www.getdrip.com js-agent.newrelic.com bam.nr-data.net cdnjs.cloudflare.com
73
+ widget.pluga.co www.google.com www.gstatic.com boletosimples.zendesk.com assets.zendesk.com
74
+ v2.zopim.com d25j7wj0q61kjj.cloudfront.net; style-src ''self'' ''unsafe-inline''
75
+ fonts.googleapis.com d25j7wj0q61kjj.cloudfront.net; report-uri https://boletosimples.report-uri.io/r/default/csp/reportOnly'
76
+ Location:
77
+ - https://sandbox.boletosimples.com.br/api/v1/imports/customers/6
78
+ X-Download-Options:
79
+ - noopen
80
+ Etag:
81
+ - W/"a8f4bd7880c47cc76588e180d1370ae4"
82
+ X-Runtime:
83
+ - '0.161758'
84
+ X-Frame-Options:
85
+ - sameorigin
86
+ X-Content-Type-Options:
87
+ - nosniff
88
+ X-Rack-Cache:
89
+ - invalidate, pass
90
+ X-Powered-By:
91
+ - Phusion Passenger 5.1.4
92
+ Server:
93
+ - nginx/1.10.3 + Phusion Passenger 5.1.4
94
+ Via:
95
+ - 1.1 vegur
96
+ body:
97
+ encoding: UTF-8
98
+ string: '{"id":6,"created_rows":0,"records_count":null,"enqueued_at":"2017-06-16T00:50:16-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":"customers.csv","source_file_size":190,"source_updated_at":"2017-06-16T00:50:16-03:00","status":"enqueued"}'
99
+ http_version:
100
+ recorded_at: Fri, 16 Jun 2017 03:50:16 GMT
101
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,85 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://sandbox.boletosimples.com.br/api/v1/imports/customers/6?access_token=BOLETOSIMPLES_ACCESS_TOKEN
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - BoletoSimples Ruby Client v0.4.1 (contato@boletosimples.com.br)
12
+ Authorization:
13
+ - Token token="BOLETOSIMPLES_ACCESS_TOKEN"
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - "*/*"
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Connection:
24
+ - keep-alive
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Transfer-Encoding:
28
+ - chunked
29
+ Status:
30
+ - 200 OK
31
+ Cache-Control:
32
+ - must-revalidate, private, max-age=0
33
+ Date:
34
+ - Fri, 16 Jun 2017 03:50:19 GMT
35
+ Vary:
36
+ - Origin,Accept-Encoding
37
+ Strict-Transport-Security:
38
+ - max-age=631138519
39
+ X-Permitted-Cross-Domain-Policies:
40
+ - none
41
+ X-Xss-Protection:
42
+ - 1; mode=block
43
+ X-Request-Id:
44
+ - 9787cef7-4bcf-4d64-945e-f8ebb199e139
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 d25j7wj0q61kjj.cloudfront.net; style-src ''self'' ''unsafe-inline''
59
+ fonts.googleapis.com d25j7wj0q61kjj.cloudfront.net; report-uri https://boletosimples.report-uri.io/r/default/csp/reportOnly'
60
+ Location:
61
+ - https://sandbox.boletosimples.com.br/api/v1/imports/customers/6
62
+ X-Download-Options:
63
+ - noopen
64
+ Etag:
65
+ - W/"b28d524c4fac5f32cac23b7c93c01740"
66
+ X-Runtime:
67
+ - '0.027871'
68
+ X-Frame-Options:
69
+ - sameorigin
70
+ X-Content-Type-Options:
71
+ - nosniff
72
+ X-Rack-Cache:
73
+ - miss
74
+ X-Powered-By:
75
+ - Phusion Passenger 5.1.4
76
+ Server:
77
+ - nginx/1.10.3 + Phusion Passenger 5.1.4
78
+ Via:
79
+ - 1.1 vegur
80
+ body:
81
+ encoding: UTF-8
82
+ string: '{"id":6,"created_rows":0,"records_count":null,"enqueued_at":"2017-06-16T00:50:16-03:00","started_at":"2017-06-16T00:50:16-03:00","finished_at":"2017-06-16T00:50:16-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":"customers.csv","source_file_size":190,"source_updated_at":"2017-06-16T00:50:16-03:00","status":"done"}'
83
+ http_version:
84
+ recorded_at: Fri, 16 Jun 2017 03:50:19 GMT
85
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,86 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://sandbox.boletosimples.com.br/api/v1/imports/customer_subscriptions?access_token=BOLETOSIMPLES_ACCESS_TOKEN
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - BoletoSimples Ruby Client v0.4.1 (contato@boletosimples.com.br)
12
+ Authorization:
13
+ - Token token="BOLETOSIMPLES_ACCESS_TOKEN"
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - "*/*"
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Connection:
24
+ - keep-alive
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Transfer-Encoding:
28
+ - chunked
29
+ Status:
30
+ - 200 OK
31
+ Cache-Control:
32
+ - must-revalidate, private, max-age=0
33
+ Date:
34
+ - 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
41
+ X-Xss-Protection:
42
+ - 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'
63
+ X-Download-Options:
64
+ - noopen
65
+ Etag:
66
+ - W/"960f89a8fe54f33debd0e70d7ba24511"
67
+ X-Runtime:
68
+ - '0.080101'
69
+ X-Frame-Options:
70
+ - sameorigin
71
+ X-Content-Type-Options:
72
+ - nosniff
73
+ X-Rack-Cache:
74
+ - miss
75
+ X-Powered-By:
76
+ - Phusion Passenger 5.1.5
77
+ Server:
78
+ - nginx/1.10.3 + Phusion Passenger 5.1.5
79
+ Via:
80
+ - 1.1 vegur
81
+ body:
82
+ 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
@@ -0,0 +1,84 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://sandbox.boletosimples.com.br/api/v1/imports/customer_subscriptions?access_token=BOLETOSIMPLES_ACCESS_TOKEN
6
+ body:
7
+ encoding: UTF-8
8
+ string: customer_subscription_import%5Bsource%5D=
9
+ headers:
10
+ User-Agent:
11
+ - BoletoSimples Ruby Client v0.4.1 (contato@boletosimples.com.br)
12
+ Authorization:
13
+ - Token token="BOLETOSIMPLES_ACCESS_TOKEN"
14
+ Content-Type:
15
+ - application/x-www-form-urlencoded
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ Accept:
19
+ - "*/*"
20
+ response:
21
+ status:
22
+ code: 422
23
+ message: Unprocessable Entity
24
+ headers:
25
+ Connection:
26
+ - keep-alive
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Transfer-Encoding:
30
+ - 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
43
+ X-Xss-Protection:
44
+ - 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'
63
+ X-Download-Options:
64
+ - noopen
65
+ X-Runtime:
66
+ - '0.040227'
67
+ X-Frame-Options:
68
+ - sameorigin
69
+ X-Content-Type-Options:
70
+ - nosniff
71
+ X-Rack-Cache:
72
+ - invalidate, pass
73
+ X-Powered-By:
74
+ - Phusion Passenger 5.1.5
75
+ Server:
76
+ - nginx/1.10.3 + Phusion Passenger 5.1.5
77
+ Via:
78
+ - 1.1 vegur
79
+ body:
80
+ encoding: UTF-8
81
+ 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
@@ -0,0 +1,84 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://sandbox.boletosimples.com.br/api/v1/imports/customer_subscriptions?access_token=BOLETOSIMPLES_ACCESS_TOKEN
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - BoletoSimples Ruby Client v0.4.1 (contato@boletosimples.com.br)
12
+ Authorization:
13
+ - Token token="BOLETOSIMPLES_ACCESS_TOKEN"
14
+ Content-Type:
15
+ - application/x-www-form-urlencoded
16
+ Accept-Encoding:
17
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
+ Accept:
19
+ - "*/*"
20
+ response:
21
+ status:
22
+ code: 422
23
+ message: Unprocessable Entity
24
+ headers:
25
+ Connection:
26
+ - keep-alive
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Transfer-Encoding:
30
+ - 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
43
+ X-Xss-Protection:
44
+ - 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'
63
+ X-Download-Options:
64
+ - noopen
65
+ X-Runtime:
66
+ - '0.020721'
67
+ X-Frame-Options:
68
+ - sameorigin
69
+ X-Content-Type-Options:
70
+ - nosniff
71
+ X-Rack-Cache:
72
+ - invalidate, pass
73
+ X-Powered-By:
74
+ - Phusion Passenger 5.1.5
75
+ Server:
76
+ - nginx/1.10.3 + Phusion Passenger 5.1.5
77
+ Via:
78
+ - 1.1 vegur
79
+ body:
80
+ 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