gecko-ruby 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +19 -0
- data/.rubocop.yml +9 -0
- data/.travis.yml +5 -0
- data/CHANGELOG.md +41 -0
- data/CONTRIBUTING.md +0 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +144 -0
- data/Rakefile +19 -0
- data/gecko-ruby.gemspec +34 -0
- data/generate.thor +81 -0
- data/lib/gecko-ruby.rb +1 -0
- data/lib/gecko.rb +31 -0
- data/lib/gecko/client.rb +132 -0
- data/lib/gecko/helpers/association_helper.rb +69 -0
- data/lib/gecko/helpers/inspection_helper.rb +51 -0
- data/lib/gecko/helpers/record_helper.rb +29 -0
- data/lib/gecko/helpers/serialization_helper.rb +61 -0
- data/lib/gecko/helpers/validation_helper.rb +91 -0
- data/lib/gecko/record/account.rb +66 -0
- data/lib/gecko/record/address.rb +33 -0
- data/lib/gecko/record/base.rb +66 -0
- data/lib/gecko/record/base_adapter.rb +365 -0
- data/lib/gecko/record/company.rb +41 -0
- data/lib/gecko/record/contact.rb +25 -0
- data/lib/gecko/record/currency.rb +23 -0
- data/lib/gecko/record/exceptions.rb +15 -0
- data/lib/gecko/record/fulfillment.rb +42 -0
- data/lib/gecko/record/fulfillment_line_item.rb +26 -0
- data/lib/gecko/record/image.rb +38 -0
- data/lib/gecko/record/invoice.rb +29 -0
- data/lib/gecko/record/invoice_line_item.rb +18 -0
- data/lib/gecko/record/location.rb +23 -0
- data/lib/gecko/record/order.rb +50 -0
- data/lib/gecko/record/order_line_item.rb +35 -0
- data/lib/gecko/record/product.rb +27 -0
- data/lib/gecko/record/purchase_order.rb +43 -0
- data/lib/gecko/record/purchase_order_line_item.rb +29 -0
- data/lib/gecko/record/tax_type.rb +21 -0
- data/lib/gecko/record/user.rb +44 -0
- data/lib/gecko/record/variant.rb +96 -0
- data/lib/gecko/version.rb +3 -0
- data/test/client_test.rb +29 -0
- data/test/fixtures/vcr_cassettes/accounts.yml +57 -0
- data/test/fixtures/vcr_cassettes/accounts_current.yml +57 -0
- data/test/fixtures/vcr_cassettes/addresses.yml +68 -0
- data/test/fixtures/vcr_cassettes/addresses_count.yml +58 -0
- data/test/fixtures/vcr_cassettes/companies.yml +62 -0
- data/test/fixtures/vcr_cassettes/companies_count.yml +58 -0
- data/test/fixtures/vcr_cassettes/contacts.yml +60 -0
- data/test/fixtures/vcr_cassettes/contacts_count.yml +58 -0
- data/test/fixtures/vcr_cassettes/currencies.yml +62 -0
- data/test/fixtures/vcr_cassettes/currencies_count.yml +58 -0
- data/test/fixtures/vcr_cassettes/fulfillments.yml +59 -0
- data/test/fixtures/vcr_cassettes/fulfillments_count.yml +58 -0
- data/test/fixtures/vcr_cassettes/images.yml +59 -0
- data/test/fixtures/vcr_cassettes/images_count.yml +58 -0
- data/test/fixtures/vcr_cassettes/invoice_line_items.yml +63 -0
- data/test/fixtures/vcr_cassettes/invoice_line_items_count.yml +62 -0
- data/test/fixtures/vcr_cassettes/invoices.yml +63 -0
- data/test/fixtures/vcr_cassettes/invoices_count.yml +62 -0
- data/test/fixtures/vcr_cassettes/locations.yml +65 -0
- data/test/fixtures/vcr_cassettes/locations_count.yml +58 -0
- data/test/fixtures/vcr_cassettes/order_line_items.yml +63 -0
- data/test/fixtures/vcr_cassettes/order_line_items_count.yml +62 -0
- data/test/fixtures/vcr_cassettes/orders.yml +62 -0
- data/test/fixtures/vcr_cassettes/orders_count.yml +58 -0
- data/test/fixtures/vcr_cassettes/products.yml +79 -0
- data/test/fixtures/vcr_cassettes/products_count.yml +58 -0
- data/test/fixtures/vcr_cassettes/products_new_invalid.yml +54 -0
- data/test/fixtures/vcr_cassettes/products_new_valid.yml +58 -0
- data/test/fixtures/vcr_cassettes/purchase_order_line_items.yml +64 -0
- data/test/fixtures/vcr_cassettes/purchase_order_line_items_count.yml +62 -0
- data/test/fixtures/vcr_cassettes/purchase_orders.yml +63 -0
- data/test/fixtures/vcr_cassettes/purchase_orders_count.yml +62 -0
- data/test/fixtures/vcr_cassettes/tax_types.yml +74 -0
- data/test/fixtures/vcr_cassettes/tax_types_count.yml +62 -0
- data/test/fixtures/vcr_cassettes/users.yml +60 -0
- data/test/fixtures/vcr_cassettes/users_count.yml +58 -0
- data/test/fixtures/vcr_cassettes/users_current.yml +54 -0
- data/test/fixtures/vcr_cassettes/variants.yml +60 -0
- data/test/fixtures/vcr_cassettes/variants_count.yml +58 -0
- data/test/gecko_test.rb +7 -0
- data/test/helpers/association_helper_test.rb +56 -0
- data/test/helpers/inspection_helper_test.rb +27 -0
- data/test/helpers/serialization_helper_test.rb +30 -0
- data/test/helpers/validation_helper_test.rb +24 -0
- data/test/record/account_adapter_test.rb +43 -0
- data/test/record/address_adapter_test.rb +14 -0
- data/test/record/address_test.rb +18 -0
- data/test/record/company_adapter_test.rb +14 -0
- data/test/record/company_test.rb +18 -0
- data/test/record/contact_adapter_test.rb +14 -0
- data/test/record/contact_test.rb +18 -0
- data/test/record/currency_adapter_test.rb +14 -0
- data/test/record/currency_test.rb +18 -0
- data/test/record/fulfillment_adapter_test.rb +24 -0
- data/test/record/fulfillment_line_item_adapter_test.rb +21 -0
- data/test/record/fulfillment_line_item_test.rb +18 -0
- data/test/record/fulfillment_test.rb +27 -0
- data/test/record/image_adapter_test.rb +14 -0
- data/test/record/image_test.rb +25 -0
- data/test/record/invoice_adapter_test.rb +14 -0
- data/test/record/invoice_line_item_adapter_test.rb +20 -0
- data/test/record/invoice_line_item_test.rb +18 -0
- data/test/record/invoice_test.rb +18 -0
- data/test/record/location_adapter_test.rb +14 -0
- data/test/record/location_test.rb +18 -0
- data/test/record/order_adapter_test.rb +14 -0
- data/test/record/order_line_item_adapter_test.rb +14 -0
- data/test/record/order_line_item_test.rb +18 -0
- data/test/record/order_test.rb +18 -0
- data/test/record/product_adapter_test.rb +32 -0
- data/test/record/product_test.rb +18 -0
- data/test/record/purchase_order_adapter_test.rb +14 -0
- data/test/record/purchase_order_line_item_adapter_test.rb +14 -0
- data/test/record/purchase_order_line_item_test.rb +18 -0
- data/test/record/purchase_order_test.rb +18 -0
- data/test/record/tax_type_adapter_test.rb +14 -0
- data/test/record/tax_type_test.rb +18 -0
- data/test/record/user_adapter_test.rb +27 -0
- data/test/record/user_test.rb +18 -0
- data/test/record/variant_adapter_test.rb +14 -0
- data/test/record/variant_test.rb +44 -0
- data/test/support/let.rb +10 -0
- data/test/support/shared_adapter_examples.rb +159 -0
- data/test/support/shared_record_examples.rb +21 -0
- data/test/support/testing_adapter.rb +11 -0
- data/test/support/vcr_support.rb +7 -0
- data/test/test_helper.rb +21 -0
- metadata +430 -0
@@ -0,0 +1,63 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.lvh.me:3000/purchase_orders?limit=5
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Gecko/0.0.3 OAuth2/1.0.0 Faraday/0.9.0 Ruby/2.0.0
|
12
|
+
Authorization:
|
13
|
+
- Bearer d7ebf96f5550d6ffc05474c4da3ce9d8e408ca2540ee0bbcb9e2140d47e64963
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
Accept:
|
17
|
+
- "*/*"
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Date:
|
24
|
+
- Tue, 30 Sep 2014 11:37:40 GMT
|
25
|
+
Status:
|
26
|
+
- 200 OK
|
27
|
+
Connection:
|
28
|
+
- close
|
29
|
+
X-Frame-Options:
|
30
|
+
- SAMEORIGIN
|
31
|
+
X-Xss-Protection:
|
32
|
+
- 1; mode=block
|
33
|
+
X-Content-Type-Options:
|
34
|
+
- nosniff
|
35
|
+
X-Rate-Limit-Limit:
|
36
|
+
- '300'
|
37
|
+
X-Rate-Limit-Remaining:
|
38
|
+
- '294'
|
39
|
+
X-Rate-Limit-Reset:
|
40
|
+
- '1412077200'
|
41
|
+
X-Pagination:
|
42
|
+
- '{"total_records":11,"total_pages":3,"first_page":true,"last_page":false,"out_of_bounds":false,"offset":0}'
|
43
|
+
Link:
|
44
|
+
- <http://api.lvh.me:3000/ajax/purchase_orders?limit=5&page=2>; rel="next",
|
45
|
+
<http://api.lvh.me:3000/ajax/purchase_orders?limit=5&page=3>; rel="last"
|
46
|
+
Content-Type:
|
47
|
+
- application/json; charset=utf-8
|
48
|
+
Etag:
|
49
|
+
- '"bbf0796169c05fe999b7900cd40d7425"'
|
50
|
+
Cache-Control:
|
51
|
+
- max-age=0, private, must-revalidate
|
52
|
+
X-Request-Id:
|
53
|
+
- 341f9a44-0cd7-4c33-88cd-1da49a7376f1
|
54
|
+
X-Runtime:
|
55
|
+
- '0.307226'
|
56
|
+
Transfer-Encoding:
|
57
|
+
- chunked
|
58
|
+
body:
|
59
|
+
encoding: UTF-8
|
60
|
+
string: '{"purchase_orders":[{"id":28381,"document_url":"http://api.lvh.me:3000/d/-QGxZnwxiGsx19hvWW3wpzN4","company_id":633468,"supplier_address_id":947745,"stock_location_id":159,"billing_address_id":159,"currency_id":4,"status":"active","procurement_status":"unprocured","order_number":"PO0435","reference_number":null,"notes":"webinar","email":null,"tax_treatment":"exclusive","created_at":"2014-09-30T11:37:19.501Z","updated_at":"2014-09-30T11:37:24.218Z","due_at":"2014-10-14","default_price_list_id":"buy","destination_url":null,"total":"232311.62","cached_quantity":"10000.0","cached_total":"232311.62","default_price_type_id":"buy","tax_type":"exclusive","purchase_order_line_item_ids":[177770,177772,177771,177773],"procurement_ids":[]},{"id":28380,"document_url":"http://api.lvh.me:3000/d/3TEvZFHksd2QC_c9Jp2LVPYZ","company_id":633468,"supplier_address_id":947745,"stock_location_id":159,"billing_address_id":159,"currency_id":4,"status":"active","procurement_status":"unprocured","order_number":"PO0434","reference_number":null,"notes":"webinar","email":null,"tax_treatment":"exclusive","created_at":"2014-09-30T11:35:26.417Z","updated_at":"2014-09-30T11:36:41.571Z","due_at":"2014-10-14","default_price_list_id":"buy","destination_url":null,"total":"232311.62","cached_quantity":"10000.0","cached_total":"232311.62","default_price_type_id":"buy","tax_type":"exclusive","purchase_order_line_item_ids":[177769,177767,177766,177768],"procurement_ids":[]},{"id":28379,"document_url":"http://api.lvh.me:3000/d/sJkFWQ7XrhfLvAhyW292Zw55","company_id":633468,"supplier_address_id":947745,"stock_location_id":159,"billing_address_id":159,"currency_id":4,"status":"active","procurement_status":"unprocured","order_number":"PO0433","reference_number":null,"notes":"webinar","email":null,"tax_treatment":"exclusive","created_at":"2014-09-30T11:35:18.776Z","updated_at":"2014-09-30T11:35:22.324Z","due_at":"2014-10-14","default_price_list_id":"buy","destination_url":null,"total":"232311.62","cached_quantity":"10000.0","cached_total":"232311.62","default_price_type_id":"buy","tax_type":"exclusive","purchase_order_line_item_ids":[177764,177763,177762,177765],"procurement_ids":[]},{"id":28378,"document_url":"http://api.lvh.me:3000/d/icf2HDvwvuNnmSy93JDoy8oG","company_id":633461,"supplier_address_id":947739,"stock_location_id":159,"billing_address_id":159,"currency_id":4,"status":"active","procurement_status":"unprocured","order_number":"PO0432","reference_number":null,"notes":null,"email":null,"tax_treatment":"exclusive","created_at":"2014-09-30T11:34:54.829Z","updated_at":"2014-09-30T11:35:03.149Z","due_at":"2014-10-14","default_price_list_id":"buy","destination_url":null,"total":"144.02","cached_quantity":"2.0","cached_total":"144.02","default_price_type_id":"buy","tax_type":"exclusive","purchase_order_line_item_ids":[177760,177761],"procurement_ids":[]},{"id":28377,"document_url":"http://api.lvh.me:3000/d/zY0d9IWlFZA0oBpJOUsVR2ad","company_id":633461,"supplier_address_id":947739,"stock_location_id":159,"billing_address_id":159,"currency_id":4,"status":"active","procurement_status":"unprocured","order_number":"PO0431","reference_number":null,"notes":null,"email":null,"tax_treatment":"exclusive","created_at":"2014-09-30T11:34:48.419Z","updated_at":"2014-09-30T11:34:51.749Z","due_at":"2014-10-14","default_price_list_id":"buy","destination_url":null,"total":"144.02","cached_quantity":"2.0","cached_total":"144.02","default_price_type_id":"buy","tax_type":"exclusive","purchase_order_line_item_ids":[177758,177759],"procurement_ids":[]}]}'
|
61
|
+
http_version:
|
62
|
+
recorded_at: Tue, 30 Sep 2014 11:37:40 GMT
|
63
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,62 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.lvh.me:3000/purchase_orders?limit=0
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Gecko/0.0.3 OAuth2/1.0.0 Faraday/0.9.0 Ruby/2.0.0
|
12
|
+
Authorization:
|
13
|
+
- Bearer d7ebf96f5550d6ffc05474c4da3ce9d8e408ca2540ee0bbcb9e2140d47e64963
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
Accept:
|
17
|
+
- "*/*"
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Date:
|
24
|
+
- Tue, 30 Sep 2014 11:37:39 GMT
|
25
|
+
Status:
|
26
|
+
- 200 OK
|
27
|
+
Connection:
|
28
|
+
- close
|
29
|
+
X-Frame-Options:
|
30
|
+
- SAMEORIGIN
|
31
|
+
X-Xss-Protection:
|
32
|
+
- 1; mode=block
|
33
|
+
X-Content-Type-Options:
|
34
|
+
- nosniff
|
35
|
+
X-Rate-Limit-Limit:
|
36
|
+
- '300'
|
37
|
+
X-Rate-Limit-Remaining:
|
38
|
+
- '295'
|
39
|
+
X-Rate-Limit-Reset:
|
40
|
+
- '1412077200'
|
41
|
+
X-Pagination:
|
42
|
+
- '{"total_records":11,"total_pages":1,"first_page":true,"last_page":true,"out_of_bounds":false,"offset":0}'
|
43
|
+
Link:
|
44
|
+
- <http://api.lvh.me:3000/ajax/purchase_orders?limit=0&page=1>; rel="last"
|
45
|
+
Content-Type:
|
46
|
+
- application/json; charset=utf-8
|
47
|
+
Etag:
|
48
|
+
- '"7ccd39ac0f994966825738f17d136bc7"'
|
49
|
+
Cache-Control:
|
50
|
+
- max-age=0, private, must-revalidate
|
51
|
+
X-Request-Id:
|
52
|
+
- eca0f089-3c1e-405a-9a6f-de8f42ebb957
|
53
|
+
X-Runtime:
|
54
|
+
- '0.127673'
|
55
|
+
Transfer-Encoding:
|
56
|
+
- chunked
|
57
|
+
body:
|
58
|
+
encoding: UTF-8
|
59
|
+
string: '{"purchase_orders":[]}'
|
60
|
+
http_version:
|
61
|
+
recorded_at: Tue, 30 Sep 2014 11:37:39 GMT
|
62
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,74 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.lvh.me:3000/tax_types?limit=5
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Gecko/0.0.3 OAuth2/1.0.0 Faraday/0.9.0 Ruby/2.0.0
|
12
|
+
Authorization:
|
13
|
+
- Bearer d7ebf96f5550d6ffc05474c4da3ce9d8e408ca2540ee0bbcb9e2140d47e64963
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
Accept:
|
17
|
+
- "*/*"
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: 'OK '
|
22
|
+
headers:
|
23
|
+
X-Frame-Options:
|
24
|
+
- SAMEORIGIN
|
25
|
+
X-Xss-Protection:
|
26
|
+
- 1; mode=block
|
27
|
+
X-Content-Type-Options:
|
28
|
+
- nosniff
|
29
|
+
X-Rate-Limit-Limit:
|
30
|
+
- '300'
|
31
|
+
X-Rate-Limit-Remaining:
|
32
|
+
- '299'
|
33
|
+
X-Rate-Limit-Reset:
|
34
|
+
- '1412078700'
|
35
|
+
X-Pagination:
|
36
|
+
- '{"total_records":11,"total_pages":3,"first_page":true,"last_page":false,"out_of_bounds":false,"offset":0}'
|
37
|
+
Link:
|
38
|
+
- <http://api.lvh.me:3000/ajax/tax_types?limit=5&page=2>; rel="next", <http://api.lvh.me:3000/ajax/tax_types?limit=5&page=3>;
|
39
|
+
rel="last"
|
40
|
+
Content-Type:
|
41
|
+
- application/json; charset=utf-8
|
42
|
+
Etag:
|
43
|
+
- '"8764f347b32f518a0e47d3c94dba94c8"'
|
44
|
+
Cache-Control:
|
45
|
+
- max-age=0, private, must-revalidate
|
46
|
+
X-Request-Id:
|
47
|
+
- d4776b8b-1c61-4cf2-9830-ff0334799ca4
|
48
|
+
X-Runtime:
|
49
|
+
- '1.611920'
|
50
|
+
Server:
|
51
|
+
- WEBrick/1.3.1 (Ruby/2.0.0/2014-05-08)
|
52
|
+
Date:
|
53
|
+
- Tue, 30 Sep 2014 12:02:19 GMT
|
54
|
+
Content-Length:
|
55
|
+
- '1751'
|
56
|
+
Connection:
|
57
|
+
- Keep-Alive
|
58
|
+
body:
|
59
|
+
encoding: UTF-8
|
60
|
+
string: '{"tax_components":[{"id":2846,"tax_type_id":2813,"position":0,"label":"Tax
|
61
|
+
Exempt","rate":"0.0","compound":false},{"id":2646,"tax_type_id":2618,"position":0,"label":"Zero","rate":"0.0","compound":false},{"id":2120,"tax_type_id":2117,"position":0,"label":"State
|
62
|
+
Tax (NJ)","rate":"7.0","compound":null},{"id":2121,"tax_type_id":2117,"position":1,"label":"County
|
63
|
+
Tax (Salem)","rate":"3.5","compound":null},{"id":2122,"tax_type_id":2117,"position":2,"label":"City
|
64
|
+
Tax (Atlantic)","rate":"1.0","compound":null},{"id":2103,"tax_type_id":2103,"position":0,"label":"State
|
65
|
+
Tax","rate":"10.0","compound":false},{"id":2105,"tax_type_id":2103,"position":2,"label":"County
|
66
|
+
Tax","rate":"5.0","compound":false},{"id":2104,"tax_type_id":2103,"position":3,"label":"City
|
67
|
+
Tax","rate":"1.0","compound":true},{"id":14,"tax_type_id":14,"position":1,"label":"GST","rate":"10.0","compound":false}],"tax_types":[{"id":2813,"name":"Tax
|
68
|
+
Exempt","code":"EXEMPT","status":"active","xero_online_id":"GSTONIMPORTS","imported_from":null,"effective_rate":"0.0","tax_component_ids":[2846]},{"id":2618,"name":"Zero
|
69
|
+
Tax","code":"ZERO","status":"active","xero_online_id":"OUTPUT","imported_from":null,"effective_rate":"0.0","tax_component_ids":[2646]},{"id":2117,"name":"Atlantic
|
70
|
+
City Sales Tax","code":"Atlantic City Sales Tax","status":"active","xero_online_id":"TAX006","imported_from":"xero","effective_rate":"11.5","tax_component_ids":[2120,2121,2122]},{"id":2103,"name":"Atlantic
|
71
|
+
City Tax","code":"ATLANTIC","status":"active","xero_online_id":"INPUT","imported_from":null,"effective_rate":"16.15","tax_component_ids":[2103,2105,2104]},{"id":14,"name":"GST","code":"GST","status":"active","xero_online_id":null,"imported_from":null,"effective_rate":"10.0","tax_component_ids":[14]}]}'
|
72
|
+
http_version:
|
73
|
+
recorded_at: Tue, 30 Sep 2014 12:02:19 GMT
|
74
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,62 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.lvh.me:3000/tax_types?limit=0
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Gecko/0.0.3 OAuth2/1.0.0 Faraday/0.9.0 Ruby/2.0.0
|
12
|
+
Authorization:
|
13
|
+
- Bearer d7ebf96f5550d6ffc05474c4da3ce9d8e408ca2540ee0bbcb9e2140d47e64963
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
Accept:
|
17
|
+
- "*/*"
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: 'OK '
|
22
|
+
headers:
|
23
|
+
X-Frame-Options:
|
24
|
+
- SAMEORIGIN
|
25
|
+
X-Xss-Protection:
|
26
|
+
- 1; mode=block
|
27
|
+
X-Content-Type-Options:
|
28
|
+
- nosniff
|
29
|
+
X-Rate-Limit-Limit:
|
30
|
+
- '300'
|
31
|
+
X-Rate-Limit-Remaining:
|
32
|
+
- '298'
|
33
|
+
X-Rate-Limit-Reset:
|
34
|
+
- '1412078700'
|
35
|
+
X-Pagination:
|
36
|
+
- '{"total_records":11,"total_pages":1,"first_page":true,"last_page":true,"out_of_bounds":false,"offset":0}'
|
37
|
+
Link:
|
38
|
+
- <http://api.lvh.me:3000/ajax/tax_types?limit=0&page=1>; rel="last"
|
39
|
+
Content-Type:
|
40
|
+
- application/json; charset=utf-8
|
41
|
+
Etag:
|
42
|
+
- '"6c4a6ecd2e5efe0bc65c8da0c28e2518"'
|
43
|
+
Cache-Control:
|
44
|
+
- max-age=0, private, must-revalidate
|
45
|
+
X-Request-Id:
|
46
|
+
- 2c76e8f5-15d8-4f6c-9e90-13b2e457494a
|
47
|
+
X-Runtime:
|
48
|
+
- '0.051077'
|
49
|
+
Server:
|
50
|
+
- WEBrick/1.3.1 (Ruby/2.0.0/2014-05-08)
|
51
|
+
Date:
|
52
|
+
- Tue, 30 Sep 2014 12:02:19 GMT
|
53
|
+
Content-Length:
|
54
|
+
- '16'
|
55
|
+
Connection:
|
56
|
+
- Keep-Alive
|
57
|
+
body:
|
58
|
+
encoding: UTF-8
|
59
|
+
string: '{"tax_types":[]}'
|
60
|
+
http_version:
|
61
|
+
recorded_at: Tue, 30 Sep 2014 12:02:19 GMT
|
62
|
+
recorded_with: VCR 2.9.2
|
@@ -0,0 +1,60 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.lvh.me:3000/users?limit=5
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Gecko/0.0.3 OAuth2/0.9.3 Faraday/0.9.0 Ruby/2.0.0
|
12
|
+
Authorization:
|
13
|
+
- Bearer 0a45b6958b71a3d0dcfe1d0879a7ee777e04e0d646d005b06f96d328db783fea
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
Accept:
|
17
|
+
- '*/*'
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Date:
|
24
|
+
- Mon, 05 May 2014 03:20:42 GMT
|
25
|
+
Status:
|
26
|
+
- 200 OK
|
27
|
+
Connection:
|
28
|
+
- close
|
29
|
+
X-Frame-Options:
|
30
|
+
- SAMEORIGIN
|
31
|
+
X-Xss-Protection:
|
32
|
+
- 1; mode=block
|
33
|
+
X-Content-Type-Options:
|
34
|
+
- nosniff
|
35
|
+
X-Ua-Compatible:
|
36
|
+
- chrome=1
|
37
|
+
X-Pagination:
|
38
|
+
- '{"total_records":7,"total_pages":2,"first_page":true,"last_page":false,"out_of_bounds":false,"offset":0}'
|
39
|
+
Link:
|
40
|
+
- <http://api.lvh.me:3000/ajax/users?limit=5&page=2>; rel="next", <http://api.lvh.me:3000/ajax/users?limit=5&page=2>;
|
41
|
+
rel="last"
|
42
|
+
Content-Type:
|
43
|
+
- application/json; charset=utf-8
|
44
|
+
Etag:
|
45
|
+
- '"548f28fd1e6b968ebfad6d506179a628"'
|
46
|
+
Cache-Control:
|
47
|
+
- max-age=0, private, must-revalidate
|
48
|
+
X-Request-Id:
|
49
|
+
- af91827a-25c8-4533-8f35-96424d774ffe
|
50
|
+
X-Runtime:
|
51
|
+
- '0.272868'
|
52
|
+
Transfer-Encoding:
|
53
|
+
- chunked
|
54
|
+
body:
|
55
|
+
encoding: UTF-8
|
56
|
+
string: '{"users":[{"id":8709,"first_name":"Yuh Wen","last_name":"Foong","email":"yuhwen@tradegecko.com","status":"active","location":null,"position":null,"phone_number":null,"mobile_phone":null,"last_sign_in_at":"2014-02-17T08:19:32.243Z","avatar_url":"/assets/avatars/avatar1.png","notification_email":false,"sales_report_email":false,"action_items_email":"off","billing_contact":false,"permissions":["read_reports","read_products","write_stocks","write_orders","write_settings","write_companies"],"account_id":4},{"id":829,"first_name":"Nadia","last_name":"Rozental","email":"nadia@tradegecko.com","status":"active","location":null,"position":null,"phone_number":null,"mobile_phone":null,"last_sign_in_at":"2014-02-17T03:28:05.763Z","avatar_url":"/assets/avatars/avatar1.png","notification_email":true,"sales_report_email":true,"action_items_email":"daily","billing_contact":false,"permissions":["read_reports","read_products","write_stocks","write_orders","write_settings","write_companies"],"account_id":4},{"id":13,"first_name":"Bradley","last_name":"Priest","email":"bradley@tradegecko.com","status":"active","location":null,"position":null,"phone_number":"1234567","mobile_phone":null,"last_sign_in_at":"2014-04-30T09:16:45.579Z","avatar_url":"https://tradegecko-development-images.s3.amazonaws.com/uploads/user/avatar/13/34b3e93704a811f2befad5a894e28072.jpeg","notification_email":true,"sales_report_email":true,"action_items_email":"weekly","billing_contact":true,"permissions":["read_reports","write_stocks","write_orders","write_products","write_settings","write_companies"],"account_id":4},{"id":1748,"first_name":"Kyrylo
|
57
|
+
","last_name":"Savytskyi","email":"mail+tg@savytskyi.com","status":"active","location":null,"position":null,"phone_number":null,"mobile_phone":null,"last_sign_in_at":"2014-02-15T11:34:13.124Z","avatar_url":"/assets/avatars/avatar0.png","notification_email":false,"sales_report_email":false,"action_items_email":"weekly","billing_contact":false,"permissions":["read_reports","write_stocks","write_orders","write_products","write_settings","write_companies"],"account_id":4},{"id":5736,"first_name":"Patrick","last_name":"Barnes","email":"patrick@tradegecko.com","status":"active","location":null,"position":null,"phone_number":null,"mobile_phone":null,"last_sign_in_at":"2014-02-17T10:02:53.450Z","avatar_url":"/assets/avatars/avatar0.png","notification_email":false,"sales_report_email":false,"action_items_email":"off","billing_contact":false,"permissions":["read_reports","write_stocks","write_orders","write_settings","write_companies"],"account_id":4}]}'
|
58
|
+
http_version:
|
59
|
+
recorded_at: Mon, 05 May 2014 03:20:42 GMT
|
60
|
+
recorded_with: VCR 2.9.0
|
@@ -0,0 +1,58 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.lvh.me:3000/users?limit=0
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Gecko/0.0.3 OAuth2/0.9.3 Faraday/0.9.0 Ruby/2.0.0
|
12
|
+
Authorization:
|
13
|
+
- Bearer 7d3ed5d622e3becc591f15132f07bb52f05fcbd899f6d9dce60409c0e2c712e5
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
Accept:
|
17
|
+
- '*/*'
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Date:
|
24
|
+
- Thu, 15 May 2014 09:55:43 GMT
|
25
|
+
Status:
|
26
|
+
- 200 OK
|
27
|
+
Connection:
|
28
|
+
- close
|
29
|
+
X-Frame-Options:
|
30
|
+
- SAMEORIGIN
|
31
|
+
X-Xss-Protection:
|
32
|
+
- 1; mode=block
|
33
|
+
X-Content-Type-Options:
|
34
|
+
- nosniff
|
35
|
+
X-Ua-Compatible:
|
36
|
+
- chrome=1
|
37
|
+
X-Pagination:
|
38
|
+
- '{"total_records":11,"total_pages":1,"first_page":true,"last_page":true,"out_of_bounds":false,"offset":0}'
|
39
|
+
Link:
|
40
|
+
- <http://api.lvh.me:3000/ajax/users?limit=0&page=1>; rel="last"
|
41
|
+
Content-Type:
|
42
|
+
- application/json; charset=utf-8
|
43
|
+
Etag:
|
44
|
+
- '"415a14c1d2a0aadba6cb4caa4ab9d59c"'
|
45
|
+
Cache-Control:
|
46
|
+
- max-age=0, private, must-revalidate
|
47
|
+
X-Request-Id:
|
48
|
+
- 5dbd0a9a-57cd-4733-8da9-15b6991d3a19
|
49
|
+
X-Runtime:
|
50
|
+
- '0.267687'
|
51
|
+
Transfer-Encoding:
|
52
|
+
- chunked
|
53
|
+
body:
|
54
|
+
encoding: UTF-8
|
55
|
+
string: '{"users":[]}'
|
56
|
+
http_version:
|
57
|
+
recorded_at: Thu, 15 May 2014 09:55:43 GMT
|
58
|
+
recorded_with: VCR 2.9.0
|
@@ -0,0 +1,54 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.lvh.me:3000/users/current
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Gecko/0.0.3 OAuth2/0.9.3 Faraday/0.9.0 Ruby/2.0.0
|
12
|
+
Authorization:
|
13
|
+
- Bearer 25c0b5c0d3626a6fd33f6a65f73111eb894a6221280dff67f585b292ff6f24e0
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
Accept:
|
17
|
+
- '*/*'
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: 'OK '
|
22
|
+
headers:
|
23
|
+
X-Frame-Options:
|
24
|
+
- SAMEORIGIN
|
25
|
+
X-Xss-Protection:
|
26
|
+
- 1; mode=block
|
27
|
+
X-Content-Type-Options:
|
28
|
+
- nosniff
|
29
|
+
X-Ua-Compatible:
|
30
|
+
- chrome=1
|
31
|
+
Content-Type:
|
32
|
+
- application/json; charset=utf-8
|
33
|
+
Etag:
|
34
|
+
- '"1410dc0cc91ff7c45ada89c8395fcfbd"'
|
35
|
+
Cache-Control:
|
36
|
+
- max-age=0, private, must-revalidate
|
37
|
+
X-Request-Id:
|
38
|
+
- b808f39f-23a3-4bfa-884c-dea9bf397467
|
39
|
+
X-Runtime:
|
40
|
+
- '0.134456'
|
41
|
+
Server:
|
42
|
+
- WEBrick/1.3.1 (Ruby/2.0.0/2014-02-24)
|
43
|
+
Date:
|
44
|
+
- Thu, 15 May 2014 00:38:47 GMT
|
45
|
+
Content-Length:
|
46
|
+
- '599'
|
47
|
+
Connection:
|
48
|
+
- Keep-Alive
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '{"user":{"id":13,"first_name":"Bradley","last_name":"Priest","email":"bradley@tradegecko.com","status":"active","location":null,"position":null,"phone_number":"1234567","mobile_phone":null,"last_sign_in_at":"2014-05-13T23:47:11.418Z","avatar_url":"https://tradegecko-development-images.s3.amazonaws.com/uploads/user/avatar/13/34b3e93704a811f2befad5a894e28072.jpeg","notification_email":true,"sales_report_email":true,"action_items_email":"weekly","billing_contact":true,"permissions":["read_reports","write_stocks","write_orders","write_products","write_settings","write_companies"],"account_id":4}}'
|
52
|
+
http_version:
|
53
|
+
recorded_at: Thu, 15 May 2014 00:38:47 GMT
|
54
|
+
recorded_with: VCR 2.9.0
|
@@ -0,0 +1,60 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.lvh.me:3000/variants?limit=5
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Gecko/0.0.3 OAuth2/0.9.3 Faraday/0.9.0 Ruby/2.0.0
|
12
|
+
Authorization:
|
13
|
+
- Bearer 51afbee2b570ac2e4604fa2e936448037c0e69acc388888e89dc88602c3e3c77
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
Accept:
|
17
|
+
- '*/*'
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Date:
|
24
|
+
- Thu, 03 Apr 2014 05:48:03 GMT
|
25
|
+
Status:
|
26
|
+
- 200 OK
|
27
|
+
Connection:
|
28
|
+
- close
|
29
|
+
X-Frame-Options:
|
30
|
+
- SAMEORIGIN
|
31
|
+
X-Xss-Protection:
|
32
|
+
- 1; mode=block
|
33
|
+
X-Content-Type-Options:
|
34
|
+
- nosniff
|
35
|
+
X-Ua-Compatible:
|
36
|
+
- chrome=1
|
37
|
+
X-Pagination:
|
38
|
+
- '{"total_records":1343,"total_pages":269,"first_page":true,"last_page":false,"out_of_bounds":false,"offset":0}'
|
39
|
+
Link:
|
40
|
+
- <http://api.lvh.me:3000/ajax/variants.json?limit=5&page=2>; rel="next", <http://api.lvh.me:3000/ajax/variants.json?limit=5&page=269>;
|
41
|
+
rel="last"
|
42
|
+
Content-Type:
|
43
|
+
- application/json; charset=utf-8
|
44
|
+
Etag:
|
45
|
+
- '"3458d0642e47b2dae00d851f0db5f171"'
|
46
|
+
Cache-Control:
|
47
|
+
- max-age=0, private, must-revalidate
|
48
|
+
X-Request-Id:
|
49
|
+
- f67eb1e4-2ee5-4f60-9de2-53fa89840fd9
|
50
|
+
X-Runtime:
|
51
|
+
- '1.713553'
|
52
|
+
Transfer-Encoding:
|
53
|
+
- chunked
|
54
|
+
body:
|
55
|
+
encoding: UTF-8
|
56
|
+
string: '{"variants":[{"id":982891,"product_id":525649,"sku":"","reorder_point":null,"wholesale_price":null,"retail_price":"0.0","status":"active","description":null,"name":"Default","upc":null,"supplier_code":null,"manage_stock":true,"max_online":null,"keep_selling":false,"taxable":true,"is_online":true,"online_id":443033153,"opt1":"Default","opt2":null,"opt3":null,"position":2,"buy_price":null,"last_cost_price":"0.0","stock_on_hand":"0","committed_stock":"0","moving_average_cost":"0","created_at":"2014-02-14T06:58:17.508Z","product_name":"zzzz","product_status":"active","product_type":"Barstool","updated_at":"2014-02-14T06:58:17.508Z","variant_prices":[{"price_list_id":"buy","value":null},{"price_list_id":"retail","value":"0.0"},{"price_list_id":"wholesale","value":null}],"composite":null,"weight":"0","sellable":true,"online_ordering":null,"locations":[{"location_id":159,"stock_on_hand":"0","committed":null}],"prices":{"buy":null,"retail":"0.0","wholesale":null},"stock_levels":{"159":0},"committed_stock_levels":{},"image_ids":[]},{"id":720709,"product_id":380149,"sku":"","reorder_point":null,"wholesale_price":null,"retail_price":"0.0","status":"active","description":null,"name":"Default","upc":null,"supplier_code":null,"manage_stock":true,"max_online":null,"keep_selling":false,"taxable":true,"is_online":true,"online_id":null,"opt1":null,"opt2":null,"opt3":null,"position":2,"buy_price":null,"last_cost_price":null,"stock_on_hand":"-12","committed_stock":"17","moving_average_cost":null,"created_at":"2013-12-12T04:51:39.573Z","product_name":"Cheese","product_status":"active","product_type":"Food","updated_at":"2014-02-10T04:32:00.718Z","variant_prices":[{"price_list_id":"buy","value":null},{"price_list_id":"retail","value":"0.0"},{"price_list_id":"wholesale","value":null}],"composite":true,"weight":"0","sellable":true,"online_ordering":true,"locations":[{"location_id":18,"stock_on_hand":"0","committed":"15"},{"location_id":153,"stock_on_hand":"0","committed":"0"},{"location_id":159,"stock_on_hand":"-10","committed":"1"},{"location_id":160,"stock_on_hand":"-2","committed":"1"},{"location_id":322,"stock_on_hand":"0","committed":"0"},{"location_id":1395,"stock_on_hand":"0","committed":"0"},{"location_id":1400,"stock_on_hand":"0","committed":"0"},{"location_id":1725,"stock_on_hand":"0","committed":"0"},{"location_id":2195,"stock_on_hand":"0","committed":"0"},{"location_id":2196,"stock_on_hand":"0","committed":"0"},{"location_id":3723,"stock_on_hand":"0","committed":"0"},{"location_id":3986,"stock_on_hand":"0","committed":"0"},{"location_id":7779,"stock_on_hand":"0","committed":"0"}],"prices":{"buy":null,"retail":"0.0","wholesale":null},"stock_levels":{"18":"0.0","153":"0.0","159":"-10.0","160":"-2.0","322":"0.0","1395":"0.0","1400":"0.0","1725":"0.0","2195":"0.0","2196":"0.0","3723":"0.0","3986":"0.0","7779":"0.0"},"committed_stock_levels":{"18":"15.0","153":"-0.0","159":"1.0","160":"1.0","322":"-0.0","1395":"-0.0","1400":"-0.0","1725":"-0.0","2195":"-0.0","2196":"-0.0","3723":"-0.0","3986":"-0.0","7779":"-0.0"},"image_ids":[]},{"id":704123,"product_id":370075,"sku":"","reorder_point":null,"wholesale_price":"20.0","retail_price":"30.0","status":"active","description":"","name":"Purple
|
57
|
+
/ Small","upc":"","supplier_code":"","manage_stock":true,"max_online":null,"keep_selling":false,"taxable":true,"is_online":true,"online_id":null,"opt1":"Purple","opt2":"Small","opt3":"","position":3,"buy_price":"10.0","last_cost_price":null,"stock_on_hand":"9","committed_stock":"14","moving_average_cost":null,"created_at":"2013-12-09T14:06:27.543Z","product_name":"TestX","product_status":"active","product_type":"Test","updated_at":"2014-03-25T05:11:52.418Z","variant_prices":[{"price_list_id":"buy","value":"10.0"},{"price_list_id":"retail","value":"30.0"},{"price_list_id":"wholesale","value":"20.0"}],"composite":true,"weight":"0","sellable":true,"online_ordering":true,"locations":[{"location_id":18,"stock_on_hand":"0","committed":"0"},{"location_id":153,"stock_on_hand":"0","committed":"0"},{"location_id":159,"stock_on_hand":"-1","committed":"0"},{"location_id":160,"stock_on_hand":"10","committed":"0"},{"location_id":322,"stock_on_hand":"0","committed":"0"},{"location_id":1395,"stock_on_hand":"0","committed":"0"},{"location_id":1400,"stock_on_hand":"0","committed":"0"},{"location_id":1725,"stock_on_hand":"0","committed":"0"},{"location_id":2195,"stock_on_hand":"0","committed":"13"},{"location_id":2196,"stock_on_hand":"0","committed":"0"},{"location_id":3723,"stock_on_hand":"0","committed":"0"},{"location_id":3986,"stock_on_hand":"0","committed":"1"},{"location_id":7779,"stock_on_hand":"0","committed":"0"}],"prices":{"buy":"10.0","retail":"30.0","wholesale":"20.0"},"stock_levels":{"18":"0.0","153":"0.0","159":"-1.0","160":"10.0","322":"0.0","1395":"0.0","1400":"0.0","1725":"0.0","2195":"0.0","2196":"0.0","3723":"0.0","3986":"0.0","7779":"0.0"},"committed_stock_levels":{"18":"-0.0","153":"-0.0","159":"-0.0","160":"-0.0","322":"-0.0","1395":"-0.0","1400":"-0.0","1725":"-0.0","2195":"13.0","2196":"-0.0","3723":"-0.0","3986":"1.0","7779":"-0.0"},"image_ids":[]},{"id":593558,"product_id":307886,"sku":"","reorder_point":null,"wholesale_price":null,"retail_price":null,"status":"active","description":null,"name":"Gecko","upc":null,"supplier_code":null,"manage_stock":true,"max_online":null,"keep_selling":false,"taxable":true,"is_online":false,"online_id":null,"opt1":"Default","opt2":null,"opt3":null,"position":1,"buy_price":"20.0","last_cost_price":"28.18","stock_on_hand":"301","committed_stock":"11","moving_average_cost":"18.745","created_at":"2013-11-21T01:16:50.694Z","product_name":"Gecko","product_status":"active","product_type":"Barstool","updated_at":"2014-02-26T03:37:29.433Z","variant_prices":[{"price_list_id":"buy","value":"20.0"},{"price_list_id":"retail","value":null},{"price_list_id":"wholesale","value":null}],"composite":false,"weight":null,"sellable":true,"online_ordering":false,"locations":[{"location_id":18,"stock_on_hand":"0","committed":null},{"location_id":153,"stock_on_hand":"0","committed":null},{"location_id":159,"stock_on_hand":"202","committed":"10"},{"location_id":160,"stock_on_hand":"98","committed":"1"},{"location_id":322,"stock_on_hand":"0","committed":null},{"location_id":1395,"stock_on_hand":"0","committed":null},{"location_id":1400,"stock_on_hand":"1","committed":null},{"location_id":1725,"stock_on_hand":"0","committed":null},{"location_id":2195,"stock_on_hand":"0","committed":null},{"location_id":2196,"stock_on_hand":"0","committed":null},{"location_id":3723,"stock_on_hand":"0","committed":null},{"location_id":3986,"stock_on_hand":"0","committed":null},{"location_id":7779,"stock_on_hand":"0","committed":null}],"prices":{"buy":"20.0","retail":null,"wholesale":null},"stock_levels":{"18":"0.0","153":"0.0","159":"202.0","160":"98.0","322":"0.0","1395":"0.0","1400":"1.0","1725":"0.0","2195":"0.0","2196":"0.0","3723":"0.0","3986":"0.0","7779":"0.0"},"committed_stock_levels":{"159":"10.0","160":"1.0"},"image_ids":[]},{"id":982815,"product_id":525604,"sku":"","reorder_point":null,"wholesale_price":null,"retail_price":"24.07","status":"active","description":null,"name":"10","upc":null,"supplier_code":null,"manage_stock":true,"max_online":null,"keep_selling":false,"taxable":true,"is_online":true,"online_id":443031765,"opt1":"10","opt2":null,"opt3":null,"position":6,"buy_price":null,"last_cost_price":"0.0","stock_on_hand":"0","committed_stock":"0","moving_average_cost":"0","created_at":"2014-02-14T06:57:53.325Z","product_name":"Cheese","product_status":"active","product_type":"Food","updated_at":"2014-02-14T06:57:53.325Z","variant_prices":[{"price_list_id":"buy","value":null},{"price_list_id":"retail","value":"24.07"},{"price_list_id":"wholesale","value":null}],"composite":null,"weight":"0","sellable":true,"online_ordering":null,"locations":[{"location_id":159,"stock_on_hand":"0","committed":null}],"prices":{"buy":null,"retail":"24.07","wholesale":null},"stock_levels":{"159":0},"committed_stock_levels":{},"image_ids":[]}],"meta":{"total":1343}}'
|
58
|
+
http_version:
|
59
|
+
recorded_at: Thu, 03 Apr 2014 05:48:03 GMT
|
60
|
+
recorded_with: VCR 2.9.0
|