spree-api-client 0.0.2 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +9 -0
  3. data/LICENSE.txt +674 -0
  4. data/README.md +31 -38
  5. data/lib/spree_client.rb +3 -0
  6. data/lib/spree_client.rb~ +71 -0
  7. data/lib/spree_client/api.rb +1 -0
  8. data/lib/spree_client/api/v1.rb +52 -0
  9. data/lib/spree_client/api/v1/products.rb +23 -0
  10. data/lib/spree_client/api/v1/properties.rb +12 -0
  11. data/lib/spree_client/api/v1/resources.rb +142 -0
  12. data/lib/spree_client/api/v1/stock_items.rb +27 -0
  13. data/lib/spree_client/api/v1/stock_locations.rb +33 -0
  14. data/lib/spree_client/api/v1/stock_movements.rb +16 -0
  15. data/lib/spree_client/api/v1/taxonomies.rb +12 -0
  16. data/lib/spree_client/api/v1/variants.rb +13 -0
  17. data/lib/spree_client/attributes.rb +26 -0
  18. data/lib/spree_client/models.rb +5 -0
  19. data/lib/spree_client/models/product.rb +7 -0
  20. data/lib/spree_client/models/property.rb +6 -0
  21. data/lib/spree_client/models/stock_item.rb +7 -0
  22. data/lib/spree_client/models/stock_location.rb +7 -0
  23. data/lib/spree_client/models/stock_movement.rb +7 -0
  24. data/lib/spree_client/models/store.rb +7 -0
  25. data/lib/spree_client/models/taxonomy.rb +5 -0
  26. data/lib/spree_client/models/variant.rb +7 -0
  27. metadata +73 -192
  28. data/.gitignore +0 -17
  29. data/.ruby-version +0 -1
  30. data/.travis.yml +0 -11
  31. data/CONTRIBUTING.md +0 -8
  32. data/Gemfile +0 -9
  33. data/LICENSE +0 -22
  34. data/Rakefile +0 -7
  35. data/fixtures/cassette_library/addresss.yml +0 -46
  36. data/fixtures/cassette_library/countries.yml +0 -52
  37. data/fixtures/cassette_library/orders.yml +0 -48
  38. data/fixtures/cassette_library/payments.yml +0 -48
  39. data/fixtures/cassette_library/products.yml +0 -66
  40. data/fixtures/cassette_library/properties.yml +0 -48
  41. data/fixtures/cassette_library/request.yml +0 -46
  42. data/fixtures/cassette_library/return_authorizations.yml +0 -48
  43. data/fixtures/cassette_library/shipment_ready.yml +0 -46
  44. data/fixtures/cassette_library/taxonomies.yml +0 -48
  45. data/fixtures/cassette_library/taxons.yml +0 -48
  46. data/fixtures/cassette_library/variants.yml +0 -63
  47. data/fixtures/cassette_library/zones.yml +0 -49
  48. data/lib/spree-api-client.rb +0 -49
  49. data/lib/spree-api-client/addresses.rb +0 -15
  50. data/lib/spree-api-client/connection.rb +0 -31
  51. data/lib/spree-api-client/countries.rb +0 -15
  52. data/lib/spree-api-client/error.rb +0 -47
  53. data/lib/spree-api-client/line_items.rb +0 -19
  54. data/lib/spree-api-client/orders.rb +0 -32
  55. data/lib/spree-api-client/payments.rb +0 -43
  56. data/lib/spree-api-client/products.rb +0 -31
  57. data/lib/spree-api-client/properties.rb +0 -31
  58. data/lib/spree-api-client/request.rb +0 -56
  59. data/lib/spree-api-client/return_authorizations.rb +0 -31
  60. data/lib/spree-api-client/shipments.rb +0 -15
  61. data/lib/spree-api-client/taxonomies.rb +0 -31
  62. data/lib/spree-api-client/taxons.rb +0 -27
  63. data/lib/spree-api-client/variants.rb +0 -31
  64. data/lib/spree-api-client/version.rb +0 -7
  65. data/lib/spree-api-client/zones.rb +0 -31
  66. data/spec/addresses_spec.rb +0 -12
  67. data/spec/client_spec.rb +0 -32
  68. data/spec/countries_spec.rb +0 -12
  69. data/spec/orders_spec.rb +0 -12
  70. data/spec/payments_spec.rb +0 -12
  71. data/spec/products_spec.rb +0 -12
  72. data/spec/properties_spec.rb +0 -12
  73. data/spec/return_authorizations_spec.rb +0 -12
  74. data/spec/shipments_spec.rb +0 -12
  75. data/spec/spec_helper.rb +0 -10
  76. data/spec/support/vcr.rb +0 -9
  77. data/spec/taxonomies_spec.rb +0 -12
  78. data/spec/taxons_spec.rb +0 -12
  79. data/spec/variants_spec.rb +0 -12
  80. data/spec/zones_spec.rb +0 -12
  81. data/spree-api-client.gemspec +0 -29
data/.gitignore DELETED
@@ -1,17 +0,0 @@
1
- *.gem
2
- *.rbc
3
- .bundle
4
- .config
5
- .yardoc
6
- Gemfile.lock
7
- InstalledFiles
8
- _yardoc
9
- coverage
10
- doc/
11
- lib/bundler/man
12
- pkg
13
- rdoc
14
- spec/reports
15
- test/tmp
16
- test/version_tmp
17
- tmp
@@ -1 +0,0 @@
1
- 1.9.3-p286
@@ -1,11 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 1.9.3
4
- - 2.0.0
5
- - ruby-head
6
- - jruby-18mode
7
- - jruby-19mode
8
- - jruby-head
9
- - rbx-18mode
10
- - rbx-19mode
11
- - ree
@@ -1,8 +0,0 @@
1
- ## Contributing
2
- * Fork the project.
3
- * Make your feature addition or bug fix.
4
- * Add tests for it. This is important so I don't break it in a
5
- future version unintentionally.
6
- * Commit, do not mess with rakefile, version, or history.
7
- (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
8
- * Send a pull request. Bonus points for topic branches.
data/Gemfile DELETED
@@ -1,9 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gem 'json', '~> 1.7', :platforms => [:ruby_18, :jruby]
4
-
5
- group :development do
6
- gem 'pry'
7
- end
8
-
9
- gemspec
data/LICENSE DELETED
@@ -1,22 +0,0 @@
1
- Copyright (c) 2013 Andrew Nesbitt
2
-
3
- MIT License
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
7
- "Software"), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
11
- the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/Rakefile DELETED
@@ -1,7 +0,0 @@
1
- #!/usr/bin/env rake
2
- require 'bundler/gem_tasks'
3
- require 'rspec/core/rake_task'
4
-
5
- RSpec::Core::RakeTask.new('spec')
6
-
7
- task :default => :spec
@@ -1,46 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: http://localhost:4000/store/api/addresses/1?per_page=30
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- Accept:
11
- - application/json
12
- X-Spree-Token:
13
- - b56019f04b61a50553ee323f5ab68c6b435871971e79c987
14
- Accept-Encoding:
15
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
- User-Agent:
17
- - Ruby
18
- response:
19
- status:
20
- code: 404
21
- message: ! 'Not Found '
22
- headers:
23
- Content-Type:
24
- - application/json
25
- X-Ua-Compatible:
26
- - IE=Edge
27
- Cache-Control:
28
- - no-cache
29
- X-Request-Id:
30
- - c5a870720c555607f82883005f015e7c
31
- X-Runtime:
32
- - '5.794934'
33
- Content-Length:
34
- - '67'
35
- Server:
36
- - WEBrick/1.3.1 (Ruby/1.9.3/2012-02-16)
37
- Date:
38
- - Fri, 07 Dec 2012 17:34:22 GMT
39
- Connection:
40
- - Keep-Alive
41
- body:
42
- encoding: US-ASCII
43
- string: ! '{"error":"translation missing: en-GB.spree.api.resource_not_found"}'
44
- http_version:
45
- recorded_at: Fri, 07 Dec 2012 17:34:22 GMT
46
- recorded_with: VCR 2.3.0
@@ -1,52 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: http://localhost:4000/store/api/countries?per_page=30
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- Accept:
11
- - application/json
12
- X-Spree-Token:
13
- - b56019f04b61a50553ee323f5ab68c6b435871971e79c987
14
- Accept-Encoding:
15
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
- User-Agent:
17
- - Ruby
18
- response:
19
- status:
20
- code: 200
21
- message: ! 'OK '
22
- headers:
23
- Content-Type:
24
- - application/json
25
- X-Ua-Compatible:
26
- - IE=Edge
27
- Etag:
28
- - ! '"157e9a5f06578de5bad37b4d0ef422f9"'
29
- Cache-Control:
30
- - max-age=0, private, must-revalidate
31
- X-Request-Id:
32
- - 3db1d4471e09b5a26a76f61796d7a0ce
33
- X-Runtime:
34
- - '0.238102'
35
- Content-Length:
36
- - '3065'
37
- Server:
38
- - WEBrick/1.3.1 (Ruby/1.9.3/2012-02-16)
39
- Date:
40
- - Fri, 07 Dec 2012 17:37:14 GMT
41
- Connection:
42
- - Keep-Alive
43
- body:
44
- encoding: US-ASCII
45
- string: ! '{"count":30,"current_page":1,"pages":8,"countries":[{"country":{"id":1,"iso_name":"AFGHANISTAN","iso":"AF","iso3":"AFG","name":"Afghanistan","numcode":4}},{"country":{"id":2,"iso_name":"ALBANIA","iso":"AL","iso3":"ALB","name":"Albania","numcode":8}},{"country":{"id":3,"iso_name":"ALGERIA","iso":"DZ","iso3":"DZA","name":"Algeria","numcode":12}},{"country":{"id":4,"iso_name":"AMERICAN
46
- SAMOA","iso":"AS","iso3":"ASM","name":"American Samoa","numcode":16}},{"country":{"id":5,"iso_name":"ANDORRA","iso":"AD","iso3":"AND","name":"Andorra","numcode":20}},{"country":{"id":6,"iso_name":"ANGOLA","iso":"AO","iso3":"AGO","name":"Angola","numcode":24}},{"country":{"id":7,"iso_name":"ANGUILLA","iso":"AI","iso3":"AIA","name":"Anguilla","numcode":660}},{"country":{"id":8,"iso_name":"ANTIGUA
47
- AND BARBUDA","iso":"AG","iso3":"ATG","name":"Antigua and Barbuda","numcode":28}},{"country":{"id":9,"iso_name":"ARGENTINA","iso":"AR","iso3":"ARG","name":"Argentina","numcode":32}},{"country":{"id":10,"iso_name":"ARMENIA","iso":"AM","iso3":"ARM","name":"Armenia","numcode":51}},{"country":{"id":11,"iso_name":"ARUBA","iso":"AW","iso3":"ABW","name":"Aruba","numcode":533}},{"country":{"id":12,"iso_name":"AUSTRALIA","iso":"AU","iso3":"AUS","name":"Australia","numcode":36}},{"country":{"id":13,"iso_name":"AUSTRIA","iso":"AT","iso3":"AUT","name":"Austria","numcode":40}},{"country":{"id":14,"iso_name":"AZERBAIJAN","iso":"AZ","iso3":"AZE","name":"Azerbaijan","numcode":31}},{"country":{"id":15,"iso_name":"BAHAMAS","iso":"BS","iso3":"BHS","name":"Bahamas","numcode":44}},{"country":{"id":16,"iso_name":"BAHRAIN","iso":"BH","iso3":"BHR","name":"Bahrain","numcode":48}},{"country":{"id":17,"iso_name":"BANGLADESH","iso":"BD","iso3":"BGD","name":"Bangladesh","numcode":50}},{"country":{"id":18,"iso_name":"BARBADOS","iso":"BB","iso3":"BRB","name":"Barbados","numcode":52}},{"country":{"id":19,"iso_name":"BELARUS","iso":"BY","iso3":"BLR","name":"Belarus","numcode":112}},{"country":{"id":20,"iso_name":"BELGIUM","iso":"BE","iso3":"BEL","name":"Belgium","numcode":56}},{"country":{"id":21,"iso_name":"BELIZE","iso":"BZ","iso3":"BLZ","name":"Belize","numcode":84}},{"country":{"id":22,"iso_name":"BENIN","iso":"BJ","iso3":"BEN","name":"Benin","numcode":204}},{"country":{"id":23,"iso_name":"BERMUDA","iso":"BM","iso3":"BMU","name":"Bermuda","numcode":60}},{"country":{"id":24,"iso_name":"BHUTAN","iso":"BT","iso3":"BTN","name":"Bhutan","numcode":64}},{"country":{"id":25,"iso_name":"BOLIVIA","iso":"BO","iso3":"BOL","name":"Bolivia","numcode":68}},{"country":{"id":26,"iso_name":"BOSNIA
48
- AND HERZEGOVINA","iso":"BA","iso3":"BIH","name":"Bosnia and Herzegovina","numcode":70}},{"country":{"id":27,"iso_name":"BOTSWANA","iso":"BW","iso3":"BWA","name":"Botswana","numcode":72}},{"country":{"id":28,"iso_name":"BRAZIL","iso":"BR","iso3":"BRA","name":"Brazil","numcode":76}},{"country":{"id":29,"iso_name":"BRUNEI
49
- DARUSSALAM","iso":"BN","iso3":"BRN","name":"Brunei Darussalam","numcode":96}},{"country":{"id":30,"iso_name":"BULGARIA","iso":"BG","iso3":"BGR","name":"Bulgaria","numcode":100}}]}'
50
- http_version:
51
- recorded_at: Fri, 07 Dec 2012 17:37:14 GMT
52
- recorded_with: VCR 2.3.0
@@ -1,48 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: http://localhost:4000/store/api/orders?per_page=30
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- Accept:
11
- - application/json
12
- X-Spree-Token:
13
- - b56019f04b61a50553ee323f5ab68c6b435871971e79c987
14
- Accept-Encoding:
15
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
- User-Agent:
17
- - Ruby
18
- response:
19
- status:
20
- code: 200
21
- message: ! 'OK '
22
- headers:
23
- Content-Type:
24
- - application/json
25
- X-Ua-Compatible:
26
- - IE=Edge
27
- Etag:
28
- - ! '"e24ee6f753bf2db91e4fe11a1ab671f6"'
29
- Cache-Control:
30
- - max-age=0, private, must-revalidate
31
- X-Request-Id:
32
- - 1141ccfa203a7200135dea9fad5cec68
33
- X-Runtime:
34
- - '0.179288'
35
- Content-Length:
36
- - '10424'
37
- Server:
38
- - WEBrick/1.3.1 (Ruby/1.9.3/2012-02-16)
39
- Date:
40
- - Fri, 07 Dec 2012 17:37:14 GMT
41
- Connection:
42
- - Keep-Alive
43
- body:
44
- encoding: US-ASCII
45
- string: ! '{"count":30,"current_page":1,"pages":3,"orders":[{"order":{"id":1,"number":"R610162112","item_total":"0.0","total":"0.0","state":"cart","adjustment_total":"0.0","user_id":null,"created_at":"2012-10-29T13:39:54Z","updated_at":"2012-10-29T13:39:54Z","completed_at":null,"payment_total":"0.0","shipment_state":null,"payment_state":null,"email":null,"special_instructions":null}},{"order":{"id":2,"number":"R518184886","item_total":"15.99","total":"15.99","state":"complete","adjustment_total":"0.0","user_id":1,"created_at":"2012-10-29T15:54:34Z","updated_at":"2012-11-01T16:07:09Z","completed_at":"2012-11-01T16:07:09Z","payment_total":"15.99","shipment_state":"shipped","payment_state":"paid","email":"andrew@forward.co.uk","special_instructions":null}},{"order":{"id":3,"number":"R288620137","item_total":"19.99","total":"19.99","state":"cart","adjustment_total":"0.0","user_id":null,"created_at":"2012-10-30T17:18:26Z","updated_at":"2012-10-30T17:18:26Z","completed_at":null,"payment_total":"0.0","shipment_state":null,"payment_state":"balance_due","email":null,"special_instructions":null}},{"order":{"id":4,"number":"R538628271","item_total":"114.95","total":"114.95","state":"address","adjustment_total":"0.0","user_id":null,"created_at":"2012-10-31T09:31:54Z","updated_at":"2012-10-31T09:33:18Z","completed_at":null,"payment_total":"0.0","shipment_state":null,"payment_state":"balance_due","email":"yourmum@wizzo.com","special_instructions":null}},{"order":{"id":5,"number":"R823028447","item_total":"19.0","total":"19.0","state":"address","adjustment_total":"0.0","user_id":null,"created_at":"2012-10-31T16:44:21Z","updated_at":"2012-10-31T16:45:05Z","completed_at":null,"payment_total":"0.0","shipment_state":null,"payment_state":"balance_due","email":"thattommyhall@gmail.com","special_instructions":null}},{"order":{"id":6,"number":"R747815324","item_total":"19.99","total":"19.99","state":"cart","adjustment_total":"0.0","user_id":null,"created_at":"2012-10-31T19:04:55Z","updated_at":"2012-10-31T19:04:55Z","completed_at":null,"payment_total":"0.0","shipment_state":null,"payment_state":"balance_due","email":null,"special_instructions":null}},{"order":{"id":7,"number":"R380766278","item_total":"47.97","total":"47.97","state":"cart","adjustment_total":"0.0","user_id":null,"created_at":"2012-11-01T10:45:02Z","updated_at":"2012-11-01T10:45:02Z","completed_at":null,"payment_total":"0.0","shipment_state":null,"payment_state":"balance_due","email":null,"special_instructions":null}},{"order":{"id":8,"number":"R162570238","item_total":"15.99","total":"15.99","state":"cart","adjustment_total":"0.0","user_id":null,"created_at":"2012-11-01T11:09:37Z","updated_at":"2012-11-01T11:09:37Z","completed_at":null,"payment_total":"0.0","shipment_state":null,"payment_state":"balance_due","email":null,"special_instructions":null}},{"order":{"id":9,"number":"R263145266","item_total":"19.99","total":"19.99","state":"cart","adjustment_total":"0.0","user_id":null,"created_at":"2012-11-01T11:36:16Z","updated_at":"2012-11-01T11:36:16Z","completed_at":null,"payment_total":"0.0","shipment_state":null,"payment_state":"balance_due","email":null,"special_instructions":null}},{"order":{"id":10,"number":"R618778860","item_total":"19.99","total":"19.99","state":"cart","adjustment_total":"0.0","user_id":null,"created_at":"2012-11-01T13:25:12Z","updated_at":"2012-11-01T13:25:12Z","completed_at":null,"payment_total":"0.0","shipment_state":null,"payment_state":"balance_due","email":null,"special_instructions":null}},{"order":{"id":11,"number":"R432674713","item_total":"15.99","total":"15.99","state":"cart","adjustment_total":"0.0","user_id":null,"created_at":"2012-11-01T13:27:57Z","updated_at":"2012-11-01T13:27:57Z","completed_at":null,"payment_total":"0.0","shipment_state":null,"payment_state":"balance_due","email":null,"special_instructions":null}},{"order":{"id":12,"number":"R303046005","item_total":"63.96","total":"63.96","state":"payment","adjustment_total":"0.0","user_id":1,"created_at":"2012-11-01T16:15:19Z","updated_at":"2012-11-02T22:30:47Z","completed_at":null,"payment_total":"0.0","shipment_state":"pending","payment_state":"balance_due","email":"andrew@forward.co.uk","special_instructions":null}},{"order":{"id":13,"number":"R614350641","item_total":"15.99","total":"15.99","state":"cart","adjustment_total":"0.0","user_id":null,"created_at":"2012-11-01T16:40:41Z","updated_at":"2012-11-01T16:40:41Z","completed_at":null,"payment_total":"0.0","shipment_state":null,"payment_state":"balance_due","email":null,"special_instructions":null}},{"order":{"id":14,"number":"R031831150","item_total":"15.99","total":"15.99","state":"cart","adjustment_total":"0.0","user_id":null,"created_at":"2012-11-02T10:42:37Z","updated_at":"2012-11-02T10:42:37Z","completed_at":null,"payment_total":"0.0","shipment_state":null,"payment_state":"balance_due","email":null,"special_instructions":null}},{"order":{"id":15,"number":"R124618128","item_total":"47.97","total":"47.97","state":"cart","adjustment_total":"0.0","user_id":null,"created_at":"2012-11-02T11:53:38Z","updated_at":"2012-11-02T11:53:38Z","completed_at":null,"payment_total":"0.0","shipment_state":null,"payment_state":"balance_due","email":null,"special_instructions":null}},{"order":{"id":16,"number":"R356568420","item_total":"31.98","total":"31.98","state":"payment","adjustment_total":"0.0","user_id":null,"created_at":"2012-11-02T11:54:08Z","updated_at":"2012-11-02T14:39:26Z","completed_at":null,"payment_total":"0.0","shipment_state":"pending","payment_state":"balance_due","email":"andrewnez@gmail.com","special_instructions":null}},{"order":{"id":17,"number":"R876563861","item_total":"15.99","total":"15.99","state":"complete","adjustment_total":"0.0","user_id":null,"created_at":"2012-11-02T12:59:16Z","updated_at":"2012-11-02T13:09:35Z","completed_at":"2012-11-02T13:09:35Z","payment_total":"15.99","shipment_state":"shipped","payment_state":"paid","email":"Carlgaywood@mac.com","special_instructions":null}},{"order":{"id":18,"number":"R626178802","item_total":"15.99","total":"15.99","state":"cart","adjustment_total":"0.0","user_id":null,"created_at":"2012-11-02T13:18:40Z","updated_at":"2012-11-02T13:18:40Z","completed_at":null,"payment_total":"0.0","shipment_state":null,"payment_state":"balance_due","email":null,"special_instructions":null}},{"order":{"id":19,"number":"R478884721","item_total":"15.99","total":"15.99","state":"cart","adjustment_total":"0.0","user_id":null,"created_at":"2012-11-02T13:37:30Z","updated_at":"2012-11-02T13:37:30Z","completed_at":null,"payment_total":"0.0","shipment_state":null,"payment_state":"balance_due","email":null,"special_instructions":null}},{"order":{"id":20,"number":"R044125263","item_total":"15.99","total":"15.99","state":"cart","adjustment_total":"0.0","user_id":null,"created_at":"2012-11-02T13:49:56Z","updated_at":"2012-11-02T13:49:56Z","completed_at":null,"payment_total":"0.0","shipment_state":null,"payment_state":"balance_due","email":null,"special_instructions":null}},{"order":{"id":21,"number":"R067846337","item_total":"15.99","total":"15.99","state":"cart","adjustment_total":"0.0","user_id":null,"created_at":"2012-11-02T14:04:21Z","updated_at":"2012-11-02T14:04:21Z","completed_at":null,"payment_total":"0.0","shipment_state":null,"payment_state":"balance_due","email":null,"special_instructions":null}},{"order":{"id":22,"number":"R530034387","item_total":"15.99","total":"15.99","state":"cart","adjustment_total":"0.0","user_id":null,"created_at":"2012-11-02T14:06:43Z","updated_at":"2012-11-02T14:06:43Z","completed_at":null,"payment_total":"0.0","shipment_state":null,"payment_state":"balance_due","email":null,"special_instructions":null}},{"order":{"id":23,"number":"R522108274","item_total":"15.99","total":"15.99","state":"cart","adjustment_total":"0.0","user_id":null,"created_at":"2012-11-02T14:17:35Z","updated_at":"2012-11-02T14:17:35Z","completed_at":null,"payment_total":"0.0","shipment_state":null,"payment_state":"balance_due","email":null,"special_instructions":null}},{"order":{"id":24,"number":"R412640660","item_total":"15.99","total":"15.99","state":"cart","adjustment_total":"0.0","user_id":null,"created_at":"2012-11-02T14:33:49Z","updated_at":"2012-11-02T14:33:49Z","completed_at":null,"payment_total":"0.0","shipment_state":null,"payment_state":"balance_due","email":null,"special_instructions":null}},{"order":{"id":25,"number":"R673415015","item_total":"15.99","total":"15.99","state":"cart","adjustment_total":"0.0","user_id":null,"created_at":"2012-11-02T15:24:26Z","updated_at":"2012-11-02T15:24:26Z","completed_at":null,"payment_total":"0.0","shipment_state":null,"payment_state":"balance_due","email":null,"special_instructions":null}},{"order":{"id":26,"number":"R432164542","item_total":"15.99","total":"15.99","state":"cart","adjustment_total":"0.0","user_id":null,"created_at":"2012-11-02T15:35:16Z","updated_at":"2012-11-02T15:35:16Z","completed_at":null,"payment_total":"0.0","shipment_state":null,"payment_state":"balance_due","email":null,"special_instructions":null}},{"order":{"id":27,"number":"R541785213","item_total":"15.99","total":"15.99","state":"cart","adjustment_total":"0.0","user_id":null,"created_at":"2012-11-02T15:39:07Z","updated_at":"2012-11-02T15:39:07Z","completed_at":null,"payment_total":"0.0","shipment_state":null,"payment_state":"balance_due","email":null,"special_instructions":null}},{"order":{"id":28,"number":"R668010772","item_total":"15.99","total":"15.99","state":"cart","adjustment_total":"0.0","user_id":null,"created_at":"2012-11-02T15:58:50Z","updated_at":"2012-11-02T15:58:50Z","completed_at":null,"payment_total":"0.0","shipment_state":null,"payment_state":"balance_due","email":null,"special_instructions":null}},{"order":{"id":29,"number":"R122000223","item_total":"15.99","total":"15.99","state":"cart","adjustment_total":"0.0","user_id":null,"created_at":"2012-11-02T16:14:23Z","updated_at":"2012-11-02T16:14:23Z","completed_at":null,"payment_total":"0.0","shipment_state":null,"payment_state":"balance_due","email":null,"special_instructions":null}},{"order":{"id":30,"number":"R387428743","item_total":"15.99","total":"15.99","state":"cart","adjustment_total":"0.0","user_id":null,"created_at":"2012-11-02T21:00:05Z","updated_at":"2012-11-02T21:00:05Z","completed_at":null,"payment_total":"0.0","shipment_state":null,"payment_state":"balance_due","email":null,"special_instructions":null}}]}'
46
- http_version:
47
- recorded_at: Fri, 07 Dec 2012 17:37:14 GMT
48
- recorded_with: VCR 2.3.0
@@ -1,48 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: http://localhost:4000/store/api/orders/R610162112/payments?per_page=30
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- Accept:
11
- - application/json
12
- X-Spree-Token:
13
- - b56019f04b61a50553ee323f5ab68c6b435871971e79c987
14
- Accept-Encoding:
15
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
- User-Agent:
17
- - Ruby
18
- response:
19
- status:
20
- code: 200
21
- message: ! 'OK '
22
- headers:
23
- Content-Type:
24
- - application/json
25
- X-Ua-Compatible:
26
- - IE=Edge
27
- Etag:
28
- - ! '"91cd881054beb128abd3f9a4203f114c"'
29
- Cache-Control:
30
- - max-age=0, private, must-revalidate
31
- X-Request-Id:
32
- - 1458f3f9a1e7d3fab8187beeeb00ee95
33
- X-Runtime:
34
- - '0.071316'
35
- Content-Length:
36
- - '52'
37
- Server:
38
- - WEBrick/1.3.1 (Ruby/1.9.3/2012-02-16)
39
- Date:
40
- - Fri, 07 Dec 2012 17:37:14 GMT
41
- Connection:
42
- - Keep-Alive
43
- body:
44
- encoding: US-ASCII
45
- string: ! '{"count":0,"current_page":1,"pages":0,"payments":[]}'
46
- http_version:
47
- recorded_at: Fri, 07 Dec 2012 17:37:14 GMT
48
- recorded_with: VCR 2.3.0
@@ -1,66 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: http://localhost:4000/store/api/products?per_page=30
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- Accept:
11
- - application/json
12
- X-Spree-Token:
13
- - b56019f04b61a50553ee323f5ab68c6b435871971e79c987
14
- Accept-Encoding:
15
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
- User-Agent:
17
- - Ruby
18
- response:
19
- status:
20
- code: 200
21
- message: ! 'OK '
22
- headers:
23
- Content-Type:
24
- - application/json
25
- X-Ua-Compatible:
26
- - IE=Edge
27
- Etag:
28
- - ! '"f88b1efdc1f3677b0f8a57827b15d9b6"'
29
- Cache-Control:
30
- - max-age=0, private, must-revalidate
31
- X-Request-Id:
32
- - c8e26bdfe8a2149819540e7bc379e305
33
- X-Runtime:
34
- - '0.900670'
35
- Content-Length:
36
- - '16215'
37
- Server:
38
- - WEBrick/1.3.1 (Ruby/1.9.3/2012-02-16)
39
- Date:
40
- - Fri, 07 Dec 2012 17:37:15 GMT
41
- Connection:
42
- - Keep-Alive
43
- body:
44
- encoding: US-ASCII
45
- string: ! '{"count":6,"total_count":6,"current_page":1,"pages":1,"products":[{"product":{"id":1,"name":"Bomb","description":"","price":"12.99","available_on":"2012-10-28T00:00:00Z","permalink":"bomb","count_on_hand":48,"meta_description":"","meta_keywords":"","taxon_ids":[1,3],"variants":[{"variant":{"id":1,"name":"Bomb","count_on_hand":0,"sku":"","price":"12.99","weight":null,"height":null,"width":null,"depth":null,"is_master":true,"cost_price":"12.99","permalink":"bomb","option_values":[]}},{"variant":{"id":2,"name":"Bomb","count_on_hand":8,"sku":"","price":"12.99","weight":null,"height":null,"width":null,"depth":null,"is_master":false,"cost_price":null,"permalink":"bomb","option_values":[{"option_value":{"id":1,"name":"Small","presentation":"Small","option_type_name":"Size","option_type_id":1}}]}},{"variant":{"id":3,"name":"Bomb","count_on_hand":20,"sku":"","price":"12.99","weight":null,"height":null,"width":null,"depth":null,"is_master":false,"cost_price":null,"permalink":"bomb","option_values":[{"option_value":{"id":2,"name":"Medium","presentation":"Medium","option_type_name":"Size","option_type_id":1}}]}},{"variant":{"id":4,"name":"Bomb","count_on_hand":14,"sku":"","price":"12.99","weight":null,"height":null,"width":null,"depth":null,"is_master":false,"cost_price":null,"permalink":"bomb","option_values":[{"option_value":{"id":3,"name":"Large","presentation":"Large","option_type_name":"Size","option_type_id":1}}]}},{"variant":{"id":13,"name":"Bomb","count_on_hand":5,"sku":"","price":"12.99","weight":null,"height":null,"width":null,"depth":null,"is_master":false,"cost_price":"12.99","permalink":"bomb","option_values":[{"option_value":{"id":4,"name":"XL","presentation":"XL","option_type_name":"Size","option_type_id":1}}]}}],"images":[{"image":{"id":10,"position":1,"attachment_content_type":"image/jpeg","attachment_file_name":"bomb-large.jpg","type":"Spree::Image","attachment_updated_at":"2012-10-30T16:14:05Z","attachment_width":690,"attachment_height":797,"alt":"","viewable_type":"Spree::Variant","viewable_id":1}}],"option_types":[{"option_type":{"id":1,"name":"Size","presentation":"Size","position":0,"option_values":[{"option_value":{"id":1,"name":"Small","presentation":"Small","option_type_name":"Size","option_type_id":1}},{"option_value":{"id":2,"name":"Medium","presentation":"Medium","option_type_name":"Size","option_type_id":1}},{"option_value":{"id":3,"name":"Large","presentation":"Large","option_type_name":"Size","option_type_id":1}},{"option_value":{"id":4,"name":"XL","presentation":"XL","option_type_name":"Size","option_type_id":1}}]}}],"product_properties":[{"product_property":{"id":1,"product_id":1,"property_id":2,"value":null,"property_name":"Brand"}}]}},{"product":{"id":2,"name":"Disobey","description":"","price":"12.99","available_on":"2012-10-30T00:00:00Z","permalink":"disobey","count_on_hand":49,"meta_description":"","meta_keywords":"","taxon_ids":[1,3],"variants":[{"variant":{"id":5,"name":"Disobey","count_on_hand":0,"sku":"","price":"12.99","weight":null,"height":null,"width":null,"depth":null,"is_master":true,"cost_price":"12.99","permalink":"disobey","option_values":[]}},{"variant":{"id":6,"name":"Disobey","count_on_hand":10,"sku":"","price":"12.99","weight":null,"height":null,"width":null,"depth":null,"is_master":false,"cost_price":null,"permalink":"disobey","option_values":[{"option_value":{"id":1,"name":"Small","presentation":"Small","option_type_name":"Size","option_type_id":1}}]}},{"variant":{"id":7,"name":"Disobey","count_on_hand":19,"sku":"","price":"12.99","weight":null,"height":null,"width":null,"depth":null,"is_master":false,"cost_price":null,"permalink":"disobey","option_values":[{"option_value":{"id":2,"name":"Medium","presentation":"Medium","option_type_name":"Size","option_type_id":1}}]}},{"variant":{"id":8,"name":"Disobey","count_on_hand":15,"sku":"","price":"12.99","weight":null,"height":null,"width":null,"depth":null,"is_master":false,"cost_price":null,"permalink":"disobey","option_values":[{"option_value":{"id":3,"name":"Large","presentation":"Large","option_type_name":"Size","option_type_id":1}}]}},{"variant":{"id":14,"name":"Disobey","count_on_hand":5,"sku":"","price":"12.99","weight":null,"height":null,"width":null,"depth":null,"is_master":false,"cost_price":null,"permalink":"disobey","option_values":[{"option_value":{"id":4,"name":"XL","presentation":"XL","option_type_name":"Size","option_type_id":1}}]}}],"images":[{"image":{"id":3,"position":1,"attachment_content_type":"image/jpeg","attachment_file_name":"disobey-large.jpg","type":"Spree::Image","attachment_updated_at":"2012-10-30T12:18:19Z","attachment_width":690,"attachment_height":797,"alt":"","viewable_type":"Spree::Variant","viewable_id":5}}],"option_types":[{"option_type":{"id":1,"name":"Size","presentation":"Size","position":0,"option_values":[{"option_value":{"id":1,"name":"Small","presentation":"Small","option_type_name":"Size","option_type_id":1}},{"option_value":{"id":2,"name":"Medium","presentation":"Medium","option_type_name":"Size","option_type_id":1}},{"option_value":{"id":3,"name":"Large","presentation":"Large","option_type_name":"Size","option_type_id":1}},{"option_value":{"id":4,"name":"XL","presentation":"XL","option_type_name":"Size","option_type_id":1}}]}}],"product_properties":[{"product_property":{"id":2,"product_id":2,"property_id":2,"value":null,"property_name":"Brand"}}]}},{"product":{"id":3,"name":"POV","description":"","price":"12.99","available_on":"2012-10-30T00:00:00Z","permalink":"pov","count_on_hand":50,"meta_description":"","meta_keywords":"","taxon_ids":[1,3],"variants":[{"variant":{"id":9,"name":"POV","count_on_hand":0,"sku":"","price":"12.99","weight":null,"height":null,"width":null,"depth":null,"is_master":true,"cost_price":"12.99","permalink":"pov","option_values":[]}},{"variant":{"id":10,"name":"POV","count_on_hand":10,"sku":"","price":"12.99","weight":null,"height":null,"width":null,"depth":null,"is_master":false,"cost_price":null,"permalink":"pov","option_values":[{"option_value":{"id":1,"name":"Small","presentation":"Small","option_type_name":"Size","option_type_id":1}}]}},{"variant":{"id":11,"name":"POV","count_on_hand":19,"sku":"","price":"12.99","weight":null,"height":null,"width":null,"depth":null,"is_master":false,"cost_price":null,"permalink":"pov","option_values":[{"option_value":{"id":2,"name":"Medium","presentation":"Medium","option_type_name":"Size","option_type_id":1}}]}},{"variant":{"id":12,"name":"POV","count_on_hand":15,"sku":"","price":"12.99","weight":null,"height":null,"width":null,"depth":null,"is_master":false,"cost_price":null,"permalink":"pov","option_values":[{"option_value":{"id":3,"name":"Large","presentation":"Large","option_type_name":"Size","option_type_id":1}}]}},{"variant":{"id":15,"name":"POV","count_on_hand":5,"sku":"","price":"12.99","weight":null,"height":null,"width":null,"depth":null,"is_master":false,"cost_price":null,"permalink":"pov","option_values":[{"option_value":{"id":4,"name":"XL","presentation":"XL","option_type_name":"Size","option_type_id":1}}]}}],"images":[{"image":{"id":4,"position":1,"attachment_content_type":"image/jpeg","attachment_file_name":"pov-large.jpg","type":"Spree::Image","attachment_updated_at":"2012-10-30T12:18:33Z","attachment_width":690,"attachment_height":797,"alt":"","viewable_type":"Spree::Variant","viewable_id":9}}],"option_types":[{"option_type":{"id":1,"name":"Size","presentation":"Size","position":0,"option_values":[{"option_value":{"id":1,"name":"Small","presentation":"Small","option_type_name":"Size","option_type_id":1}},{"option_value":{"id":2,"name":"Medium","presentation":"Medium","option_type_name":"Size","option_type_id":1}},{"option_value":{"id":3,"name":"Large","presentation":"Large","option_type_name":"Size","option_type_id":1}},{"option_value":{"id":4,"name":"XL","presentation":"XL","option_type_name":"Size","option_type_id":1}}]}}],"product_properties":[{"product_property":{"id":3,"product_id":3,"property_id":2,"value":null,"property_name":"Brand"}}]}},{"product":{"id":4,"name":"Whitelines
46
- 1","description":"","price":"14.0","available_on":"2012-11-05T00:00:00Z","permalink":"whitelines-1","count_on_hand":0,"meta_description":"","meta_keywords":"","taxon_ids":[2],"variants":[{"variant":{"id":16,"name":"Whitelines
47
- 1","count_on_hand":0,"sku":"","price":"14.0","weight":null,"height":null,"width":null,"depth":null,"is_master":true,"cost_price":null,"permalink":"whitelines-1","option_values":[]}},{"variant":{"id":17,"name":"Whitelines
48
- 1","count_on_hand":0,"sku":"","price":"14.0","weight":null,"height":null,"width":null,"depth":null,"is_master":false,"cost_price":null,"permalink":"whitelines-1","option_values":[{"option_value":{"id":1,"name":"Small","presentation":"Small","option_type_name":"Size","option_type_id":1}}]}},{"variant":{"id":18,"name":"Whitelines
49
- 1","count_on_hand":0,"sku":"","price":"14.0","weight":null,"height":null,"width":null,"depth":null,"is_master":false,"cost_price":null,"permalink":"whitelines-1","option_values":[{"option_value":{"id":2,"name":"Medium","presentation":"Medium","option_type_name":"Size","option_type_id":1}}]}},{"variant":{"id":19,"name":"Whitelines
50
- 1","count_on_hand":0,"sku":"","price":"14.0","weight":null,"height":null,"width":null,"depth":null,"is_master":false,"cost_price":null,"permalink":"whitelines-1","option_values":[{"option_value":{"id":3,"name":"Large","presentation":"Large","option_type_name":"Size","option_type_id":1}}]}},{"variant":{"id":20,"name":"Whitelines
51
- 1","count_on_hand":0,"sku":"","price":"14.0","weight":null,"height":null,"width":null,"depth":null,"is_master":false,"cost_price":null,"permalink":"whitelines-1","option_values":[{"option_value":{"id":4,"name":"XL","presentation":"XL","option_type_name":"Size","option_type_id":1}}]}}],"images":[{"image":{"id":11,"position":1,"attachment_content_type":"image/jpeg","attachment_file_name":"WL_2011_Tshirt2.jpg","type":"Spree::Image","attachment_updated_at":"2012-11-05T12:08:06Z","attachment_width":650,"attachment_height":580,"alt":"","viewable_type":"Spree::Variant","viewable_id":16}}],"option_types":[{"option_type":{"id":1,"name":"Size","presentation":"Size","position":0,"option_values":[{"option_value":{"id":1,"name":"Small","presentation":"Small","option_type_name":"Size","option_type_id":1}},{"option_value":{"id":2,"name":"Medium","presentation":"Medium","option_type_name":"Size","option_type_id":1}},{"option_value":{"id":3,"name":"Large","presentation":"Large","option_type_name":"Size","option_type_id":1}},{"option_value":{"id":4,"name":"XL","presentation":"XL","option_type_name":"Size","option_type_id":1}}]}}],"product_properties":[{"product_property":{"id":4,"product_id":4,"property_id":2,"value":null,"property_name":"Brand"}}]}},{"product":{"id":5,"name":"Whitelines
52
- 2","description":"","price":"14.0","available_on":"2012-11-05T00:00:00Z","permalink":"whitelines-2","count_on_hand":0,"meta_description":"","meta_keywords":"","taxon_ids":[2],"variants":[{"variant":{"id":21,"name":"Whitelines
53
- 2","count_on_hand":0,"sku":"","price":"14.0","weight":null,"height":null,"width":null,"depth":null,"is_master":true,"cost_price":null,"permalink":"whitelines-2","option_values":[]}},{"variant":{"id":23,"name":"Whitelines
54
- 2","count_on_hand":0,"sku":"","price":"14.0","weight":null,"height":null,"width":null,"depth":null,"is_master":false,"cost_price":null,"permalink":"whitelines-2","option_values":[{"option_value":{"id":1,"name":"Small","presentation":"Small","option_type_name":"Size","option_type_id":1}}]}},{"variant":{"id":24,"name":"Whitelines
55
- 2","count_on_hand":0,"sku":"","price":"14.0","weight":null,"height":null,"width":null,"depth":null,"is_master":false,"cost_price":null,"permalink":"whitelines-2","option_values":[{"option_value":{"id":2,"name":"Medium","presentation":"Medium","option_type_name":"Size","option_type_id":1}}]}},{"variant":{"id":25,"name":"Whitelines
56
- 2","count_on_hand":0,"sku":"","price":"14.0","weight":null,"height":null,"width":null,"depth":null,"is_master":false,"cost_price":null,"permalink":"whitelines-2","option_values":[{"option_value":{"id":3,"name":"Large","presentation":"Large","option_type_name":"Size","option_type_id":1}}]}},{"variant":{"id":26,"name":"Whitelines
57
- 2","count_on_hand":0,"sku":"","price":"14.0","weight":null,"height":null,"width":null,"depth":null,"is_master":false,"cost_price":null,"permalink":"whitelines-2","option_values":[{"option_value":{"id":4,"name":"XL","presentation":"XL","option_type_name":"Size","option_type_id":1}}]}}],"images":[{"image":{"id":13,"position":1,"attachment_content_type":"image/jpeg","attachment_file_name":"WL_2011_Tshirt2_copy.jpg","type":"Spree::Image","attachment_updated_at":"2012-11-05T12:09:24Z","attachment_width":658,"attachment_height":580,"alt":"","viewable_type":"Spree::Variant","viewable_id":21}}],"option_types":[{"option_type":{"id":1,"name":"Size","presentation":"Size","position":0,"option_values":[{"option_value":{"id":1,"name":"Small","presentation":"Small","option_type_name":"Size","option_type_id":1}},{"option_value":{"id":2,"name":"Medium","presentation":"Medium","option_type_name":"Size","option_type_id":1}},{"option_value":{"id":3,"name":"Large","presentation":"Large","option_type_name":"Size","option_type_id":1}},{"option_value":{"id":4,"name":"XL","presentation":"XL","option_type_name":"Size","option_type_id":1}}]}}],"product_properties":[{"product_property":{"id":5,"product_id":5,"property_id":2,"value":null,"property_name":"Brand"}}]}},{"product":{"id":6,"name":"Whitelines
58
- 3","description":"","price":"14.0","available_on":"2012-11-05T00:00:00Z","permalink":"whitelines-3","count_on_hand":0,"meta_description":"","meta_keywords":"","taxon_ids":[2],"variants":[{"variant":{"id":22,"name":"Whitelines
59
- 3","count_on_hand":0,"sku":"","price":"14.0","weight":null,"height":null,"width":null,"depth":null,"is_master":true,"cost_price":null,"permalink":"whitelines-3","option_values":[]}},{"variant":{"id":27,"name":"Whitelines
60
- 3","count_on_hand":0,"sku":"","price":"14.0","weight":null,"height":null,"width":null,"depth":null,"is_master":false,"cost_price":null,"permalink":"whitelines-3","option_values":[{"option_value":{"id":1,"name":"Small","presentation":"Small","option_type_name":"Size","option_type_id":1}}]}},{"variant":{"id":28,"name":"Whitelines
61
- 3","count_on_hand":0,"sku":"","price":"14.0","weight":null,"height":null,"width":null,"depth":null,"is_master":false,"cost_price":null,"permalink":"whitelines-3","option_values":[{"option_value":{"id":2,"name":"Medium","presentation":"Medium","option_type_name":"Size","option_type_id":1}}]}},{"variant":{"id":29,"name":"Whitelines
62
- 3","count_on_hand":0,"sku":"","price":"14.0","weight":null,"height":null,"width":null,"depth":null,"is_master":false,"cost_price":null,"permalink":"whitelines-3","option_values":[{"option_value":{"id":3,"name":"Large","presentation":"Large","option_type_name":"Size","option_type_id":1}}]}},{"variant":{"id":30,"name":"Whitelines
63
- 3","count_on_hand":0,"sku":"","price":"14.0","weight":null,"height":null,"width":null,"depth":null,"is_master":false,"cost_price":null,"permalink":"whitelines-3","option_values":[{"option_value":{"id":4,"name":"XL","presentation":"XL","option_type_name":"Size","option_type_id":1}}]}}],"images":[{"image":{"id":14,"position":1,"attachment_content_type":"image/jpeg","attachment_file_name":"WL_2011_Tshirt2_copy_2.jpg","type":"Spree::Image","attachment_updated_at":"2012-11-05T12:10:02Z","attachment_width":652,"attachment_height":586,"alt":"","viewable_type":"Spree::Variant","viewable_id":22}}],"option_types":[{"option_type":{"id":1,"name":"Size","presentation":"Size","position":0,"option_values":[{"option_value":{"id":1,"name":"Small","presentation":"Small","option_type_name":"Size","option_type_id":1}},{"option_value":{"id":2,"name":"Medium","presentation":"Medium","option_type_name":"Size","option_type_id":1}},{"option_value":{"id":3,"name":"Large","presentation":"Large","option_type_name":"Size","option_type_id":1}},{"option_value":{"id":4,"name":"XL","presentation":"XL","option_type_name":"Size","option_type_id":1}}]}}],"product_properties":[{"product_property":{"id":6,"product_id":6,"property_id":2,"value":null,"property_name":"Brand"}}]}}]}'
64
- http_version:
65
- recorded_at: Fri, 07 Dec 2012 17:37:15 GMT
66
- recorded_with: VCR 2.3.0
@@ -1,48 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: http://localhost:4000/store/api/products/1/product_properties?per_page=30
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- Accept:
11
- - application/json
12
- X-Spree-Token:
13
- - b56019f04b61a50553ee323f5ab68c6b435871971e79c987
14
- Accept-Encoding:
15
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
- User-Agent:
17
- - Ruby
18
- response:
19
- status:
20
- code: 200
21
- message: ! 'OK '
22
- headers:
23
- Content-Type:
24
- - application/json
25
- X-Ua-Compatible:
26
- - IE=Edge
27
- Etag:
28
- - ! '"6f9c87e8ee8667300cf802098fd88155"'
29
- Cache-Control:
30
- - max-age=0, private, must-revalidate
31
- X-Request-Id:
32
- - 7c789d8104188f51ee174eff0e5f90d3
33
- X-Runtime:
34
- - '0.126097'
35
- Content-Length:
36
- - '159'
37
- Server:
38
- - WEBrick/1.3.1 (Ruby/1.9.3/2012-02-16)
39
- Date:
40
- - Fri, 07 Dec 2012 17:37:15 GMT
41
- Connection:
42
- - Keep-Alive
43
- body:
44
- encoding: US-ASCII
45
- string: ! '{"count":1,"current_page":1,"pages":1,"product_properties":[{"product_property":{"id":1,"product_id":1,"property_id":2,"value":null,"property_name":"Brand"}}]}'
46
- http_version:
47
- recorded_at: Fri, 07 Dec 2012 17:37:15 GMT
48
- recorded_with: VCR 2.3.0
@@ -1,46 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: http://localhost:4000/store/api/products?per_page=30
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- Accept:
11
- - application/json
12
- X-Spree-Token:
13
- - randomtokenstring
14
- Accept-Encoding:
15
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
- User-Agent:
17
- - Ruby
18
- response:
19
- status:
20
- code: 401
21
- message: ! 'Unauthorized '
22
- headers:
23
- Content-Type:
24
- - application/json
25
- X-Ua-Compatible:
26
- - IE=Edge
27
- Cache-Control:
28
- - no-cache
29
- X-Request-Id:
30
- - d798d1cce6abd8eabf52f1d7a35f2760
31
- X-Runtime:
32
- - '0.031217'
33
- Content-Length:
34
- - '64'
35
- Server:
36
- - WEBrick/1.3.1 (Ruby/1.9.3/2012-02-16)
37
- Date:
38
- - Fri, 07 Dec 2012 17:37:14 GMT
39
- Connection:
40
- - Keep-Alive
41
- body:
42
- encoding: US-ASCII
43
- string: ! '{"error":"translation missing: en-GB.spree.api.invalid_api_key"}'
44
- http_version:
45
- recorded_at: Fri, 07 Dec 2012 17:37:14 GMT
46
- recorded_with: VCR 2.3.0