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,59 +2,114 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://sandbox.
|
5
|
+
uri: https://api-sandbox.kobana.com.br/v1/bank_billet_accounts
|
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
|
25
|
-
Connection:
|
26
|
-
- keep-alive
|
27
|
-
Strict-Transport-Security:
|
28
|
-
- max-age=2592000
|
29
|
-
Total:
|
30
|
-
- '1'
|
31
23
|
Content-Type:
|
32
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
|
+
Per-Page:
|
52
|
+
- '50'
|
53
|
+
Page:
|
54
|
+
- ''
|
33
55
|
X-Ratelimit-Limit:
|
34
|
-
- '
|
56
|
+
- '100'
|
35
57
|
X-Ratelimit-Remaining:
|
36
|
-
- '
|
58
|
+
- '67'
|
37
59
|
Etag:
|
38
|
-
- W/"
|
60
|
+
- W/"0d216390e489b1e45d12ca2effce665c"
|
39
61
|
Cache-Control:
|
40
62
|
- must-revalidate, private, max-age=0
|
41
63
|
X-Request-Id:
|
42
|
-
-
|
64
|
+
- 5a9af2b1-0bcd-4cd7-8fa3-8860a06c9eb1
|
43
65
|
X-Runtime:
|
44
|
-
- '0.
|
66
|
+
- '0.040335'
|
45
67
|
Date:
|
46
|
-
-
|
68
|
+
- Tue, 22 Feb 2022 17:30:33 GMT
|
47
69
|
X-Rack-Cache:
|
48
70
|
- miss
|
71
|
+
Strict-Transport-Security:
|
72
|
+
- max-age=31556952; includeSubDomains; preload
|
49
73
|
Vary:
|
50
|
-
- Accept-Encoding
|
51
|
-
|
52
|
-
-
|
74
|
+
- Origin,Accept-Encoding
|
75
|
+
X-Rack-Cors:
|
76
|
+
- miss; no-origin
|
53
77
|
Via:
|
54
|
-
- 1.1 vegur
|
78
|
+
- 1.1 vegur, 1.1 a18ddfb379d1a4a5c2e721a55509e380.cloudfront.net (CloudFront)
|
79
|
+
X-Cache:
|
80
|
+
- Miss from cloudfront
|
81
|
+
X-Amz-Cf-Pop:
|
82
|
+
- MIA3-C1
|
83
|
+
X-Amz-Cf-Id:
|
84
|
+
- 868pKEv2oDzUe9dGgMu2b-jMB2F3sBYrtdM8eylrYQa602RGdZItmg==
|
55
85
|
body:
|
56
86
|
encoding: UTF-8
|
57
|
-
string: '[{"id":
|
58
|
-
|
59
|
-
|
60
|
-
|
87
|
+
string: '[{"id":659,"bank_contract_slug":"caixa-rg","next_our_number":86,"agency_number":"2342","agency_digit":"2","account_number":"0012432","account_digit":"1","extra1":"0123322","extra1_digit":null,"extra2":null,"extra2_digit":null,"extra3":"0567888","beneficiary_name":"Kivanio
|
88
|
+
Pereira Barbosa","beneficiary_cnpj_cpf":"000.233.771-19","beneficiary_address":"Rua
|
89
|
+
Quatro, 9, 78058-330","name":"Caixa Econômica Federal RG CC: 0012432-1 0123322","status":"active","bank_contract":{"bank":{"code":"caixa","name":"Caixa
|
90
|
+
Econômica Federal","number":"104"},"slug":"caixa-rg","code":"1","sufix":"rg","variation":null,"name":"1
|
91
|
+
- Com Registro"},"integration":false,"created_via_api":false,"homologated_at":"2017-05-24T10:11:14-03:00","next_remittance_number":3,"configuration":null,"default":true,"custom_name":"Caixa
|
92
|
+
Econômica Federal RG CC: 0012432-1 123322","kind":"cnab400","beneficiary_address_street":null,"beneficiary_address_street_number":null,"beneficiary_address_complement":null,"beneficiary_address_city":null,"beneficiary_address_neighborhood":null,"beneficiary_address_state":null,"beneficiary_address_zipcode":null,"allow_expiration_on_weekends":false},{"id":2898,"bank_contract_slug":"sofisa-bs-121","next_our_number":5,"agency_number":"1234","agency_digit":"4","account_number":"000423423","account_digit":"1","extra1":"2341234","extra1_digit":null,"extra2":null,"extra2_digit":null,"extra3":"00000000002341241234","beneficiary_name":"Kivanio
|
93
|
+
Pereira Barbosa","beneficiary_cnpj_cpf":"000.233.771-19","beneficiary_address":"Rua
|
94
|
+
Quatro, 9, 78058330","name":"Sofisa 121 CC: 000423423-1 2341234","status":"active","bank_contract":{"bank":{"code":"sofisa","name":"Sofisa","number":"637"},"slug":"sofisa-bs-121","code":"121","sufix":"bs-121","variation":null,"name":"121"},"integration":false,"created_via_api":false,"homologated_at":"2019-12-06T14:37:01-03:00","next_remittance_number":3,"configuration":null,"default":false,"custom_name":"Sofisa
|
95
|
+
121 CC: 423423-1 2341234","kind":"cnab240","beneficiary_address_street":null,"beneficiary_address_street_number":null,"beneficiary_address_complement":null,"beneficiary_address_city":null,"beneficiary_address_neighborhood":null,"beneficiary_address_state":null,"beneficiary_address_zipcode":null,"allow_expiration_on_weekends":false},{"id":2950,"bank_contract_slug":"abc-bs-110","next_our_number":7,"agency_number":"0001","agency_digit":"9","account_number":"000314341","account_digit":"2","extra1":"3413412","extra1_digit":null,"extra2":"000005353","extra2_digit":null,"extra3":"00000002341234124312","beneficiary_name":"Kivanio
|
96
|
+
Pereira Barbosa","beneficiary_cnpj_cpf":"38.666.457/0001-02","beneficiary_address":"Rua
|
97
|
+
Quatro, 9, 78058330","name":"ABC Brasil 110 CC: 000314341-2 3413412","status":"active","bank_contract":{"bank":{"code":"abc","name":"ABC
|
98
|
+
Brasil","number":"246"},"slug":"abc-bs-110","code":"110","sufix":"bs-110","variation":null,"name":"110"},"integration":false,"created_via_api":false,"homologated_at":"2020-01-09T10:59:17-03:00","next_remittance_number":3,"configuration":null,"default":false,"custom_name":"ABC
|
99
|
+
Brasil 110 CC: 314341-2 3413412","kind":"cnab240","beneficiary_address_street":null,"beneficiary_address_street_number":null,"beneficiary_address_complement":null,"beneficiary_address_city":null,"beneficiary_address_neighborhood":null,"beneficiary_address_state":null,"beneficiary_address_zipcode":null,"allow_expiration_on_weekends":false},{"id":4363,"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
|
100
|
+
S.A.","beneficiary_cnpj_cpf":"22.622.867/0001-11","beneficiary_address":"Rua
|
101
|
+
S, Moema, São Paulo, SP, 04524030","name":"Bancoob/Sicoob 02 CC: 00003666-8
|
102
|
+
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
|
103
|
+
- Simples Sem Registro"},"integration":false,"created_via_api":true,"homologated_at":null,"next_remittance_number":1,"configuration":null,"default":false,"custom_name":"Bancoob/Sicoob
|
104
|
+
02 CC: 3666-8 1234567","kind":"cnab400","beneficiary_address_street":"Rua
|
105
|
+
S","beneficiary_address_street_number":null,"beneficiary_address_complement":null,"beneficiary_address_city":"São
|
106
|
+
Paulo","beneficiary_address_neighborhood":"Moema","beneficiary_address_state":"SP","beneficiary_address_zipcode":"04524030","allow_expiration_on_weekends":false},{"id":4364,"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
|
107
|
+
S.A.","beneficiary_cnpj_cpf":"22.622.867/0001-11","beneficiary_address":"Rua
|
108
|
+
S, Moema, São Paulo, SP, 04524030","name":"Bancoob/Sicoob 02 CC: 00003666-8
|
109
|
+
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
|
110
|
+
- Simples Sem Registro"},"integration":false,"created_via_api":true,"homologated_at":null,"next_remittance_number":1,"configuration":null,"default":false,"custom_name":"Bancoob/Sicoob
|
111
|
+
02 CC: 3666-8 1234567","kind":"cnab400","beneficiary_address_street":"Rua
|
112
|
+
S","beneficiary_address_street_number":null,"beneficiary_address_complement":null,"beneficiary_address_city":"São
|
113
|
+
Paulo","beneficiary_address_neighborhood":"Moema","beneficiary_address_state":"SP","beneficiary_address_zipcode":"04524030","allow_expiration_on_weekends":false}]'
|
114
|
+
recorded_at: Tue, 22 Feb 2022 17:30:33 GMT
|
115
|
+
recorded_with: VCR 6.0.0
|
@@ -2,58 +2,88 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://sandbox.
|
5
|
+
uri: https://api-sandbox.kobana.com.br/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":""}}'
|
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
|
27
|
-
Connection:
|
28
|
-
- keep-alive
|
29
|
-
Strict-Transport-Security:
|
30
|
-
- max-age=2592000
|
31
25
|
Content-Type:
|
32
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
|
33
53
|
X-Ratelimit-Limit:
|
34
|
-
- '
|
54
|
+
- '18000'
|
35
55
|
X-Ratelimit-Remaining:
|
36
|
-
- '
|
56
|
+
- '17963'
|
37
57
|
Cache-Control:
|
38
58
|
- no-cache
|
39
59
|
X-Request-Id:
|
40
|
-
-
|
60
|
+
- 6e8545db-a0ec-41b2-aff2-f2cf1a778841
|
41
61
|
X-Runtime:
|
42
|
-
- '0.
|
62
|
+
- '0.027508'
|
43
63
|
Date:
|
44
|
-
-
|
64
|
+
- Tue, 22 Feb 2022 17:30:33 GMT
|
45
65
|
X-Rack-Cache:
|
46
66
|
- invalidate, pass
|
67
|
+
Strict-Transport-Security:
|
68
|
+
- max-age=31556952; includeSubDomains; preload
|
47
69
|
Vary:
|
48
|
-
- Accept-Encoding
|
49
|
-
|
50
|
-
-
|
70
|
+
- Origin,Accept-Encoding
|
71
|
+
X-Rack-Cors:
|
72
|
+
- miss; no-origin
|
51
73
|
Via:
|
52
|
-
- 1.1 vegur
|
74
|
+
- 1.1 vegur, 1.1 ef571e66c5038660a5b767dcaa4205a4.cloudfront.net (CloudFront)
|
75
|
+
X-Cache:
|
76
|
+
- Error from cloudfront
|
77
|
+
X-Amz-Cf-Pop:
|
78
|
+
- MIA3-C1
|
79
|
+
X-Amz-Cf-Id:
|
80
|
+
- vtVBUwRKZqUYT50Gg6nekrnCd2mASvJxJ1owuf8ALff_Dyntx3tq9w==
|
53
81
|
body:
|
54
82
|
encoding: UTF-8
|
55
|
-
string: '{"errors":{"
|
56
|
-
pode ficar em branco"],"
|
57
|
-
|
58
|
-
|
59
|
-
|
83
|
+
string: '{"errors":{"bank_contract_slug":["não pode ficar em branco"],"beneficiary_name":["não
|
84
|
+
pode ficar em branco"],"beneficiary_cnpj_cpf":["não pode ficar em branco"],"beneficiary_address_street":["não
|
85
|
+
pode ficar em branco"],"beneficiary_address_city":["não pode ficar em branco"],"beneficiary_address_neighborhood":["não
|
86
|
+
pode ficar em branco"],"beneficiary_address_state":["não pode ficar em branco"],"beneficiary_address_zipcode":["não
|
87
|
+
pode ficar em branco"]}}'
|
88
|
+
recorded_at: Tue, 22 Feb 2022 17:30:33 GMT
|
89
|
+
recorded_with: VCR 6.0.0
|
@@ -2,57 +2,84 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://sandbox.
|
5
|
+
uri: https://api-sandbox.kobana.com.br/v1/bank_billet_accounts
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: ''
|
8
|
+
string: '{"bank_billet_account":{}}'
|
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
|
27
|
-
Connection:
|
28
|
-
- keep-alive
|
29
|
-
Strict-Transport-Security:
|
30
|
-
- max-age=2592000
|
31
25
|
Content-Type:
|
32
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
|
33
53
|
X-Ratelimit-Limit:
|
34
|
-
- '
|
54
|
+
- '18000'
|
35
55
|
X-Ratelimit-Remaining:
|
36
|
-
- '
|
56
|
+
- '17962'
|
37
57
|
Cache-Control:
|
38
58
|
- no-cache
|
39
59
|
X-Request-Id:
|
40
|
-
-
|
60
|
+
- 6064800b-9ce2-4b16-b1f9-1e468438e735
|
41
61
|
X-Runtime:
|
42
|
-
- '0.
|
62
|
+
- '0.012011'
|
43
63
|
Date:
|
44
|
-
-
|
64
|
+
- Tue, 22 Feb 2022 17:30:34 GMT
|
45
65
|
X-Rack-Cache:
|
46
66
|
- invalidate, pass
|
67
|
+
Strict-Transport-Security:
|
68
|
+
- max-age=31556952; includeSubDomains; preload
|
47
69
|
Vary:
|
48
|
-
- Accept-Encoding
|
49
|
-
|
50
|
-
-
|
70
|
+
- Origin,Accept-Encoding
|
71
|
+
X-Rack-Cors:
|
72
|
+
- miss; no-origin
|
51
73
|
Via:
|
52
|
-
- 1.1 vegur
|
74
|
+
- 1.1 vegur, 1.1 107e6221a3918b7fdc812d78ae3e5448.cloudfront.net (CloudFront)
|
75
|
+
X-Cache:
|
76
|
+
- Error from cloudfront
|
77
|
+
X-Amz-Cf-Pop:
|
78
|
+
- MIA3-C1
|
79
|
+
X-Amz-Cf-Id:
|
80
|
+
- 2ewN3UW7obIJSKgQ_JvyvMiyoOxlCywaLcVZlTsoMMA_kUn5dU6Gzw==
|
53
81
|
body:
|
54
82
|
encoding: UTF-8
|
55
|
-
string: '{"errors":{"
|
56
|
-
|
57
|
-
|
58
|
-
recorded_with: VCR 2.9.3
|
83
|
+
string: '{"errors":[{"title":"bank_billet_account não pode ficar em branco","status":422,"code":422}]}'
|
84
|
+
recorded_at: Tue, 22 Feb 2022 17:30:34 GMT
|
85
|
+
recorded_with: VCR 6.0.0
|
@@ -2,61 +2,97 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://sandbox.
|
5
|
+
uri: https://api-sandbox.kobana.com.br/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
|
23
25
|
message: Created
|
24
26
|
headers:
|
25
|
-
|
26
|
-
-
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf-8
|
29
|
+
Transfer-Encoding:
|
30
|
+
- chunked
|
27
31
|
Connection:
|
28
32
|
- keep-alive
|
29
|
-
|
30
|
-
-
|
33
|
+
Server:
|
34
|
+
- Cowboy
|
35
|
+
X-Frame-Options:
|
36
|
+
- DENY
|
37
|
+
X-Xss-Protection:
|
38
|
+
- 1; mode=block
|
39
|
+
X-Content-Type-Options:
|
40
|
+
- nosniff
|
41
|
+
X-Download-Options:
|
42
|
+
- noopen
|
43
|
+
X-Permitted-Cross-Domain-Policies:
|
44
|
+
- none
|
45
|
+
Referrer-Policy:
|
46
|
+
- strict-origin-when-cross-origin
|
47
|
+
Expect-Ct:
|
48
|
+
- max-age=0, report-uri="https://boletosimples.report-uri.com/r/d/ct/reportOnly"
|
49
|
+
Cross-Origin-Resource-Policy:
|
50
|
+
- cross-origin
|
51
|
+
Cross-Origin-Embedder-Policy:
|
52
|
+
- unsafe-none
|
53
|
+
Cross-Origin-Opener-Policy:
|
54
|
+
- unsafe-none
|
31
55
|
Location:
|
32
|
-
- https://sandbox.
|
33
|
-
Content-Type:
|
34
|
-
- application/json; charset=utf-8
|
56
|
+
- https://api-sandbox.kobana.com.br/api/v1/bank_billet_accounts/4364
|
35
57
|
X-Ratelimit-Limit:
|
36
|
-
- '
|
58
|
+
- '18000'
|
37
59
|
X-Ratelimit-Remaining:
|
38
|
-
- '
|
60
|
+
- '17964'
|
39
61
|
Etag:
|
40
|
-
- W/"
|
62
|
+
- W/"b1d2c1acaf9f0b8c624a6ac468256ea1"
|
41
63
|
Cache-Control:
|
42
64
|
- max-age=0, private, must-revalidate
|
43
65
|
X-Request-Id:
|
44
|
-
-
|
66
|
+
- be500f02-5434-4cdc-bbd4-5ec2f0de77e8
|
45
67
|
X-Runtime:
|
46
|
-
- '0.
|
68
|
+
- '0.056559'
|
47
69
|
Date:
|
48
|
-
-
|
70
|
+
- Tue, 22 Feb 2022 17:30:32 GMT
|
49
71
|
X-Rack-Cache:
|
50
72
|
- invalidate, pass
|
73
|
+
Strict-Transport-Security:
|
74
|
+
- max-age=31556952; includeSubDomains; preload
|
51
75
|
Vary:
|
52
|
-
- Accept-Encoding
|
53
|
-
|
54
|
-
-
|
76
|
+
- Origin,Accept-Encoding
|
77
|
+
X-Rack-Cors:
|
78
|
+
- miss; no-origin
|
55
79
|
Via:
|
56
|
-
- 1.1 vegur
|
80
|
+
- 1.1 vegur, 1.1 4b55539e55239f4c2ab64bc16c112d4e.cloudfront.net (CloudFront)
|
81
|
+
X-Cache:
|
82
|
+
- Miss from cloudfront
|
83
|
+
X-Amz-Cf-Pop:
|
84
|
+
- MIA3-C1
|
85
|
+
X-Amz-Cf-Id:
|
86
|
+
- H6ydiP2efF11tiNSTpcxuZsOOLYEvfTVisugkC8GL7pODqRRe99B0Q==
|
57
87
|
body:
|
58
88
|
encoding: UTF-8
|
59
|
-
string: '{"id":
|
60
|
-
|
61
|
-
|
62
|
-
|
89
|
+
string: '{"id":4364,"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
|
90
|
+
S.A.","beneficiary_cnpj_cpf":"22.622.867/0001-11","beneficiary_address":"Rua
|
91
|
+
S, Moema, São Paulo, SP, 04524030","name":"Bancoob/Sicoob 02 CC: 00003666-8
|
92
|
+
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
|
93
|
+
- Simples Sem Registro"},"integration":false,"created_via_api":true,"homologated_at":null,"next_remittance_number":1,"configuration":null,"default":false,"custom_name":"Bancoob/Sicoob
|
94
|
+
02 CC: 3666-8 1234567","kind":"cnab400","beneficiary_address_street":"Rua
|
95
|
+
S","beneficiary_address_street_number":null,"beneficiary_address_complement":null,"beneficiary_address_city":"São
|
96
|
+
Paulo","beneficiary_address_neighborhood":"Moema","beneficiary_address_state":"SP","beneficiary_address_zipcode":"04524030","allow_expiration_on_weekends":false}'
|
97
|
+
recorded_at: Tue, 22 Feb 2022 17:30:32 GMT
|
98
|
+
recorded_with: VCR 6.0.0
|
@@ -2,57 +2,93 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://sandbox.
|
5
|
+
uri: https://api-sandbox.kobana.com.br/v1/bank_billet_accounts/4364
|
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
|
25
|
-
Connection:
|
26
|
-
- keep-alive
|
27
|
-
Strict-Transport-Security:
|
28
|
-
- max-age=2592000
|
29
23
|
Content-Type:
|
30
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/bank_billet_accounts/4364
|
31
53
|
X-Ratelimit-Limit:
|
32
|
-
- '
|
54
|
+
- '100'
|
33
55
|
X-Ratelimit-Remaining:
|
34
|
-
- '
|
56
|
+
- '66'
|
35
57
|
Etag:
|
36
|
-
- W/"
|
58
|
+
- W/"b1d2c1acaf9f0b8c624a6ac468256ea1"
|
37
59
|
Cache-Control:
|
38
60
|
- must-revalidate, private, max-age=0
|
39
61
|
X-Request-Id:
|
40
|
-
-
|
62
|
+
- 02ad2df1-df98-4042-926f-cbf302fbbcd9
|
41
63
|
X-Runtime:
|
42
|
-
- '0.
|
64
|
+
- '0.020163'
|
43
65
|
Date:
|
44
|
-
-
|
66
|
+
- Tue, 22 Feb 2022 17:30:35 GMT
|
45
67
|
X-Rack-Cache:
|
46
68
|
- miss
|
69
|
+
Strict-Transport-Security:
|
70
|
+
- max-age=31556952; includeSubDomains; preload
|
47
71
|
Vary:
|
48
|
-
- Accept-Encoding
|
49
|
-
|
50
|
-
-
|
72
|
+
- Origin,Accept-Encoding
|
73
|
+
X-Rack-Cors:
|
74
|
+
- miss; no-origin
|
51
75
|
Via:
|
52
|
-
- 1.1 vegur
|
76
|
+
- 1.1 vegur, 1.1 3b888dcc047b71c0685c3b793d031fb2.cloudfront.net (CloudFront)
|
77
|
+
X-Cache:
|
78
|
+
- Miss from cloudfront
|
79
|
+
X-Amz-Cf-Pop:
|
80
|
+
- MIA3-C1
|
81
|
+
X-Amz-Cf-Id:
|
82
|
+
- blpLXroAg64ix-URtyGjCIj3G7YcMwL1_0y4CZWJOkR5GHXlFURFHg==
|
53
83
|
body:
|
54
84
|
encoding: UTF-8
|
55
|
-
string: '{"id":
|
56
|
-
|
57
|
-
|
58
|
-
|
85
|
+
string: '{"id":4364,"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
|
86
|
+
S.A.","beneficiary_cnpj_cpf":"22.622.867/0001-11","beneficiary_address":"Rua
|
87
|
+
S, Moema, São Paulo, SP, 04524030","name":"Bancoob/Sicoob 02 CC: 00003666-8
|
88
|
+
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
|
89
|
+
- Simples Sem Registro"},"integration":false,"created_via_api":true,"homologated_at":null,"next_remittance_number":1,"configuration":null,"default":false,"custom_name":"Bancoob/Sicoob
|
90
|
+
02 CC: 3666-8 1234567","kind":"cnab400","beneficiary_address_street":"Rua
|
91
|
+
S","beneficiary_address_street_number":null,"beneficiary_address_complement":null,"beneficiary_address_city":"São
|
92
|
+
Paulo","beneficiary_address_neighborhood":"Moema","beneficiary_address_state":"SP","beneficiary_address_zipcode":"04524030","allow_expiration_on_weekends":false}'
|
93
|
+
recorded_at: Tue, 22 Feb 2022 17:30:35 GMT
|
94
|
+
recorded_with: VCR 6.0.0
|