boletosimples 0.6.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -12
- data/README.md +21 -59
- data/lib/boletosimples/configuration.rb +25 -28
- data/lib/boletosimples/last_request.rb +17 -10
- data/lib/boletosimples/middlewares/bearer.rb +12 -0
- data/lib/boletosimples/middlewares/custom_headers.rb +12 -0
- data/lib/boletosimples/middlewares/debug.rb +30 -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 +10 -5
- data/lib/boletosimples/version.rb +3 -1
- data/lib/boletosimples.rb +6 -6
- data/spec/boletosimples/configuration_spec.rb +67 -80
- data/spec/boletosimples/last_request_spec.rb +17 -28
- data/spec/boletosimples/middlewares/custom_headers_spec.rb +26 -0
- 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 +57 -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/custom_headers.yml +113 -0
- data/spec/fixtures/vcr_cassettes/last_request/bank_billets.yml +409 -95
- data/spec/fixtures/vcr_cassettes/resources/bank_billet/all.yml +101 -99
- data/spec/fixtures/vcr_cassettes/resources/bank_billet/cancel/success.yml +55 -95
- data/spec/fixtures/vcr_cassettes/resources/bank_billet/create/invalid_params.yml +55 -27
- data/spec/fixtures/vcr_cassettes/resources/bank_billet/create/invalid_root.yml +51 -24
- data/spec/fixtures/vcr_cassettes/resources/bank_billet/create/valid.yml +64 -34
- data/spec/fixtures/vcr_cassettes/resources/bank_billet/duplicate/success.yml +97 -0
- data/spec/fixtures/vcr_cassettes/resources/bank_billet/find.yml +73 -34
- data/spec/fixtures/vcr_cassettes/resources/bank_billet_account/all.yml +82 -27
- data/spec/fixtures/vcr_cassettes/resources/bank_billet_account/create/invalid_params.yml +57 -27
- data/spec/fixtures/vcr_cassettes/resources/bank_billet_account/create/invalid_root.yml +53 -26
- data/spec/fixtures/vcr_cassettes/resources/bank_billet_account/create/valid.yml +64 -28
- data/spec/fixtures/vcr_cassettes/resources/bank_billet_account/find.yml +61 -25
- data/spec/fixtures/vcr_cassettes/resources/bank_billet_discharge/all.yml +59 -46
- data/spec/fixtures/vcr_cassettes/resources/bank_billet_payment/all.yml +74 -71
- data/spec/fixtures/vcr_cassettes/resources/bank_billet_remittance/all.yml +63 -47
- data/spec/fixtures/vcr_cassettes/resources/customer/all.yml +141 -39
- data/spec/fixtures/vcr_cassettes/resources/customer/create/invalid_params.yml +54 -25
- data/spec/fixtures/vcr_cassettes/resources/customer/create/invalid_root.yml +54 -24
- data/spec/fixtures/vcr_cassettes/resources/customer/create/valid.yml +56 -28
- data/spec/fixtures/vcr_cassettes/resources/customer/find.yml +56 -26
- data/spec/fixtures/vcr_cassettes/resources/customer_import/all.yml +58 -59
- data/spec/fixtures/vcr_cassettes/resources/customer_import/create/invalid_params.yml +53 -51
- data/spec/fixtures/vcr_cassettes/resources/customer_import/create/invalid_root.yml +54 -52
- data/spec/fixtures/vcr_cassettes/resources/customer_import/create/valid.yml +58 -67
- data/spec/fixtures/vcr_cassettes/resources/customer_import/find.yml +55 -53
- data/spec/fixtures/vcr_cassettes/resources/customer_subscription/all.yml +65 -51
- data/spec/fixtures/vcr_cassettes/resources/customer_subscription/create/invalid_params.yml +56 -50
- data/spec/fixtures/vcr_cassettes/resources/customer_subscription/create/invalid_root.yml +52 -48
- data/spec/fixtures/vcr_cassettes/resources/customer_subscription/create/valid.yml +63 -52
- data/spec/fixtures/vcr_cassettes/resources/customer_subscription/find.yml +61 -51
- data/spec/fixtures/vcr_cassettes/resources/customer_subscription/next_charge.yml +60 -132
- data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/all.yml +58 -54
- data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/create/invalid_params.yml +53 -52
- data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/create/invalid_root.yml +55 -53
- data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/create/valid.yml +58 -69
- data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/find.yml +55 -54
- data/spec/fixtures/vcr_cassettes/resources/discharge/all.yml +63 -34
- data/spec/fixtures/vcr_cassettes/resources/discharge/create/invalid_params.yml +86 -0
- data/spec/fixtures/vcr_cassettes/resources/discharge/create/invalid_root.yml +85 -0
- data/spec/fixtures/vcr_cassettes/resources/discharge/create/valid.yml +100 -0
- data/spec/fixtures/vcr_cassettes/resources/discharge/find.yml +89 -0
- data/spec/fixtures/vcr_cassettes/resources/email_delivery/all.yml +40 -43
- data/spec/fixtures/vcr_cassettes/resources/event/all.yml +326 -167
- data/spec/fixtures/vcr_cassettes/resources/installment/all.yml +113 -51
- data/spec/fixtures/vcr_cassettes/resources/installment/create/invalid_params.yml +57 -52
- data/spec/fixtures/vcr_cassettes/resources/installment/create/invalid_root.yml +52 -48
- data/spec/fixtures/vcr_cassettes/resources/installment/create/valid.yml +63 -52
- data/spec/fixtures/vcr_cassettes/resources/installment/find.yml +83 -51
- data/spec/fixtures/vcr_cassettes/resources/remittance/all.yml +83 -62
- data/spec/fixtures/vcr_cassettes/resources/sns_delivery/all.yml +89 -0
- data/spec/fixtures/vcr_cassettes/resources/transaction/all.yml +73 -60
- data/spec/fixtures/vcr_cassettes/resources/web_hook/all.yml +59 -34
- data/spec/fixtures/vcr_cassettes/resources/webhook_delivery/all.yml +2684 -55
- data/spec/spec_helper.rb +3 -20
- data/spec/support/stub_env.rb +7 -0
- data/spec/support/vcr.rb +3 -4
- metadata +42 -176
- data/.coveralls.yml +0 -2
- data/.gitignore +0 -19
- data/.ruby-version +0 -1
- data/.travis.yml +0 -46
- data/Gemfile +0 -4
- data/Rakefile +0 -14
- data/boletosimples.gemspec +0 -38
- 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,85 +2,86 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://sandbox.
|
5
|
+
uri: https://api-sandbox.kobana.com.br/v1/imports/customer_subscriptions/1279
|
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
|
-
Connection:
|
24
|
-
- keep-alive
|
25
23
|
Content-Type:
|
26
24
|
- application/json; charset=utf-8
|
27
25
|
Transfer-Encoding:
|
28
26
|
- chunked
|
29
|
-
|
30
|
-
-
|
31
|
-
|
32
|
-
-
|
33
|
-
|
34
|
-
-
|
35
|
-
Vary:
|
36
|
-
- Origin,Accept-Encoding
|
37
|
-
Strict-Transport-Security:
|
38
|
-
- max-age=631138519
|
39
|
-
X-Permitted-Cross-Domain-Policies:
|
40
|
-
- none
|
27
|
+
Connection:
|
28
|
+
- keep-alive
|
29
|
+
Server:
|
30
|
+
- Cowboy
|
31
|
+
X-Frame-Options:
|
32
|
+
- DENY
|
41
33
|
X-Xss-Protection:
|
42
34
|
- 1; mode=block
|
43
|
-
X-
|
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 landing.vincent-ai.com d25j7wj0q61kjj.cloudfront.net; style-src
|
59
|
-
''self'' ''unsafe-inline'' fonts.googleapis.com d25j7wj0q61kjj.cloudfront.net;
|
60
|
-
report-uri https://boletosimples.report-uri.io/r/default/csp/reportOnly'
|
61
|
-
Location:
|
62
|
-
- https://sandbox.boletosimples.com.br/api/v1/imports/customer_subscriptions/7
|
35
|
+
X-Content-Type-Options:
|
36
|
+
- nosniff
|
63
37
|
X-Download-Options:
|
64
38
|
- noopen
|
39
|
+
X-Permitted-Cross-Domain-Policies:
|
40
|
+
- none
|
41
|
+
Referrer-Policy:
|
42
|
+
- strict-origin-when-cross-origin
|
43
|
+
Expect-Ct:
|
44
|
+
- max-age=0, report-uri="https://boletosimples.report-uri.com/r/d/ct/reportOnly"
|
45
|
+
Cross-Origin-Resource-Policy:
|
46
|
+
- cross-origin
|
47
|
+
Cross-Origin-Embedder-Policy:
|
48
|
+
- unsafe-none
|
49
|
+
Cross-Origin-Opener-Policy:
|
50
|
+
- unsafe-none
|
51
|
+
Location:
|
52
|
+
- https://api-sandbox.kobana.com.br/api/v1/imports/customer_subscriptions/1279
|
53
|
+
X-Ratelimit-Limit:
|
54
|
+
- '100'
|
55
|
+
X-Ratelimit-Remaining:
|
56
|
+
- '70'
|
65
57
|
Etag:
|
66
|
-
- W/"
|
58
|
+
- W/"792b77874b2044afb755dcf78adbe6e5"
|
59
|
+
Cache-Control:
|
60
|
+
- must-revalidate, private, max-age=0
|
61
|
+
X-Request-Id:
|
62
|
+
- 32d6ecd5-5589-46e6-8f27-2a696fb07bb1
|
67
63
|
X-Runtime:
|
68
|
-
- '0.
|
69
|
-
|
70
|
-
-
|
71
|
-
X-Content-Type-Options:
|
72
|
-
- nosniff
|
64
|
+
- '0.018854'
|
65
|
+
Date:
|
66
|
+
- Tue, 22 Feb 2022 17:30:31 GMT
|
73
67
|
X-Rack-Cache:
|
74
68
|
- miss
|
75
|
-
|
76
|
-
-
|
77
|
-
|
78
|
-
-
|
69
|
+
Strict-Transport-Security:
|
70
|
+
- max-age=31556952; includeSubDomains; preload
|
71
|
+
Vary:
|
72
|
+
- Origin,Accept-Encoding
|
73
|
+
X-Rack-Cors:
|
74
|
+
- miss; no-origin
|
79
75
|
Via:
|
80
|
-
- 1.1 vegur
|
76
|
+
- 1.1 vegur, 1.1 786adf19b53b584c0a277661acb7690c.cloudfront.net (CloudFront)
|
77
|
+
X-Cache:
|
78
|
+
- Miss from cloudfront
|
79
|
+
X-Amz-Cf-Pop:
|
80
|
+
- MIA3-C1
|
81
|
+
X-Amz-Cf-Id:
|
82
|
+
- g5duH7bB3_9L_0L-gVvkx-CaMcyte4nv-tWY1wdCSJZIp4jE9dmhSQ==
|
81
83
|
body:
|
82
84
|
encoding: UTF-8
|
83
|
-
string: '{"id":
|
84
|
-
|
85
|
-
|
86
|
-
recorded_with: VCR 3.0.3
|
85
|
+
string: '{"id":1279,"created_rows":0,"enqueued_at":null,"started_at":null,"finished_at":null,"processed_at":null,"failed_to_create_rows":0,"failed_to_update_rows":0,"import_errors":null,"processed_rows":0,"total_rows":null,"updated_rows":0,"source_file_name":"customer_subscriptions.csv","source_file_size":239,"status":"pending","created_via_api":true}'
|
86
|
+
recorded_at: Tue, 22 Feb 2022 17:30:31 GMT
|
87
|
+
recorded_with: VCR 6.0.0
|
@@ -2,63 +2,92 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://sandbox.
|
5
|
+
uri: https://api-sandbox.kobana.com.br/v1/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
|
-
Connection:
|
24
|
-
- keep-alive
|
25
23
|
Content-Type:
|
26
24
|
- application/json; charset=utf-8
|
27
25
|
Transfer-Encoding:
|
28
26
|
- chunked
|
29
|
-
|
30
|
-
-
|
31
|
-
|
32
|
-
-
|
27
|
+
Connection:
|
28
|
+
- keep-alive
|
29
|
+
Server:
|
30
|
+
- Cowboy
|
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
|
43
|
+
Expect-Ct:
|
44
|
+
- max-age=0, report-uri="https://boletosimples.report-uri.com/r/d/ct/reportOnly"
|
45
|
+
Cross-Origin-Resource-Policy:
|
46
|
+
- cross-origin
|
47
|
+
Cross-Origin-Embedder-Policy:
|
48
|
+
- unsafe-none
|
49
|
+
Cross-Origin-Opener-Policy:
|
50
|
+
- unsafe-none
|
51
|
+
Per-Page:
|
52
|
+
- '50'
|
53
|
+
Page:
|
54
|
+
- ''
|
33
55
|
X-Ratelimit-Limit:
|
34
|
-
- '
|
35
|
-
Date:
|
36
|
-
- Mon, 24 Aug 2015 18:03:13 GMT
|
37
|
-
Strict-Transport-Security:
|
38
|
-
- max-age=2592000
|
56
|
+
- '100'
|
39
57
|
X-Ratelimit-Remaining:
|
40
|
-
- '
|
41
|
-
Vary:
|
42
|
-
- Accept-Encoding
|
43
|
-
X-Request-Id:
|
44
|
-
- 796a233a-e38d-4ca8-9cce-2af208d6b0f6
|
45
|
-
Total:
|
46
|
-
- '1'
|
58
|
+
- '50'
|
47
59
|
Etag:
|
48
|
-
- W/"
|
60
|
+
- W/"fe3882beb9651f767e50c83a910947d0"
|
61
|
+
Cache-Control:
|
62
|
+
- must-revalidate, private, max-age=0
|
63
|
+
X-Request-Id:
|
64
|
+
- 9705a886-a031-437e-be4c-f7f592fca3e9
|
49
65
|
X-Runtime:
|
50
|
-
- '0.
|
66
|
+
- '0.021086'
|
67
|
+
Date:
|
68
|
+
- Tue, 22 Feb 2022 17:30:50 GMT
|
51
69
|
X-Rack-Cache:
|
52
70
|
- miss
|
53
|
-
|
54
|
-
-
|
55
|
-
|
56
|
-
-
|
71
|
+
Strict-Transport-Security:
|
72
|
+
- max-age=31556952; includeSubDomains; preload
|
73
|
+
Vary:
|
74
|
+
- Origin,Accept-Encoding
|
75
|
+
X-Rack-Cors:
|
76
|
+
- miss; no-origin
|
57
77
|
Via:
|
58
|
-
- 1.1 vegur
|
78
|
+
- 1.1 vegur, 1.1 a1b25087bb9d630ebf78c28557294564.cloudfront.net (CloudFront)
|
79
|
+
X-Cache:
|
80
|
+
- Miss from cloudfront
|
81
|
+
X-Amz-Cf-Pop:
|
82
|
+
- MIA3-C1
|
83
|
+
X-Amz-Cf-Id:
|
84
|
+
- vaamYGJoqixbY-i7CkFxt-Z_B-_mgdZPxIAc8wzrKTWlHZ7GXspADg==
|
59
85
|
body:
|
60
86
|
encoding: UTF-8
|
61
|
-
string: '[{"id":
|
62
|
-
|
63
|
-
|
64
|
-
|
87
|
+
string: '[{"id":3322,"filename":"discharge.RET","processed_at":"2022-02-22T14:30:48-03:00","created_via_api":true,"status":"unrecognized","bank_billet_account_id":null,"created_via_integration":null,"bank_billet_discharges":[{"id":21255,"occurrence":"10","date_of_occurrence":"2020-03-20","discharge_id":3322,"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":"0495853","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","processed_our_number_raw":"04958535"},"line_raw":{"line_raw":"1027879661300014165199000999990009999 04958535 510200320495853 0495853500 12111900000000300350331651901000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
88
|
+
N 200320 SOLUCOES DIGITAIS L 00000000000000000000000000000000000000000C 325000002"},"processed_at":"2022-02-22T14:30:48-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":"2022-02-22T14:30:48-03:00","kind":"400"}]},{"id":3321,"filename":"discharge.RET","processed_at":"2022-02-22T14:26:40-03:00","created_via_api":true,"status":"unrecognized","bank_billet_account_id":null,"created_via_integration":null,"bank_billet_discharges":[{"id":21254,"occurrence":"10","date_of_occurrence":"2020-03-20","discharge_id":3321,"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":"0495853","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","processed_our_number_raw":"04958535"},"line_raw":{"line_raw":"1027879661300014165199000999990009999 04958535 510200320495853 0495853500 12111900000000300350331651901000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
90
|
+
N 200320 SOLUCOES DIGITAIS L 00000000000000000000000000000000000000000C 325000002"},"processed_at":"2022-02-22T14:26:40-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":"2022-02-22T14:26:40-03:00","kind":"400"}]}]'
|
92
|
+
recorded_at: Tue, 22 Feb 2022 17:30:50 GMT
|
93
|
+
recorded_with: VCR 6.0.0
|
@@ -0,0 +1,86 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api-sandbox.kobana.com.br/v1/discharges
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"discharge":{"content":""}}'
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- email@minhaempresa.com.br
|
12
|
+
Authorization:
|
13
|
+
- Bearer BOLETOSIMPLES_API_TOKEN
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
Accept:
|
17
|
+
- application/json
|
18
|
+
Accept-Encoding:
|
19
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 422
|
23
|
+
message: Unprocessable Entity
|
24
|
+
headers:
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=utf-8
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Server:
|
32
|
+
- Cowboy
|
33
|
+
X-Frame-Options:
|
34
|
+
- DENY
|
35
|
+
X-Xss-Protection:
|
36
|
+
- 1; mode=block
|
37
|
+
X-Content-Type-Options:
|
38
|
+
- nosniff
|
39
|
+
X-Download-Options:
|
40
|
+
- noopen
|
41
|
+
X-Permitted-Cross-Domain-Policies:
|
42
|
+
- none
|
43
|
+
Referrer-Policy:
|
44
|
+
- strict-origin-when-cross-origin
|
45
|
+
Expect-Ct:
|
46
|
+
- max-age=0, report-uri="https://boletosimples.report-uri.com/r/d/ct/reportOnly"
|
47
|
+
Cross-Origin-Resource-Policy:
|
48
|
+
- cross-origin
|
49
|
+
Cross-Origin-Embedder-Policy:
|
50
|
+
- unsafe-none
|
51
|
+
Cross-Origin-Opener-Policy:
|
52
|
+
- unsafe-none
|
53
|
+
X-Ratelimit-Limit:
|
54
|
+
- '18000'
|
55
|
+
X-Ratelimit-Remaining:
|
56
|
+
- '17950'
|
57
|
+
Cache-Control:
|
58
|
+
- no-cache
|
59
|
+
X-Request-Id:
|
60
|
+
- 3d6db5fb-73a1-429e-abd5-499380b72feb
|
61
|
+
X-Runtime:
|
62
|
+
- '0.019776'
|
63
|
+
Date:
|
64
|
+
- Tue, 22 Feb 2022 17:30:49 GMT
|
65
|
+
X-Rack-Cache:
|
66
|
+
- invalidate, pass
|
67
|
+
Strict-Transport-Security:
|
68
|
+
- max-age=31556952; includeSubDomains; preload
|
69
|
+
Vary:
|
70
|
+
- Origin,Accept-Encoding
|
71
|
+
X-Rack-Cors:
|
72
|
+
- miss; no-origin
|
73
|
+
Via:
|
74
|
+
- 1.1 vegur, 1.1 d2c636aea3f69033bb2125c4038e1c48.cloudfront.net (CloudFront)
|
75
|
+
X-Cache:
|
76
|
+
- Error from cloudfront
|
77
|
+
X-Amz-Cf-Pop:
|
78
|
+
- MIA3-C1
|
79
|
+
X-Amz-Cf-Id:
|
80
|
+
- CPaHsPU8d8Eqz5SwmQdPTg1yqHkv8voPijep2sCDfl8hmlGZ1rWvYA==
|
81
|
+
body:
|
82
|
+
encoding: UTF-8
|
83
|
+
string: '{"errors":{"content":["não pode ficar em branco"],"filename":["não
|
84
|
+
pode ficar em branco"]}}'
|
85
|
+
recorded_at: Tue, 22 Feb 2022 17:30:49 GMT
|
86
|
+
recorded_with: VCR 6.0.0
|
@@ -0,0 +1,85 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api-sandbox.kobana.com.br/v1/discharges
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"discharge":{}}'
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- email@minhaempresa.com.br
|
12
|
+
Authorization:
|
13
|
+
- Bearer BOLETOSIMPLES_API_TOKEN
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
Accept:
|
17
|
+
- application/json
|
18
|
+
Accept-Encoding:
|
19
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 422
|
23
|
+
message: Unprocessable Entity
|
24
|
+
headers:
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=utf-8
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Server:
|
32
|
+
- Cowboy
|
33
|
+
X-Frame-Options:
|
34
|
+
- DENY
|
35
|
+
X-Xss-Protection:
|
36
|
+
- 1; mode=block
|
37
|
+
X-Content-Type-Options:
|
38
|
+
- nosniff
|
39
|
+
X-Download-Options:
|
40
|
+
- noopen
|
41
|
+
X-Permitted-Cross-Domain-Policies:
|
42
|
+
- none
|
43
|
+
Referrer-Policy:
|
44
|
+
- strict-origin-when-cross-origin
|
45
|
+
Expect-Ct:
|
46
|
+
- max-age=0, report-uri="https://boletosimples.report-uri.com/r/d/ct/reportOnly"
|
47
|
+
Cross-Origin-Resource-Policy:
|
48
|
+
- cross-origin
|
49
|
+
Cross-Origin-Embedder-Policy:
|
50
|
+
- unsafe-none
|
51
|
+
Cross-Origin-Opener-Policy:
|
52
|
+
- unsafe-none
|
53
|
+
X-Ratelimit-Limit:
|
54
|
+
- '18000'
|
55
|
+
X-Ratelimit-Remaining:
|
56
|
+
- '17949'
|
57
|
+
Cache-Control:
|
58
|
+
- no-cache
|
59
|
+
X-Request-Id:
|
60
|
+
- 2d271f01-062b-4f05-b642-e4f6e17afa87
|
61
|
+
X-Runtime:
|
62
|
+
- '0.015723'
|
63
|
+
Date:
|
64
|
+
- Tue, 22 Feb 2022 17:30:49 GMT
|
65
|
+
X-Rack-Cache:
|
66
|
+
- invalidate, pass
|
67
|
+
Strict-Transport-Security:
|
68
|
+
- max-age=31556952; includeSubDomains; preload
|
69
|
+
Vary:
|
70
|
+
- Origin,Accept-Encoding
|
71
|
+
X-Rack-Cors:
|
72
|
+
- miss; no-origin
|
73
|
+
Via:
|
74
|
+
- 1.1 vegur, 1.1 87870fc50391b69b5ca922233fe59ace.cloudfront.net (CloudFront)
|
75
|
+
X-Cache:
|
76
|
+
- Error from cloudfront
|
77
|
+
X-Amz-Cf-Pop:
|
78
|
+
- MIA3-C1
|
79
|
+
X-Amz-Cf-Id:
|
80
|
+
- LdVrOnrMNdLTkStWHjkmqV9z1FBFeCs6XdTKsBI_QqYXgyna3mmmAg==
|
81
|
+
body:
|
82
|
+
encoding: UTF-8
|
83
|
+
string: '{"errors":[{"title":"discharge não pode ficar em branco","status":422,"code":422}]}'
|
84
|
+
recorded_at: Tue, 22 Feb 2022 17:30:49 GMT
|
85
|
+
recorded_with: VCR 6.0.0
|
@@ -0,0 +1,100 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api-sandbox.kobana.com.br/v1/discharges
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: "-------------RubyMultipartPost-24dceadd63421cea19ac03a1adccc41e\r\nContent-Disposition:
|
9
|
+
form-data; name=\"discharge[file]\"; filename=\"discharge.RET\"\r\nContent-Length:
|
10
|
+
1206\r\nContent-Type: text/plain\r\nContent-Transfer-Encoding: binary\r\n\r\n02RETORNO01COBRANCA
|
11
|
+
\ 16511300049999999999 SISTEMAS S.A 033SANTANDER 20032000000000009483012
|
12
|
+
\ 325000001\r\n1027879661300014165199000999990009999
|
13
|
+
\ 04958535 510200320495853
|
14
|
+
\ 0495853500 12111900000000300350331651901000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
15
|
+
N 200320 SOLUCOES DIGITAIS L 00000000000000000000000000000000000000000C
|
16
|
+
\ 325000002\r\n9201033 000025050000053763329700000518 000000000000000000000000000000
|
17
|
+
\ 000000000000000000000000000000 325000632\r\n\r\n-------------RubyMultipartPost-24dceadd63421cea19ac03a1adccc41e--\r\n"
|
18
|
+
headers:
|
19
|
+
User-Agent:
|
20
|
+
- email@minhaempresa.com.br
|
21
|
+
Authorization:
|
22
|
+
- Bearer BOLETOSIMPLES_API_TOKEN
|
23
|
+
Content-Type:
|
24
|
+
- multipart/form-data; boundary=-----------RubyMultipartPost-24dceadd63421cea19ac03a1adccc41e
|
25
|
+
Content-Length:
|
26
|
+
- '1507'
|
27
|
+
Accept:
|
28
|
+
- application/json
|
29
|
+
Accept-Encoding:
|
30
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
31
|
+
response:
|
32
|
+
status:
|
33
|
+
code: 201
|
34
|
+
message: Created
|
35
|
+
headers:
|
36
|
+
Content-Type:
|
37
|
+
- application/json; charset=utf-8
|
38
|
+
Transfer-Encoding:
|
39
|
+
- chunked
|
40
|
+
Connection:
|
41
|
+
- keep-alive
|
42
|
+
Server:
|
43
|
+
- Cowboy
|
44
|
+
X-Frame-Options:
|
45
|
+
- DENY
|
46
|
+
X-Xss-Protection:
|
47
|
+
- 1; mode=block
|
48
|
+
X-Content-Type-Options:
|
49
|
+
- nosniff
|
50
|
+
X-Download-Options:
|
51
|
+
- noopen
|
52
|
+
X-Permitted-Cross-Domain-Policies:
|
53
|
+
- none
|
54
|
+
Referrer-Policy:
|
55
|
+
- strict-origin-when-cross-origin
|
56
|
+
Expect-Ct:
|
57
|
+
- max-age=0, report-uri="https://boletosimples.report-uri.com/r/d/ct/reportOnly"
|
58
|
+
Cross-Origin-Resource-Policy:
|
59
|
+
- cross-origin
|
60
|
+
Cross-Origin-Embedder-Policy:
|
61
|
+
- unsafe-none
|
62
|
+
Cross-Origin-Opener-Policy:
|
63
|
+
- unsafe-none
|
64
|
+
Location:
|
65
|
+
- https://api-sandbox.kobana.com.br/api/v1/discharges/3322
|
66
|
+
X-Ratelimit-Limit:
|
67
|
+
- '18000'
|
68
|
+
X-Ratelimit-Remaining:
|
69
|
+
- '17951'
|
70
|
+
Etag:
|
71
|
+
- W/"0c52841befe661e2d2d6c6f2a63f6e2b"
|
72
|
+
Cache-Control:
|
73
|
+
- max-age=0, private, must-revalidate
|
74
|
+
X-Request-Id:
|
75
|
+
- 59ba292a-6b9b-4a5b-bb95-32e1ad9f9c72
|
76
|
+
X-Runtime:
|
77
|
+
- '0.053394'
|
78
|
+
Date:
|
79
|
+
- Tue, 22 Feb 2022 17:30:48 GMT
|
80
|
+
X-Rack-Cache:
|
81
|
+
- invalidate, pass
|
82
|
+
Strict-Transport-Security:
|
83
|
+
- max-age=31556952; includeSubDomains; preload
|
84
|
+
Vary:
|
85
|
+
- Origin,Accept-Encoding
|
86
|
+
X-Rack-Cors:
|
87
|
+
- miss; no-origin
|
88
|
+
Via:
|
89
|
+
- 1.1 vegur, 1.1 3b888dcc047b71c0685c3b793d031fb2.cloudfront.net (CloudFront)
|
90
|
+
X-Cache:
|
91
|
+
- Miss from cloudfront
|
92
|
+
X-Amz-Cf-Pop:
|
93
|
+
- MIA3-C1
|
94
|
+
X-Amz-Cf-Id:
|
95
|
+
- ppOm9LD1aGK6UpXHaANtpXCPPrithFvEo7riYnf9EYMfaT-98cRnRA==
|
96
|
+
body:
|
97
|
+
encoding: UTF-8
|
98
|
+
string: '{"id":3322,"filename":"discharge.RET","processed_at":null,"created_via_api":true,"status":"unprocessed","bank_billet_account_id":null,"created_via_integration":null,"bank_billet_discharges":[]}'
|
99
|
+
recorded_at: Tue, 22 Feb 2022 17:30:48 GMT
|
100
|
+
recorded_with: VCR 6.0.0
|
@@ -0,0 +1,89 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api-sandbox.kobana.com.br/v1/discharges/3322
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- email@minhaempresa.com.br
|
12
|
+
Authorization:
|
13
|
+
- Bearer BOLETOSIMPLES_API_TOKEN
|
14
|
+
Accept:
|
15
|
+
- application/json
|
16
|
+
Accept-Encoding:
|
17
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Content-Type:
|
24
|
+
- application/json; charset=utf-8
|
25
|
+
Transfer-Encoding:
|
26
|
+
- chunked
|
27
|
+
Connection:
|
28
|
+
- keep-alive
|
29
|
+
Server:
|
30
|
+
- Cowboy
|
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
|
43
|
+
Expect-Ct:
|
44
|
+
- max-age=0, report-uri="https://boletosimples.report-uri.com/r/d/ct/reportOnly"
|
45
|
+
Cross-Origin-Resource-Policy:
|
46
|
+
- cross-origin
|
47
|
+
Cross-Origin-Embedder-Policy:
|
48
|
+
- unsafe-none
|
49
|
+
Cross-Origin-Opener-Policy:
|
50
|
+
- unsafe-none
|
51
|
+
Location:
|
52
|
+
- https://api-sandbox.kobana.com.br/api/v1/discharges/3322
|
53
|
+
X-Ratelimit-Limit:
|
54
|
+
- '100'
|
55
|
+
X-Ratelimit-Remaining:
|
56
|
+
- '51'
|
57
|
+
Etag:
|
58
|
+
- W/"85e7c42e5e1252758b6dfcf2a94c1429"
|
59
|
+
Cache-Control:
|
60
|
+
- must-revalidate, private, max-age=0
|
61
|
+
X-Request-Id:
|
62
|
+
- c4c9387c-fd0f-4209-9e37-ef418c307737
|
63
|
+
X-Runtime:
|
64
|
+
- '0.021262'
|
65
|
+
Date:
|
66
|
+
- Tue, 22 Feb 2022 17:30:49 GMT
|
67
|
+
X-Rack-Cache:
|
68
|
+
- miss
|
69
|
+
Strict-Transport-Security:
|
70
|
+
- max-age=31556952; includeSubDomains; preload
|
71
|
+
Vary:
|
72
|
+
- Origin,Accept-Encoding
|
73
|
+
X-Rack-Cors:
|
74
|
+
- miss; no-origin
|
75
|
+
Via:
|
76
|
+
- 1.1 vegur, 1.1 ef571e66c5038660a5b767dcaa4205a4.cloudfront.net (CloudFront)
|
77
|
+
X-Cache:
|
78
|
+
- Miss from cloudfront
|
79
|
+
X-Amz-Cf-Pop:
|
80
|
+
- MIA3-C1
|
81
|
+
X-Amz-Cf-Id:
|
82
|
+
- QeQGcV5SL8jHC9PLMjN1MbhYzHl3dpX-M5WN0VZPIncJGtApCqhV6Q==
|
83
|
+
body:
|
84
|
+
encoding: UTF-8
|
85
|
+
string: '{"id":3322,"filename":"discharge.RET","processed_at":"2022-02-22T14:30:48-03:00","created_via_api":true,"status":"unrecognized","bank_billet_account_id":null,"created_via_integration":null,"bank_billet_discharges":[{"id":21255,"occurrence":"10","date_of_occurrence":"2020-03-20","discharge_id":3322,"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":"0495853","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","processed_our_number_raw":"04958535"},"line_raw":{"line_raw":"1027879661300014165199000999990009999 04958535 510200320495853 0495853500 12111900000000300350331651901000000000003000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
|
86
|
+
N 200320 SOLUCOES DIGITAIS L 00000000000000000000000000000000000000000C 325000002"},"processed_at":"2022-02-22T14:30:48-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":"2022-02-22T14:30:48-03:00","kind":"400"}]}'
|
88
|
+
recorded_at: Tue, 22 Feb 2022 17:30:50 GMT
|
89
|
+
recorded_with: VCR 6.0.0
|