shipit_api 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +12 -19
- data/lib/shipit_api.rb +0 -1
- data/lib/shipit_api/commune.rb +12 -1
- data/lib/shipit_api/config.rb +0 -1
- data/lib/shipit_api/package.rb +2 -2
- data/lib/shipit_api/quotation.rb +9 -0
- data/lib/shipit_api/setting.rb +3 -5
- data/lib/shipit_api/sku.rb +1 -1
- data/lib/shipit_api/version.rb +1 -1
- data/shipit_api.gemspec +2 -3
- metadata +9 -28
- data/fixtures/vcr_cassettes/commune.yml +0 -644
- data/fixtures/vcr_cassettes/package.yml +0 -1983
- data/fixtures/vcr_cassettes/quotation.yml +0 -1247
- data/fixtures/vcr_cassettes/sku.yml +0 -117
- data/lib/shipit_api/base.rb +0 -0
@@ -1,117 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: https://api.shipit.cl/v/skus
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
X-Shipit-Email:
|
11
|
-
- staff@shipit.cl
|
12
|
-
X-Shipit-Access-Token:
|
13
|
-
- v8fH62dPTULmrAEXxhzB
|
14
|
-
Content-Type:
|
15
|
-
- application/json
|
16
|
-
Accept:
|
17
|
-
- application/vnd.shipit.v2
|
18
|
-
Accept-Encoding:
|
19
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
|
-
User-Agent:
|
21
|
-
- Ruby
|
22
|
-
response:
|
23
|
-
status:
|
24
|
-
code: 200
|
25
|
-
message: OK
|
26
|
-
headers:
|
27
|
-
Server:
|
28
|
-
- nginx/1.10.3 (Ubuntu)
|
29
|
-
Date:
|
30
|
-
- Tue, 20 Mar 2018 15:50:53 GMT
|
31
|
-
Content-Type:
|
32
|
-
- application/json; charset=utf-8
|
33
|
-
Connection:
|
34
|
-
- close
|
35
|
-
X-Frame-Options:
|
36
|
-
- SAMEORIGIN
|
37
|
-
X-Xss-Protection:
|
38
|
-
- 1; mode=block
|
39
|
-
X-Content-Type-Options:
|
40
|
-
- nosniff
|
41
|
-
Etag:
|
42
|
-
- W/"b7b2d21d09aef9c935f0720acde6495d"
|
43
|
-
Cache-Control:
|
44
|
-
- max-age=0, private, must-revalidate
|
45
|
-
X-Request-Id:
|
46
|
-
- 77cec413-51ce-4098-9db4-f799c80a49b8
|
47
|
-
X-Runtime:
|
48
|
-
- '0.040512'
|
49
|
-
body:
|
50
|
-
encoding: UTF-8
|
51
|
-
string: '[{"id":3998,"name":"SKU-011","amount":3,"min_amount":20,"company_id":1,"position":null,"description":"SKU-ENVIOS-assaS","created_at":"2017-02-22T10:36:57.162-03:00","updated_at":"2017-12-27T13:01:14.938-03:00","warehouse_id":2,"width":10.0,"length":10.0,"height":10.0,"weight":0.5,"ws_amount":0,"ws_updated_at":null},{"id":7202,"name":"tst-hirp-22","amount":11776,"min_amount":5,"company_id":1,"position":null,"description":"tst-hirp-22","created_at":"2017-11-27T10:48:05.100-03:00","updated_at":"2018-02-06T12:05:55.460-03:00","warehouse_id":1,"width":22.0,"length":22.0,"height":22.0,"weight":2.0,"ws_amount":0,"ws_updated_at":null},{"id":7070,"name":"1-TEST
|
52
|
-
8000","amount":8724,"min_amount":450,"company_id":1,"position":null,"description":null,"created_at":"2017-10-31T20:14:45.053-03:00","updated_at":"2018-01-05T13:53:36.609-03:00","warehouse_id":1,"width":10.0,"length":10.0,"height":10.0,"weight":1.0,"ws_amount":0,"ws_updated_at":null},{"id":9265,"name":"BOB1","amount":12,"min_amount":1,"company_id":1,"position":null,"description":"SKU
|
53
|
-
de prueba","created_at":"2018-03-15T11:01:37.739-03:00","updated_at":"2018-03-15T11:01:37.739-03:00","warehouse_id":1,"width":10.0,"length":10.0,"height":30.0,"weight":1.0,"ws_amount":0,"ws_updated_at":null},{"id":9266,"name":"BOB2","amount":6,"min_amount":2,"company_id":1,"position":null,"description":"BOB
|
54
|
-
Prueba 2","created_at":"2018-03-15T11:53:42.082-03:00","updated_at":"2018-03-15T11:53:42.082-03:00","warehouse_id":2,"width":10.0,"length":11.0,"height":9.0,"weight":1.2,"ws_amount":0,"ws_updated_at":null},{"id":9267,"name":"BOB3","amount":7,"min_amount":3,"company_id":1,"position":null,"description":"BOB
|
55
|
-
Prueba 3","created_at":"2018-03-15T11:53:42.093-03:00","updated_at":"2018-03-15T11:53:42.093-03:00","warehouse_id":2,"width":11.0,"length":12.0,"height":10.0,"weight":1.3,"ws_amount":0,"ws_updated_at":null},{"id":9268,"name":"BOB4","amount":8,"min_amount":4,"company_id":1,"position":null,"description":"BOB
|
56
|
-
Prueba 4","created_at":"2018-03-15T11:53:42.103-03:00","updated_at":"2018-03-15T11:53:42.103-03:00","warehouse_id":2,"width":12.0,"length":13.0,"height":11.0,"weight":1.4,"ws_amount":0,"ws_updated_at":null},{"id":9269,"name":"BOB5","amount":9,"min_amount":5,"company_id":1,"position":null,"description":"BOB
|
57
|
-
Prueba 5","created_at":"2018-03-15T11:53:42.113-03:00","updated_at":"2018-03-15T11:53:42.113-03:00","warehouse_id":2,"width":13.0,"length":14.0,"height":12.0,"weight":1.5,"ws_amount":0,"ws_updated_at":null},{"id":9272,"name":"BOB8","amount":12,"min_amount":8,"company_id":1,"position":null,"description":"BOB
|
58
|
-
Prueba 8","created_at":"2018-03-15T11:53:42.142-03:00","updated_at":"2018-03-15T11:53:42.142-03:00","warehouse_id":2,"width":16.0,"length":17.0,"height":15.0,"weight":1.8,"ws_amount":0,"ws_updated_at":null},{"id":9270,"name":"BOB6","amount":10,"min_amount":6,"company_id":1,"position":null,"description":"BOB
|
59
|
-
Prueba 6","created_at":"2018-03-15T11:53:42.122-03:00","updated_at":"2018-03-15T11:53:42.122-03:00","warehouse_id":2,"width":14.0,"length":15.0,"height":13.0,"weight":1.6,"ws_amount":0,"ws_updated_at":null},{"id":9271,"name":"BOB7","amount":11,"min_amount":7,"company_id":1,"position":null,"description":"BOB
|
60
|
-
Prueba 7","created_at":"2018-03-15T11:53:42.132-03:00","updated_at":"2018-03-15T11:53:42.132-03:00","warehouse_id":2,"width":15.0,"length":16.0,"height":14.0,"weight":1.7,"ws_amount":0,"ws_updated_at":null},{"id":9273,"name":"BOB9","amount":13,"min_amount":9,"company_id":1,"position":null,"description":"BOB
|
61
|
-
Prueba 9","created_at":"2018-03-15T11:53:42.151-03:00","updated_at":"2018-03-15T11:53:42.151-03:00","warehouse_id":2,"width":17.0,"length":18.0,"height":16.0,"weight":1.9,"ws_amount":0,"ws_updated_at":null},{"id":7116,"name":"rqetwerwef","amount":22,"min_amount":0,"company_id":1,"position":null,"description":null,"created_at":"2017-11-21T12:20:24.986-03:00","updated_at":"2017-11-21T12:20:24.986-03:00","warehouse_id":1,"width":10.0,"length":10.0,"height":10.0,"weight":2.0,"ws_amount":0,"ws_updated_at":null},{"id":7117,"name":"wqefasdfsd","amount":2286,"min_amount":69,"company_id":1,"position":null,"description":null,"created_at":"2017-11-21T12:21:13.125-03:00","updated_at":"2018-02-06T15:59:52.173-03:00","warehouse_id":1,"width":20.0,"length":30.0,"height":20.0,"weight":1.0,"ws_amount":0,"ws_updated_at":null},{"id":7118,"name":"efwrfsdf","amount":2301,"min_amount":0,"company_id":1,"position":null,"description":null,"created_at":"2017-11-21T12:22:51.060-03:00","updated_at":"2017-11-21T12:22:51.060-03:00","warehouse_id":1,"width":2.0,"length":2.0,"height":2.0,"weight":1.0,"ws_amount":0,"ws_updated_at":null},{"id":7115,"name":"hiro","amount":290,"min_amount":0,"company_id":1,"position":null,"description":null,"created_at":"2017-11-21T12:19:58.340-03:00","updated_at":"2017-11-21T12:19:58.340-03:00","warehouse_id":1,"width":10.0,"length":10.0,"height":10.0,"weight":5.0,"ws_amount":0,"ws_updated_at":null},{"id":7119,"name":"treretert","amount":318,"min_amount":0,"company_id":1,"position":null,"description":"ewwedfxdfd","created_at":"2017-11-21T12:31:34.679-03:00","updated_at":"2017-11-21T12:31:34.679-03:00","warehouse_id":1,"width":30.0,"length":30.0,"height":30.0,"weight":3.0,"ws_amount":0,"ws_updated_at":null},{"id":7120,"name":"wetrtwertwertwertwertwerdfsdg","amount":444,"min_amount":0,"company_id":1,"position":null,"description":"4twererwer","created_at":"2017-11-21T12:43:29.008-03:00","updated_at":"2017-11-21T12:43:29.008-03:00","warehouse_id":1,"width":44.0,"length":44.0,"height":44.0,"weight":4.0,"ws_amount":0,"ws_updated_at":null},{"id":7071,"name":"1-1-TEST
|
62
|
-
8000","amount":2998,"min_amount":257,"company_id":1,"position":null,"description":null,"created_at":"2017-11-02T07:43:41.748-03:00","updated_at":"2018-03-07T16:29:33.534-03:00","warehouse_id":1,"width":10.0,"length":10.0,"height":10.0,"weight":1.0,"ws_amount":0,"ws_updated_at":null},{"id":9175,"name":"CMA03-test","amount":4,"min_amount":1,"company_id":1,"position":null,"description":"Collar
|
63
|
-
Beagle","created_at":"2018-03-06T17:44:32.914-03:00","updated_at":"2018-03-06T17:44:32.914-03:00","warehouse_id":2,"width":8.0,"length":2.0,"height":10.0,"weight":0.1,"ws_amount":0,"ws_updated_at":null},{"id":9224,"name":"Test-asd-1","amount":1,"min_amount":1,"company_id":1,"position":null,"description":"qweqwe","created_at":"2018-03-08T15:46:42.572-03:00","updated_at":"2018-03-08T15:46:42.572-03:00","warehouse_id":2,"width":12.0,"length":12.0,"height":12.0,"weight":1.0,"ws_amount":0,"ws_updated_at":null}]'
|
64
|
-
http_version:
|
65
|
-
recorded_at: Tue, 20 Mar 2018 15:50:54 GMT
|
66
|
-
- request:
|
67
|
-
method: get
|
68
|
-
uri: https://api.shipit.cl/v/skus/3998
|
69
|
-
body:
|
70
|
-
encoding: US-ASCII
|
71
|
-
string: ''
|
72
|
-
headers:
|
73
|
-
X-Shipit-Email:
|
74
|
-
- staff@shipit.cl
|
75
|
-
X-Shipit-Access-Token:
|
76
|
-
- v8fH62dPTULmrAEXxhzB
|
77
|
-
Content-Type:
|
78
|
-
- application/json
|
79
|
-
Accept:
|
80
|
-
- application/vnd.shipit.v2
|
81
|
-
Accept-Encoding:
|
82
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
83
|
-
User-Agent:
|
84
|
-
- Ruby
|
85
|
-
response:
|
86
|
-
status:
|
87
|
-
code: 200
|
88
|
-
message: OK
|
89
|
-
headers:
|
90
|
-
Server:
|
91
|
-
- nginx/1.10.3 (Ubuntu)
|
92
|
-
Date:
|
93
|
-
- Tue, 20 Mar 2018 15:51:07 GMT
|
94
|
-
Content-Type:
|
95
|
-
- application/json; charset=utf-8
|
96
|
-
Connection:
|
97
|
-
- close
|
98
|
-
X-Frame-Options:
|
99
|
-
- SAMEORIGIN
|
100
|
-
X-Xss-Protection:
|
101
|
-
- 1; mode=block
|
102
|
-
X-Content-Type-Options:
|
103
|
-
- nosniff
|
104
|
-
Etag:
|
105
|
-
- W/"343c110da207c39a38bca52e56643a66"
|
106
|
-
Cache-Control:
|
107
|
-
- max-age=0, private, must-revalidate
|
108
|
-
X-Request-Id:
|
109
|
-
- e89e608d-d438-43fd-aded-2807d52ae266
|
110
|
-
X-Runtime:
|
111
|
-
- '0.025513'
|
112
|
-
body:
|
113
|
-
encoding: UTF-8
|
114
|
-
string: '{"id":3998,"name":"SKU-011","amount":3,"min_amount":20,"company_id":1,"position":null,"description":"SKU-ENVIOS-assaS","created_at":"2017-02-22T10:36:57.162-03:00","updated_at":"2017-12-27T13:01:14.938-03:00","warehouse_id":2,"width":10.0,"length":10.0,"height":10.0,"weight":0.5,"ws_amount":0,"ws_updated_at":null}'
|
115
|
-
http_version:
|
116
|
-
recorded_at: Tue, 20 Mar 2018 15:51:07 GMT
|
117
|
-
recorded_with: VCR 4.0.0
|
data/lib/shipit_api/base.rb
DELETED
File without changes
|