shopify-mock 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. data/.travis.yml +1 -1
  2. data/README.rdoc +40 -22
  3. data/Rakefile +9 -0
  4. data/lib/shopify-mock.rb +4 -3
  5. data/lib/shopify-mock/fixtures.rb +11 -2
  6. data/lib/shopify-mock/fixtures/{articles.json → json/articles.json} +0 -0
  7. data/lib/shopify-mock/fixtures/{assets.json → json/assets.json} +0 -0
  8. data/lib/shopify-mock/fixtures/{blogs.json → json/blogs.json} +0 -0
  9. data/lib/shopify-mock/fixtures/{collect.json → json/collect.json} +0 -0
  10. data/lib/shopify-mock/fixtures/{comments.json → json/comments.json} +0 -0
  11. data/lib/shopify-mock/fixtures/{count.json → json/count.json} +0 -0
  12. data/lib/shopify-mock/fixtures/{countries.json → json/countries.json} +0 -0
  13. data/lib/shopify-mock/fixtures/{custom_collections.json → json/custom_collections.json} +0 -0
  14. data/lib/shopify-mock/fixtures/{customer_groups.json → json/customer_groups.json} +0 -0
  15. data/lib/shopify-mock/fixtures/{customers.json → json/customers.json} +0 -0
  16. data/lib/shopify-mock/fixtures/{events.json → json/events.json} +0 -0
  17. data/lib/shopify-mock/fixtures/{fulfillments.json → json/fulfillments.json} +0 -0
  18. data/lib/shopify-mock/fixtures/{images.json → json/images.json} +0 -0
  19. data/lib/shopify-mock/fixtures/{metafields.json → json/metafields.json} +0 -0
  20. data/lib/shopify-mock/fixtures/{orders.json → json/orders.json} +0 -0
  21. data/lib/shopify-mock/fixtures/{pages.json → json/pages.json} +0 -0
  22. data/lib/shopify-mock/fixtures/{product_search_engines.json → json/product_search_engines.json} +0 -0
  23. data/lib/shopify-mock/fixtures/{products.json → json/products.json} +0 -0
  24. data/lib/shopify-mock/fixtures/{provinces.json → json/provinces.json} +0 -0
  25. data/lib/shopify-mock/fixtures/{redirects.json → json/redirects.json} +0 -0
  26. data/lib/shopify-mock/fixtures/{script_tags.json → json/script_tags.json} +0 -0
  27. data/lib/shopify-mock/fixtures/{shop.json → json/shop.json} +0 -0
  28. data/lib/shopify-mock/fixtures/{smart_collections.json → json/smart_collections.json} +0 -0
  29. data/lib/shopify-mock/fixtures/{test.json → json/test.json} +0 -0
  30. data/lib/shopify-mock/fixtures/{themes.json → json/themes.json} +0 -0
  31. data/lib/shopify-mock/fixtures/{transactions.json → json/transactions.json} +0 -0
  32. data/lib/shopify-mock/fixtures/{variants.json → json/variants.json} +0 -0
  33. data/lib/shopify-mock/fixtures/{webhooks.json → json/webhooks.json} +0 -0
  34. data/lib/shopify-mock/fixtures/xml/articles.xml +29 -0
  35. data/lib/shopify-mock/fixtures/xml/assets.xml +135 -0
  36. data/lib/shopify-mock/fixtures/xml/blogs.xml +14 -0
  37. data/lib/shopify-mock/fixtures/xml/collect.xml +10 -0
  38. data/lib/shopify-mock/fixtures/xml/comments.xml +18 -0
  39. data/lib/shopify-mock/fixtures/xml/count.xml +2 -0
  40. data/lib/shopify-mock/fixtures/xml/countries.xml +15 -0
  41. data/lib/shopify-mock/fixtures/xml/custom_collections.xml +13 -0
  42. data/lib/shopify-mock/fixtures/xml/customer_groups.xml +24 -0
  43. data/lib/shopify-mock/fixtures/xml/customers.xml +31 -0
  44. data/lib/shopify-mock/fixtures/xml/events.xml +12 -0
  45. data/lib/shopify-mock/fixtures/xml/fulfillments.xml +34 -0
  46. data/lib/shopify-mock/fixtures/xml/images.xml +11 -0
  47. data/lib/shopify-mock/fixtures/xml/metafields.xml +13 -0
  48. data/lib/shopify-mock/fixtures/xml/orders.xml +140 -0
  49. data/lib/shopify-mock/fixtures/xml/pages.xml +15 -0
  50. data/lib/shopify-mock/fixtures/xml/product_search_engines.xml +7 -0
  51. data/lib/shopify-mock/fixtures/xml/products.xml +113 -0
  52. data/lib/shopify-mock/fixtures/xml/provinces.xml +99 -0
  53. data/lib/shopify-mock/fixtures/xml/redirects.xml +18 -0
  54. data/lib/shopify-mock/fixtures/xml/script_tags.xml +10 -0
  55. data/lib/shopify-mock/fixtures/xml/shop.xml +25 -0
  56. data/lib/shopify-mock/fixtures/xml/smart_collections.xml +20 -0
  57. data/lib/shopify-mock/fixtures/xml/test.xml +2 -0
  58. data/lib/shopify-mock/fixtures/xml/themes.xml +24 -0
  59. data/lib/shopify-mock/fixtures/xml/transactions.xml +14 -0
  60. data/lib/shopify-mock/fixtures/xml/variants.xml +83 -0
  61. data/lib/shopify-mock/fixtures/xml/webhooks.xml +11 -0
  62. data/shopify-mock.gemspec +2 -1
  63. data/spec/fixtures_spec.rb +1 -1
  64. data/spec/mock_spec.rb +15 -0
  65. data/spec/response_spec.rb +3 -1
  66. metadata +72 -33
@@ -0,0 +1,2 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <count type="integer">1</count>
@@ -0,0 +1,15 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <countries type="array">
3
+ <country>
4
+ <tax type="float">0.05</tax>
5
+ <name>Canada</name>
6
+ <code>CA</code>
7
+ <id type="integer">879921427</id>
8
+ </country>
9
+ <country>
10
+ <tax type="float">0.15</tax>
11
+ <name>Colombia</name>
12
+ <code>CO</code>
13
+ <id type="integer">359115488</id>
14
+ </country>
15
+ </countries>
@@ -0,0 +1,13 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <custom-collections type="array">
3
+ <custom-collection>
4
+ <body-html>&lt;p&gt;The best selling ipod ever&lt;/p&gt;</body-html>
5
+ <handle>ipods</handle>
6
+ <template-suffix nil="true"></template-suffix>
7
+ <title>IPods</title>
8
+ <updated-at type="datetime">2008-02-01T19:00:00-05:00</updated-at>
9
+ <sort-order>manual</sort-order>
10
+ <id type="integer">841564295</id>
11
+ <published-at type="datetime">2008-02-01T19:00:00-05:00</published-at>
12
+ </custom-collection>
13
+ </custom-collections>
@@ -0,0 +1,24 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <customer-groups type="array">
3
+ <customer-group>
4
+ <name>Accepts Marketing</name>
5
+ <created-at type="datetime">2011-08-30T07:52:08-04:00</created-at>
6
+ <updated-at type="datetime">2011-08-30T07:52:08-04:00</updated-at>
7
+ <id type="integer">789629109</id>
8
+ <query>accepts_marketing:1</query>
9
+ </customer-group>
10
+ <customer-group>
11
+ <name>Canadian Snowboarders</name>
12
+ <created-at type="datetime">2011-08-30T07:52:08-04:00</created-at>
13
+ <updated-at type="datetime">2011-08-30T07:52:08-04:00</updated-at>
14
+ <id type="integer">20610973</id>
15
+ <query>location:Canada</query>
16
+ </customer-group>
17
+ <customer-group>
18
+ <name>Premier Customers</name>
19
+ <created-at type="datetime">2011-08-30T07:52:08-04:00</created-at>
20
+ <updated-at type="datetime">2011-08-30T07:52:08-04:00</updated-at>
21
+ <id type="integer">669439218</id>
22
+ <query>John Smith orders_count:&gt;10 total_spent:&gt;100.00</query>
23
+ </customer-group>
24
+ </customer-groups>
@@ -0,0 +1,31 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <customers type="array">
3
+ <customer>
4
+ <accepts-marketing type="boolean">false</accepts-marketing>
5
+ <orders-count type="integer">0</orders-count>
6
+ <id type="integer">207119551</id>
7
+ <note nil="true"></note>
8
+ <last-name>Norman</last-name>
9
+ <total-spent type="decimal">0.0</total-spent>
10
+ <first-name>Bob</first-name>
11
+ <email>bob.norman@hostmail.com</email>
12
+ <tags></tags>
13
+ <addresses type="array">
14
+ <address>
15
+ <city>Louisville</city>
16
+ <company nil="true"></company>
17
+ <address1>Chestnut Street 92</address1>
18
+ <zip>40202</zip>
19
+ <address2></address2>
20
+ <country>US</country>
21
+ <phone>555-625-1199</phone>
22
+ <last-name nil="true"></last-name>
23
+ <province>KY</province>
24
+ <first-name nil="true"></first-name>
25
+ <name nil="true"></name>
26
+ <province-code nil="true"></province-code>
27
+ <country-code nil="true"></country-code>
28
+ </address>
29
+ </addresses>
30
+ </customer>
31
+ </customers>
@@ -0,0 +1,12 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <events type="array">
3
+ <event>
4
+ <verb>confirmed</verb>
5
+ <created-at type="datetime">2008-01-10T11:00:00-05:00</created-at>
6
+ <body nil="true"></body>
7
+ <id type="integer">164748010</id>
8
+ <subject-id type="integer">450789469</subject-id>
9
+ <subject-type>Order</subject-type>
10
+ <message>Received new order &lt;a href="/admin/orders/show/450789469"&gt;#1001&lt;/a&gt; by Bob Norman</message>
11
+ </event>
12
+ </events>
@@ -0,0 +1,34 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <fulfillments type="array">
3
+ <fulfillment>
4
+ <tracking-company nil="true"></tracking-company>
5
+ <created-at type="datetime">2011-09-06T11:52:09-04:00</created-at>
6
+ <updated-at type="datetime">2011-09-06T11:52:09-04:00</updated-at>
7
+ <order-id type="integer">450789469</order-id>
8
+ <id type="integer">255858046</id>
9
+ <tracking-number>1Z2345</tracking-number>
10
+ <status>failed</status>
11
+ <line-items type="array">
12
+ <line-item>
13
+ <price type="decimal">199.0</price>
14
+ <product-id type="integer">632910392</product-id>
15
+ <title>IPod Nano - 8gb</title>
16
+ <quantity type="integer">1</quantity>
17
+ <requires-shipping type="boolean">true</requires-shipping>
18
+ <id type="integer">466157049</id>
19
+ <grams type="integer">200</grams>
20
+ <sku>IPOD2008GREEN</sku>
21
+ <fulfillment-status nil="true"></fulfillment-status>
22
+ <variant-title>green</variant-title>
23
+ <vendor nil="true"></vendor>
24
+ <fulfillment-service>manual</fulfillment-service>
25
+ <variant-id type="integer">39072856</variant-id>
26
+ <name>IPod Nano - 8gb - green</name>
27
+ </line-item>
28
+ </line-items>
29
+ <receipt type="yaml">---
30
+ testcase: true
31
+ authorization: "123456"
32
+ </receipt>
33
+ </fulfillment>
34
+ </fulfillments>
@@ -0,0 +1,11 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <images type="array">
3
+ <image>
4
+ <position type="integer">2</position>
5
+ <created-at type="datetime">2011-09-06T11:58:33-04:00</created-at>
6
+ <product-id type="integer">632910392</product-id>
7
+ <updated-at type="datetime">2011-09-06T11:58:33-04:00</updated-at>
8
+ <id type="integer">916933535</id>
9
+ <src>http://static.shopify.com/s/files/1/6909/3384/products/rails_logo.gif?1</src>
10
+ </image>
11
+ </images>
@@ -0,0 +1,13 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <metafields type="array">
3
+ <metafield>
4
+ <created-at type="datetime">2011-09-06T11:55:00-04:00</created-at>
5
+ <updated-at type="datetime">2011-09-06T11:55:00-04:00</updated-at>
6
+ <namespace>inventory</namespace>
7
+ <id type="integer">909327701</id>
8
+ <value>25</value>
9
+ <description nil="true"></description>
10
+ <key>warehouse</key>
11
+ <value-type>integer</value-type>
12
+ </metafield>
13
+ </metafields>
@@ -0,0 +1,140 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <orders type="array">
3
+ <order>
4
+ <number type="integer">1</number>
5
+ <name>#1001</name>
6
+ <created-at type="datetime">2008-01-10T11:00:00-05:00</created-at>
7
+ <total-discounts type="decimal">0.0</total-discounts>
8
+ <cancel-reason nil="true"></cancel-reason>
9
+ <token>b1946ac92492d2347c6235b4d2611184</token>
10
+ <updated-at type="datetime">2008-01-10T11:00:00-05:00</updated-at>
11
+ <total-price type="decimal">210.94</total-price>
12
+ <landing-site>http://www.example.com?source=abc</landing-site>
13
+ <taxes-included type="boolean">false</taxes-included>
14
+ <cancelled-at type="datetime" nil="true"></cancelled-at>
15
+ <id type="integer">450789469</id>
16
+ <referring-site>http://www.otherexample.com</referring-site>
17
+ <total-line-items-price type="decimal">199.0</total-line-items-price>
18
+ <subtotal-price type="decimal">199.0</subtotal-price>
19
+ <note nil="true"></note>
20
+ <gateway>authorize_net</gateway>
21
+ <fulfillment-status nil="true"></fulfillment-status>
22
+ <financial-status>authorized</financial-status>
23
+ <currency>USD</currency>
24
+ <closed-at type="datetime" nil="true"></closed-at>
25
+ <buyer-accepts-marketing type="boolean">false</buyer-accepts-marketing>
26
+ <total-tax type="decimal">11.94</total-tax>
27
+ <total-weight type="integer">0</total-weight>
28
+ <email>bob.norman@hostmail.com</email>
29
+ <browser-ip nil="true"></browser-ip>
30
+ <landing-site-ref>abc</landing-site-ref>
31
+ <order-number type="integer">1001</order-number>
32
+ <shipping-lines type="array">
33
+ <shipping-line>
34
+ <price type="decimal">0.0</price>
35
+ <code>Free Shipping</code>
36
+ <title>Free Shipping</title>
37
+ </shipping-line>
38
+ </shipping-lines>
39
+ <customer>
40
+ <accepts-marketing type="boolean">false</accepts-marketing>
41
+ <orders-count type="integer">0</orders-count>
42
+ <id type="integer">207119551</id>
43
+ <note nil="true"></note>
44
+ <last-name>Norman</last-name>
45
+ <total-spent type="decimal">0.0</total-spent>
46
+ <first-name>Bob</first-name>
47
+ <email>bob.norman@hostmail.com</email>
48
+ <tags></tags>
49
+ </customer>
50
+ <shipping-address>
51
+ <company nil="true"></company>
52
+ <city>Louisville</city>
53
+ <address1>Chestnut Street 92</address1>
54
+ <latitude type="decimal">45.41634</latitude>
55
+ <zip>40202</zip>
56
+ <address2></address2>
57
+ <country>United States</country>
58
+ <phone>555-625-1199</phone>
59
+ <last-name>Norman</last-name>
60
+ <longitude type="decimal">-75.6868</longitude>
61
+ <province>Kentucky</province>
62
+ <first-name>Bob</first-name>
63
+ <name>Bob Norman</name>
64
+ <country-code>US</country-code>
65
+ <province-code>KY</province-code>
66
+ </shipping-address>
67
+ <billing-address>
68
+ <company nil="true"></company>
69
+ <city>Louisville</city>
70
+ <address1>Chestnut Street 92</address1>
71
+ <latitude type="decimal">45.41634</latitude>
72
+ <zip>40202</zip>
73
+ <address2></address2>
74
+ <country>United States</country>
75
+ <phone>555-625-1199</phone>
76
+ <last-name>Norman</last-name>
77
+ <longitude type="decimal">-75.6868</longitude>
78
+ <province>Kentucky</province>
79
+ <first-name>Bob</first-name>
80
+ <name>Bob Norman</name>
81
+ <country-code>US</country-code>
82
+ <province-code>KY</province-code>
83
+ </billing-address>
84
+ <line-items type="array">
85
+ <line-item>
86
+ <price type="decimal">199.0</price>
87
+ <product-id type="integer">632910392</product-id>
88
+ <title>IPod Nano - 8gb</title>
89
+ <quantity type="integer">1</quantity>
90
+ <requires-shipping type="boolean">true</requires-shipping>
91
+ <id type="integer">466157049</id>
92
+ <grams type="integer">200</grams>
93
+ <sku>IPOD2008GREEN</sku>
94
+ <fulfillment-status nil="true"></fulfillment-status>
95
+ <variant-title>green</variant-title>
96
+ <vendor nil="true"></vendor>
97
+ <fulfillment-service>manual</fulfillment-service>
98
+ <variant-id type="integer">39072856</variant-id>
99
+ <name>IPod Nano - 8gb - green</name>
100
+ </line-item>
101
+ <line-item>
102
+ <price type="decimal">199.0</price>
103
+ <product-id type="integer">632910392</product-id>
104
+ <title>IPod Nano - 8gb</title>
105
+ <quantity type="integer">1</quantity>
106
+ <requires-shipping type="boolean">true</requires-shipping>
107
+ <id type="integer">703073504</id>
108
+ <grams type="integer">200</grams>
109
+ <sku>IPOD2008BLACK</sku>
110
+ <fulfillment-status nil="true"></fulfillment-status>
111
+ <variant-title>black</variant-title>
112
+ <vendor nil="true"></vendor>
113
+ <fulfillment-service>manual</fulfillment-service>
114
+ <variant-id type="integer">457924702</variant-id>
115
+ <name>IPod Nano - 8gb - black</name>
116
+ </line-item>
117
+ </line-items>
118
+ <tax-lines type="array">
119
+ <tax-line>
120
+ <price type="decimal">11.94</price>
121
+ <title>State Tax</title>
122
+ <rate type="float">0.06</rate>
123
+ </tax-line>
124
+ </tax-lines>
125
+ <payment-details>
126
+ <credit-card-number>XXXX-XXXX-XXXX-4242</credit-card-number>
127
+ <credit-card-company>Visa</credit-card-company>
128
+ </payment-details>
129
+ <note-attributes type="array">
130
+ <note-attribute>
131
+ <name>colour</name>
132
+ <value>green</value>
133
+ </note-attribute>
134
+ <note-attribute>
135
+ <name>custom engraving</name>
136
+ <value>Happy Birthday</value>
137
+ </note-attribute>
138
+ </note-attributes>
139
+ </order>
140
+ </orders>
@@ -0,0 +1,15 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <pages type="array">
3
+ <page>
4
+ <body-html>&lt;p&gt;We make &lt;strong&gt;perfect&lt;/strong&gt; stuff, we don't need a warranty.&lt;/p&gt;</body-html>
5
+ <created-at type="datetime">2008-07-15T20:00:00-04:00</created-at>
6
+ <handle>tos</handle>
7
+ <author>Dennis</author>
8
+ <template-suffix nil="true"></template-suffix>
9
+ <title>Terms of Services</title>
10
+ <updated-at type="datetime">2008-07-16T20:00:00-04:00</updated-at>
11
+ <shop-id type="integer">690933842</shop-id>
12
+ <id type="integer">131092082</id>
13
+ <published-at type="datetime">2008-07-15T20:00:00-04:00</published-at>
14
+ </page>
15
+ </pages>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <product-search-engines type="array">
3
+ <engine>
4
+ <created-at type="datetime">2011-09-06T11:58:19-04:00</created-at>
5
+ <name>Google Product Search</name>
6
+ </engine>
7
+ </product-search-engines>
@@ -0,0 +1,113 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <products type="array">
3
+ <product>
4
+ <product-type>Cult Products</product-type>
5
+ <handle>ipod-nano</handle>
6
+ <created-at type="datetime">2011-09-06T11:52:09-04:00</created-at>
7
+ <body-html>&lt;p&gt;It's the small iPod with one very big idea: Video. Now the world's most popular music player, available in 4GB and 8GB models, lets you enjoy TV shows, movies, video podcasts, and more. The larger, brighter display means amazing picture quality. In six eye-catching colors, iPod nano is stunning all around. And with models starting at just $149, little speaks volumes.&lt;/p&gt;</body-html>
8
+ <title>IPod Nano - 8GB</title>
9
+ <template-suffix nil="true"></template-suffix>
10
+ <updated-at type="datetime">2011-09-06T11:52:09-04:00</updated-at>
11
+ <id type="integer">632910392</id>
12
+ <vendor>Apple</vendor>
13
+ <published-at type="datetime">2007-12-31T19:00:00-05:00</published-at>
14
+ <tags>Emotive, Flash Memory, MP3, Music</tags>
15
+ <variants type="array">
16
+ <variant>
17
+ <price type="decimal">199.0</price>
18
+ <position type="integer">1</position>
19
+ <created-at type="datetime">2011-09-06T11:52:09-04:00</created-at>
20
+ <title>Pink</title>
21
+ <requires-shipping type="boolean">true</requires-shipping>
22
+ <updated-at type="datetime">2011-09-06T11:52:09-04:00</updated-at>
23
+ <inventory-policy>continue</inventory-policy>
24
+ <compare-at-price type="decimal" nil="true"></compare-at-price>
25
+ <inventory-management>shopify</inventory-management>
26
+ <taxable type="boolean">true</taxable>
27
+ <id type="integer">808950810</id>
28
+ <grams type="integer">200</grams>
29
+ <sku>IPOD2008PINK</sku>
30
+ <option1>Pink</option1>
31
+ <option2 nil="true"></option2>
32
+ <fulfillment-service>manual</fulfillment-service>
33
+ <option3 nil="true"></option3>
34
+ <inventory-quantity type="integer">10</inventory-quantity>
35
+ </variant>
36
+ <variant>
37
+ <price type="decimal">199.0</price>
38
+ <position type="integer">2</position>
39
+ <created-at type="datetime">2011-09-06T11:52:09-04:00</created-at>
40
+ <title>Red</title>
41
+ <requires-shipping type="boolean">true</requires-shipping>
42
+ <updated-at type="datetime">2011-09-06T11:52:09-04:00</updated-at>
43
+ <inventory-policy>continue</inventory-policy>
44
+ <compare-at-price type="decimal" nil="true"></compare-at-price>
45
+ <inventory-management>shopify</inventory-management>
46
+ <taxable type="boolean">true</taxable>
47
+ <id type="integer">49148385</id>
48
+ <grams type="integer">200</grams>
49
+ <sku>IPOD2008RED</sku>
50
+ <option1>Red</option1>
51
+ <option2 nil="true"></option2>
52
+ <fulfillment-service>manual</fulfillment-service>
53
+ <option3 nil="true"></option3>
54
+ <inventory-quantity type="integer">20</inventory-quantity>
55
+ </variant>
56
+ <variant>
57
+ <price type="decimal">199.0</price>
58
+ <position type="integer">3</position>
59
+ <created-at type="datetime">2011-09-06T11:52:09-04:00</created-at>
60
+ <title>Green</title>
61
+ <requires-shipping type="boolean">true</requires-shipping>
62
+ <updated-at type="datetime">2011-09-06T11:52:09-04:00</updated-at>
63
+ <inventory-policy>continue</inventory-policy>
64
+ <compare-at-price type="decimal" nil="true"></compare-at-price>
65
+ <inventory-management>shopify</inventory-management>
66
+ <taxable type="boolean">true</taxable>
67
+ <id type="integer">39072856</id>
68
+ <grams type="integer">200</grams>
69
+ <sku>IPOD2008GREEN</sku>
70
+ <option1>Green</option1>
71
+ <option2 nil="true"></option2>
72
+ <fulfillment-service>manual</fulfillment-service>
73
+ <option3 nil="true"></option3>
74
+ <inventory-quantity type="integer">30</inventory-quantity>
75
+ </variant>
76
+ <variant>
77
+ <price type="decimal">199.0</price>
78
+ <position type="integer">4</position>
79
+ <created-at type="datetime">2011-09-06T11:52:09-04:00</created-at>
80
+ <title>Black</title>
81
+ <requires-shipping type="boolean">true</requires-shipping>
82
+ <updated-at type="datetime">2011-09-06T11:52:09-04:00</updated-at>
83
+ <inventory-policy>continue</inventory-policy>
84
+ <compare-at-price type="decimal" nil="true"></compare-at-price>
85
+ <inventory-management>shopify</inventory-management>
86
+ <taxable type="boolean">true</taxable>
87
+ <id type="integer">457924702</id>
88
+ <grams type="integer">200</grams>
89
+ <sku>IPOD2008BLACK</sku>
90
+ <option1>Black</option1>
91
+ <option2 nil="true"></option2>
92
+ <fulfillment-service>manual</fulfillment-service>
93
+ <option3 nil="true"></option3>
94
+ <inventory-quantity type="integer">40</inventory-quantity>
95
+ </variant>
96
+ </variants>
97
+ <images type="array">
98
+ <image>
99
+ <position type="integer">1</position>
100
+ <created-at type="datetime">2011-09-06T11:52:09-04:00</created-at>
101
+ <product-id type="integer">632910392</product-id>
102
+ <updated-at type="datetime">2011-09-06T11:52:09-04:00</updated-at>
103
+ <id type="integer">850703190</id>
104
+ <src>http://static.shopify.com/s/files/1/6909/3384/products/ipod-nano.png?0</src>
105
+ </image>
106
+ </images>
107
+ <options type="array">
108
+ <option>
109
+ <name>Title</name>
110
+ </option>
111
+ </options>
112
+ </product>
113
+ </products>