boletosimples 0.6.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +34 -0
- data/.rspec +3 -0
- data/.rubocop.yml +9 -0
- data/.ruby-version +1 -1
- data/CHANGELOG.md +6 -20
- data/Gemfile +2 -0
- data/README.md +12 -54
- data/Rakefile +3 -1
- data/boletosimples.gemspec +14 -11
- data/lib/boletosimples.rb +4 -6
- data/lib/boletosimples/configuration.rb +14 -25
- data/lib/boletosimples/last_request.rb +12 -9
- data/lib/boletosimples/middlewares/bearer.rb +12 -0
- data/lib/boletosimples/middlewares/last_request.rb +3 -1
- data/lib/boletosimples/middlewares/raise_error.rb +9 -2
- data/lib/boletosimples/middlewares/user_agent.rb +3 -1
- data/lib/boletosimples/resources/bank_billet.rb +5 -11
- data/lib/boletosimples/resources/bank_billet_account.rb +3 -1
- data/lib/boletosimples/resources/bank_billet_discharge.rb +3 -1
- data/lib/boletosimples/resources/bank_billet_payment.rb +3 -1
- data/lib/boletosimples/resources/bank_billet_remittance.rb +3 -1
- data/lib/boletosimples/resources/base_model.rb +3 -1
- data/lib/boletosimples/resources/customer.rb +3 -1
- data/lib/boletosimples/resources/customer_import.rb +5 -3
- data/lib/boletosimples/resources/customer_subscription.rb +3 -10
- data/lib/boletosimples/resources/customer_subscription_import.rb +5 -3
- data/lib/boletosimples/resources/discharge.rb +4 -11
- data/lib/boletosimples/resources/email_delivery.rb +3 -1
- data/lib/boletosimples/resources/event.rb +3 -1
- data/lib/boletosimples/resources/installment.rb +3 -1
- data/lib/boletosimples/resources/remittance.rb +3 -1
- data/lib/boletosimples/resources/sms_delivery.rb +6 -0
- data/lib/boletosimples/resources/transaction.rb +3 -1
- data/lib/boletosimples/resources/webhook.rb +3 -1
- data/lib/boletosimples/resources/webhook_delivery.rb +3 -1
- data/lib/boletosimples/response_error.rb +8 -3
- data/lib/boletosimples/version.rb +3 -1
- data/spec/boletosimples/configuration_spec.rb +71 -101
- data/spec/boletosimples/last_request_spec.rb +16 -28
- data/spec/boletosimples/resources/bank_billet_account_spec.rb +57 -33
- data/spec/boletosimples/resources/bank_billet_discharge_spec.rb +7 -12
- data/spec/boletosimples/resources/bank_billet_payment_spec.rb +7 -12
- data/spec/boletosimples/resources/bank_billet_remittance_spec.rb +7 -12
- data/spec/boletosimples/resources/bank_billet_spec.rb +56 -42
- data/spec/boletosimples/resources/customer_import_spec.rb +41 -30
- data/spec/boletosimples/resources/customer_spec.rb +52 -39
- data/spec/boletosimples/resources/customer_subscription_import_spec.rb +41 -30
- data/spec/boletosimples/resources/customer_subscription_spec.rb +61 -33
- data/spec/boletosimples/resources/discharge_spec.rb +64 -11
- data/spec/boletosimples/resources/email_delivery_spec.rb +6 -11
- data/spec/boletosimples/resources/event_spec.rb +7 -12
- data/spec/boletosimples/resources/installment_spec.rb +61 -32
- data/spec/boletosimples/resources/remittance_spec.rb +7 -12
- data/spec/boletosimples/resources/sms_delivery_spec.rb +12 -0
- data/spec/boletosimples/resources/transactions_spec.rb +7 -12
- data/spec/boletosimples/resources/webhook_delivery_spec.rb +7 -12
- data/spec/boletosimples/resources/webhook_spec.rb +7 -12
- data/spec/fixtures/discharge.RET +3 -0
- data/spec/fixtures/vcr_cassettes/last_request/bank_billets.yml +536 -88
- data/spec/fixtures/vcr_cassettes/resources/bank_billet/all.yml +537 -91
- data/spec/fixtures/vcr_cassettes/resources/bank_billet/cancel/success.yml +34 -92
- data/spec/fixtures/vcr_cassettes/resources/bank_billet/create/invalid_params.yml +32 -20
- data/spec/fixtures/vcr_cassettes/resources/bank_billet/create/invalid_root.yml +28 -17
- data/spec/fixtures/vcr_cassettes/resources/bank_billet/create/valid.yml +43 -27
- data/spec/fixtures/vcr_cassettes/resources/bank_billet/duplicate/success.yml +83 -0
- data/spec/fixtures/vcr_cassettes/resources/bank_billet/find.yml +51 -27
- data/spec/fixtures/vcr_cassettes/resources/bank_billet_account/all.yml +131 -20
- data/spec/fixtures/vcr_cassettes/resources/bank_billet_account/create/invalid_params.yml +34 -20
- data/spec/fixtures/vcr_cassettes/resources/bank_billet_account/create/invalid_root.yml +30 -19
- data/spec/fixtures/vcr_cassettes/resources/bank_billet_account/create/valid.yml +41 -21
- data/spec/fixtures/vcr_cassettes/resources/bank_billet_account/find.yml +38 -18
- data/spec/fixtures/vcr_cassettes/resources/bank_billet_discharge/all.yml +66 -47
- data/spec/fixtures/vcr_cassettes/resources/bank_billet_payment/all.yml +44 -42
- data/spec/fixtures/vcr_cassettes/resources/bank_billet_remittance/all.yml +95 -48
- data/spec/fixtures/vcr_cassettes/resources/customer/all.yml +79 -32
- data/spec/fixtures/vcr_cassettes/resources/customer/create/invalid_params.yml +30 -17
- data/spec/fixtures/vcr_cassettes/resources/customer/create/invalid_root.yml +28 -17
- data/spec/fixtures/vcr_cassettes/resources/customer/create/valid.yml +33 -21
- data/spec/fixtures/vcr_cassettes/resources/customer/find.yml +33 -19
- data/spec/fixtures/vcr_cassettes/resources/customer_import/all.yml +43 -60
- data/spec/fixtures/vcr_cassettes/resources/customer_import/create/invalid_params.yml +37 -51
- data/spec/fixtures/vcr_cassettes/resources/customer_import/create/invalid_root.yml +38 -52
- data/spec/fixtures/vcr_cassettes/resources/customer_import/create/valid.yml +43 -68
- data/spec/fixtures/vcr_cassettes/resources/customer_import/find.yml +40 -54
- data/spec/fixtures/vcr_cassettes/resources/customer_subscription/all.yml +102 -52
- data/spec/fixtures/vcr_cassettes/resources/customer_subscription/create/invalid_params.yml +40 -50
- data/spec/fixtures/vcr_cassettes/resources/customer_subscription/create/invalid_root.yml +36 -48
- data/spec/fixtures/vcr_cassettes/resources/customer_subscription/create/valid.yml +48 -53
- data/spec/fixtures/vcr_cassettes/resources/customer_subscription/find.yml +44 -50
- data/spec/fixtures/vcr_cassettes/resources/customer_subscription/next_charge.yml +45 -133
- data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/all.yml +44 -55
- data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/create/invalid_params.yml +37 -52
- data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/create/invalid_root.yml +39 -53
- data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/create/valid.yml +43 -70
- data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/find.yml +40 -55
- data/spec/fixtures/vcr_cassettes/resources/discharge/all.yml +64 -33
- data/spec/fixtures/vcr_cassettes/resources/discharge/create/invalid_params.yml +70 -0
- data/spec/fixtures/vcr_cassettes/resources/discharge/create/invalid_root.yml +69 -0
- data/spec/fixtures/vcr_cassettes/resources/discharge/create/valid.yml +84 -0
- data/spec/fixtures/vcr_cassettes/resources/discharge/find.yml +71 -0
- data/spec/fixtures/vcr_cassettes/resources/email_delivery/all.yml +40 -43
- data/spec/fixtures/vcr_cassettes/resources/event/all.yml +490 -166
- data/spec/fixtures/vcr_cassettes/resources/installment/all.yml +418 -52
- data/spec/fixtures/vcr_cassettes/resources/installment/create/invalid_params.yml +41 -52
- data/spec/fixtures/vcr_cassettes/resources/installment/create/invalid_root.yml +36 -48
- data/spec/fixtures/vcr_cassettes/resources/installment/create/valid.yml +48 -53
- data/spec/fixtures/vcr_cassettes/resources/installment/find.yml +44 -52
- data/spec/fixtures/vcr_cassettes/resources/remittance/all.yml +53 -33
- data/spec/fixtures/vcr_cassettes/resources/sns_delivery/all.yml +73 -0
- data/spec/fixtures/vcr_cassettes/resources/transaction/all.yml +34 -22
- data/spec/fixtures/vcr_cassettes/resources/web_hook/all.yml +42 -33
- data/spec/fixtures/vcr_cassettes/resources/webhook_delivery/all.yml +1232 -54
- data/spec/spec_helper.rb +3 -20
- data/spec/support/stub_env.rb +7 -0
- data/spec/support/vcr.rb +3 -4
- metadata +87 -52
- data/.coveralls.yml +0 -2
- data/.travis.yml +0 -46
- data/gemfiles/rails_42.gemfile +0 -8
- data/gemfiles/rails_50.gemfile +0 -8
- data/gemfiles/rails_51.gemfile +0 -8
- data/gemfiles/rails_52.gemfile +0 -9
- data/lib/boletosimples/extra.rb +0 -8
- data/lib/boletosimples/resources/partner/user.rb +0 -7
- data/lib/oauth2_patch.rb +0 -24
- data/spec/boletosimples/extra_spec.rb +0 -31
- data/spec/boletosimples/resources/partner/user_spec.rb +0 -19
- data/spec/fixtures/vcr_cassettes/configuration/client_credentials/invalid.yml +0 -64
- data/spec/fixtures/vcr_cassettes/configuration/client_credentials/valid.yml +0 -56
- data/spec/fixtures/vcr_cassettes/extra/userinfo/authenticated.yml +0 -58
- data/spec/fixtures/vcr_cassettes/extra/userinfo/not_authenticated.yml +0 -54
- data/spec/fixtures/vcr_cassettes/last_request/userinfo.yml +0 -58
- data/spec/fixtures/vcr_cassettes/resources/bank_billet/cancel/failure.yml +0 -118
- data/spec/fixtures/vcr_cassettes/resources/partner/user/create.yml +0 -60
- data/spec/spec.opts +0 -8
@@ -2,23 +2,23 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://sandbox.boletosimples.com.br/api/v1/customers
|
5
|
+
uri: https://sandbox.boletosimples.com.br/api/v1/customers
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"customer":{"person_name":"Maria José","cnpj_cpf":"
|
8
|
+
string: '{"customer":{"person_name":"Maria José","cnpj_cpf":"54.872.822/0001-91","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:
|
12
12
|
User-Agent:
|
13
|
-
-
|
13
|
+
- email@minhaempresa.com.br
|
14
14
|
Authorization:
|
15
|
-
-
|
15
|
+
- Bearer BOLETOSIMPLES_API_TOKEN
|
16
16
|
Content-Type:
|
17
17
|
- application/json
|
18
|
+
Accept:
|
19
|
+
- application/json
|
18
20
|
Accept-Encoding:
|
19
21
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
|
-
Accept:
|
21
|
-
- "*/*"
|
22
22
|
response:
|
23
23
|
status:
|
24
24
|
code: 201
|
@@ -28,38 +28,50 @@ http_interactions:
|
|
28
28
|
- Cowboy
|
29
29
|
Connection:
|
30
30
|
- keep-alive
|
31
|
-
|
32
|
-
-
|
31
|
+
X-Frame-Options:
|
32
|
+
- DENY
|
33
|
+
X-Xss-Protection:
|
34
|
+
- 1; mode=block
|
35
|
+
X-Content-Type-Options:
|
36
|
+
- nosniff
|
37
|
+
X-Download-Options:
|
38
|
+
- noopen
|
39
|
+
X-Permitted-Cross-Domain-Policies:
|
40
|
+
- none
|
41
|
+
Referrer-Policy:
|
42
|
+
- strict-origin-when-cross-origin
|
33
43
|
Location:
|
34
|
-
- https://sandbox.boletosimples.com.br/api/v1/customers/
|
44
|
+
- https://sandbox.boletosimples.com.br/api/v1/customers/80825
|
35
45
|
Content-Type:
|
36
46
|
- application/json; charset=utf-8
|
37
47
|
X-Ratelimit-Limit:
|
38
|
-
- '
|
48
|
+
- '1000'
|
39
49
|
X-Ratelimit-Remaining:
|
40
|
-
- '
|
50
|
+
- '973'
|
41
51
|
Etag:
|
42
|
-
- W/"
|
52
|
+
- W/"bf421a7739e6fb5b4a0a6574f14546dc"
|
43
53
|
Cache-Control:
|
44
54
|
- max-age=0, private, must-revalidate
|
45
55
|
X-Request-Id:
|
46
|
-
-
|
56
|
+
- bb3b5ce6-4428-40df-a4b7-1fa6bcf98aec
|
47
57
|
X-Runtime:
|
48
|
-
- '0.
|
58
|
+
- '0.069261'
|
49
59
|
Date:
|
50
|
-
-
|
60
|
+
- Tue, 13 Apr 2021 17:19:09 GMT
|
51
61
|
X-Rack-Cache:
|
52
62
|
- invalidate, pass
|
63
|
+
Strict-Transport-Security:
|
64
|
+
- max-age=2629746
|
53
65
|
Vary:
|
54
|
-
- Accept-Encoding
|
66
|
+
- Origin,Accept-Encoding
|
55
67
|
Transfer-Encoding:
|
56
68
|
- chunked
|
57
69
|
Via:
|
58
70
|
- 1.1 vegur
|
59
71
|
body:
|
60
72
|
encoding: UTF-8
|
61
|
-
string: '{"id":
|
62
|
-
quinhentos","address_complement":"Sala 4","address_number":"111","mobile_number":null,"cnpj_cpf":"
|
63
|
-
|
64
|
-
recorded_at:
|
65
|
-
recorded_with: VCR
|
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
|
77
|
+
recorded_with: VCR 6.0.0
|
@@ -2,19 +2,19 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://sandbox.boletosimples.com.br/api/v1/customers/
|
5
|
+
uri: https://sandbox.boletosimples.com.br/api/v1/customers/80825
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
-
|
11
|
+
- email@minhaempresa.com.br
|
12
12
|
Authorization:
|
13
|
-
-
|
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
|
@@ -24,36 +24,50 @@ http_interactions:
|
|
24
24
|
- Cowboy
|
25
25
|
Connection:
|
26
26
|
- keep-alive
|
27
|
-
|
28
|
-
-
|
27
|
+
X-Frame-Options:
|
28
|
+
- DENY
|
29
|
+
X-Xss-Protection:
|
30
|
+
- 1; mode=block
|
31
|
+
X-Content-Type-Options:
|
32
|
+
- nosniff
|
33
|
+
X-Download-Options:
|
34
|
+
- noopen
|
35
|
+
X-Permitted-Cross-Domain-Policies:
|
36
|
+
- none
|
37
|
+
Referrer-Policy:
|
38
|
+
- strict-origin-when-cross-origin
|
39
|
+
Location:
|
40
|
+
- https://sandbox.boletosimples.com.br/api/v1/customers/80825
|
29
41
|
Content-Type:
|
30
42
|
- application/json; charset=utf-8
|
31
43
|
X-Ratelimit-Limit:
|
32
|
-
- '
|
44
|
+
- '60'
|
33
45
|
X-Ratelimit-Remaining:
|
34
|
-
- '
|
46
|
+
- '33'
|
35
47
|
Etag:
|
36
|
-
- W/"
|
48
|
+
- W/"bf421a7739e6fb5b4a0a6574f14546dc"
|
37
49
|
Cache-Control:
|
38
50
|
- must-revalidate, private, max-age=0
|
39
51
|
X-Request-Id:
|
40
|
-
-
|
52
|
+
- 63ba0393-f0c9-4be2-82b6-f954656cdee5
|
41
53
|
X-Runtime:
|
42
|
-
- '0.
|
54
|
+
- '0.031891'
|
43
55
|
Date:
|
44
|
-
-
|
56
|
+
- Tue, 13 Apr 2021 17:19:10 GMT
|
45
57
|
X-Rack-Cache:
|
46
58
|
- miss
|
59
|
+
Strict-Transport-Security:
|
60
|
+
- max-age=2629746
|
47
61
|
Vary:
|
48
|
-
- Accept-Encoding
|
62
|
+
- Origin,Accept-Encoding
|
49
63
|
Transfer-Encoding:
|
50
64
|
- chunked
|
51
65
|
Via:
|
52
66
|
- 1.1 vegur
|
53
67
|
body:
|
54
68
|
encoding: UTF-8
|
55
|
-
string: '{"id":
|
56
|
-
quinhentos","address_complement":"Sala 4","address_number":"111","mobile_number":null,"cnpj_cpf":"
|
57
|
-
|
58
|
-
recorded_at:
|
59
|
-
recorded_with: VCR
|
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
|
73
|
+
recorded_with: VCR 6.0.0
|
@@ -2,90 +2,73 @@
|
|
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://sandbox.boletosimples.com.br/api/v1/imports/customers
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
-
|
11
|
+
- email@minhaempresa.com.br
|
12
12
|
Authorization:
|
13
|
-
-
|
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
|
+
Server:
|
24
|
+
- Cowboy
|
23
25
|
Connection:
|
24
26
|
- keep-alive
|
25
|
-
|
26
|
-
-
|
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:17 GMT
|
35
|
-
Vary:
|
36
|
-
- Origin,Accept-Encoding
|
37
|
-
Strict-Transport-Security:
|
38
|
-
- max-age=631138519
|
39
|
-
X-Permitted-Cross-Domain-Policies:
|
40
|
-
- none
|
27
|
+
X-Frame-Options:
|
28
|
+
- DENY
|
41
29
|
X-Xss-Protection:
|
42
30
|
- 1; mode=block
|
43
|
-
X-
|
44
|
-
-
|
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
|
-
Total:
|
61
|
-
- '6'
|
31
|
+
X-Content-Type-Options:
|
32
|
+
- nosniff
|
62
33
|
X-Download-Options:
|
63
34
|
- noopen
|
35
|
+
X-Permitted-Cross-Domain-Policies:
|
36
|
+
- none
|
37
|
+
Referrer-Policy:
|
38
|
+
- strict-origin-when-cross-origin
|
39
|
+
Per-Page:
|
40
|
+
- '50'
|
41
|
+
Page:
|
42
|
+
- ''
|
43
|
+
Content-Type:
|
44
|
+
- application/json; charset=utf-8
|
45
|
+
X-Ratelimit-Limit:
|
46
|
+
- '60'
|
47
|
+
X-Ratelimit-Remaining:
|
48
|
+
- '55'
|
64
49
|
Etag:
|
65
|
-
- W/"
|
50
|
+
- W/"b2fa3b7aea3069b3f91a25409d0357da"
|
51
|
+
Cache-Control:
|
52
|
+
- must-revalidate, private, max-age=0
|
53
|
+
X-Request-Id:
|
54
|
+
- a4954e35-0a78-44db-9bfc-e5f57ea14ecc
|
66
55
|
X-Runtime:
|
67
|
-
- '0.
|
68
|
-
|
69
|
-
-
|
70
|
-
X-Content-Type-Options:
|
71
|
-
- nosniff
|
56
|
+
- '0.029875'
|
57
|
+
Date:
|
58
|
+
- Tue, 13 Apr 2021 17:18:26 GMT
|
72
59
|
X-Rack-Cache:
|
73
60
|
- miss
|
74
|
-
|
75
|
-
-
|
76
|
-
|
77
|
-
-
|
61
|
+
Strict-Transport-Security:
|
62
|
+
- max-age=2629746
|
63
|
+
Vary:
|
64
|
+
- Origin,Accept-Encoding
|
65
|
+
Transfer-Encoding:
|
66
|
+
- chunked
|
78
67
|
Via:
|
79
68
|
- 1.1 vegur
|
80
69
|
body:
|
81
70
|
encoding: UTF-8
|
82
|
-
string: '[{"id":
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
pode ficar em branco","Numero do Celular":"não é um número de celular"}]],"processed_rows":1,"total_rows":1,"updated_rows":0,"source_content_type":"text/plain","source_file_name":"cobregratis-customers.csv","source_file_size":398,"source_updated_at":"2017-06-15T23:15:30-03:00","status":"done"},{"id":3,"created_rows":0,"records_count":null,"enqueued_at":"2017-06-15T23:22:46-03:00","started_at":"2017-06-15T23:22:46-03:00","finished_at":"2017-06-15T23:22:46-03:00","processed_at":null,"failed_to_create_rows":1,"failed_to_update_rows":0,"import_errors":[[1,{"Numero
|
87
|
-
do Celular":"não é um número de celular"}]],"processed_rows":1,"total_rows":1,"updated_rows":0,"source_content_type":"text/plain","source_file_name":"cobregratis-customers.csv","source_file_size":422,"source_updated_at":"2017-06-15T23:22:46-03:00","status":"done"},{"id":4,"created_rows":1,"records_count":1,"enqueued_at":"2017-06-15T23:23:24-03:00","started_at":"2017-06-15T23:23:24-03:00","finished_at":"2017-06-15T23:23:24-03:00","processed_at":null,"failed_to_create_rows":0,"failed_to_update_rows":0,"import_errors":[],"processed_rows":1,"total_rows":1,"updated_rows":0,"source_content_type":"text/plain","source_file_name":"cobregratis-customers.csv","source_file_size":423,"source_updated_at":"2017-06-15T23:23:24-03:00","status":"done"},{"id":5,"created_rows":2,"records_count":2,"enqueued_at":"2017-06-16T00:44:55-03:00","started_at":"2017-06-16T00:44:56-03:00","finished_at":"2017-06-16T00:44:56-03:00","processed_at":null,"failed_to_create_rows":2,"failed_to_update_rows":0,"import_errors":[[1,{"E-mail":"não
|
88
|
-
é válido"}],[2,{"CNPJ/CPF":"não pode ficar em branco"}]],"processed_rows":4,"total_rows":4,"updated_rows":0,"source_content_type":"text/plain","source_file_name":"customers.csv","source_file_size":810,"source_updated_at":"2017-06-16T00:44:55-03:00","status":"done"},{"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"}]'
|
89
|
-
http_version:
|
90
|
-
recorded_at: Fri, 16 Jun 2017 03:50:17 GMT
|
91
|
-
recorded_with: VCR 3.0.3
|
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
|
74
|
+
recorded_with: VCR 6.0.0
|
@@ -2,82 +2,68 @@
|
|
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://sandbox.boletosimples.com.br/api/v1/imports/customers
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: customer_import
|
8
|
+
string: '{"customer_import":{"source":""}}'
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
-
|
11
|
+
- email@minhaempresa.com.br
|
12
12
|
Authorization:
|
13
|
-
-
|
13
|
+
- Bearer BOLETOSIMPLES_API_TOKEN
|
14
14
|
Content-Type:
|
15
|
-
- application/
|
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
|
+
Server:
|
26
|
+
- Cowboy
|
25
27
|
Connection:
|
26
28
|
- keep-alive
|
29
|
+
X-Frame-Options:
|
30
|
+
- DENY
|
31
|
+
X-Xss-Protection:
|
32
|
+
- 1; mode=block
|
33
|
+
X-Content-Type-Options:
|
34
|
+
- nosniff
|
35
|
+
X-Download-Options:
|
36
|
+
- noopen
|
37
|
+
X-Permitted-Cross-Domain-Policies:
|
38
|
+
- none
|
39
|
+
Referrer-Policy:
|
40
|
+
- strict-origin-when-cross-origin
|
27
41
|
Content-Type:
|
28
42
|
- application/json; charset=utf-8
|
29
|
-
|
30
|
-
-
|
31
|
-
|
32
|
-
-
|
43
|
+
X-Ratelimit-Limit:
|
44
|
+
- '1000'
|
45
|
+
X-Ratelimit-Remaining:
|
46
|
+
- '994'
|
33
47
|
Cache-Control:
|
34
48
|
- no-cache
|
35
|
-
Date:
|
36
|
-
- Fri, 16 Jun 2017 03:50:18 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
49
|
X-Request-Id:
|
46
|
-
-
|
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
|
50
|
+
- a395df61-0cf9-4fb0-bebc-268f79161a70
|
64
51
|
X-Runtime:
|
65
|
-
- '0.
|
66
|
-
|
67
|
-
-
|
68
|
-
X-Content-Type-Options:
|
69
|
-
- nosniff
|
52
|
+
- '0.020696'
|
53
|
+
Date:
|
54
|
+
- Tue, 13 Apr 2021 17:18:25 GMT
|
70
55
|
X-Rack-Cache:
|
71
56
|
- invalidate, pass
|
72
|
-
|
73
|
-
-
|
74
|
-
|
75
|
-
-
|
57
|
+
Strict-Transport-Security:
|
58
|
+
- max-age=2629746
|
59
|
+
Vary:
|
60
|
+
- Origin,Accept-Encoding
|
61
|
+
Transfer-Encoding:
|
62
|
+
- chunked
|
76
63
|
Via:
|
77
64
|
- 1.1 vegur
|
78
65
|
body:
|
79
66
|
encoding: UTF-8
|
80
67
|
string: '{"errors":{"source":["não pode ficar em branco"]}}'
|
81
|
-
|
82
|
-
|
83
|
-
recorded_with: VCR 3.0.3
|
68
|
+
recorded_at: Tue, 13 Apr 2021 17:18:25 GMT
|
69
|
+
recorded_with: VCR 6.0.0
|
@@ -2,82 +2,68 @@
|
|
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://sandbox.boletosimples.com.br/api/v1/imports/customers
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: ''
|
8
|
+
string: '{"customer_import":{}}'
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
-
|
11
|
+
- email@minhaempresa.com.br
|
12
12
|
Authorization:
|
13
|
-
-
|
13
|
+
- Bearer BOLETOSIMPLES_API_TOKEN
|
14
14
|
Content-Type:
|
15
|
-
- application/
|
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
|
+
Server:
|
26
|
+
- Cowboy
|
25
27
|
Connection:
|
26
28
|
- keep-alive
|
29
|
+
X-Frame-Options:
|
30
|
+
- DENY
|
31
|
+
X-Xss-Protection:
|
32
|
+
- 1; mode=block
|
33
|
+
X-Content-Type-Options:
|
34
|
+
- nosniff
|
35
|
+
X-Download-Options:
|
36
|
+
- noopen
|
37
|
+
X-Permitted-Cross-Domain-Policies:
|
38
|
+
- none
|
39
|
+
Referrer-Policy:
|
40
|
+
- strict-origin-when-cross-origin
|
27
41
|
Content-Type:
|
28
42
|
- application/json; charset=utf-8
|
29
|
-
|
30
|
-
-
|
31
|
-
|
32
|
-
-
|
43
|
+
X-Ratelimit-Limit:
|
44
|
+
- '1000'
|
45
|
+
X-Ratelimit-Remaining:
|
46
|
+
- '995'
|
33
47
|
Cache-Control:
|
34
48
|
- 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
49
|
X-Request-Id:
|
46
|
-
-
|
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
|
50
|
+
- e7116d6b-79c4-4fa2-ae97-92ff6c54ce5f
|
64
51
|
X-Runtime:
|
65
|
-
- '0.
|
66
|
-
|
67
|
-
-
|
68
|
-
X-Content-Type-Options:
|
69
|
-
- nosniff
|
52
|
+
- '0.018460'
|
53
|
+
Date:
|
54
|
+
- Tue, 13 Apr 2021 17:18:24 GMT
|
70
55
|
X-Rack-Cache:
|
71
56
|
- invalidate, pass
|
72
|
-
|
73
|
-
-
|
74
|
-
|
75
|
-
-
|
57
|
+
Strict-Transport-Security:
|
58
|
+
- max-age=2629746
|
59
|
+
Vary:
|
60
|
+
- Origin,Accept-Encoding
|
61
|
+
Transfer-Encoding:
|
62
|
+
- chunked
|
76
63
|
Via:
|
77
64
|
- 1.1 vegur
|
78
65
|
body:
|
79
66
|
encoding: UTF-8
|
80
|
-
string: '{"errors":{"
|
81
|
-
|
82
|
-
|
83
|
-
recorded_with: VCR 3.0.3
|
67
|
+
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
|
69
|
+
recorded_with: VCR 6.0.0
|