spree-api-client 0.0.2 → 0.2.4

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/api/v1/products.rb +23 -0
  6. data/lib/spree_client/api/v1/properties.rb +12 -0
  7. data/lib/spree_client/api/v1/resources.rb +142 -0
  8. data/lib/spree_client/api/v1/stock_items.rb +27 -0
  9. data/lib/spree_client/api/v1/stock_locations.rb +33 -0
  10. data/lib/spree_client/api/v1/stock_movements.rb +16 -0
  11. data/lib/spree_client/api/v1/taxonomies.rb +12 -0
  12. data/lib/spree_client/api/v1/variants.rb +13 -0
  13. data/lib/spree_client/api/v1.rb +53 -0
  14. data/lib/spree_client/api.rb +1 -0
  15. data/lib/spree_client/attributes.rb +28 -0
  16. data/lib/spree_client/models/product.rb +7 -0
  17. data/lib/spree_client/models/property.rb +6 -0
  18. data/lib/spree_client/models/stock_item.rb +7 -0
  19. data/lib/spree_client/models/stock_location.rb +7 -0
  20. data/lib/spree_client/models/stock_movement.rb +7 -0
  21. data/lib/spree_client/models/store.rb +7 -0
  22. data/lib/spree_client/models/taxonomy.rb +5 -0
  23. data/lib/spree_client/models/variant.rb +7 -0
  24. data/lib/spree_client/models.rb +5 -0
  25. data/lib/spree_client.rb +3 -0
  26. data/lib/spree_client.rb~ +71 -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/addresses.rb +0 -15
  49. data/lib/spree-api-client/connection.rb +0 -31
  50. data/lib/spree-api-client/countries.rb +0 -15
  51. data/lib/spree-api-client/error.rb +0 -47
  52. data/lib/spree-api-client/line_items.rb +0 -19
  53. data/lib/spree-api-client/orders.rb +0 -32
  54. data/lib/spree-api-client/payments.rb +0 -43
  55. data/lib/spree-api-client/products.rb +0 -31
  56. data/lib/spree-api-client/properties.rb +0 -31
  57. data/lib/spree-api-client/request.rb +0 -56
  58. data/lib/spree-api-client/return_authorizations.rb +0 -31
  59. data/lib/spree-api-client/shipments.rb +0 -15
  60. data/lib/spree-api-client/taxonomies.rb +0 -31
  61. data/lib/spree-api-client/taxons.rb +0 -27
  62. data/lib/spree-api-client/variants.rb +0 -31
  63. data/lib/spree-api-client/version.rb +0 -7
  64. data/lib/spree-api-client/zones.rb +0 -31
  65. data/lib/spree-api-client.rb +0 -49
  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
metadata CHANGED
@@ -1,244 +1,125 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree-api-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
5
- prerelease:
4
+ version: 0.2.4
6
5
  platform: ruby
7
6
  authors:
8
- - Andrew Nesbitt
9
- autorequire:
7
+ - f
8
+ autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-08-15 00:00:00.000000000 Z
11
+ date: 2021-11-09 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
- name: faraday
14
+ name: httparty
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ~>
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
- version: '0.8'
19
+ version: 0.18.0
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ~>
24
+ - - "~>"
28
25
  - !ruby/object:Gem::Version
29
- version: '0.8'
26
+ version: 0.18.0
30
27
  - !ruby/object:Gem::Dependency
31
- name: faraday_middleware
28
+ name: fast_blank
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ~>
31
+ - - "~>"
36
32
  - !ruby/object:Gem::Version
37
- version: '0.9'
33
+ version: '1'
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ~>
38
+ - - "~>"
44
39
  - !ruby/object:Gem::Version
45
- version: '0.9'
40
+ version: '1'
46
41
  - !ruby/object:Gem::Dependency
47
- name: hashie
42
+ name: pry
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ~>
52
- - !ruby/object:Gem::Version
53
- version: '1.2'
54
- type: :runtime
55
- prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - ~>
60
- - !ruby/object:Gem::Version
61
- version: '1.2'
62
- - !ruby/object:Gem::Dependency
63
- name: multi_json
64
- requirement: !ruby/object:Gem::Requirement
65
- none: false
66
- requirements:
67
- - - ~>
68
- - !ruby/object:Gem::Version
69
- version: '1.4'
70
- type: :runtime
71
- prerelease: false
72
- version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
- requirements:
75
- - - ~>
76
- - !ruby/object:Gem::Version
77
- version: '1.4'
78
- - !ruby/object:Gem::Dependency
79
- name: webmock
80
- requirement: !ruby/object:Gem::Requirement
81
- none: false
82
- requirements:
83
- - - ! '>='
84
- - !ruby/object:Gem::Version
85
- version: '0'
86
- type: :development
87
- prerelease: false
88
- version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
- requirements:
91
- - - ! '>='
92
- - !ruby/object:Gem::Version
93
- version: '0'
94
- - !ruby/object:Gem::Dependency
95
- name: vcr
96
- requirement: !ruby/object:Gem::Requirement
97
- none: false
98
- requirements:
99
- - - ! '>='
100
- - !ruby/object:Gem::Version
101
- version: '0'
102
- type: :development
103
- prerelease: false
104
- version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
- requirements:
107
- - - ! '>='
108
- - !ruby/object:Gem::Version
109
- version: '0'
110
- - !ruby/object:Gem::Dependency
111
- name: rake
112
- requirement: !ruby/object:Gem::Requirement
113
- none: false
114
- requirements:
115
- - - ! '>='
45
+ - - ">="
116
46
  - !ruby/object:Gem::Version
117
47
  version: '0'
118
48
  type: :development
119
49
  prerelease: false
120
50
  version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
51
  requirements:
123
- - - ! '>='
52
+ - - ">="
124
53
  - !ruby/object:Gem::Version
125
54
  version: '0'
126
- - !ruby/object:Gem::Dependency
127
- name: rspec
128
- requirement: !ruby/object:Gem::Requirement
129
- none: false
130
- requirements:
131
- - - ! '>='
132
- - !ruby/object:Gem::Version
133
- version: '0'
134
- type: :development
135
- prerelease: false
136
- version_requirements: !ruby/object:Gem::Requirement
137
- none: false
138
- requirements:
139
- - - ! '>='
140
- - !ruby/object:Gem::Version
141
- version: '0'
142
- description: A rubygem for interacting with the Spree API
55
+ description: This is a work in progress!
143
56
  email:
144
- - andrewnez@gmail.com
57
+ - f@sutty.nl
145
58
  executables: []
146
59
  extensions: []
147
- extra_rdoc_files: []
60
+ extra_rdoc_files:
61
+ - README.md
62
+ - CHANGELOG.md
63
+ - LICENSE.txt
148
64
  files:
149
- - .gitignore
150
- - .ruby-version
151
- - .travis.yml
152
- - CONTRIBUTING.md
153
- - Gemfile
154
- - LICENSE
65
+ - CHANGELOG.md
66
+ - LICENSE.txt
67
+ - README.md
68
+ - lib/spree_client.rb
69
+ - lib/spree_client.rb~
70
+ - lib/spree_client/api.rb
71
+ - lib/spree_client/api/v1.rb
72
+ - lib/spree_client/api/v1/products.rb
73
+ - lib/spree_client/api/v1/properties.rb
74
+ - lib/spree_client/api/v1/resources.rb
75
+ - lib/spree_client/api/v1/stock_items.rb
76
+ - lib/spree_client/api/v1/stock_locations.rb
77
+ - lib/spree_client/api/v1/stock_movements.rb
78
+ - lib/spree_client/api/v1/taxonomies.rb
79
+ - lib/spree_client/api/v1/variants.rb
80
+ - lib/spree_client/attributes.rb
81
+ - lib/spree_client/models.rb
82
+ - lib/spree_client/models/product.rb
83
+ - lib/spree_client/models/property.rb
84
+ - lib/spree_client/models/stock_item.rb
85
+ - lib/spree_client/models/stock_location.rb
86
+ - lib/spree_client/models/stock_movement.rb
87
+ - lib/spree_client/models/store.rb
88
+ - lib/spree_client/models/taxonomy.rb
89
+ - lib/spree_client/models/variant.rb
90
+ homepage: https://0xacab.org/sutty/spree-api-client
91
+ licenses:
92
+ - GPL-3.0
93
+ metadata:
94
+ bug_tracker_uri: https://0xacab.org/sutty/spree-api-client/issues
95
+ homepage_uri: https://0xacab.org/sutty/spree-api-client
96
+ source_code_uri: https://0xacab.org/sutty/spree-api-client
97
+ changelog_uri: https://0xacab.org/sutty/spree-api-client/-/blob/master/CHANGELOG.md
98
+ documentation_uri: https://rubydoc.info/gems/spree-api-client
99
+ post_install_message:
100
+ rdoc_options:
101
+ - "--title"
102
+ - spree-api-client - Spree Ecommerce API client
103
+ - "--main"
155
104
  - README.md
156
- - Rakefile
157
- - fixtures/cassette_library/addresss.yml
158
- - fixtures/cassette_library/countries.yml
159
- - fixtures/cassette_library/orders.yml
160
- - fixtures/cassette_library/payments.yml
161
- - fixtures/cassette_library/products.yml
162
- - fixtures/cassette_library/properties.yml
163
- - fixtures/cassette_library/request.yml
164
- - fixtures/cassette_library/return_authorizations.yml
165
- - fixtures/cassette_library/shipment_ready.yml
166
- - fixtures/cassette_library/taxonomies.yml
167
- - fixtures/cassette_library/taxons.yml
168
- - fixtures/cassette_library/variants.yml
169
- - fixtures/cassette_library/zones.yml
170
- - lib/spree-api-client.rb
171
- - lib/spree-api-client/addresses.rb
172
- - lib/spree-api-client/connection.rb
173
- - lib/spree-api-client/countries.rb
174
- - lib/spree-api-client/error.rb
175
- - lib/spree-api-client/line_items.rb
176
- - lib/spree-api-client/orders.rb
177
- - lib/spree-api-client/payments.rb
178
- - lib/spree-api-client/products.rb
179
- - lib/spree-api-client/properties.rb
180
- - lib/spree-api-client/request.rb
181
- - lib/spree-api-client/return_authorizations.rb
182
- - lib/spree-api-client/shipments.rb
183
- - lib/spree-api-client/taxonomies.rb
184
- - lib/spree-api-client/taxons.rb
185
- - lib/spree-api-client/variants.rb
186
- - lib/spree-api-client/version.rb
187
- - lib/spree-api-client/zones.rb
188
- - spec/addresses_spec.rb
189
- - spec/client_spec.rb
190
- - spec/countries_spec.rb
191
- - spec/orders_spec.rb
192
- - spec/payments_spec.rb
193
- - spec/products_spec.rb
194
- - spec/properties_spec.rb
195
- - spec/return_authorizations_spec.rb
196
- - spec/shipments_spec.rb
197
- - spec/spec_helper.rb
198
- - spec/support/vcr.rb
199
- - spec/taxonomies_spec.rb
200
- - spec/taxons_spec.rb
201
- - spec/variants_spec.rb
202
- - spec/zones_spec.rb
203
- - spree-api-client.gemspec
204
- homepage: https://github.com/andrew/spree-api-client
205
- licenses: []
206
- post_install_message:
207
- rdoc_options: []
105
+ - "--line-numbers"
106
+ - "--inline-source"
107
+ - "--quiet"
208
108
  require_paths:
209
109
  - lib
210
110
  required_ruby_version: !ruby/object:Gem::Requirement
211
- none: false
212
111
  requirements:
213
- - - ! '>='
112
+ - - ">="
214
113
  - !ruby/object:Gem::Version
215
- version: '0'
114
+ version: 2.6.0
216
115
  required_rubygems_version: !ruby/object:Gem::Requirement
217
- none: false
218
116
  requirements:
219
- - - ! '>='
117
+ - - ">="
220
118
  - !ruby/object:Gem::Version
221
119
  version: '0'
222
120
  requirements: []
223
- rubyforge_project:
224
- rubygems_version: 1.8.23
225
- signing_key:
226
- specification_version: 3
227
- summary: A rubygem for interacting with the Spree API
228
- test_files:
229
- - spec/addresses_spec.rb
230
- - spec/client_spec.rb
231
- - spec/countries_spec.rb
232
- - spec/orders_spec.rb
233
- - spec/payments_spec.rb
234
- - spec/products_spec.rb
235
- - spec/properties_spec.rb
236
- - spec/return_authorizations_spec.rb
237
- - spec/shipments_spec.rb
238
- - spec/spec_helper.rb
239
- - spec/support/vcr.rb
240
- - spec/taxonomies_spec.rb
241
- - spec/taxons_spec.rb
242
- - spec/variants_spec.rb
243
- - spec/zones_spec.rb
244
- has_rdoc:
121
+ rubygems_version: 3.1.2
122
+ signing_key:
123
+ specification_version: 4
124
+ summary: Spree Ecommerce API client
125
+ test_files: []
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
data/.ruby-version DELETED
@@ -1 +0,0 @@
1
- 1.9.3-p286
data/.travis.yml DELETED
@@ -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
data/CONTRIBUTING.md DELETED
@@ -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