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,71 +2,173 @@
|
|
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
|
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
|
-
- '7'
|
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
|
+
- '47'
|
37
59
|
Etag:
|
38
|
-
- W/"
|
60
|
+
- W/"445dd4e72878a664a4a35ec2cc27317f"
|
39
61
|
Cache-Control:
|
40
62
|
- must-revalidate, private, max-age=0
|
41
63
|
X-Request-Id:
|
42
|
-
-
|
64
|
+
- de4ef123-8889-400c-9247-c94ab7173472
|
43
65
|
X-Runtime:
|
44
|
-
- '0.
|
66
|
+
- '0.026400'
|
45
67
|
Date:
|
46
|
-
-
|
68
|
+
- Tue, 22 Feb 2022 17:34:24 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 f0d2db130f25377126d8fc517e82fa4c.cloudfront.net (CloudFront)
|
79
|
+
X-Cache:
|
80
|
+
- Miss from cloudfront
|
81
|
+
X-Amz-Cf-Pop:
|
82
|
+
- MIA3-C1
|
83
|
+
X-Amz-Cf-Id:
|
84
|
+
- 4zeuibd7l0iWw6JmxDnj5gB5xZ-3FakGrxQXOMnQ7fhPOOxb_8Gn0w==
|
55
85
|
body:
|
56
86
|
encoding: UTF-8
|
57
|
-
string: '[{"id":
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
4","
|
65
|
-
de Janeiro","person_name":"
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
87
|
+
string: '[{"id":3,"city_name":"Rio de Janeiro","person_name":"Boleto Simples","nickname":"","address":"Av.
|
88
|
+
Presidente Vargas","address_complement":"sala 1716","address_number":"633","mobile_number":"81214248","cnpj_cpf":"05.813.794/0001-26","email":"kivanio+sb@boletosimples.com.br","neighborhood":"Centro","phone_number":"6581214248","zipcode":"20071004","mobile_local_code":"65","notes":null,"state":"RJ","created_via_api":false,"email_cc":null,"contact_person":null,"truncated_address":null,"external_code":null,"tags":[],"tag_list":null,"custom_data":null},{"id":21,"city_name":"Rio
|
89
|
+
de Janeiro","person_name":"Joao da Silva","nickname":null,"address":"Rua quinhentos","address_complement":"Sala
|
90
|
+
4","address_number":"111","mobile_number":null,"cnpj_cpf":"496.956.856-17","email":"cliente@bom.com","neighborhood":"Sao
|
91
|
+
Francisco","phone_number":"2112123434","zipcode":"12312-123","mobile_local_code":null,"notes":null,"state":"RJ","created_via_api":false,"email_cc":null,"contact_person":null,"truncated_address":null,"external_code":null,"tags":[],"tag_list":null,"custom_data":null},{"id":22,"city_name":null,"person_name":"Kivanio
|
92
|
+
Barbosa","nickname":null,"address":"rua 4","address_complement":"ap 5","address_number":"9","mobile_number":null,"cnpj_cpf":"425.176.823-05","email":null,"neighborhood":"Bau","phone_number":"6581214248","zipcode":"78058-330","mobile_local_code":null,"notes":null,"state":"MT","created_via_api":false,"email_cc":null,"contact_person":null,"truncated_address":null,"external_code":null,"tags":[],"tag_list":null,"custom_data":null},{"id":23,"city_name":"Cuiabá","person_name":"Kivanio
|
93
|
+
Barbosa","nickname":null,"address":"rua 4","address_complement":"ap 5","address_number":"9","mobile_number":null,"cnpj_cpf":"65.752.217/0001-01","email":null,"neighborhood":"Bau","phone_number":"6581214248","zipcode":"78058330","mobile_local_code":null,"notes":null,"state":"MT","created_via_api":false,"email_cc":null,"contact_person":null,"truncated_address":null,"external_code":null,"tags":[],"tag_list":null,"custom_data":null},{"id":41,"city_name":"Cuiabá","person_name":"Guillermo
|
94
|
+
Testing","nickname":null,"address":"Rua 4","address_complement":null,"address_number":null,"mobile_number":null,"cnpj_cpf":"648.330.468-49","email":"kivanio@gmail.com","neighborhood":"centro","phone_number":null,"zipcode":"21941900","mobile_local_code":null,"notes":null,"state":"MT","created_via_api":true,"email_cc":"RITAFORTALEZA@GMAIL.COM.BR","contact_person":null,"truncated_address":null,"external_code":null,"tags":[],"tag_list":null,"custom_data":null},{"id":43,"city_name":"Rio
|
95
|
+
de Janeiro","person_name":"Nome do Cliente","nickname":null,"address":"Rua
|
96
|
+
quinhentos","address_complement":null,"address_number":null,"mobile_number":null,"cnpj_cpf":"125.812.717-28","email":null,"neighborhood":"bairro","phone_number":null,"zipcode":"12312123","mobile_local_code":null,"notes":null,"state":"RJ","created_via_api":true,"email_cc":null,"contact_person":null,"truncated_address":null,"external_code":null,"tags":[],"tag_list":null,"custom_data":null},{"id":911,"city_name":"Cuiabá","person_name":"Kivanio
|
97
|
+
Barbosa","nickname":"","address":"Rua Quatro","address_complement":"","address_number":"9","mobile_number":null,"cnpj_cpf":"000.233.771-19","email":"kivanio@gmail.com","neighborhood":"CPA
|
98
|
+
III","phone_number":"6581214248","zipcode":"78058330","mobile_local_code":null,"notes":null,"state":"MT","created_via_api":true,"email_cc":null,"contact_person":"","truncated_address":null,"external_code":null,"tags":[],"tag_list":null,"custom_data":null},{"id":1059,"city_name":"Rio
|
99
|
+
de Janeiro","person_name":"Joao da Silva","nickname":null,"address":"Rua quinhentos","address_complement":"Sala
|
100
|
+
4","address_number":"111","mobile_number":null,"cnpj_cpf":"321.315.217-07","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":null,"external_code":null,"tags":[],"tag_list":null,"custom_data":null},{"id":1060,"city_name":"Rio
|
101
|
+
de Janeiro","person_name":"Joao da Silva","nickname":null,"address":"Rua quinhentos","address_complement":"Sala
|
102
|
+
4","address_number":"111","mobile_number":null,"cnpj_cpf":"667.525.119-85","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":null,"external_code":null,"tags":[],"tag_list":null,"custom_data":null},{"id":7997,"city_name":"Rio
|
103
|
+
de Janeiro","person_name":"Joao da Silva","nickname":null,"address":"Rua quinhentos","address_complement":"Sala
|
104
|
+
4","address_number":"111","mobile_number":null,"cnpj_cpf":"247.524.507-71","email":"cliente@example.com","neighborhood":"Sao
|
105
|
+
Francisco","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
|
106
|
+
quinhentos, 111","external_code":null,"tags":[],"tag_list":null,"custom_data":null},{"id":8162,"city_name":"Rio
|
107
|
+
de Janeiro","person_name":"Joao da Silva","nickname":null,"address":"Rua quinhentos","address_complement":"Sala
|
108
|
+
4","address_number":"111","mobile_number":null,"cnpj_cpf":"414.655.417-99","email":"cliente@example.com","neighborhood":"Sao
|
109
|
+
Francisco","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
|
110
|
+
quinhentos, 111","external_code":null,"tags":[],"tag_list":null,"custom_data":null},{"id":10337,"city_name":"Rio
|
111
|
+
de Janeiro","person_name":"Rafael Lima","nickname":null,"address":"Av. Candango
|
112
|
+
321 489","address_complement":null,"address_number":null,"mobile_number":null,"cnpj_cpf":"174.438.154-25","email":"email@example.com","neighborhood":"Guaranim","phone_number":"00099324545","zipcode":"21324009","mobile_local_code":null,"notes":null,"state":"RJ","created_via_api":true,"email_cc":null,"contact_person":null,"truncated_address":"Av.
|
113
|
+
Candango 321 489, ","external_code":null,"tags":[],"tag_list":null,"custom_data":null},{"id":12276,"city_name":"Campo
|
114
|
+
Verde","person_name":"ANTONIO CARLOS DESORDI","nickname":null,"address":"Rod.
|
115
|
+
Br 070, Km 370 + 06Km","address_complement":"Sala 4","address_number":"111","mobile_number":null,"cnpj_cpf":"245.600.650-04","email":"cliente@example.com","neighborhood":"Zona
|
116
|
+
Rural","phone_number":"6634193636","zipcode":"78840000","mobile_local_code":null,"notes":null,"state":"MT","created_via_api":true,"email_cc":null,"contact_person":null,"truncated_address":"Rod.
|
117
|
+
Br 070, Km 370 + 06Km, 111","external_code":null,"tags":[],"tag_list":null,"custom_data":null},{"id":15403,"city_name":"Rio
|
118
|
+
de Janeiro","person_name":"Nome do Cliente","nickname":null,"address":"Rua
|
119
|
+
quinhentos","address_complement":null,"address_number":null,"mobile_number":null,"cnpj_cpf":"482.252.976-28","email":null,"neighborhood":"bairro","phone_number":null,"zipcode":"12312123","mobile_local_code":null,"notes":null,"state":"RJ","created_via_api":true,"email_cc":null,"contact_person":null,"truncated_address":"Rua
|
120
|
+
quinhentos, ","external_code":null,"tags":[],"tag_list":null,"custom_data":null},{"id":16931,"city_name":"Rio
|
121
|
+
de Janeiro","person_name":"Joao da Silva","nickname":null,"address":"Rua quinhentos","address_complement":"Sala
|
122
|
+
4","address_number":"111","mobile_number":null,"cnpj_cpf":"782.661.177-64","email":"cliente@bom.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
|
123
|
+
quinhentos, 111","external_code":null,"tags":[],"tag_list":null,"custom_data":null},{"id":16968,"city_name":"Rio
|
124
|
+
de Janeiro","person_name":"Joao da Silva","nickname":null,"address":"Rua quinhentos","address_complement":"Sala
|
125
|
+
4","address_number":"111","mobile_number":null,"cnpj_cpf":"253.435.522-85","email":"cliente@example.com","neighborhood":"Sao
|
126
|
+
Francisco","phone_number":"2112123434","zipcode":"01001000","mobile_local_code":null,"notes":null,"state":"RJ","created_via_api":true,"email_cc":null,"contact_person":null,"truncated_address":"Rua
|
127
|
+
quinhentos, 111","external_code":null,"tags":[],"tag_list":null,"custom_data":null},{"id":20482,"city_name":"Macapá","person_name":"Trade
|
128
|
+
soja B ","nickname":"","address":"rua dois","address_complement":"","address_number":"","mobile_number":null,"cnpj_cpf":"274.687.636-15","email":null,"neighborhood":"centro","phone_number":null,"zipcode":"78058330","mobile_local_code":null,"notes":null,"state":"AP","created_via_api":true,"email_cc":null,"contact_person":null,"truncated_address":"rua
|
129
|
+
dois, ","external_code":null,"tags":[],"tag_list":null,"custom_data":null},{"id":20483,"city_name":"Lucas
|
130
|
+
do Rio Verde","person_name":"Trade Soja A ","nickname":"","address":"Rua dois","address_complement":"","address_number":"3","mobile_number":null,"cnpj_cpf":"394.615.022-57","email":null,"neighborhood":"Centro","phone_number":null,"zipcode":"78058330","mobile_local_code":null,"notes":null,"state":"MT","created_via_api":true,"email_cc":null,"contact_person":null,"truncated_address":"Rua
|
131
|
+
dois, 3","external_code":null,"tags":[],"tag_list":null,"custom_data":null},{"id":20484,"city_name":"Cuiabá","person_name":"Trade
|
132
|
+
Soja A","nickname":"","address":"Av. Rubens de Mendonça","address_complement":"","address_number":"4","mobile_number":null,"cnpj_cpf":"433.855.321-91","email":null,"neighborhood":"CPA","phone_number":null,"zipcode":"78058000","mobile_local_code":null,"notes":null,"state":"MT","created_via_api":true,"email_cc":null,"contact_person":null,"truncated_address":"Av.
|
133
|
+
Rubens de Mendonça, 4","external_code":null,"tags":[],"tag_list":null,"custom_data":null},{"id":20485,"city_name":"Lucas
|
134
|
+
do Rio Verde","person_name":"Trade soja c","nickname":"","address":"rua dois
|
135
|
+
","address_complement":"","address_number":"123","mobile_number":null,"cnpj_cpf":"547.376.595-50","email":null,"neighborhood":"Centro","phone_number":null,"zipcode":"78058330","mobile_local_code":null,"notes":null,"state":"MT","created_via_api":true,"email_cc":null,"contact_person":null,"truncated_address":"rua
|
136
|
+
dois , 123","external_code":null,"tags":[],"tag_list":null,"custom_data":null},{"id":20486,"city_name":"Maceió","person_name":"trade
|
137
|
+
soja h","nickname":"","address":"rua oitenta e tres","address_complement":"","address_number":"r","mobile_number":null,"cnpj_cpf":"567.554.288-41","email":null,"neighborhood":"bau","phone_number":null,"zipcode":"78050250","mobile_local_code":null,"notes":null,"state":"AL","created_via_api":true,"email_cc":null,"contact_person":null,"truncated_address":"rua
|
138
|
+
oitenta e tres, r","external_code":null,"tags":[],"tag_list":null,"custom_data":null},{"id":42104,"city_name":"Mineiros","person_name":"GEISESBEL
|
139
|
+
ALVES DE ASSIS","nickname":null,"address":"DA PRESIDENTE KENNEDY, S/N, QD
|
140
|
+
14 LT 40","address_complement":null,"address_number":null,"mobile_number":null,"cnpj_cpf":"015.756.811-37","email":null,"neighborhood":"PARQUE
|
141
|
+
SAO JOSE","phone_number":null,"zipcode":"75830000","mobile_local_code":null,"notes":null,"state":"GO","created_via_api":false,"email_cc":null,"contact_person":null,"truncated_address":"DA
|
142
|
+
PRESIDENTE KENNEDY, S/N, QD 14 LT , ","external_code":null,"tags":[],"tag_list":null,"custom_data":null},{"id":42105,"city_name":"Mineiros","person_name":"MARLIANE
|
143
|
+
FURTADO REIS","nickname":null,"address":"AVENIDA DOS PALMEIRAS, QD 59 LT 08","address_complement":null,"address_number":null,"mobile_number":null,"cnpj_cpf":"610.658.183-51","email":null,"neighborhood":"BOA
|
144
|
+
VISTA","phone_number":null,"zipcode":"75830000","mobile_local_code":null,"notes":null,"state":"GO","created_via_api":false,"email_cc":null,"contact_person":null,"truncated_address":"AVENIDA
|
145
|
+
DOS PALMEIRAS, QD 59 LT 08, ","external_code":null,"tags":[],"tag_list":null,"custom_data":null},{"id":42106,"city_name":"SAO
|
146
|
+
PAULO","person_name":"FYP ENGENHARIA E CONSTRUCOES LTDA","nickname":null,"address":"RUA
|
147
|
+
LAIS BERTONI PEREIRA, 70","address_complement":null,"address_number":null,"mobile_number":null,"cnpj_cpf":"09.642.594/0001-09","email":null,"neighborhood":"CAMBU","phone_number":null,"zipcode":"13024057","mobile_local_code":null,"notes":null,"state":"SP","created_via_api":false,"email_cc":null,"contact_person":null,"truncated_address":"RUA
|
148
|
+
LAIS BERTONI PEREIRA, 70, ","external_code":null,"tags":[],"tag_list":null,"custom_data":null},{"id":71606,"city_name":"GUARULHOS","person_name":"HOLLYTEC
|
149
|
+
MET. IND E COM DE MAT ELET LTDA","nickname":null,"address":"RUA - RIO GRANDE
|
150
|
+
674","address_complement":null,"address_number":null,"mobile_number":null,"cnpj_cpf":"15.584.095/0001-05","email":"vinicius.brum@creditbr.com.br","neighborhood":"VILA
|
151
|
+
ROSALIA","phone_number":null,"zipcode":"07072070","mobile_local_code":null,"notes":null,"state":"SP","created_via_api":true,"email_cc":null,"contact_person":null,"truncated_address":"RUA
|
152
|
+
- RIO GRANDE 674, ","external_code":null,"tags":[],"tag_list":null,"custom_data":null},{"id":73647,"city_name":"Rio
|
153
|
+
de Janeiro","person_name":"Maria José","nickname":null,"address":"Rua quinhentos","address_complement":"Sala
|
154
|
+
4","address_number":"111","mobile_number":null,"cnpj_cpf":"811.536.151-85","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
|
155
|
+
quinhentos, 111","external_code":null,"tags":[],"tag_list":null,"custom_data":null},{"id":79958,"city_name":"São
|
156
|
+
Paulo","person_name":"João Silva","nickname":null,"address":"Rua F, alamenda
|
157
|
+
G","address_complement":null,"address_number":null,"mobile_number":null,"cnpj_cpf":"16.974.923/0001-84","email":null,"neighborhood":"Centro","phone_number":null,"zipcode":"01310100","mobile_local_code":null,"notes":null,"state":"SP","created_via_api":true,"email_cc":null,"contact_person":null,"truncated_address":"Rua
|
158
|
+
F, alamenda G, ","external_code":null,"tags":[],"tag_list":null,"custom_data":null},{"id":93339,"city_name":"Rio
|
159
|
+
de Janeiro","person_name":"Maria José","nickname":null,"address":"Rua quinhentos","address_complement":"Sala
|
160
|
+
4","address_number":"111","mobile_number":null,"cnpj_cpf":"54.872.822/0001-91","email":"cliente@example.com","neighborhood":"bairro","phone_number":"2112123434","zipcode":"12312123","mobile_local_code":null,"notes":null,"state":"RJ","created_via_api":true,"email_cc":null,"contact_person":null,"truncated_address":"Rua
|
161
|
+
quinhentos, 111","external_code":null,"tags":[],"tag_list":null,"custom_data":null},{"id":93340,"city_name":"Rio
|
162
|
+
de Janeiro","person_name":"Joao da Silva","nickname":null,"address":"Rua quinhentos","address_complement":"Sala
|
163
|
+
4","address_number":"111","mobile_number":null,"cnpj_cpf":"18.033.842/0001-05","email":"cliente@example.com","neighborhood":"Sao
|
164
|
+
Francisco","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
|
165
|
+
quinhentos, 111","external_code":null,"tags":[],"tag_list":null,"custom_data":null},{"id":93341,"city_name":"Rio
|
166
|
+
de Janeiro","person_name":"Joao da Silva","nickname":null,"address":"Rua quinhentos","address_complement":"Sala
|
167
|
+
4","address_number":"111","mobile_number":null,"cnpj_cpf":"34.565.715/0001-03","email":"cliente@example.com","neighborhood":"Sao
|
168
|
+
Francisco","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
|
169
|
+
quinhentos, 111","external_code":null,"tags":[],"tag_list":null,"custom_data":null},{"id":93343,"city_name":"Rio
|
170
|
+
de Janeiro","person_name":"Maria José","nickname":null,"address":"Rua quinhentos","address_complement":"Sala
|
171
|
+
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
|
172
|
+
quinhentos, 111","external_code":null,"tags":[],"tag_list":null,"custom_data":null}]'
|
173
|
+
recorded_at: Tue, 22 Feb 2022 17:34:24 GMT
|
174
|
+
recorded_with: VCR 6.0.0
|
@@ -2,58 +2,87 @@
|
|
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":{"person_name":""}}'
|
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
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
|
+
- '17943'
|
37
57
|
Cache-Control:
|
38
58
|
- no-cache
|
39
59
|
X-Request-Id:
|
40
|
-
-
|
60
|
+
- 2519bdc3-5036-4dde-9c17-55f73df18626
|
41
61
|
X-Runtime:
|
42
|
-
- '0.
|
62
|
+
- '0.016794'
|
43
63
|
Date:
|
44
|
-
-
|
64
|
+
- Tue, 22 Feb 2022 17:34:25 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 b3ca1a7752327aa687a6611c7f28951e.cloudfront.net (CloudFront)
|
75
|
+
X-Cache:
|
76
|
+
- Error from cloudfront
|
77
|
+
X-Amz-Cf-Pop:
|
78
|
+
- MIA3-C1
|
79
|
+
X-Amz-Cf-Id:
|
80
|
+
- H5Qs8-9cLP6QF8nTmEsWFsIj6UHtiOafiJfiYVpnc0QHNJLwdOgOIw==
|
53
81
|
body:
|
54
82
|
encoding: UTF-8
|
55
|
-
string: '{"errors":{"person_name":["não pode ficar em branco"],"
|
56
|
-
pode ficar em branco"],"
|
57
|
-
|
58
|
-
|
59
|
-
|
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
|
88
|
+
recorded_with: VCR 6.0.0
|
@@ -2,57 +2,87 @@
|
|
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":{}}'
|
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
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
|
+
- '17944'
|
37
57
|
Cache-Control:
|
38
58
|
- no-cache
|
39
59
|
X-Request-Id:
|
40
|
-
-
|
60
|
+
- d20e889b-59e6-4d9f-90f6-37cb5b2ebde5
|
41
61
|
X-Runtime:
|
42
|
-
- '0.
|
62
|
+
- '0.017494'
|
43
63
|
Date:
|
44
|
-
-
|
64
|
+
- Tue, 22 Feb 2022 17:34:25 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 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==
|
53
81
|
body:
|
54
82
|
encoding: UTF-8
|
55
|
-
string: '{"errors":{"
|
56
|
-
|
57
|
-
|
58
|
-
|
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
|
88
|
+
recorded_with: VCR 6.0.0
|
@@ -2,64 +2,92 @@
|
|
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:
|
12
12
|
User-Agent:
|
13
|
-
-
|
13
|
+
- email@minhaempresa.com.br
|
14
14
|
Authorization:
|
15
|
-
-
|
15
|
+
- Bearer BOLETOSIMPLES_API_TOKEN
|
16
16
|
Content-Type:
|
17
17
|
- application/json
|
18
|
+
Accept:
|
19
|
+
- application/json
|
18
20
|
Accept-Encoding:
|
19
21
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
|
-
Accept:
|
21
|
-
- "*/*"
|
22
22
|
response:
|
23
23
|
status:
|
24
24
|
code: 201
|
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
|
31
|
-
|
32
|
-
-
|
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
|
33
55
|
Location:
|
34
|
-
- https://sandbox.
|
35
|
-
Content-Type:
|
36
|
-
- application/json; charset=utf-8
|
56
|
+
- https://api-sandbox.kobana.com.br/api/v1/customers/93343
|
37
57
|
X-Ratelimit-Limit:
|
38
|
-
- '
|
58
|
+
- '18000'
|
39
59
|
X-Ratelimit-Remaining:
|
40
|
-
- '
|
60
|
+
- '17945'
|
41
61
|
Etag:
|
42
|
-
- W/"
|
62
|
+
- W/"1db2e1b192053f54b3b632644ef709b0"
|
43
63
|
Cache-Control:
|
44
64
|
- max-age=0, private, must-revalidate
|
45
65
|
X-Request-Id:
|
46
|
-
-
|
66
|
+
- d34ecca5-1100-4746-82f6-f5a5ccfcde11
|
47
67
|
X-Runtime:
|
48
|
-
- '0.
|
68
|
+
- '0.025702'
|
49
69
|
Date:
|
50
|
-
-
|
70
|
+
- Tue, 22 Feb 2022 17:34:24 GMT
|
51
71
|
X-Rack-Cache:
|
52
72
|
- invalidate, pass
|
73
|
+
Strict-Transport-Security:
|
74
|
+
- max-age=31556952; includeSubDomains; preload
|
53
75
|
Vary:
|
54
|
-
- Accept-Encoding
|
55
|
-
|
56
|
-
-
|
76
|
+
- Origin,Accept-Encoding
|
77
|
+
X-Rack-Cors:
|
78
|
+
- miss; no-origin
|
57
79
|
Via:
|
58
|
-
- 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==
|
59
87
|
body:
|
60
88
|
encoding: UTF-8
|
61
|
-
string: '{"id":
|
62
|
-
quinhentos","address_complement":"Sala 4","address_number":"111","mobile_number":null,"cnpj_cpf":"
|
63
|
-
|
64
|
-
recorded_at:
|
65
|
-
recorded_with: VCR
|
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
|
93
|
+
recorded_with: VCR 6.0.0
|