spree-api-client 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. data/.ruby-version +1 -0
  2. data/.travis.yml +7 -5
  3. data/Gemfile +6 -0
  4. data/LICENSE +1 -1
  5. data/README.md +1 -1
  6. data/fixtures/cassette_library/addresss.yml +46 -0
  7. data/fixtures/cassette_library/countries.yml +52 -0
  8. data/fixtures/cassette_library/orders.yml +48 -0
  9. data/fixtures/cassette_library/payments.yml +48 -0
  10. data/fixtures/cassette_library/products.yml +66 -0
  11. data/fixtures/cassette_library/properties.yml +48 -0
  12. data/fixtures/cassette_library/request.yml +46 -0
  13. data/fixtures/cassette_library/return_authorizations.yml +48 -0
  14. data/fixtures/cassette_library/shipment_ready.yml +46 -0
  15. data/fixtures/cassette_library/taxonomies.yml +48 -0
  16. data/fixtures/cassette_library/taxons.yml +48 -0
  17. data/fixtures/cassette_library/variants.yml +63 -0
  18. data/fixtures/cassette_library/zones.yml +49 -0
  19. data/lib/spree-api-client/connection.rb +2 -1
  20. data/lib/spree-api-client/error.rb +47 -0
  21. data/lib/spree-api-client/orders.rb +2 -1
  22. data/lib/spree-api-client/request.rb +25 -18
  23. data/lib/spree-api-client/version.rb +1 -1
  24. data/spec/addresses_spec.rb +1 -0
  25. data/spec/client_spec.rb +1 -0
  26. data/spec/countries_spec.rb +1 -0
  27. data/spec/orders_spec.rb +1 -0
  28. data/spec/payments_spec.rb +1 -0
  29. data/spec/products_spec.rb +1 -0
  30. data/spec/properties_spec.rb +1 -0
  31. data/spec/return_authorizations_spec.rb +1 -0
  32. data/spec/shipments_spec.rb +1 -0
  33. data/spec/spec_helper.rb +6 -1
  34. data/spec/support/vcr.rb +9 -0
  35. data/spec/taxonomies_spec.rb +1 -0
  36. data/spec/taxons_spec.rb +1 -0
  37. data/spec/variants_spec.rb +1 -0
  38. data/spec/zones_spec.rb +1 -0
  39. data/spree-api-client.gemspec +3 -1
  40. metadata +96 -16
@@ -0,0 +1 @@
1
+ 1.9.3-p286
@@ -1,9 +1,11 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 1.8.7
4
- - 1.9.2
5
3
  - 1.9.3
6
- - jruby-18mode # JRuby in 1.8 mode
7
- - jruby-19mode # JRuby in 1.9 mode
4
+ - 2.0.0
5
+ - ruby-head
6
+ - jruby-18mode
7
+ - jruby-19mode
8
+ - jruby-head
8
9
  - rbx-18mode
9
- - rbx-19mode
10
+ - rbx-19mode
11
+ - ree
data/Gemfile CHANGED
@@ -1,3 +1,9 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
+ gem 'json', '~> 1.7', :platforms => [:ruby_18, :jruby]
4
+
5
+ group :development do
6
+ gem 'pry'
7
+ end
8
+
3
9
  gemspec
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2012 Andrew Nesbitt
1
+ Copyright (c) 2013 Andrew Nesbitt
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -58,4 +58,4 @@ Tests can be ran with `rake spec`
58
58
 
59
59
  ## Copyright
60
60
 
61
- Copyright (c) 2012 Andrew Nesbitt. See [LICENSE](https://github.com/andrew/spree-api-client/blob/master/LICENSE) for details.
61
+ Copyright (c) 2013 Andrew Nesbitt. See [LICENSE](https://github.com/andrew/spree-api-client/blob/master/LICENSE) for details.
@@ -0,0 +1,46 @@
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
@@ -0,0 +1,52 @@
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
@@ -0,0 +1,48 @@
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
@@ -0,0 +1,48 @@
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
@@ -0,0 +1,66 @@
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
@@ -0,0 +1,48 @@
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
@@ -0,0 +1,46 @@
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
@@ -0,0 +1,48 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:4000/store/api/orders/R781501551/return_authorizations?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
+ - ! '"6f071d405cceb3add2aa1ce45451ae0c"'
29
+ Cache-Control:
30
+ - max-age=0, private, must-revalidate
31
+ X-Request-Id:
32
+ - f0c2d041caa9e182c835e7dd10c1d87a
33
+ X-Runtime:
34
+ - '0.074531'
35
+ Content-Length:
36
+ - '256'
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,"return_authorizations":[{"return_authorization":{"id":1,"number":"RMA848788441","state":"authorized","amount":"0.0","order_id":80,"reason":"","created_at":"2012-12-06T11:49:07Z","updated_at":"2012-12-06T11:49:07Z"}}]}'
46
+ http_version:
47
+ recorded_at: Fri, 07 Dec 2012 17:37:15 GMT
48
+ recorded_with: VCR 2.3.0