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,21 +2,23 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://sandbox.boletosimples.com.br/api/v1/bank_billet_accounts
|
5
|
+
uri: https://sandbox.boletosimples.com.br/api/v1/bank_billet_accounts
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: bank_billet_account
|
8
|
+
string: '{"bank_billet_account":{"bank_contract_slug":"sicoob-02","next_our_number":"1","agency_number":"4327","agency_digit":"3","account_number":"3666","account_digit":"8","extra1":"1234567","beneficiary_name":"XPTO
|
9
|
+
S.A.","beneficiary_cnpj_cpf":"22.622.867/0001-11","beneficiary_address_street":"Rua
|
10
|
+
S","beneficiary_address_city":"São Paulo","beneficiary_address_state":"SP","beneficiary_address_neighborhood":"Moema","beneficiary_address_zipcode":"04524030"}}'
|
9
11
|
headers:
|
10
12
|
User-Agent:
|
11
|
-
-
|
13
|
+
- email@minhaempresa.com.br
|
12
14
|
Authorization:
|
13
|
-
-
|
15
|
+
- Bearer BOLETOSIMPLES_API_TOKEN
|
14
16
|
Content-Type:
|
15
|
-
- application/
|
17
|
+
- application/json
|
18
|
+
Accept:
|
19
|
+
- application/json
|
16
20
|
Accept-Encoding:
|
17
21
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
|
-
Accept:
|
19
|
-
- "*/*"
|
20
22
|
response:
|
21
23
|
status:
|
22
24
|
code: 201
|
@@ -26,37 +28,55 @@ http_interactions:
|
|
26
28
|
- Cowboy
|
27
29
|
Connection:
|
28
30
|
- keep-alive
|
29
|
-
|
30
|
-
-
|
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
|
31
43
|
Location:
|
32
|
-
- https://sandbox.boletosimples.com.br/api/v1/bank_billet_accounts/
|
44
|
+
- https://sandbox.boletosimples.com.br/api/v1/bank_billet_accounts/3562
|
33
45
|
Content-Type:
|
34
46
|
- application/json; charset=utf-8
|
35
47
|
X-Ratelimit-Limit:
|
36
|
-
- '
|
48
|
+
- '1000'
|
37
49
|
X-Ratelimit-Remaining:
|
38
|
-
- '
|
50
|
+
- '980'
|
39
51
|
Etag:
|
40
|
-
- W/"
|
52
|
+
- W/"bf3d5ab0ca5f9e0058f0cce47f121d91"
|
41
53
|
Cache-Control:
|
42
54
|
- max-age=0, private, must-revalidate
|
43
55
|
X-Request-Id:
|
44
|
-
-
|
56
|
+
- 21c3fa74-7053-4428-848f-90270b6665e2
|
45
57
|
X-Runtime:
|
46
|
-
- '0.
|
58
|
+
- '0.137156'
|
47
59
|
Date:
|
48
|
-
-
|
60
|
+
- Tue, 13 Apr 2021 17:18:50 GMT
|
49
61
|
X-Rack-Cache:
|
50
62
|
- invalidate, pass
|
63
|
+
Strict-Transport-Security:
|
64
|
+
- max-age=2629746
|
51
65
|
Vary:
|
52
|
-
- Accept-Encoding
|
66
|
+
- Origin,Accept-Encoding
|
53
67
|
Transfer-Encoding:
|
54
68
|
- chunked
|
55
69
|
Via:
|
56
70
|
- 1.1 vegur
|
57
71
|
body:
|
58
72
|
encoding: UTF-8
|
59
|
-
string: '{"id":
|
60
|
-
|
61
|
-
|
62
|
-
|
73
|
+
string: '{"id":3562,"bank_contract_slug":"sicoob-02","next_our_number":1,"agency_number":"4327","agency_digit":"3","account_number":"00003666","account_digit":"8","extra1":"1234567","extra1_digit":null,"extra2":null,"extra2_digit":null,"extra3":null,"beneficiary_name":"XPTO
|
74
|
+
S.A.","beneficiary_cnpj_cpf":"22.622.867/0001-11","beneficiary_address":"Rua
|
75
|
+
S, , - Moema, São Paulo - SP, 04524030","name":"Bancoob/Sicoob 02 CC: 00003666-8
|
76
|
+
1234567","status":"pending","bank_contract":{"bank":{"code":"sicoob","name":"Bancoob/Sicoob","number":"756"},"slug":"sicoob-02","code":"2","sufix":"02","variation":null,"name":"1/02
|
77
|
+
- Simples Sem Registro"},"integration":false,"created_via_api":true,"homologated_at":null,"next_remittance_number":1,"configuration":null,"default":false,"custom_name":"Bancoob/Sicoob
|
78
|
+
02 CC: 3666-8 1234567","kind":"cnab400","beneficiary_address_street":"Rua
|
79
|
+
S","beneficiary_address_street_number":null,"beneficiary_address_complement":null,"beneficiary_address_city":"São
|
80
|
+
Paulo","beneficiary_address_neighborhood":"Moema","beneficiary_address_state":"SP","beneficiary_address_zipcode":"04524030","allow_expiration_on_weekends":false}'
|
81
|
+
recorded_at: Tue, 13 Apr 2021 17:18:50 GMT
|
82
|
+
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/bank_billet_accounts/
|
5
|
+
uri: https://sandbox.boletosimples.com.br/api/v1/bank_billet_accounts/3562
|
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,35 +24,55 @@ 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/bank_billet_accounts/3562
|
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
|
+
- '41'
|
35
47
|
Etag:
|
36
|
-
- W/"
|
48
|
+
- W/"bf3d5ab0ca5f9e0058f0cce47f121d91"
|
37
49
|
Cache-Control:
|
38
50
|
- must-revalidate, private, max-age=0
|
39
51
|
X-Request-Id:
|
40
|
-
-
|
52
|
+
- 88798a01-6635-4430-9eb5-685884f2f797
|
41
53
|
X-Runtime:
|
42
|
-
- '0.
|
54
|
+
- '0.088745'
|
43
55
|
Date:
|
44
|
-
-
|
56
|
+
- Tue, 13 Apr 2021 17:18:53 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
|
-
|
57
|
-
|
58
|
-
|
69
|
+
string: '{"id":3562,"bank_contract_slug":"sicoob-02","next_our_number":1,"agency_number":"4327","agency_digit":"3","account_number":"00003666","account_digit":"8","extra1":"1234567","extra1_digit":null,"extra2":null,"extra2_digit":null,"extra3":null,"beneficiary_name":"XPTO
|
70
|
+
S.A.","beneficiary_cnpj_cpf":"22.622.867/0001-11","beneficiary_address":"Rua
|
71
|
+
S, , - Moema, São Paulo - SP, 04524030","name":"Bancoob/Sicoob 02 CC: 00003666-8
|
72
|
+
1234567","status":"pending","bank_contract":{"bank":{"code":"sicoob","name":"Bancoob/Sicoob","number":"756"},"slug":"sicoob-02","code":"2","sufix":"02","variation":null,"name":"1/02
|
73
|
+
- Simples Sem Registro"},"integration":false,"created_via_api":true,"homologated_at":null,"next_remittance_number":1,"configuration":null,"default":false,"custom_name":"Bancoob/Sicoob
|
74
|
+
02 CC: 3666-8 1234567","kind":"cnab400","beneficiary_address_street":"Rua
|
75
|
+
S","beneficiary_address_street_number":null,"beneficiary_address_complement":null,"beneficiary_address_city":"São
|
76
|
+
Paulo","beneficiary_address_neighborhood":"Moema","beneficiary_address_state":"SP","beneficiary_address_zipcode":"04524030","allow_expiration_on_weekends":false}'
|
77
|
+
recorded_at: Tue, 13 Apr 2021 17:18:54 GMT
|
78
|
+
recorded_with: VCR 6.0.0
|
@@ -2,77 +2,96 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://sandbox.boletosimples.com.br/api/v1/bank_billet_discharges
|
5
|
+
uri: https://sandbox.boletosimples.com.br/api/v1/bank_billet_discharges
|
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, 14 Dec 2018 19:23:01 GMT
|
35
|
-
Vary:
|
36
|
-
- Origin,Accept-Encoding
|
37
|
-
Strict-Transport-Security:
|
38
|
-
- max-age=2629746
|
39
|
-
Referrer-Policy:
|
40
|
-
- strict-origin-when-cross-origin
|
41
|
-
X-Permitted-Cross-Domain-Policies:
|
42
|
-
- none
|
27
|
+
X-Frame-Options:
|
28
|
+
- DENY
|
43
29
|
X-Xss-Protection:
|
44
30
|
- 1; mode=block
|
45
|
-
X-
|
46
|
-
-
|
47
|
-
Link:
|
48
|
-
- <https://sandbox.boletosimples.com.br/api/v1/bank_billet_discharges?access_token=BOLETOSIMPLES_ACCESS_TOKEN&page=2>;
|
49
|
-
rel="last", <https://sandbox.boletosimples.com.br/api/v1/bank_billet_discharges?access_token=BOLETOSIMPLES_ACCESS_TOKEN&page=2>;
|
50
|
-
rel="next"
|
31
|
+
X-Content-Type-Options:
|
32
|
+
- nosniff
|
51
33
|
X-Download-Options:
|
52
34
|
- noopen
|
53
|
-
|
54
|
-
-
|
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
|
+
- '35'
|
55
49
|
Etag:
|
56
|
-
- W/"
|
57
|
-
|
58
|
-
-
|
50
|
+
- W/"83d94cd19dfdfbbdcd3423e405beb4de"
|
51
|
+
Cache-Control:
|
52
|
+
- must-revalidate, private, max-age=0
|
53
|
+
X-Request-Id:
|
54
|
+
- d325b022-cfb0-44b0-9275-a8fd3f54b65d
|
59
55
|
X-Runtime:
|
60
|
-
- '0.
|
61
|
-
|
62
|
-
-
|
56
|
+
- '0.034622'
|
57
|
+
Date:
|
58
|
+
- Tue, 13 Apr 2021 17:19:02 GMT
|
63
59
|
X-Rack-Cache:
|
64
60
|
- miss
|
65
|
-
|
66
|
-
-
|
67
|
-
|
68
|
-
-
|
61
|
+
Strict-Transport-Security:
|
62
|
+
- max-age=2629746
|
63
|
+
Vary:
|
64
|
+
- Origin,Accept-Encoding
|
65
|
+
Transfer-Encoding:
|
66
|
+
- chunked
|
69
67
|
Via:
|
70
68
|
- 1.1 vegur
|
71
69
|
body:
|
72
70
|
encoding: UTF-8
|
73
|
-
string: '[{"id":
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
71
|
+
string: '[{"id":19810,"occurrence":"10","date_of_occurrence":"2020-03-20","discharge_id":3192,"bank_billet_id":null,"occurrence_error":"00","line_parsed":{"iof":"0","paid_at":"2020-03-20","cnpj_cpf":"78796613000141","discount":"0","bank_rate":"30","credit_at":"2020-03-20","error_code":"00","event_type":"10","our_number":"04958535","billet_fine":"0","paid_amount":"0","other_credit":"0","value_rebate":"0","agency_number":"6519","credit_amount":"0","account_number":"90009999","conta_cobranca":"90009999","control_number":"","banco_recebedor":"033","document_number":"495853","agencia_recebedora":"1651"},"line_raw":{"line_raw":"1027879661300014165199000999990009999 04958535 510200320495853 0495853500 12111900000000300350331651901000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
72
|
+
N 200320 SOLUCOES DIGITAIS L 00000000000000000000000000000000000000000C 325000002"},"processed_at":"2021-04-13T14:18:50-03:00","occurrence_detail":"Título
|
73
|
+
Baixado Conforme Instrução Ou Por Título Protestado 11 = Em Ser","occurrence_error_detail":null,"our_occurrence":"2074","bank_billet_account_id":null,"bank_number":"033","created_at":"2021-04-13T14:18:50-03:00","kind":"400"},{"id":19809,"occurrence":"10","date_of_occurrence":"2020-03-20","discharge_id":3191,"bank_billet_id":null,"occurrence_error":"00","line_parsed":{"iof":"0","paid_at":"2020-03-20","cnpj_cpf":"78796613000141","discount":"0","bank_rate":"30","credit_at":"2020-03-20","error_code":"00","event_type":"10","our_number":"04958535","billet_fine":"0","paid_amount":"0","other_credit":"0","value_rebate":"0","agency_number":"6519","credit_amount":"0","account_number":"90009999","conta_cobranca":"90009999","control_number":"","banco_recebedor":"033","document_number":"495853","agencia_recebedora":"1651"},"line_raw":{"line_raw":"1027879661300014165199000999990009999 04958535 510200320495853 0495853500 12111900000000300350331651901000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
74
|
+
N 200320 SOLUCOES DIGITAIS L 00000000000000000000000000000000000000000C 325000002"},"processed_at":"2021-04-13T11:44:18-03:00","occurrence_detail":"Título
|
75
|
+
Baixado Conforme Instrução Ou Por Título Protestado 11 = Em Ser","occurrence_error_detail":null,"our_occurrence":"2074","bank_billet_account_id":null,"bank_number":"033","created_at":"2021-04-13T11:44:18-03:00","kind":"400"},{"id":19808,"occurrence":"10","date_of_occurrence":"2020-03-20","discharge_id":3190,"bank_billet_id":null,"occurrence_error":"00","line_parsed":{"iof":"0","paid_at":"2020-03-20","cnpj_cpf":"78796613000141","discount":"0","bank_rate":"30","credit_at":"2020-03-20","error_code":"00","event_type":"10","our_number":"04958535","billet_fine":"0","paid_amount":"0","other_credit":"0","value_rebate":"0","agency_number":"6519","credit_amount":"0","account_number":"90009999","conta_cobranca":"90009999","control_number":"","banco_recebedor":"033","document_number":"495853","agencia_recebedora":"1651"},"line_raw":{"line_raw":"1027879661300014165199000999990009999 04958535 510200320495853 0495853500 12111900000000300350331651901000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
76
|
+
N 200320 SOLUCOES DIGITAIS L 00000000000000000000000000000000000000000C 325000002"},"processed_at":"2021-04-13T11:40:03-03:00","occurrence_detail":"Título
|
77
|
+
Baixado Conforme Instrução Ou Por Título Protestado 11 = Em Ser","occurrence_error_detail":null,"our_occurrence":"2074","bank_billet_account_id":null,"bank_number":"033","created_at":"2021-04-13T11:40:03-03:00","kind":"400"},{"id":19807,"occurrence":"10","date_of_occurrence":"2020-03-20","discharge_id":3189,"bank_billet_id":null,"occurrence_error":"00","line_parsed":{"iof":"0","paid_at":"2020-03-20","cnpj_cpf":"78796613000141","discount":"0","bank_rate":"30","credit_at":"2020-03-20","error_code":"00","event_type":"10","our_number":"04958535","billet_fine":"0","paid_amount":"0","other_credit":"0","value_rebate":"0","agency_number":"6519","credit_amount":"0","account_number":"90009999","conta_cobranca":"90009999","control_number":"","banco_recebedor":"033","document_number":"495853","agencia_recebedora":"1651"},"line_raw":{"line_raw":"1027879661300014165199000999990009999 04958535 510200320495853 0495853500 12111900000000300350331651901000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
78
|
+
N 200320 SOLUCOES DIGITAIS L 00000000000000000000000000000000000000000C 325000002"},"processed_at":"2021-04-13T11:35:31-03:00","occurrence_detail":"Título
|
79
|
+
Baixado Conforme Instrução Ou Por Título Protestado 11 = Em Ser","occurrence_error_detail":null,"our_occurrence":"2074","bank_billet_account_id":null,"bank_number":"033","created_at":"2021-04-13T11:35:31-03:00","kind":"400"},{"id":19806,"occurrence":"10","date_of_occurrence":"2020-03-20","discharge_id":3188,"bank_billet_id":null,"occurrence_error":"00","line_parsed":{"iof":"0","paid_at":"2020-03-20","cnpj_cpf":"78796613000141","discount":"0","bank_rate":"30","credit_at":"2020-03-20","error_code":"00","event_type":"10","our_number":"04958535","billet_fine":"0","paid_amount":"0","other_credit":"0","value_rebate":"0","agency_number":"6519","credit_amount":"0","account_number":"90009999","conta_cobranca":"90009999","control_number":"","banco_recebedor":"033","document_number":"495853","agencia_recebedora":"1651"},"line_raw":{"line_raw":"1027879661300014165199000999990009999 04958535 510200320495853 0495853500 12111900000000300350331651901000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
80
|
+
N 200320 SOLUCOES DIGITAIS L 00000000000000000000000000000000000000000C 325000002"},"processed_at":"2021-04-13T11:26:08-03:00","occurrence_detail":"Título
|
81
|
+
Baixado Conforme Instrução Ou Por Título Protestado 11 = Em Ser","occurrence_error_detail":null,"our_occurrence":"2074","bank_billet_account_id":null,"bank_number":"033","created_at":"2021-04-13T11:26:08-03:00","kind":"400"},{"id":19805,"occurrence":"10","date_of_occurrence":"2020-03-20","discharge_id":3187,"bank_billet_id":null,"occurrence_error":"00","line_parsed":{"iof":"0","paid_at":"2020-03-20","cnpj_cpf":"78796613000141","discount":"0","bank_rate":"30","credit_at":"2020-03-20","error_code":"00","event_type":"10","our_number":"04958535","billet_fine":"0","paid_amount":"0","other_credit":"0","value_rebate":"0","agency_number":"6519","credit_amount":"0","account_number":"90009999","conta_cobranca":"90009999","control_number":"","banco_recebedor":"033","document_number":"495853","agencia_recebedora":"1651"},"line_raw":{"line_raw":"1027879661300014165199000999990009999 04958535 510200320495853 0495853500 12111900000000300350331651901000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
82
|
+
N 200320 SOLUCOES DIGITAIS L 00000000000000000000000000000000000000000C 325000002"},"processed_at":"2021-04-13T11:22:11-03:00","occurrence_detail":"Título
|
83
|
+
Baixado Conforme Instrução Ou Por Título Protestado 11 = Em Ser","occurrence_error_detail":null,"our_occurrence":"2074","bank_billet_account_id":null,"bank_number":"033","created_at":"2021-04-13T11:22:11-03:00","kind":"400"},{"id":19804,"occurrence":"10","date_of_occurrence":"2020-03-20","discharge_id":3186,"bank_billet_id":null,"occurrence_error":"00","line_parsed":{"iof":"0","paid_at":"2020-03-20","cnpj_cpf":"78796613000141","discount":"0","bank_rate":"30","credit_at":"2020-03-20","error_code":"00","event_type":"10","our_number":"04958535","billet_fine":"0","paid_amount":"0","other_credit":"0","value_rebate":"0","agency_number":"6519","credit_amount":"0","account_number":"90009999","conta_cobranca":"90009999","control_number":"","banco_recebedor":"033","document_number":"495853","agencia_recebedora":"1651"},"line_raw":{"line_raw":"1027879661300014165199000999990009999 04958535 510200320495853 0495853500 12111900000000300350331651901000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
84
|
+
N 200320 SOLUCOES DIGITAIS L 00000000000000000000000000000000000000000C 325000002"},"processed_at":"2021-04-13T11:10:39-03:00","occurrence_detail":"Título
|
85
|
+
Baixado Conforme Instrução Ou Por Título Protestado 11 = Em Ser","occurrence_error_detail":null,"our_occurrence":"2074","bank_billet_account_id":null,"bank_number":"033","created_at":"2021-04-13T11:10:39-03:00","kind":"400"},{"id":19803,"occurrence":"10","date_of_occurrence":"2020-03-20","discharge_id":3185,"bank_billet_id":null,"occurrence_error":"00","line_parsed":{"iof":"0","paid_at":"2020-03-20","cnpj_cpf":"78796613000141","discount":"0","bank_rate":"30","credit_at":"2020-03-20","error_code":"00","event_type":"10","our_number":"04958535","billet_fine":"0","paid_amount":"0","other_credit":"0","value_rebate":"0","agency_number":"6519","credit_amount":"0","account_number":"90009999","conta_cobranca":"90009999","control_number":"","banco_recebedor":"033","document_number":"495853","agencia_recebedora":"1651"},"line_raw":{"line_raw":"1027879661300014165199000999990009999 04958535 510200320495853 0495853500 12111900000000300350331651901000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
86
|
+
N 200320 SOLUCOES DIGITAIS L 00000000000000000000000000000000000000000C 325000002"},"processed_at":"2021-04-13T11:05:50-03:00","occurrence_detail":"Título
|
87
|
+
Baixado Conforme Instrução Ou Por Título Protestado 11 = Em Ser","occurrence_error_detail":null,"our_occurrence":"2074","bank_billet_account_id":null,"bank_number":"033","created_at":"2021-04-13T11:05:50-03:00","kind":"400"},{"id":19802,"occurrence":"10","date_of_occurrence":"2020-03-20","discharge_id":3184,"bank_billet_id":null,"occurrence_error":"00","line_parsed":{"iof":"0","paid_at":"2020-03-20","cnpj_cpf":"78796613000141","discount":"0","bank_rate":"30","credit_at":"2020-03-20","error_code":"00","event_type":"10","our_number":"04958535","billet_fine":"0","paid_amount":"0","other_credit":"0","value_rebate":"0","agency_number":"6519","credit_amount":"0","account_number":"90009999","conta_cobranca":"90009999","control_number":"","banco_recebedor":"033","document_number":"495853","agencia_recebedora":"1651"},"line_raw":{"line_raw":"1027879661300014165199000999990009999 04958535 510200320495853 0495853500 12111900000000300350331651901000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
88
|
+
N 200320 SOLUCOES DIGITAIS L 00000000000000000000000000000000000000000C 325000002"},"processed_at":"2021-04-13T10:55:37-03:00","occurrence_detail":"Título
|
89
|
+
Baixado Conforme Instrução Ou Por Título Protestado 11 = Em Ser","occurrence_error_detail":null,"our_occurrence":"2074","bank_billet_account_id":null,"bank_number":"033","created_at":"2021-04-13T10:55:37-03:00","kind":"400"},{"id":19801,"occurrence":"10","date_of_occurrence":"2020-03-20","discharge_id":3183,"bank_billet_id":null,"occurrence_error":"00","line_parsed":{"iof":"0","paid_at":"2020-03-20","cnpj_cpf":"78796613000141","discount":"0","bank_rate":"30","credit_at":"2020-03-20","error_code":"00","event_type":"10","our_number":"04958535","billet_fine":"0","paid_amount":"0","other_credit":"0","value_rebate":"0","agency_number":"6519","credit_amount":"0","account_number":"90009999","conta_cobranca":"90009999","control_number":"","banco_recebedor":"033","document_number":"495853","agencia_recebedora":"1651"},"line_raw":{"line_raw":"1027879661300014165199000999990009999 04958535 510200320495853 0495853500 12111900000000300350331651901000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
90
|
+
N 200320 SOLUCOES DIGITAIS L 00000000000000000000000000000000000000000C 325000002"},"processed_at":"2021-04-13T09:59:46-03:00","occurrence_detail":"Título
|
91
|
+
Baixado Conforme Instrução Ou Por Título Protestado 11 = Em Ser","occurrence_error_detail":null,"our_occurrence":"2074","bank_billet_account_id":null,"bank_number":"033","created_at":"2021-04-13T09:59:46-03:00","kind":"400"},{"id":19800,"occurrence":"10","date_of_occurrence":"2020-03-20","discharge_id":3182,"bank_billet_id":null,"occurrence_error":"00","line_parsed":{"iof":"0","paid_at":"2020-03-20","cnpj_cpf":"78796613000141","discount":"0","bank_rate":"30","credit_at":"2020-03-20","error_code":"00","event_type":"10","our_number":"04958535","billet_fine":"0","paid_amount":"0","other_credit":"0","value_rebate":"0","agency_number":"6519","credit_amount":"0","account_number":"90009999","conta_cobranca":"90009999","control_number":"","banco_recebedor":"033","document_number":"495853","agencia_recebedora":"1651"},"line_raw":{"line_raw":"1027879661300014165199000999990009999 04958535 510200320495853 0495853500 12111900000000300350331651901000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
92
|
+
N 200320 SOLUCOES DIGITAIS L 00000000000000000000000000000000000000000C 325000002"},"processed_at":"2021-04-13T09:27:09-03:00","occurrence_detail":"Título
|
93
|
+
Baixado Conforme Instrução Ou Por Título Protestado 11 = Em Ser","occurrence_error_detail":null,"our_occurrence":"2074","bank_billet_account_id":null,"bank_number":"033","created_at":"2021-04-13T09:27:09-03:00","kind":"400"},{"id":19799,"occurrence":"10","date_of_occurrence":"2020-03-20","discharge_id":3181,"bank_billet_id":null,"occurrence_error":"00","line_parsed":{"iof":"0","paid_at":"2020-03-20","cnpj_cpf":"78796613000141","discount":"0","bank_rate":"30","credit_at":"2020-03-20","error_code":"00","event_type":"10","our_number":"04958535","billet_fine":"0","paid_amount":"0","other_credit":"0","value_rebate":"0","agency_number":"6519","credit_amount":"0","account_number":"90009999","conta_cobranca":"90009999","control_number":"","banco_recebedor":"033","document_number":"495853","agencia_recebedora":"1651"},"line_raw":{"line_raw":"1027879661300014165199000999990009999 04958535 510200320495853 0495853500 12111900000000300350331651901000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
94
|
+
N 200320 SOLUCOES DIGITAIS L 00000000000000000000000000000000000000000C 325000002"},"processed_at":"2021-04-12T11:55:07-03:00","occurrence_detail":"Título
|
95
|
+
Baixado Conforme Instrução Ou Por Título Protestado 11 = Em Ser","occurrence_error_detail":null,"our_occurrence":"2074","bank_billet_account_id":null,"bank_number":"033","created_at":"2021-04-12T11:55:07-03:00","kind":"400"}]'
|
96
|
+
recorded_at: Tue, 13 Apr 2021 17:19:02 GMT
|
97
|
+
recorded_with: VCR 6.0.0
|
@@ -2,72 +2,74 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://sandbox.boletosimples.com.br/api/v1/bank_billet_payments
|
5
|
+
uri: https://sandbox.boletosimples.com.br/api/v1/bank_billet_payments
|
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, 14 Dec 2018 19:22:59 GMT
|
35
|
-
Vary:
|
36
|
-
- Origin,Accept-Encoding
|
37
|
-
Strict-Transport-Security:
|
38
|
-
- max-age=2629746
|
39
|
-
Referrer-Policy:
|
40
|
-
- strict-origin-when-cross-origin
|
41
|
-
X-Permitted-Cross-Domain-Policies:
|
42
|
-
- none
|
27
|
+
X-Frame-Options:
|
28
|
+
- DENY
|
43
29
|
X-Xss-Protection:
|
44
30
|
- 1; mode=block
|
45
|
-
X-
|
46
|
-
-
|
31
|
+
X-Content-Type-Options:
|
32
|
+
- nosniff
|
47
33
|
X-Download-Options:
|
48
34
|
- noopen
|
49
|
-
|
50
|
-
-
|
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
|
+
- '46'
|
51
49
|
Etag:
|
52
|
-
- W/"
|
53
|
-
|
54
|
-
-
|
50
|
+
- W/"ca124465a697c6cc89fd806a70928df0"
|
51
|
+
Cache-Control:
|
52
|
+
- must-revalidate, private, max-age=0
|
53
|
+
X-Request-Id:
|
54
|
+
- 236ba38b-f38e-4f45-8c07-fac86c6cfba6
|
55
55
|
X-Runtime:
|
56
|
-
- '0.
|
57
|
-
|
58
|
-
-
|
56
|
+
- '0.053624'
|
57
|
+
Date:
|
58
|
+
- Tue, 13 Apr 2021 17:18:41 GMT
|
59
59
|
X-Rack-Cache:
|
60
60
|
- miss
|
61
|
-
|
62
|
-
-
|
63
|
-
|
64
|
-
-
|
61
|
+
Strict-Transport-Security:
|
62
|
+
- max-age=2629746
|
63
|
+
Vary:
|
64
|
+
- Origin,Accept-Encoding
|
65
|
+
Transfer-Encoding:
|
66
|
+
- chunked
|
65
67
|
Via:
|
66
68
|
- 1.1 vegur
|
67
69
|
body:
|
68
70
|
encoding: UTF-8
|
69
|
-
string: '[{"id":
|
70
|
-
|
71
|
-
|
72
|
-
recorded_at:
|
73
|
-
recorded_with: VCR
|
71
|
+
string: '[{"id":5796,"bank_billet_id":382262,"bank_billet_account_id":3547,"discharge_id":null,"paid_at":"2021-04-13","paid_amount":1120.4,"bank_rate":null,"paid_bank":null,"paid_agency":null,"created_at":"2021-04-13T09:30:30-03:00","credit_at":null,"direct":false,"created_via_api":false,"line_parsed":null,"our_number":"00000017","customer_person_name":"Joao
|
72
|
+
da Silva","expire_at":"2022-10-17","amount":1120.4},{"id":5795,"bank_billet_id":382264,"bank_billet_account_id":3547,"discharge_id":null,"paid_at":"2021-04-13","paid_amount":1120.4,"bank_rate":null,"paid_bank":null,"paid_agency":null,"created_at":"2021-04-13T09:30:19-03:00","credit_at":null,"direct":true,"created_via_api":false,"line_parsed":null,"our_number":"00000019","customer_person_name":"Joao
|
73
|
+
da Silva","expire_at":"2021-05-13","amount":1120.4}]'
|
74
|
+
recorded_at: Tue, 13 Apr 2021 17:18:41 GMT
|
75
|
+
recorded_with: VCR 6.0.0
|