boletosimples 0.3.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/.travis.yml +1 -1
- data/boletosimples.gemspec +8 -7
- data/lib/boletosimples.rb +3 -1
- data/lib/boletosimples/configuration.rb +2 -2
- data/lib/boletosimples/resources/customer_subscription.rb +14 -0
- data/lib/boletosimples/resources/discharge.rb +10 -0
- data/lib/boletosimples/resources/installment.rb +4 -0
- data/lib/boletosimples/version.rb +1 -1
- data/spec/boletosimples/resources/customer_subscription_spec.rb +60 -0
- data/spec/boletosimples/resources/installment_spec.rb +62 -0
- data/spec/fixtures/vcr_cassettes/resources/customer_subscription/all.yml +83 -0
- data/spec/fixtures/vcr_cassettes/resources/customer_subscription/create/invalid_params.yml +83 -0
- data/spec/fixtures/vcr_cassettes/resources/customer_subscription/create/invalid_root.yml +81 -0
- data/spec/fixtures/vcr_cassettes/resources/customer_subscription/create/valid.yml +85 -0
- data/spec/fixtures/vcr_cassettes/resources/customer_subscription/find.yml +83 -0
- data/spec/fixtures/vcr_cassettes/resources/installment/all.yml +83 -0
- data/spec/fixtures/vcr_cassettes/resources/installment/create/invalid_params.yml +85 -0
- data/spec/fixtures/vcr_cassettes/resources/installment/create/invalid_root.yml +81 -0
- data/spec/fixtures/vcr_cassettes/resources/installment/create/valid.yml +85 -0
- data/spec/fixtures/vcr_cassettes/resources/installment/find.yml +83 -0
- metadata +57 -17
@@ -0,0 +1,85 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://sandbox.boletosimples.com.br/api/v1/customer_subscriptions?access_token=BOLETOSIMPLES_ACCESS_TOKEN
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"customer_subscription":{"customer_id":"11","bank_billet_account_id":"12","amount":"1.120,4","cycle":"monthly","description":"Hospedagem"}}'
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- BoletoSimples Ruby Client v0.3.1 (contato@boletosimples.com.br)
|
12
|
+
Authorization:
|
13
|
+
- Token token="BOLETOSIMPLES_ACCESS_TOKEN"
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
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: 201
|
23
|
+
message: Created
|
24
|
+
headers:
|
25
|
+
Connection:
|
26
|
+
- keep-alive
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf-8
|
29
|
+
Transfer-Encoding:
|
30
|
+
- chunked
|
31
|
+
Status:
|
32
|
+
- 201 Created
|
33
|
+
Cache-Control:
|
34
|
+
- max-age=0, private, must-revalidate
|
35
|
+
X-Ratelimit-Limit:
|
36
|
+
- '500'
|
37
|
+
Date:
|
38
|
+
- Mon, 15 Aug 2016 19:12:04 GMT
|
39
|
+
Strict-Transport-Security:
|
40
|
+
- max-age=631138519
|
41
|
+
X-Ratelimit-Remaining:
|
42
|
+
- '498'
|
43
|
+
Vary:
|
44
|
+
- Accept-Encoding
|
45
|
+
X-Permitted-Cross-Domain-Policies:
|
46
|
+
- none
|
47
|
+
X-Xss-Protection:
|
48
|
+
- 1; mode=block
|
49
|
+
X-Request-Id:
|
50
|
+
- c1c59214-8d39-4d97-8c08-1755ecb1df71
|
51
|
+
Content-Security-Policy-Report-Only:
|
52
|
+
- 'default-src ''self''; child-src ''self'' www.googleadservices.com googleads.g.doubleclick.net
|
53
|
+
www.google.com; connect-src ws: wss: *.intercom.io ws.pusherapp.com hn.inspectlet.com
|
54
|
+
stats.pusher.com; font-src ''self'' fonts.googleapis.com fonts.gstatic.com
|
55
|
+
data:; img-src ''self'' https: data:; script-src ''self'' static.intercomcdn.com
|
56
|
+
cdn.inspectlet.com widget.intercom.io js.intercomcdn.com js.pusher.com stats.pusher.com
|
57
|
+
zapier.com www.google-analytics.com www.googleadservices.com i.kissmetrics.com
|
58
|
+
doug1izaerwt3.cloudfront.net app.popupdomination.com cdn.ywxi.net www.draw.io;
|
59
|
+
style-src ''self'' fonts.googleapis.com; report-uri https://boletosimples.report-uri.io/r/default/csp/reportOnly'
|
60
|
+
Location:
|
61
|
+
- https://sandbox.boletosimples.com.br/api/v1/customer_subscriptions/4
|
62
|
+
X-Download-Options:
|
63
|
+
- noopen
|
64
|
+
Etag:
|
65
|
+
- W/"fc1c5eee3b0e21014ab204a47d329184"
|
66
|
+
X-Runtime:
|
67
|
+
- '0.068000'
|
68
|
+
X-Frame-Options:
|
69
|
+
- sameorigin
|
70
|
+
X-Content-Type-Options:
|
71
|
+
- nosniff
|
72
|
+
X-Rack-Cache:
|
73
|
+
- invalidate, pass
|
74
|
+
X-Powered-By:
|
75
|
+
- Phusion Passenger 5.0.30
|
76
|
+
Server:
|
77
|
+
- nginx/1.10.1 + Phusion Passenger 5.0.30
|
78
|
+
Via:
|
79
|
+
- 1.1 vegur
|
80
|
+
body:
|
81
|
+
encoding: UTF-8
|
82
|
+
string: '{"id":4,"amount":1120.4,"cycle":"monthly","next_billing":"2016-09-15","end_at":null,"instructions":null,"customer_id":11,"description":"Hospedagem","created_at":"2016-08-15","updated_at":"2016-08-15","created_via_api":true,"days_in_advance":7,"bank_billet_account_id":12}'
|
83
|
+
http_version:
|
84
|
+
recorded_at: Mon, 15 Aug 2016 19:12:04 GMT
|
85
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,83 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://sandbox.boletosimples.com.br/api/v1/customer_subscriptions/4?access_token=BOLETOSIMPLES_ACCESS_TOKEN
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- BoletoSimples Ruby Client v0.3.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
|
+
X-Ratelimit-Limit:
|
34
|
+
- '500'
|
35
|
+
Date:
|
36
|
+
- Mon, 15 Aug 2016 19:12:07 GMT
|
37
|
+
Strict-Transport-Security:
|
38
|
+
- max-age=631138519
|
39
|
+
X-Ratelimit-Remaining:
|
40
|
+
- '494'
|
41
|
+
Vary:
|
42
|
+
- Accept-Encoding
|
43
|
+
X-Permitted-Cross-Domain-Policies:
|
44
|
+
- none
|
45
|
+
X-Xss-Protection:
|
46
|
+
- 1; mode=block
|
47
|
+
X-Request-Id:
|
48
|
+
- d805e0a7-8421-49a5-b9e0-be09ba5f7094
|
49
|
+
Content-Security-Policy-Report-Only:
|
50
|
+
- 'default-src ''self''; child-src ''self'' www.googleadservices.com googleads.g.doubleclick.net
|
51
|
+
www.google.com; connect-src ws: wss: *.intercom.io ws.pusherapp.com hn.inspectlet.com
|
52
|
+
stats.pusher.com; font-src ''self'' fonts.googleapis.com fonts.gstatic.com
|
53
|
+
data:; img-src ''self'' https: data:; script-src ''self'' static.intercomcdn.com
|
54
|
+
cdn.inspectlet.com widget.intercom.io js.intercomcdn.com js.pusher.com stats.pusher.com
|
55
|
+
zapier.com www.google-analytics.com www.googleadservices.com i.kissmetrics.com
|
56
|
+
doug1izaerwt3.cloudfront.net app.popupdomination.com cdn.ywxi.net www.draw.io;
|
57
|
+
style-src ''self'' fonts.googleapis.com; report-uri https://boletosimples.report-uri.io/r/default/csp/reportOnly'
|
58
|
+
Location:
|
59
|
+
- https://sandbox.boletosimples.com.br/api/v1/customer_subscriptions/4
|
60
|
+
X-Download-Options:
|
61
|
+
- noopen
|
62
|
+
Etag:
|
63
|
+
- W/"fc1c5eee3b0e21014ab204a47d329184"
|
64
|
+
X-Runtime:
|
65
|
+
- '0.023517'
|
66
|
+
X-Frame-Options:
|
67
|
+
- sameorigin
|
68
|
+
X-Content-Type-Options:
|
69
|
+
- nosniff
|
70
|
+
X-Rack-Cache:
|
71
|
+
- miss
|
72
|
+
X-Powered-By:
|
73
|
+
- Phusion Passenger 5.0.30
|
74
|
+
Server:
|
75
|
+
- nginx/1.10.1 + Phusion Passenger 5.0.30
|
76
|
+
Via:
|
77
|
+
- 1.1 vegur
|
78
|
+
body:
|
79
|
+
encoding: UTF-8
|
80
|
+
string: '{"id":4,"amount":1120.4,"cycle":"monthly","next_billing":"2016-09-15","end_at":null,"instructions":null,"customer_id":11,"description":"Hospedagem","created_at":"2016-08-15","updated_at":"2016-08-15","created_via_api":true,"days_in_advance":7,"bank_billet_account_id":12}'
|
81
|
+
http_version:
|
82
|
+
recorded_at: Mon, 15 Aug 2016 19:12:07 GMT
|
83
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,83 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://sandbox.boletosimples.com.br/api/v1/installments?access_token=BOLETOSIMPLES_ACCESS_TOKEN
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- BoletoSimples Ruby Client v0.3.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
|
+
X-Ratelimit-Limit:
|
34
|
+
- '500'
|
35
|
+
Date:
|
36
|
+
- Mon, 15 Aug 2016 19:16:33 GMT
|
37
|
+
Strict-Transport-Security:
|
38
|
+
- max-age=631138519
|
39
|
+
X-Ratelimit-Remaining:
|
40
|
+
- '490'
|
41
|
+
Vary:
|
42
|
+
- Accept-Encoding
|
43
|
+
X-Permitted-Cross-Domain-Policies:
|
44
|
+
- none
|
45
|
+
X-Xss-Protection:
|
46
|
+
- 1; mode=block
|
47
|
+
X-Request-Id:
|
48
|
+
- f9628ae7-6200-4d27-8db7-11963731aa62
|
49
|
+
Content-Security-Policy-Report-Only:
|
50
|
+
- 'default-src ''self''; child-src ''self'' www.googleadservices.com googleads.g.doubleclick.net
|
51
|
+
www.google.com; connect-src ws: wss: *.intercom.io ws.pusherapp.com hn.inspectlet.com
|
52
|
+
stats.pusher.com; font-src ''self'' fonts.googleapis.com fonts.gstatic.com
|
53
|
+
data:; img-src ''self'' https: data:; script-src ''self'' static.intercomcdn.com
|
54
|
+
cdn.inspectlet.com widget.intercom.io js.intercomcdn.com js.pusher.com stats.pusher.com
|
55
|
+
zapier.com www.google-analytics.com www.googleadservices.com i.kissmetrics.com
|
56
|
+
doug1izaerwt3.cloudfront.net app.popupdomination.com cdn.ywxi.net www.draw.io;
|
57
|
+
style-src ''self'' fonts.googleapis.com; report-uri https://boletosimples.report-uri.io/r/default/csp/reportOnly'
|
58
|
+
Total:
|
59
|
+
- '1'
|
60
|
+
X-Download-Options:
|
61
|
+
- noopen
|
62
|
+
Etag:
|
63
|
+
- W/"26811f1358b555a21068a3995eadbcbe"
|
64
|
+
X-Runtime:
|
65
|
+
- '0.026405'
|
66
|
+
X-Frame-Options:
|
67
|
+
- sameorigin
|
68
|
+
X-Content-Type-Options:
|
69
|
+
- nosniff
|
70
|
+
X-Rack-Cache:
|
71
|
+
- miss
|
72
|
+
X-Powered-By:
|
73
|
+
- Phusion Passenger 5.0.30
|
74
|
+
Server:
|
75
|
+
- nginx/1.10.1 + Phusion Passenger 5.0.30
|
76
|
+
Via:
|
77
|
+
- 1.1 vegur
|
78
|
+
body:
|
79
|
+
encoding: UTF-8
|
80
|
+
string: '[{"id":2,"amount":1120.4,"cycle":"monthly","start_at":"2016-09-15","end_at":"2016-11-16","instructions":null,"customer_id":11,"description":"Hospedagem","created_at":"2016-08-15","updated_at":"2016-08-15","created_via_api":true,"total":3,"bank_billet_account_id":12,"status":"processed"}]'
|
81
|
+
http_version:
|
82
|
+
recorded_at: Mon, 15 Aug 2016 19:16:33 GMT
|
83
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,85 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://sandbox.boletosimples.com.br/api/v1/installments?access_token=BOLETOSIMPLES_ACCESS_TOKEN
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"installment":{"person_name":""}}'
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- BoletoSimples Ruby Client v0.3.1 (contato@boletosimples.com.br)
|
12
|
+
Authorization:
|
13
|
+
- Token token="BOLETOSIMPLES_ACCESS_TOKEN"
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
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
|
+
X-Ratelimit-Limit:
|
36
|
+
- '500'
|
37
|
+
Date:
|
38
|
+
- Mon, 15 Aug 2016 19:16:32 GMT
|
39
|
+
Strict-Transport-Security:
|
40
|
+
- max-age=631138519
|
41
|
+
X-Ratelimit-Remaining:
|
42
|
+
- '491'
|
43
|
+
Vary:
|
44
|
+
- Accept-Encoding
|
45
|
+
X-Permitted-Cross-Domain-Policies:
|
46
|
+
- none
|
47
|
+
X-Xss-Protection:
|
48
|
+
- 1; mode=block
|
49
|
+
X-Request-Id:
|
50
|
+
- edf6487b-5002-439a-9b84-2f7a1643a36e
|
51
|
+
Content-Security-Policy-Report-Only:
|
52
|
+
- 'default-src ''self''; child-src ''self'' www.googleadservices.com googleads.g.doubleclick.net
|
53
|
+
www.google.com; connect-src ws: wss: *.intercom.io ws.pusherapp.com hn.inspectlet.com
|
54
|
+
stats.pusher.com; font-src ''self'' fonts.googleapis.com fonts.gstatic.com
|
55
|
+
data:; img-src ''self'' https: data:; script-src ''self'' static.intercomcdn.com
|
56
|
+
cdn.inspectlet.com widget.intercom.io js.intercomcdn.com js.pusher.com stats.pusher.com
|
57
|
+
zapier.com www.google-analytics.com www.googleadservices.com i.kissmetrics.com
|
58
|
+
doug1izaerwt3.cloudfront.net app.popupdomination.com cdn.ywxi.net www.draw.io;
|
59
|
+
style-src ''self'' fonts.googleapis.com; report-uri https://boletosimples.report-uri.io/r/default/csp/reportOnly'
|
60
|
+
X-Download-Options:
|
61
|
+
- noopen
|
62
|
+
X-Runtime:
|
63
|
+
- '0.025894'
|
64
|
+
X-Frame-Options:
|
65
|
+
- sameorigin
|
66
|
+
X-Content-Type-Options:
|
67
|
+
- nosniff
|
68
|
+
X-Rack-Cache:
|
69
|
+
- invalidate, pass
|
70
|
+
X-Powered-By:
|
71
|
+
- Phusion Passenger 5.0.30
|
72
|
+
Server:
|
73
|
+
- nginx/1.10.1 + Phusion Passenger 5.0.30
|
74
|
+
Via:
|
75
|
+
- 1.1 vegur
|
76
|
+
body:
|
77
|
+
encoding: UTF-8
|
78
|
+
string: '{"errors":{"customer":["não pode ficar em branco"],"bank_billet_account":["não
|
79
|
+
pode ficar em branco"],"cycle":["não pode ficar em branco","não está incluído
|
80
|
+
na lista"],"total":["não pode ficar em branco"],"start_at":["não pode ficar
|
81
|
+
em branco"],"description":["não pode ficar em branco"],"amount":["deve ser
|
82
|
+
maior que 0"]}}'
|
83
|
+
http_version:
|
84
|
+
recorded_at: Mon, 15 Aug 2016 19:16:32 GMT
|
85
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,81 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://sandbox.boletosimples.com.br/api/v1/installments?access_token=BOLETOSIMPLES_ACCESS_TOKEN
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"installment":{}}'
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- BoletoSimples Ruby Client v0.3.1 (contato@boletosimples.com.br)
|
12
|
+
Authorization:
|
13
|
+
- Token token="BOLETOSIMPLES_ACCESS_TOKEN"
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
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
|
+
X-Ratelimit-Limit:
|
36
|
+
- '500'
|
37
|
+
Date:
|
38
|
+
- Mon, 15 Aug 2016 19:16:31 GMT
|
39
|
+
Strict-Transport-Security:
|
40
|
+
- max-age=631138519
|
41
|
+
X-Ratelimit-Remaining:
|
42
|
+
- '492'
|
43
|
+
Vary:
|
44
|
+
- Accept-Encoding
|
45
|
+
X-Permitted-Cross-Domain-Policies:
|
46
|
+
- none
|
47
|
+
X-Xss-Protection:
|
48
|
+
- 1; mode=block
|
49
|
+
X-Request-Id:
|
50
|
+
- 464aab27-7141-4e9a-94fd-38b97ca51a7d
|
51
|
+
Content-Security-Policy-Report-Only:
|
52
|
+
- 'default-src ''self''; child-src ''self'' www.googleadservices.com googleads.g.doubleclick.net
|
53
|
+
www.google.com; connect-src ws: wss: *.intercom.io ws.pusherapp.com hn.inspectlet.com
|
54
|
+
stats.pusher.com; font-src ''self'' fonts.googleapis.com fonts.gstatic.com
|
55
|
+
data:; img-src ''self'' https: data:; script-src ''self'' static.intercomcdn.com
|
56
|
+
cdn.inspectlet.com widget.intercom.io js.intercomcdn.com js.pusher.com stats.pusher.com
|
57
|
+
zapier.com www.google-analytics.com www.googleadservices.com i.kissmetrics.com
|
58
|
+
doug1izaerwt3.cloudfront.net app.popupdomination.com cdn.ywxi.net www.draw.io;
|
59
|
+
style-src ''self'' fonts.googleapis.com; report-uri https://boletosimples.report-uri.io/r/default/csp/reportOnly'
|
60
|
+
X-Download-Options:
|
61
|
+
- noopen
|
62
|
+
X-Runtime:
|
63
|
+
- '0.018220'
|
64
|
+
X-Frame-Options:
|
65
|
+
- sameorigin
|
66
|
+
X-Content-Type-Options:
|
67
|
+
- nosniff
|
68
|
+
X-Rack-Cache:
|
69
|
+
- invalidate, pass
|
70
|
+
X-Powered-By:
|
71
|
+
- Phusion Passenger 5.0.30
|
72
|
+
Server:
|
73
|
+
- nginx/1.10.1 + Phusion Passenger 5.0.30
|
74
|
+
Via:
|
75
|
+
- 1.1 vegur
|
76
|
+
body:
|
77
|
+
encoding: UTF-8
|
78
|
+
string: '{"errors":{"installment":["não pode ficar em branco"]}}'
|
79
|
+
http_version:
|
80
|
+
recorded_at: Mon, 15 Aug 2016 19:16:31 GMT
|
81
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,85 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://sandbox.boletosimples.com.br/api/v1/installments?access_token=BOLETOSIMPLES_ACCESS_TOKEN
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"installment":{"customer_id":"11","bank_billet_account_id":"12","amount":"1.120,4","cycle":"monthly","start_at":"2016-09-15","total":"3","description":"Hospedagem"}}'
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- BoletoSimples Ruby Client v0.3.1 (contato@boletosimples.com.br)
|
12
|
+
Authorization:
|
13
|
+
- Token token="BOLETOSIMPLES_ACCESS_TOKEN"
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
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: 201
|
23
|
+
message: Created
|
24
|
+
headers:
|
25
|
+
Connection:
|
26
|
+
- keep-alive
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf-8
|
29
|
+
Transfer-Encoding:
|
30
|
+
- chunked
|
31
|
+
Status:
|
32
|
+
- 201 Created
|
33
|
+
Cache-Control:
|
34
|
+
- max-age=0, private, must-revalidate
|
35
|
+
X-Ratelimit-Limit:
|
36
|
+
- '500'
|
37
|
+
Date:
|
38
|
+
- Mon, 15 Aug 2016 19:16:30 GMT
|
39
|
+
Strict-Transport-Security:
|
40
|
+
- max-age=631138519
|
41
|
+
X-Ratelimit-Remaining:
|
42
|
+
- '493'
|
43
|
+
Vary:
|
44
|
+
- Accept-Encoding
|
45
|
+
X-Permitted-Cross-Domain-Policies:
|
46
|
+
- none
|
47
|
+
X-Xss-Protection:
|
48
|
+
- 1; mode=block
|
49
|
+
X-Request-Id:
|
50
|
+
- 394821c4-efee-4d1f-a06a-bccc9edbd4e4
|
51
|
+
Content-Security-Policy-Report-Only:
|
52
|
+
- 'default-src ''self''; child-src ''self'' www.googleadservices.com googleads.g.doubleclick.net
|
53
|
+
www.google.com; connect-src ws: wss: *.intercom.io ws.pusherapp.com hn.inspectlet.com
|
54
|
+
stats.pusher.com; font-src ''self'' fonts.googleapis.com fonts.gstatic.com
|
55
|
+
data:; img-src ''self'' https: data:; script-src ''self'' static.intercomcdn.com
|
56
|
+
cdn.inspectlet.com widget.intercom.io js.intercomcdn.com js.pusher.com stats.pusher.com
|
57
|
+
zapier.com www.google-analytics.com www.googleadservices.com i.kissmetrics.com
|
58
|
+
doug1izaerwt3.cloudfront.net app.popupdomination.com cdn.ywxi.net www.draw.io;
|
59
|
+
style-src ''self'' fonts.googleapis.com; report-uri https://boletosimples.report-uri.io/r/default/csp/reportOnly'
|
60
|
+
Location:
|
61
|
+
- https://sandbox.boletosimples.com.br/api/v1/installments/2
|
62
|
+
X-Download-Options:
|
63
|
+
- noopen
|
64
|
+
Etag:
|
65
|
+
- W/"ff834c39ca2ba0ac0941d7fbde7ac5c5"
|
66
|
+
X-Runtime:
|
67
|
+
- '0.066803'
|
68
|
+
X-Frame-Options:
|
69
|
+
- sameorigin
|
70
|
+
X-Content-Type-Options:
|
71
|
+
- nosniff
|
72
|
+
X-Rack-Cache:
|
73
|
+
- invalidate, pass
|
74
|
+
X-Powered-By:
|
75
|
+
- Phusion Passenger 5.0.30
|
76
|
+
Server:
|
77
|
+
- nginx/1.10.1 + Phusion Passenger 5.0.30
|
78
|
+
Via:
|
79
|
+
- 1.1 vegur
|
80
|
+
body:
|
81
|
+
encoding: UTF-8
|
82
|
+
string: '{"id":2,"amount":1120.4,"cycle":"monthly","start_at":"2016-09-15","end_at":"2016-11-16","instructions":null,"customer_id":11,"description":"Hospedagem","created_at":"2016-08-15","updated_at":"2016-08-15","created_via_api":true,"total":3,"bank_billet_account_id":12,"status":"created"}'
|
83
|
+
http_version:
|
84
|
+
recorded_at: Mon, 15 Aug 2016 19:16:30 GMT
|
85
|
+
recorded_with: VCR 2.9.3
|