boletosimples 1.0.4 → 2.0.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 +6 -0
- data/README.md +6 -7
- data/lib/boletosimples/configuration.rb +2 -2
- data/lib/boletosimples/response_error.rb +2 -2
- data/lib/boletosimples/version.rb +1 -1
- data/spec/boletosimples/configuration_spec.rb +3 -3
- data/spec/boletosimples/resources/bank_billet_spec.rb +2 -2
- data/spec/boletosimples/resources/customer_spec.rb +9 -4
- data/spec/boletosimples/resources/customer_subscription_spec.rb +1 -1
- data/spec/boletosimples/resources/installment_spec.rb +1 -1
- data/spec/fixtures/vcr_cassettes/last_request/bank_billets.yml +386 -520
- data/spec/fixtures/vcr_cassettes/resources/bank_billet/all.yml +78 -522
- data/spec/fixtures/vcr_cassettes/resources/bank_billet/cancel/success.yml +30 -12
- data/spec/fixtures/vcr_cassettes/resources/bank_billet/create/invalid_params.yml +32 -16
- data/spec/fixtures/vcr_cassettes/resources/bank_billet/create/invalid_root.yml +31 -15
- data/spec/fixtures/vcr_cassettes/resources/bank_billet/create/valid.yml +42 -28
- data/spec/fixtures/vcr_cassettes/resources/bank_billet/duplicate/success.yml +41 -27
- data/spec/fixtures/vcr_cassettes/resources/bank_billet/find.yml +46 -31
- data/spec/fixtures/vcr_cassettes/resources/bank_billet_account/all.yml +47 -103
- data/spec/fixtures/vcr_cassettes/resources/bank_billet_account/create/invalid_params.yml +31 -15
- data/spec/fixtures/vcr_cassettes/resources/bank_billet_account/create/invalid_root.yml +31 -15
- data/spec/fixtures/vcr_cassettes/resources/bank_billet_account/create/valid.yml +35 -19
- data/spec/fixtures/vcr_cassettes/resources/bank_billet_account/find.yml +35 -19
- data/spec/fixtures/vcr_cassettes/resources/bank_billet_discharge/all.yml +35 -41
- data/spec/fixtures/vcr_cassettes/resources/bank_billet_payment/all.yml +73 -72
- data/spec/fixtures/vcr_cassettes/resources/bank_billet_remittance/all.yml +39 -70
- data/spec/fixtures/vcr_cassettes/resources/customer/all.yml +111 -56
- data/spec/fixtures/vcr_cassettes/resources/customer/create/invalid_params.yml +35 -19
- data/spec/fixtures/vcr_cassettes/resources/customer/create/invalid_root.yml +35 -16
- data/spec/fixtures/vcr_cassettes/resources/customer/create/valid.yml +37 -21
- data/spec/fixtures/vcr_cassettes/resources/customer/find.yml +36 -20
- data/spec/fixtures/vcr_cassettes/resources/customer_import/all.yml +34 -18
- data/spec/fixtures/vcr_cassettes/resources/customer_import/create/invalid_params.yml +31 -15
- data/spec/fixtures/vcr_cassettes/resources/customer_import/create/invalid_root.yml +31 -15
- data/spec/fixtures/vcr_cassettes/resources/customer_import/create/valid.yml +36 -20
- data/spec/fixtures/vcr_cassettes/resources/customer_import/find.yml +34 -18
- data/spec/fixtures/vcr_cassettes/resources/customer_subscription/all.yml +35 -71
- data/spec/fixtures/vcr_cassettes/resources/customer_subscription/create/invalid_params.yml +32 -16
- data/spec/fixtures/vcr_cassettes/resources/customer_subscription/create/invalid_root.yml +31 -15
- data/spec/fixtures/vcr_cassettes/resources/customer_subscription/create/valid.yml +35 -19
- data/spec/fixtures/vcr_cassettes/resources/customer_subscription/find.yml +36 -20
- data/spec/fixtures/vcr_cassettes/resources/customer_subscription/next_charge.yml +36 -20
- data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/all.yml +34 -19
- data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/create/invalid_params.yml +31 -15
- data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/create/invalid_root.yml +31 -15
- data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/create/valid.yml +36 -20
- data/spec/fixtures/vcr_cassettes/resources/customer_subscription_import/find.yml +34 -18
- data/spec/fixtures/vcr_cassettes/resources/discharge/all.yml +37 -39
- data/spec/fixtures/vcr_cassettes/resources/discharge/create/invalid_params.yml +31 -15
- data/spec/fixtures/vcr_cassettes/resources/discharge/create/invalid_root.yml +31 -15
- data/spec/fixtures/vcr_cassettes/resources/discharge/create/valid.yml +37 -21
- data/spec/fixtures/vcr_cassettes/resources/discharge/find.yml +36 -18
- data/spec/fixtures/vcr_cassettes/resources/email_delivery/all.yml +1 -1
- data/spec/fixtures/vcr_cassettes/resources/event/all.yml +267 -432
- data/spec/fixtures/vcr_cassettes/resources/installment/all.yml +71 -375
- data/spec/fixtures/vcr_cassettes/resources/installment/create/invalid_params.yml +32 -16
- data/spec/fixtures/vcr_cassettes/resources/installment/create/invalid_root.yml +31 -15
- data/spec/fixtures/vcr_cassettes/resources/installment/create/valid.yml +35 -19
- data/spec/fixtures/vcr_cassettes/resources/installment/find.yml +59 -19
- data/spec/fixtures/vcr_cassettes/resources/remittance/all.yml +82 -81
- data/spec/fixtures/vcr_cassettes/resources/sns_delivery/all.yml +31 -15
- data/spec/fixtures/vcr_cassettes/resources/transaction/all.yml +72 -71
- data/spec/fixtures/vcr_cassettes/resources/web_hook/all.yml +33 -17
- data/spec/fixtures/vcr_cassettes/resources/webhook_delivery/all.yml +2657 -1206
- metadata +5 -186
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://sandbox.
|
5
|
+
uri: https://api-sandbox.kobana.com.br/v1/customers
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: '{"customer":{}}'
|
@@ -22,10 +22,14 @@ http_interactions:
|
|
22
22
|
code: 422
|
23
23
|
message: Unprocessable Entity
|
24
24
|
headers:
|
25
|
-
|
26
|
-
-
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=utf-8
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
27
29
|
Connection:
|
28
30
|
- keep-alive
|
31
|
+
Server:
|
32
|
+
- Cowboy
|
29
33
|
X-Frame-Options:
|
30
34
|
- DENY
|
31
35
|
X-Xss-Protection:
|
@@ -38,32 +42,47 @@ http_interactions:
|
|
38
42
|
- none
|
39
43
|
Referrer-Policy:
|
40
44
|
- strict-origin-when-cross-origin
|
41
|
-
|
42
|
-
-
|
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
|
43
53
|
X-Ratelimit-Limit:
|
44
|
-
- '
|
54
|
+
- '18000'
|
45
55
|
X-Ratelimit-Remaining:
|
46
|
-
- '
|
56
|
+
- '17944'
|
47
57
|
Cache-Control:
|
48
58
|
- no-cache
|
49
59
|
X-Request-Id:
|
50
|
-
-
|
60
|
+
- d20e889b-59e6-4d9f-90f6-37cb5b2ebde5
|
51
61
|
X-Runtime:
|
52
|
-
- '0.
|
62
|
+
- '0.017494'
|
53
63
|
Date:
|
54
|
-
- Tue,
|
64
|
+
- Tue, 22 Feb 2022 17:34:25 GMT
|
55
65
|
X-Rack-Cache:
|
56
66
|
- invalidate, pass
|
57
67
|
Strict-Transport-Security:
|
58
|
-
- max-age=
|
68
|
+
- max-age=31556952; includeSubDomains; preload
|
59
69
|
Vary:
|
60
70
|
- Origin,Accept-Encoding
|
61
|
-
|
62
|
-
-
|
71
|
+
X-Rack-Cors:
|
72
|
+
- miss; no-origin
|
63
73
|
Via:
|
64
|
-
- 1.1 vegur
|
74
|
+
- 1.1 vegur, 1.1 5b065c27afb6cf16a3aa6aae83715630.cloudfront.net (CloudFront)
|
75
|
+
X-Cache:
|
76
|
+
- Error from cloudfront
|
77
|
+
X-Amz-Cf-Pop:
|
78
|
+
- MIA3-C1
|
79
|
+
X-Amz-Cf-Id:
|
80
|
+
- zAKntt6cRIv2PQbOBb4mMOnrIiz3iTdK2hw87caprYvmD8XJJDeziw==
|
65
81
|
body:
|
66
82
|
encoding: UTF-8
|
67
|
-
string: '{"errors":
|
68
|
-
|
83
|
+
string: '{"errors":{"person_name":["não pode ficar em branco"],"zipcode":["não
|
84
|
+
pode ficar em branco"],"address":["não pode ficar em branco"],"neighborhood":["não
|
85
|
+
pode ficar em branco"],"city_name":["não pode ficar em branco"],"cnpj_cpf":["não
|
86
|
+
é um CNPJ ou CPF válido"],"state":["não está incluído na lista"]}}'
|
87
|
+
recorded_at: Tue, 22 Feb 2022 17:34:25 GMT
|
69
88
|
recorded_with: VCR 6.0.0
|
@@ -2,10 +2,10 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://sandbox.
|
5
|
+
uri: https://api-sandbox.kobana.com.br/v1/customers
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: '{"customer":{"person_name":"Maria José","cnpj_cpf":"
|
8
|
+
string: '{"customer":{"person_name":"Maria José","cnpj_cpf":"84.232.027/0001-08","email":"cliente@example.com","address":"Rua
|
9
9
|
quinhentos","city_name":"Rio de Janeiro","state":"RJ","neighborhood":"bairro","zipcode":"12312-123","address_number":"111","address_complement":"Sala
|
10
10
|
4","phone_number":"2112123434"}}'
|
11
11
|
headers:
|
@@ -24,10 +24,14 @@ http_interactions:
|
|
24
24
|
code: 201
|
25
25
|
message: Created
|
26
26
|
headers:
|
27
|
-
|
28
|
-
-
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf-8
|
29
|
+
Transfer-Encoding:
|
30
|
+
- chunked
|
29
31
|
Connection:
|
30
32
|
- keep-alive
|
33
|
+
Server:
|
34
|
+
- Cowboy
|
31
35
|
X-Frame-Options:
|
32
36
|
- DENY
|
33
37
|
X-Xss-Protection:
|
@@ -40,38 +44,50 @@ http_interactions:
|
|
40
44
|
- none
|
41
45
|
Referrer-Policy:
|
42
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
|
43
55
|
Location:
|
44
|
-
- https://sandbox.
|
45
|
-
Content-Type:
|
46
|
-
- application/json; charset=utf-8
|
56
|
+
- https://api-sandbox.kobana.com.br/api/v1/customers/93343
|
47
57
|
X-Ratelimit-Limit:
|
48
|
-
- '
|
58
|
+
- '18000'
|
49
59
|
X-Ratelimit-Remaining:
|
50
|
-
- '
|
60
|
+
- '17945'
|
51
61
|
Etag:
|
52
|
-
- W/"
|
62
|
+
- W/"1db2e1b192053f54b3b632644ef709b0"
|
53
63
|
Cache-Control:
|
54
64
|
- max-age=0, private, must-revalidate
|
55
65
|
X-Request-Id:
|
56
|
-
-
|
66
|
+
- d34ecca5-1100-4746-82f6-f5a5ccfcde11
|
57
67
|
X-Runtime:
|
58
|
-
- '0.
|
68
|
+
- '0.025702'
|
59
69
|
Date:
|
60
|
-
- Tue,
|
70
|
+
- Tue, 22 Feb 2022 17:34:24 GMT
|
61
71
|
X-Rack-Cache:
|
62
72
|
- invalidate, pass
|
63
73
|
Strict-Transport-Security:
|
64
|
-
- max-age=
|
74
|
+
- max-age=31556952; includeSubDomains; preload
|
65
75
|
Vary:
|
66
76
|
- Origin,Accept-Encoding
|
67
|
-
|
68
|
-
-
|
77
|
+
X-Rack-Cors:
|
78
|
+
- miss; no-origin
|
69
79
|
Via:
|
70
|
-
- 1.1 vegur
|
80
|
+
- 1.1 vegur, 1.1 6dda9c60465801404125720fa2c0e500.cloudfront.net (CloudFront)
|
81
|
+
X-Cache:
|
82
|
+
- Miss from cloudfront
|
83
|
+
X-Amz-Cf-Pop:
|
84
|
+
- MIA3-C1
|
85
|
+
X-Amz-Cf-Id:
|
86
|
+
- IVKiwxdJaL3zbCyqMsC3b1v0Ms5hXZTsGRkAtzBw9mo-GnWqYUxAxg==
|
71
87
|
body:
|
72
88
|
encoding: UTF-8
|
73
|
-
string: '{"id":
|
74
|
-
quinhentos","address_complement":"Sala 4","address_number":"111","mobile_number":null,"cnpj_cpf":"
|
75
|
-
quinhentos, 111","external_code":null,"tags":[],"tag_list":
|
76
|
-
recorded_at: Tue,
|
89
|
+
string: '{"id":93343,"city_name":"Rio de Janeiro","person_name":"Maria José","nickname":null,"address":"Rua
|
90
|
+
quinhentos","address_complement":"Sala 4","address_number":"111","mobile_number":null,"cnpj_cpf":"84.232.027/0001-08","email":"cliente@example.com","neighborhood":"bairro","phone_number":"2112123434","zipcode":"12312123","mobile_local_code":null,"notes":null,"state":"RJ","created_via_api":true,"email_cc":null,"contact_person":null,"truncated_address":"Rua
|
91
|
+
quinhentos, 111","external_code":null,"tags":[],"tag_list":null,"custom_data":null}'
|
92
|
+
recorded_at: Tue, 22 Feb 2022 17:34:24 GMT
|
77
93
|
recorded_with: VCR 6.0.0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://sandbox.
|
5
|
+
uri: https://api-sandbox.kobana.com.br/v1/customers/93343
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -20,10 +20,14 @@ http_interactions:
|
|
20
20
|
code: 200
|
21
21
|
message: OK
|
22
22
|
headers:
|
23
|
-
|
24
|
-
-
|
23
|
+
Content-Type:
|
24
|
+
- application/json; charset=utf-8
|
25
|
+
Transfer-Encoding:
|
26
|
+
- chunked
|
25
27
|
Connection:
|
26
28
|
- keep-alive
|
29
|
+
Server:
|
30
|
+
- Cowboy
|
27
31
|
X-Frame-Options:
|
28
32
|
- DENY
|
29
33
|
X-Xss-Protection:
|
@@ -36,38 +40,50 @@ http_interactions:
|
|
36
40
|
- none
|
37
41
|
Referrer-Policy:
|
38
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
|
39
51
|
Location:
|
40
|
-
- https://sandbox.
|
41
|
-
Content-Type:
|
42
|
-
- application/json; charset=utf-8
|
52
|
+
- https://api-sandbox.kobana.com.br/api/v1/customers/93343
|
43
53
|
X-Ratelimit-Limit:
|
44
|
-
- '
|
54
|
+
- '100'
|
45
55
|
X-Ratelimit-Remaining:
|
46
|
-
- '
|
56
|
+
- '46'
|
47
57
|
Etag:
|
48
|
-
- W/"
|
58
|
+
- W/"1db2e1b192053f54b3b632644ef709b0"
|
49
59
|
Cache-Control:
|
50
60
|
- must-revalidate, private, max-age=0
|
51
61
|
X-Request-Id:
|
52
|
-
-
|
62
|
+
- 345770fd-d68c-4184-accb-7fe2a6e4d093
|
53
63
|
X-Runtime:
|
54
|
-
- '0.
|
64
|
+
- '0.018560'
|
55
65
|
Date:
|
56
|
-
- Tue,
|
66
|
+
- Tue, 22 Feb 2022 17:34:26 GMT
|
57
67
|
X-Rack-Cache:
|
58
68
|
- miss
|
59
69
|
Strict-Transport-Security:
|
60
|
-
- max-age=
|
70
|
+
- max-age=31556952; includeSubDomains; preload
|
61
71
|
Vary:
|
62
72
|
- Origin,Accept-Encoding
|
63
|
-
|
64
|
-
-
|
73
|
+
X-Rack-Cors:
|
74
|
+
- miss; no-origin
|
65
75
|
Via:
|
66
|
-
- 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
|
+
- 21TiFmRZzkS-d2gDHS6G9m7fodQ5_Zophs5LX2yG46I3qNfGZBvQMg==
|
67
83
|
body:
|
68
84
|
encoding: UTF-8
|
69
|
-
string: '{"id":
|
70
|
-
quinhentos","address_complement":"Sala 4","address_number":"111","mobile_number":null,"cnpj_cpf":"
|
71
|
-
quinhentos, 111","external_code":null,"tags":[],"tag_list":
|
72
|
-
recorded_at: Tue,
|
85
|
+
string: '{"id":93343,"city_name":"Rio de Janeiro","person_name":"Maria José","nickname":null,"address":"Rua
|
86
|
+
quinhentos","address_complement":"Sala 4","address_number":"111","mobile_number":null,"cnpj_cpf":"84.232.027/0001-08","email":"cliente@example.com","neighborhood":"bairro","phone_number":"2112123434","zipcode":"12312123","mobile_local_code":null,"notes":null,"state":"RJ","created_via_api":true,"email_cc":null,"contact_person":null,"truncated_address":"Rua
|
87
|
+
quinhentos, 111","external_code":null,"tags":[],"tag_list":null,"custom_data":null}'
|
88
|
+
recorded_at: Tue, 22 Feb 2022 17:34:26 GMT
|
73
89
|
recorded_with: VCR 6.0.0
|
@@ -2,7 +2,7 @@
|
|
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/customers
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -20,10 +20,14 @@ http_interactions:
|
|
20
20
|
code: 200
|
21
21
|
message: OK
|
22
22
|
headers:
|
23
|
-
|
24
|
-
-
|
23
|
+
Content-Type:
|
24
|
+
- application/json; charset=utf-8
|
25
|
+
Transfer-Encoding:
|
26
|
+
- chunked
|
25
27
|
Connection:
|
26
28
|
- keep-alive
|
29
|
+
Server:
|
30
|
+
- Cowboy
|
27
31
|
X-Frame-Options:
|
28
32
|
- DENY
|
29
33
|
X-Xss-Protection:
|
@@ -36,39 +40,51 @@ http_interactions:
|
|
36
40
|
- none
|
37
41
|
Referrer-Policy:
|
38
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
|
39
51
|
Per-Page:
|
40
52
|
- '50'
|
41
53
|
Page:
|
42
54
|
- ''
|
43
|
-
Content-Type:
|
44
|
-
- application/json; charset=utf-8
|
45
55
|
X-Ratelimit-Limit:
|
46
|
-
- '
|
56
|
+
- '100'
|
47
57
|
X-Ratelimit-Remaining:
|
48
|
-
- '
|
58
|
+
- '54'
|
49
59
|
Etag:
|
50
|
-
- W/"
|
60
|
+
- W/"99302283bf335bb8458a703a245d1597"
|
51
61
|
Cache-Control:
|
52
62
|
- must-revalidate, private, max-age=0
|
53
63
|
X-Request-Id:
|
54
|
-
-
|
64
|
+
- aa441ad2-4138-4abc-9d00-7ff1f05f020f
|
55
65
|
X-Runtime:
|
56
|
-
- '0.
|
66
|
+
- '0.036888'
|
57
67
|
Date:
|
58
|
-
- Tue,
|
68
|
+
- Tue, 22 Feb 2022 17:30:45 GMT
|
59
69
|
X-Rack-Cache:
|
60
70
|
- miss
|
61
71
|
Strict-Transport-Security:
|
62
|
-
- max-age=
|
72
|
+
- max-age=31556952; includeSubDomains; preload
|
63
73
|
Vary:
|
64
74
|
- Origin,Accept-Encoding
|
65
|
-
|
66
|
-
-
|
75
|
+
X-Rack-Cors:
|
76
|
+
- miss; no-origin
|
67
77
|
Via:
|
68
|
-
- 1.1 vegur
|
78
|
+
- 1.1 vegur, 1.1 189ad47cf7c6f3a8b745cb053efec004.cloudfront.net (CloudFront)
|
79
|
+
X-Cache:
|
80
|
+
- Miss from cloudfront
|
81
|
+
X-Amz-Cf-Pop:
|
82
|
+
- MIA3-C1
|
83
|
+
X-Amz-Cf-Id:
|
84
|
+
- 9LpscuaUQ3VLu0knktPEVCHZE8nugUR9UEJdm3SSgwsBRZwlO2i_VA==
|
69
85
|
body:
|
70
86
|
encoding: UTF-8
|
71
|
-
string: '[{"id":
|
72
|
-
max number of clients reached","processed_rows":0,"total_rows":null,"updated_rows":0,"source_file_name":"customers.csv","source_file_size":190,"status":"fatal_error","created_via_api":true},{"id":
|
73
|
-
recorded_at: Tue,
|
87
|
+
string: '[{"id":1280,"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":"customers.csv","source_file_size":190,"status":"pending","created_via_api":true},{"id":1278,"created_rows":0,"enqueued_at":null,"started_at":"2022-02-22T14:27:22-03:00","finished_at":"2022-02-22T14:27:23-03:00","processed_at":null,"failed_to_create_rows":0,"failed_to_update_rows":0,"import_errors":"ERR
|
88
|
+
max number of clients reached","processed_rows":0,"total_rows":null,"updated_rows":0,"source_file_name":"customers.csv","source_file_size":190,"status":"fatal_error","created_via_api":true},{"id":1025,"created_rows":0,"enqueued_at":"2021-04-09T09:51:10-03:00","started_at":"2021-04-09T09:51:55-03:00","finished_at":"2021-04-09T09:51:55-03:00","processed_at":null,"failed_to_create_rows":0,"failed_to_update_rows":0,"import_errors":[],"processed_rows":0,"total_rows":0,"updated_rows":0,"source_file_name":"customers.csv","source_file_size":190,"status":"done","created_via_api":true},{"id":1022,"created_rows":0,"enqueued_at":"2021-04-09T09:12:03-03:00","started_at":"2021-04-09T09:14:32-03:00","finished_at":"2021-04-09T09:14:34-03:00","processed_at":null,"failed_to_create_rows":0,"failed_to_update_rows":0,"import_errors":[],"processed_rows":0,"total_rows":0,"updated_rows":0,"source_file_name":"customers.csv","source_file_size":190,"status":"done","created_via_api":true},{"id":844,"created_rows":0,"enqueued_at":"2020-10-06T09:17:21-03:00","started_at":"2020-10-06T09:17:22-03:00","finished_at":"2020-10-06T09:17:23-03:00","processed_at":null,"failed_to_create_rows":0,"failed_to_update_rows":0,"import_errors":[],"processed_rows":0,"total_rows":0,"updated_rows":0,"source_file_name":"customers.csv","source_file_size":190,"status":"done","created_via_api":true}]'
|
89
|
+
recorded_at: Tue, 22 Feb 2022 17:30:45 GMT
|
74
90
|
recorded_with: VCR 6.0.0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://sandbox.
|
5
|
+
uri: https://api-sandbox.kobana.com.br/v1/imports/customers
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: '{"customer_import":{"source":""}}'
|
@@ -22,10 +22,14 @@ http_interactions:
|
|
22
22
|
code: 422
|
23
23
|
message: Unprocessable Entity
|
24
24
|
headers:
|
25
|
-
|
26
|
-
-
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=utf-8
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
27
29
|
Connection:
|
28
30
|
- keep-alive
|
31
|
+
Server:
|
32
|
+
- Cowboy
|
29
33
|
X-Frame-Options:
|
30
34
|
- DENY
|
31
35
|
X-Xss-Protection:
|
@@ -38,32 +42,44 @@ http_interactions:
|
|
38
42
|
- none
|
39
43
|
Referrer-Policy:
|
40
44
|
- strict-origin-when-cross-origin
|
41
|
-
|
42
|
-
-
|
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
|
43
53
|
X-Ratelimit-Limit:
|
44
|
-
- '
|
54
|
+
- '18000'
|
45
55
|
X-Ratelimit-Remaining:
|
46
|
-
- '
|
56
|
+
- '17953'
|
47
57
|
Cache-Control:
|
48
58
|
- no-cache
|
49
59
|
X-Request-Id:
|
50
|
-
-
|
60
|
+
- '0791ea37-99be-42da-bbe5-82947d0cd4c0'
|
51
61
|
X-Runtime:
|
52
|
-
- '0.
|
62
|
+
- '0.018423'
|
53
63
|
Date:
|
54
|
-
- Tue,
|
64
|
+
- Tue, 22 Feb 2022 17:30:46 GMT
|
55
65
|
X-Rack-Cache:
|
56
66
|
- invalidate, pass
|
57
67
|
Strict-Transport-Security:
|
58
|
-
- max-age=
|
68
|
+
- max-age=31556952; includeSubDomains; preload
|
59
69
|
Vary:
|
60
70
|
- Origin,Accept-Encoding
|
61
|
-
|
62
|
-
-
|
71
|
+
X-Rack-Cors:
|
72
|
+
- miss; no-origin
|
63
73
|
Via:
|
64
|
-
- 1.1 vegur
|
74
|
+
- 1.1 vegur, 1.1 a390f799acc33be35de7bc42ed295f38.cloudfront.net (CloudFront)
|
75
|
+
X-Cache:
|
76
|
+
- Error from cloudfront
|
77
|
+
X-Amz-Cf-Pop:
|
78
|
+
- MIA3-C1
|
79
|
+
X-Amz-Cf-Id:
|
80
|
+
- q6cNI8VTSf7h3cPa2Rte2NBK52p3kRqe0-nQTnsIqo0G4Sy9oU8bjw==
|
65
81
|
body:
|
66
82
|
encoding: UTF-8
|
67
83
|
string: '{"errors":{"source":["não pode ficar em branco"]}}'
|
68
|
-
recorded_at: Tue,
|
84
|
+
recorded_at: Tue, 22 Feb 2022 17:30:46 GMT
|
69
85
|
recorded_with: VCR 6.0.0
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: https://sandbox.
|
5
|
+
uri: https://api-sandbox.kobana.com.br/v1/imports/customers
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
8
|
string: '{"customer_import":{}}'
|
@@ -22,10 +22,14 @@ http_interactions:
|
|
22
22
|
code: 422
|
23
23
|
message: Unprocessable Entity
|
24
24
|
headers:
|
25
|
-
|
26
|
-
-
|
25
|
+
Content-Type:
|
26
|
+
- application/json; charset=utf-8
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
27
29
|
Connection:
|
28
30
|
- keep-alive
|
31
|
+
Server:
|
32
|
+
- Cowboy
|
29
33
|
X-Frame-Options:
|
30
34
|
- DENY
|
31
35
|
X-Xss-Protection:
|
@@ -38,32 +42,44 @@ http_interactions:
|
|
38
42
|
- none
|
39
43
|
Referrer-Policy:
|
40
44
|
- strict-origin-when-cross-origin
|
41
|
-
|
42
|
-
-
|
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
|
43
53
|
X-Ratelimit-Limit:
|
44
|
-
- '
|
54
|
+
- '18000'
|
45
55
|
X-Ratelimit-Remaining:
|
46
|
-
- '
|
56
|
+
- '17952'
|
47
57
|
Cache-Control:
|
48
58
|
- no-cache
|
49
59
|
X-Request-Id:
|
50
|
-
-
|
60
|
+
- 4b0c3e0b-e9ff-4e4c-bd6e-1ee49ad30ea9
|
51
61
|
X-Runtime:
|
52
|
-
- '0.
|
62
|
+
- '0.017162'
|
53
63
|
Date:
|
54
|
-
- Tue,
|
64
|
+
- Tue, 22 Feb 2022 17:30:46 GMT
|
55
65
|
X-Rack-Cache:
|
56
66
|
- invalidate, pass
|
57
67
|
Strict-Transport-Security:
|
58
|
-
- max-age=
|
68
|
+
- max-age=31556952; includeSubDomains; preload
|
59
69
|
Vary:
|
60
70
|
- Origin,Accept-Encoding
|
61
|
-
|
62
|
-
-
|
71
|
+
X-Rack-Cors:
|
72
|
+
- miss; no-origin
|
63
73
|
Via:
|
64
|
-
- 1.1 vegur
|
74
|
+
- 1.1 vegur, 1.1 b6efbf009f233af7a7aa7da68e6e2848.cloudfront.net (CloudFront)
|
75
|
+
X-Cache:
|
76
|
+
- Error from cloudfront
|
77
|
+
X-Amz-Cf-Pop:
|
78
|
+
- MIA3-C1
|
79
|
+
X-Amz-Cf-Id:
|
80
|
+
- IIUV_tB_yy9Ea36IA-L46rTyvEEeo0H8sOXZXnqo-f2W6yrKRFcmAQ==
|
65
81
|
body:
|
66
82
|
encoding: UTF-8
|
67
83
|
string: '{"errors":[{"title":"customer_import não pode ficar em branco","status":422,"code":422}]}'
|
68
|
-
recorded_at: Tue,
|
84
|
+
recorded_at: Tue, 22 Feb 2022 17:30:46 GMT
|
69
85
|
recorded_with: VCR 6.0.0
|