spiffy_stores_api 4.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.document +5 -0
- data/.gitignore +10 -0
- data/.travis.yml +14 -0
- data/CHANGELOG +3 -0
- data/Gemfile +5 -0
- data/Gemfile_ar40 +5 -0
- data/Gemfile_ar41 +5 -0
- data/Gemfile_ar50 +5 -0
- data/Gemfile_ar_master +5 -0
- data/README.md +200 -0
- data/Rakefile +39 -0
- data/lib/active_resource/base_ext.rb +21 -0
- data/lib/active_resource/connection_ext.rb +10 -0
- data/lib/active_resource/detailed_log_subscriber.rb +19 -0
- data/lib/active_resource/disable_prefix_check.rb +36 -0
- data/lib/active_resource/json_errors.rb +31 -0
- data/lib/active_resource/to_query.rb +10 -0
- data/lib/spiffy_stores_api.rb +29 -0
- data/lib/spiffy_stores_api/connection.rb +33 -0
- data/lib/spiffy_stores_api/countable.rb +14 -0
- data/lib/spiffy_stores_api/json_format.rb +18 -0
- data/lib/spiffy_stores_api/limits.rb +86 -0
- data/lib/spiffy_stores_api/metafields.rb +19 -0
- data/lib/spiffy_stores_api/resources.rb +2 -0
- data/lib/spiffy_stores_api/resources/address.rb +4 -0
- data/lib/spiffy_stores_api/resources/article.rb +20 -0
- data/lib/spiffy_stores_api/resources/base.rb +86 -0
- data/lib/spiffy_stores_api/resources/blog.rb +9 -0
- data/lib/spiffy_stores_api/resources/collect.rb +5 -0
- data/lib/spiffy_stores_api/resources/country.rb +4 -0
- data/lib/spiffy_stores_api/resources/customer.rb +24 -0
- data/lib/spiffy_stores_api/resources/image.rb +16 -0
- data/lib/spiffy_stores_api/resources/metafield.rb +12 -0
- data/lib/spiffy_stores_api/resources/order.rb +23 -0
- data/lib/spiffy_stores_api/resources/page.rb +5 -0
- data/lib/spiffy_stores_api/resources/product.rb +32 -0
- data/lib/spiffy_stores_api/resources/province.rb +5 -0
- data/lib/spiffy_stores_api/resources/script_tag.rb +4 -0
- data/lib/spiffy_stores_api/resources/standard_collection.rb +18 -0
- data/lib/spiffy_stores_api/resources/store.rb +18 -0
- data/lib/spiffy_stores_api/resources/super_collection.rb +14 -0
- data/lib/spiffy_stores_api/resources/variant.rb +8 -0
- data/lib/spiffy_stores_api/resources/webhook.rb +4 -0
- data/lib/spiffy_stores_api/session.rb +145 -0
- data/lib/spiffy_stores_api/version.rb +3 -0
- data/spiffy_stores_api.gemspec +34 -0
- data/test/active_resource/json_errors_test.rb +19 -0
- data/test/article_test.rb +73 -0
- data/test/base_test.rb +112 -0
- data/test/blog_test.rb +8 -0
- data/test/collect_test.rb +9 -0
- data/test/countable_test.rb +13 -0
- data/test/customer_test.rb +50 -0
- data/test/fixtures/article.json +15 -0
- data/test/fixtures/articles.json +39 -0
- data/test/fixtures/asset.json +9 -0
- data/test/fixtures/assets.json +136 -0
- data/test/fixtures/authors.json +1 -0
- data/test/fixtures/blog.json +12 -0
- data/test/fixtures/blogs.json +13 -0
- data/test/fixtures/collect.json +10 -0
- data/test/fixtures/custom_collection.json +17 -0
- data/test/fixtures/customers.json +64 -0
- data/test/fixtures/customers_search.json +66 -0
- data/test/fixtures/image.json +10 -0
- data/test/fixtures/images.json +20 -0
- data/test/fixtures/metafield.json +13 -0
- data/test/fixtures/metafields.json +26 -0
- data/test/fixtures/o_auth_revoke.json +5 -0
- data/test/fixtures/order.json +297 -0
- data/test/fixtures/orders.json +299 -0
- data/test/fixtures/product.json +116 -0
- data/test/fixtures/redirect.json +7 -0
- data/test/fixtures/script_tag.json +10 -0
- data/test/fixtures/script_tags.json +18 -0
- data/test/fixtures/smart_collection.json +21 -0
- data/test/fixtures/store.json +35 -0
- data/test/fixtures/tags.json +1 -0
- data/test/fixtures/transaction.json +29 -0
- data/test/fixtures/variant.json +23 -0
- data/test/fixtures/variants.json +88 -0
- data/test/fixtures/webhook.json +10 -0
- data/test/fixtures/webhooks.json +18 -0
- data/test/metafield_test.rb +46 -0
- data/test/store_test.rb +58 -0
- data/test/test_helper.rb +90 -0
- metadata +219 -0
@@ -0,0 +1,10 @@
|
|
1
|
+
{
|
2
|
+
"image": {
|
3
|
+
"created_at": "2014-01-10T16:15:40-05:00",
|
4
|
+
"id": 850703190,
|
5
|
+
"position": 1,
|
6
|
+
"product_id": 632910392,
|
7
|
+
"updated_at": "2014-01-10T16:15:40-05:00",
|
8
|
+
"src": "http://cdn.spiffyserver.com/s/files/1/0006/9093/3842/products/ipod-nano.png?v=1389388540"
|
9
|
+
}
|
10
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
{
|
2
|
+
"images": [
|
3
|
+
{
|
4
|
+
"created_at": "2014-01-17T16:11:52-05:00",
|
5
|
+
"id": 850703190,
|
6
|
+
"position": 1,
|
7
|
+
"product_id": 632910392,
|
8
|
+
"updated_at": "2014-01-17T16:11:52-05:00",
|
9
|
+
"src": "http://cdn.spiffyserver.com/s/files/1/0006/9093/3842/products/ipod-nano.png?v=1389993112"
|
10
|
+
},
|
11
|
+
{
|
12
|
+
"created_at": "2014-01-17T16:11:52-05:00",
|
13
|
+
"id": 562641783,
|
14
|
+
"position": 2,
|
15
|
+
"product_id": 632910392,
|
16
|
+
"updated_at": "2014-01-17T16:11:52-05:00",
|
17
|
+
"src": "http://cdn.spiffyserver.com/s/files/1/0006/9093/3842/products/ipod-nano-2.png?v=1389993112"
|
18
|
+
}
|
19
|
+
]
|
20
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
{
|
2
|
+
"metafield": {
|
3
|
+
"id": 721389482,
|
4
|
+
"namespace": "contact",
|
5
|
+
"key": "email",
|
6
|
+
"value": "123@example.com",
|
7
|
+
"value_type": "string",
|
8
|
+
"description": null,
|
9
|
+
"owner_resource": "Shop",
|
10
|
+
"created_at": "2011-10-20T14:05:13-04:00",
|
11
|
+
"updated_at": "2011-10-20T14:05:13-04:00"
|
12
|
+
}
|
13
|
+
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
{
|
2
|
+
"metafields": [
|
3
|
+
{
|
4
|
+
"id": 721389482,
|
5
|
+
"namespace": "affiliates",
|
6
|
+
"key": "app_key",
|
7
|
+
"value": "app_key",
|
8
|
+
"value_type": "string",
|
9
|
+
"description": null,
|
10
|
+
"owner_resource": "Shop",
|
11
|
+
"created_at": "2011-10-20T14:05:13-04:00",
|
12
|
+
"updated_at": "2011-10-20T14:05:13-04:00"
|
13
|
+
},
|
14
|
+
{
|
15
|
+
"id": 721389480,
|
16
|
+
"namespace": "contact",
|
17
|
+
"key": "phone",
|
18
|
+
"value": "1231231231",
|
19
|
+
"value_type": "string",
|
20
|
+
"description": null,
|
21
|
+
"owner_resource": "Shop",
|
22
|
+
"created_at": "2011-10-20T14:05:13-04:00",
|
23
|
+
"updated_at": "2011-10-20T14:05:13-04:00"
|
24
|
+
}
|
25
|
+
]
|
26
|
+
}
|
@@ -0,0 +1,297 @@
|
|
1
|
+
{
|
2
|
+
"order": {
|
3
|
+
"buyer_accepts_marketing": false,
|
4
|
+
"cancel_reason": null,
|
5
|
+
"cancelled_at": null,
|
6
|
+
"cart_token": "68778783ad298f1c80c3bafcddeea02f",
|
7
|
+
"checkout_token": null,
|
8
|
+
"closed_at": null,
|
9
|
+
"confirmed": false,
|
10
|
+
"created_at": "2008-01-10T11:00:00-05:00",
|
11
|
+
"currency": "USD",
|
12
|
+
"email": "bob.norman@hostmail.com",
|
13
|
+
"financial_status": "authorized",
|
14
|
+
"fulfillment_status": null,
|
15
|
+
"gateway": "authorize_net",
|
16
|
+
"id": 450789469,
|
17
|
+
"landing_site": "http://www.example.com?source=abc",
|
18
|
+
"location_id": null,
|
19
|
+
"name": "#1001",
|
20
|
+
"note": "Test note",
|
21
|
+
"number": 1,
|
22
|
+
"reference": "fhwdgads",
|
23
|
+
"referring_site": "http://www.otherexample.com",
|
24
|
+
"source": null,
|
25
|
+
"source_identifier": "fhwdgads",
|
26
|
+
"source_name": "web",
|
27
|
+
"source_url": null,
|
28
|
+
"subtotal_price": "398.00",
|
29
|
+
"taxes_included": false,
|
30
|
+
"test": false,
|
31
|
+
"token": "b1946ac92492d2347c6235b4d2611184",
|
32
|
+
"total_discounts": "0.00",
|
33
|
+
"total_line_items_price": "398.00",
|
34
|
+
"total_price": "409.94",
|
35
|
+
"total_price_usd": "409.94",
|
36
|
+
"total_tax": "11.94",
|
37
|
+
"total_weight": 0,
|
38
|
+
"updated_at": "2008-01-10T11:00:00-05:00",
|
39
|
+
"user_id": null,
|
40
|
+
"browser_ip": null,
|
41
|
+
"landing_site_ref": "abc",
|
42
|
+
"order_number": 1001,
|
43
|
+
"discount_codes": [
|
44
|
+
{
|
45
|
+
"code": "TENOFF",
|
46
|
+
"amount": "10.00"
|
47
|
+
}
|
48
|
+
],
|
49
|
+
"note_attributes": [
|
50
|
+
{
|
51
|
+
"name": "custom engraving",
|
52
|
+
"value": "Happy Birthday"
|
53
|
+
},
|
54
|
+
{
|
55
|
+
"name": "colour",
|
56
|
+
"value": "green"
|
57
|
+
}
|
58
|
+
],
|
59
|
+
"processing_method": "direct",
|
60
|
+
"checkout_id": 450789469,
|
61
|
+
"tax_lines": [
|
62
|
+
{
|
63
|
+
"price": "11.94",
|
64
|
+
"rate": 0.06,
|
65
|
+
"title": "State Tax"
|
66
|
+
}
|
67
|
+
],
|
68
|
+
"tags": "",
|
69
|
+
"line_items": [
|
70
|
+
{
|
71
|
+
"fulfillment_service": "manual",
|
72
|
+
"fulfillment_status": null,
|
73
|
+
"grams": 200,
|
74
|
+
"id": 466157049,
|
75
|
+
"price": "199.00",
|
76
|
+
"product_id": 632910392,
|
77
|
+
"quantity": 1,
|
78
|
+
"requires_shipping": true,
|
79
|
+
"sku": "IPOD2008GREEN",
|
80
|
+
"taxable": true,
|
81
|
+
"title": "IPod Nano - 8gb",
|
82
|
+
"variant_id": 39072856,
|
83
|
+
"variant_title": "green",
|
84
|
+
"vendor": null,
|
85
|
+
"name": "IPod Nano - 8gb - green",
|
86
|
+
"variant_inventory_management": "spiffy",
|
87
|
+
"properties": [
|
88
|
+
{
|
89
|
+
"name": "Custom Engraving",
|
90
|
+
"value": "Happy Birthday"
|
91
|
+
}
|
92
|
+
],
|
93
|
+
"product_exists": true,
|
94
|
+
"tax_lines": [
|
95
|
+
|
96
|
+
]
|
97
|
+
},
|
98
|
+
{
|
99
|
+
"fulfillment_service": "manual",
|
100
|
+
"fulfillment_status": null,
|
101
|
+
"grams": 200,
|
102
|
+
"id": 518995019,
|
103
|
+
"price": "199.00",
|
104
|
+
"product_id": 632910392,
|
105
|
+
"quantity": 1,
|
106
|
+
"requires_shipping": true,
|
107
|
+
"sku": "IPOD2008RED",
|
108
|
+
"taxable": true,
|
109
|
+
"title": "IPod Nano - 8gb",
|
110
|
+
"variant_id": 49148385,
|
111
|
+
"variant_title": "red",
|
112
|
+
"vendor": null,
|
113
|
+
"name": "IPod Nano - 8gb - red",
|
114
|
+
"variant_inventory_management": "spiffy",
|
115
|
+
"properties": [
|
116
|
+
|
117
|
+
],
|
118
|
+
"product_exists": true,
|
119
|
+
"tax_lines": [
|
120
|
+
|
121
|
+
]
|
122
|
+
},
|
123
|
+
{
|
124
|
+
"fulfillment_service": "manual",
|
125
|
+
"fulfillment_status": null,
|
126
|
+
"grams": 200,
|
127
|
+
"id": 703073504,
|
128
|
+
"price": "199.00",
|
129
|
+
"product_id": 632910392,
|
130
|
+
"quantity": 1,
|
131
|
+
"requires_shipping": true,
|
132
|
+
"sku": "IPOD2008BLACK",
|
133
|
+
"taxable": true,
|
134
|
+
"title": "IPod Nano - 8gb",
|
135
|
+
"variant_id": 457924702,
|
136
|
+
"variant_title": "black",
|
137
|
+
"vendor": null,
|
138
|
+
"name": "IPod Nano - 8gb - black",
|
139
|
+
"variant_inventory_management": "spiffy",
|
140
|
+
"properties": [
|
141
|
+
|
142
|
+
],
|
143
|
+
"product_exists": true,
|
144
|
+
"tax_lines": [
|
145
|
+
|
146
|
+
]
|
147
|
+
}
|
148
|
+
],
|
149
|
+
"shipping_lines": [
|
150
|
+
{
|
151
|
+
"code": "Free Shipping",
|
152
|
+
"price": "0.00",
|
153
|
+
"source": "spiffy",
|
154
|
+
"title": "Free Shipping",
|
155
|
+
"tax_lines": [
|
156
|
+
|
157
|
+
]
|
158
|
+
}
|
159
|
+
],
|
160
|
+
"payment_details": {
|
161
|
+
"avs_result_code": null,
|
162
|
+
"credit_card_bin": null,
|
163
|
+
"cvv_result_code": null,
|
164
|
+
"credit_card_number": "XXXX-XXXX-XXXX-4242",
|
165
|
+
"credit_card_company": "Visa"
|
166
|
+
},
|
167
|
+
"billing_address": {
|
168
|
+
"address1": "Chestnut Street 92",
|
169
|
+
"address2": "",
|
170
|
+
"city": "Louisville",
|
171
|
+
"company": null,
|
172
|
+
"country": "United States",
|
173
|
+
"first_name": "Bob",
|
174
|
+
"last_name": "Norman",
|
175
|
+
"latitude": "45.41634",
|
176
|
+
"longitude": "-75.6868",
|
177
|
+
"phone": "555-625-1199",
|
178
|
+
"province": "Kentucky",
|
179
|
+
"zip": "40202",
|
180
|
+
"name": "Bob Norman",
|
181
|
+
"country_code": "US",
|
182
|
+
"province_code": "KY"
|
183
|
+
},
|
184
|
+
"shipping_address": {
|
185
|
+
"address1": "Chestnut Street 92",
|
186
|
+
"address2": "",
|
187
|
+
"city": "Louisville",
|
188
|
+
"company": null,
|
189
|
+
"country": "United States",
|
190
|
+
"first_name": "Bob",
|
191
|
+
"last_name": "Norman",
|
192
|
+
"latitude": "45.41634",
|
193
|
+
"longitude": "-75.6868",
|
194
|
+
"phone": "555-625-1199",
|
195
|
+
"province": "Kentucky",
|
196
|
+
"zip": "40202",
|
197
|
+
"name": "Bob Norman",
|
198
|
+
"country_code": "US",
|
199
|
+
"province_code": "KY"
|
200
|
+
},
|
201
|
+
"fulfillments": [
|
202
|
+
{
|
203
|
+
"created_at": "2014-03-07T16:14:08-05:00",
|
204
|
+
"id": 255858046,
|
205
|
+
"order_id": 450789469,
|
206
|
+
"service": "manual",
|
207
|
+
"status": "failure",
|
208
|
+
"tracking_company": null,
|
209
|
+
"updated_at": "2014-03-07T16:14:08-05:00",
|
210
|
+
"tracking_number": "1Z2345",
|
211
|
+
"tracking_numbers": [
|
212
|
+
"1Z2345"
|
213
|
+
],
|
214
|
+
"tracking_url": "http://wwwapps.ups.com/etracking/tracking.cgi?InquiryNumber1=1Z2345&TypeOfInquiryNumber=T&AcceptUPSLicenseAgreement=yes&submit=Track",
|
215
|
+
"tracking_urls": [
|
216
|
+
"http://wwwapps.ups.com/etracking/tracking.cgi?InquiryNumber1=1Z2345&TypeOfInquiryNumber=T&AcceptUPSLicenseAgreement=yes&submit=Track"
|
217
|
+
],
|
218
|
+
"receipt": {
|
219
|
+
"testcase": true,
|
220
|
+
"authorization": "123456"
|
221
|
+
},
|
222
|
+
"line_items": [
|
223
|
+
{
|
224
|
+
"fulfillment_service": "manual",
|
225
|
+
"fulfillment_status": null,
|
226
|
+
"grams": 200,
|
227
|
+
"id": 466157049,
|
228
|
+
"price": "199.00",
|
229
|
+
"product_id": 632910392,
|
230
|
+
"quantity": 1,
|
231
|
+
"requires_shipping": true,
|
232
|
+
"sku": "IPOD2008GREEN",
|
233
|
+
"taxable": true,
|
234
|
+
"title": "IPod Nano - 8gb",
|
235
|
+
"variant_id": 39072856,
|
236
|
+
"variant_title": "green",
|
237
|
+
"vendor": null,
|
238
|
+
"name": "IPod Nano - 8gb - green",
|
239
|
+
"variant_inventory_management": "spiffy",
|
240
|
+
"properties": [
|
241
|
+
{
|
242
|
+
"name": "Custom Engraving",
|
243
|
+
"value": "Happy Birthday"
|
244
|
+
}
|
245
|
+
],
|
246
|
+
"product_exists": true,
|
247
|
+
"tax_lines": [
|
248
|
+
|
249
|
+
]
|
250
|
+
}
|
251
|
+
]
|
252
|
+
}
|
253
|
+
],
|
254
|
+
"client_details": {
|
255
|
+
"accept_language": null,
|
256
|
+
"browser_ip": "0.0.0.0",
|
257
|
+
"session_hash": null,
|
258
|
+
"user_agent": null
|
259
|
+
},
|
260
|
+
"customer": {
|
261
|
+
"accepts_marketing": false,
|
262
|
+
"created_at": "2014-03-07T16:14:08-05:00",
|
263
|
+
"email": "bob.norman@hostmail.com",
|
264
|
+
"first_name": "Bob",
|
265
|
+
"id": 207119551,
|
266
|
+
"last_name": "Norman",
|
267
|
+
"last_order_id": null,
|
268
|
+
"multipass_identifier": null,
|
269
|
+
"note": null,
|
270
|
+
"orders_count": 0,
|
271
|
+
"state": "disabled",
|
272
|
+
"total_spent": "0.00",
|
273
|
+
"updated_at": "2014-03-07T16:14:08-05:00",
|
274
|
+
"verified_email": true,
|
275
|
+
"tags": "",
|
276
|
+
"last_order_name": null,
|
277
|
+
"default_address": {
|
278
|
+
"address1": "Chestnut Street 92",
|
279
|
+
"address2": "",
|
280
|
+
"city": "Louisville",
|
281
|
+
"company": null,
|
282
|
+
"country": "United States",
|
283
|
+
"first_name": null,
|
284
|
+
"id": 207119551,
|
285
|
+
"last_name": null,
|
286
|
+
"phone": "555-625-1199",
|
287
|
+
"province": "Kentucky",
|
288
|
+
"zip": "40202",
|
289
|
+
"name": null,
|
290
|
+
"province_code": "KY",
|
291
|
+
"country_code": "US",
|
292
|
+
"country_name": "United States",
|
293
|
+
"default": true
|
294
|
+
}
|
295
|
+
}
|
296
|
+
}
|
297
|
+
}
|
@@ -0,0 +1,299 @@
|
|
1
|
+
{
|
2
|
+
"orders": [
|
3
|
+
{
|
4
|
+
"buyer_accepts_marketing": false,
|
5
|
+
"cancel_reason": null,
|
6
|
+
"cancelled_at": null,
|
7
|
+
"cart_token": "68778783ad298f1c80c3bafcddeea02f",
|
8
|
+
"checkout_token": null,
|
9
|
+
"closed_at": null,
|
10
|
+
"confirmed": false,
|
11
|
+
"created_at": "2008-01-10T11:00:00-05:00",
|
12
|
+
"currency": "USD",
|
13
|
+
"email": "bob.norman@hostmail.com",
|
14
|
+
"financial_status": "authorized",
|
15
|
+
"fulfillment_status": null,
|
16
|
+
"gateway": "authorize_net",
|
17
|
+
"id": 450789469,
|
18
|
+
"landing_site": "http://www.example.com?source=abc",
|
19
|
+
"location_id": null,
|
20
|
+
"name": "#1001",
|
21
|
+
"note": null,
|
22
|
+
"number": 1,
|
23
|
+
"reference": "fhwdgads",
|
24
|
+
"referring_site": "http://www.otherexample.com",
|
25
|
+
"source": null,
|
26
|
+
"source_identifier": "fhwdgads",
|
27
|
+
"source_name": "web",
|
28
|
+
"source_url": null,
|
29
|
+
"subtotal_price": "398.00",
|
30
|
+
"taxes_included": false,
|
31
|
+
"test": false,
|
32
|
+
"token": "b1946ac92492d2347c6235b4d2611184",
|
33
|
+
"total_discounts": "0.00",
|
34
|
+
"total_line_items_price": "398.00",
|
35
|
+
"total_price": "409.94",
|
36
|
+
"total_price_usd": "409.94",
|
37
|
+
"total_tax": "11.94",
|
38
|
+
"total_weight": 0,
|
39
|
+
"updated_at": "2008-01-10T11:00:00-05:00",
|
40
|
+
"user_id": null,
|
41
|
+
"browser_ip": null,
|
42
|
+
"landing_site_ref": "abc",
|
43
|
+
"order_number": 1001,
|
44
|
+
"discount_codes": [
|
45
|
+
{
|
46
|
+
"code": "TENOFF",
|
47
|
+
"amount": "10.00"
|
48
|
+
}
|
49
|
+
],
|
50
|
+
"note_attributes": [
|
51
|
+
{
|
52
|
+
"name": "custom engraving",
|
53
|
+
"value": "Happy Birthday"
|
54
|
+
},
|
55
|
+
{
|
56
|
+
"name": "colour",
|
57
|
+
"value": "green"
|
58
|
+
}
|
59
|
+
],
|
60
|
+
"processing_method": "direct",
|
61
|
+
"checkout_id": 450789469,
|
62
|
+
"tax_lines": [
|
63
|
+
{
|
64
|
+
"price": "11.94",
|
65
|
+
"rate": 0.06,
|
66
|
+
"title": "State Tax"
|
67
|
+
}
|
68
|
+
],
|
69
|
+
"tags": "",
|
70
|
+
"line_items": [
|
71
|
+
{
|
72
|
+
"fulfillment_service": "manual",
|
73
|
+
"fulfillment_status": null,
|
74
|
+
"grams": 200,
|
75
|
+
"id": 466157049,
|
76
|
+
"price": "199.00",
|
77
|
+
"product_id": 632910392,
|
78
|
+
"quantity": 1,
|
79
|
+
"requires_shipping": true,
|
80
|
+
"sku": "IPOD2008GREEN",
|
81
|
+
"taxable": true,
|
82
|
+
"title": "IPod Nano - 8gb",
|
83
|
+
"variant_id": 39072856,
|
84
|
+
"variant_title": "green",
|
85
|
+
"vendor": null,
|
86
|
+
"name": "IPod Nano - 8gb - green",
|
87
|
+
"variant_inventory_management": "spiffy",
|
88
|
+
"properties": [
|
89
|
+
{
|
90
|
+
"name": "Custom Engraving",
|
91
|
+
"value": "Happy Birthday"
|
92
|
+
}
|
93
|
+
],
|
94
|
+
"product_exists": true,
|
95
|
+
"tax_lines": [
|
96
|
+
|
97
|
+
]
|
98
|
+
},
|
99
|
+
{
|
100
|
+
"fulfillment_service": "manual",
|
101
|
+
"fulfillment_status": null,
|
102
|
+
"grams": 200,
|
103
|
+
"id": 518995019,
|
104
|
+
"price": "199.00",
|
105
|
+
"product_id": 632910392,
|
106
|
+
"quantity": 1,
|
107
|
+
"requires_shipping": true,
|
108
|
+
"sku": "IPOD2008RED",
|
109
|
+
"taxable": true,
|
110
|
+
"title": "IPod Nano - 8gb",
|
111
|
+
"variant_id": 49148385,
|
112
|
+
"variant_title": "red",
|
113
|
+
"vendor": null,
|
114
|
+
"name": "IPod Nano - 8gb - red",
|
115
|
+
"variant_inventory_management": "spiffy",
|
116
|
+
"properties": [
|
117
|
+
|
118
|
+
],
|
119
|
+
"product_exists": true,
|
120
|
+
"tax_lines": [
|
121
|
+
|
122
|
+
]
|
123
|
+
},
|
124
|
+
{
|
125
|
+
"fulfillment_service": "manual",
|
126
|
+
"fulfillment_status": null,
|
127
|
+
"grams": 200,
|
128
|
+
"id": 703073504,
|
129
|
+
"price": "199.00",
|
130
|
+
"product_id": 632910392,
|
131
|
+
"quantity": 1,
|
132
|
+
"requires_shipping": true,
|
133
|
+
"sku": "IPOD2008BLACK",
|
134
|
+
"taxable": true,
|
135
|
+
"title": "IPod Nano - 8gb",
|
136
|
+
"variant_id": 457924702,
|
137
|
+
"variant_title": "black",
|
138
|
+
"vendor": null,
|
139
|
+
"name": "IPod Nano - 8gb - black",
|
140
|
+
"variant_inventory_management": "spiffy",
|
141
|
+
"properties": [
|
142
|
+
|
143
|
+
],
|
144
|
+
"product_exists": true,
|
145
|
+
"tax_lines": [
|
146
|
+
|
147
|
+
]
|
148
|
+
}
|
149
|
+
],
|
150
|
+
"shipping_lines": [
|
151
|
+
{
|
152
|
+
"code": "Free Shipping",
|
153
|
+
"price": "0.00",
|
154
|
+
"source": "spiffy",
|
155
|
+
"title": "Free Shipping",
|
156
|
+
"tax_lines": [
|
157
|
+
|
158
|
+
]
|
159
|
+
}
|
160
|
+
],
|
161
|
+
"payment_details": {
|
162
|
+
"avs_result_code": null,
|
163
|
+
"credit_card_bin": null,
|
164
|
+
"cvv_result_code": null,
|
165
|
+
"credit_card_number": "XXXX-XXXX-XXXX-4242",
|
166
|
+
"credit_card_company": "Visa"
|
167
|
+
},
|
168
|
+
"billing_address": {
|
169
|
+
"address1": "Chestnut Street 92",
|
170
|
+
"address2": "",
|
171
|
+
"city": "Louisville",
|
172
|
+
"company": null,
|
173
|
+
"country": "United States",
|
174
|
+
"first_name": "Bob",
|
175
|
+
"last_name": "Norman",
|
176
|
+
"latitude": "45.41634",
|
177
|
+
"longitude": "-75.6868",
|
178
|
+
"phone": "555-625-1199",
|
179
|
+
"province": "Kentucky",
|
180
|
+
"zip": "40202",
|
181
|
+
"name": "Bob Norman",
|
182
|
+
"country_code": "US",
|
183
|
+
"province_code": "KY"
|
184
|
+
},
|
185
|
+
"shipping_address": {
|
186
|
+
"address1": "Chestnut Street 92",
|
187
|
+
"address2": "",
|
188
|
+
"city": "Louisville",
|
189
|
+
"company": null,
|
190
|
+
"country": "United States",
|
191
|
+
"first_name": "Bob",
|
192
|
+
"last_name": "Norman",
|
193
|
+
"latitude": "45.41634",
|
194
|
+
"longitude": "-75.6868",
|
195
|
+
"phone": "555-625-1199",
|
196
|
+
"province": "Kentucky",
|
197
|
+
"zip": "40202",
|
198
|
+
"name": "Bob Norman",
|
199
|
+
"country_code": "US",
|
200
|
+
"province_code": "KY"
|
201
|
+
},
|
202
|
+
"fulfillments": [
|
203
|
+
{
|
204
|
+
"created_at": "2014-03-07T16:14:08-05:00",
|
205
|
+
"id": 255858046,
|
206
|
+
"order_id": 450789469,
|
207
|
+
"service": "manual",
|
208
|
+
"status": "failure",
|
209
|
+
"tracking_company": null,
|
210
|
+
"updated_at": "2014-03-07T16:14:08-05:00",
|
211
|
+
"tracking_number": "1Z2345",
|
212
|
+
"tracking_numbers": [
|
213
|
+
"1Z2345"
|
214
|
+
],
|
215
|
+
"tracking_url": "http://wwwapps.ups.com/etracking/tracking.cgi?InquiryNumber1=1Z2345&TypeOfInquiryNumber=T&AcceptUPSLicenseAgreement=yes&submit=Track",
|
216
|
+
"tracking_urls": [
|
217
|
+
"http://wwwapps.ups.com/etracking/tracking.cgi?InquiryNumber1=1Z2345&TypeOfInquiryNumber=T&AcceptUPSLicenseAgreement=yes&submit=Track"
|
218
|
+
],
|
219
|
+
"receipt": {
|
220
|
+
"testcase": true,
|
221
|
+
"authorization": "123456"
|
222
|
+
},
|
223
|
+
"line_items": [
|
224
|
+
{
|
225
|
+
"fulfillment_service": "manual",
|
226
|
+
"fulfillment_status": null,
|
227
|
+
"grams": 200,
|
228
|
+
"id": 466157049,
|
229
|
+
"price": "199.00",
|
230
|
+
"product_id": 632910392,
|
231
|
+
"quantity": 1,
|
232
|
+
"requires_shipping": true,
|
233
|
+
"sku": "IPOD2008GREEN",
|
234
|
+
"taxable": true,
|
235
|
+
"title": "IPod Nano - 8gb",
|
236
|
+
"variant_id": 39072856,
|
237
|
+
"variant_title": "green",
|
238
|
+
"vendor": null,
|
239
|
+
"name": "IPod Nano - 8gb - green",
|
240
|
+
"variant_inventory_management": "spiffy",
|
241
|
+
"properties": [
|
242
|
+
{
|
243
|
+
"name": "Custom Engraving",
|
244
|
+
"value": "Happy Birthday"
|
245
|
+
}
|
246
|
+
],
|
247
|
+
"product_exists": true,
|
248
|
+
"tax_lines": [
|
249
|
+
|
250
|
+
]
|
251
|
+
}
|
252
|
+
]
|
253
|
+
}
|
254
|
+
],
|
255
|
+
"client_details": {
|
256
|
+
"accept_language": null,
|
257
|
+
"browser_ip": "0.0.0.0",
|
258
|
+
"session_hash": null,
|
259
|
+
"user_agent": null
|
260
|
+
},
|
261
|
+
"customer": {
|
262
|
+
"accepts_marketing": false,
|
263
|
+
"created_at": "2014-03-07T16:14:08-05:00",
|
264
|
+
"email": "bob.norman@hostmail.com",
|
265
|
+
"first_name": "Bob",
|
266
|
+
"id": 207119551,
|
267
|
+
"last_name": "Norman",
|
268
|
+
"last_order_id": null,
|
269
|
+
"multipass_identifier": null,
|
270
|
+
"note": null,
|
271
|
+
"orders_count": 0,
|
272
|
+
"state": "disabled",
|
273
|
+
"total_spent": "0.00",
|
274
|
+
"updated_at": "2014-03-07T16:14:08-05:00",
|
275
|
+
"verified_email": true,
|
276
|
+
"tags": "",
|
277
|
+
"last_order_name": null,
|
278
|
+
"default_address": {
|
279
|
+
"address1": "Chestnut Street 92",
|
280
|
+
"address2": "",
|
281
|
+
"city": "Louisville",
|
282
|
+
"company": null,
|
283
|
+
"country": "United States",
|
284
|
+
"first_name": null,
|
285
|
+
"id": 207119551,
|
286
|
+
"last_name": null,
|
287
|
+
"phone": "555-625-1199",
|
288
|
+
"province": "Kentucky",
|
289
|
+
"zip": "40202",
|
290
|
+
"name": null,
|
291
|
+
"province_code": "KY",
|
292
|
+
"country_code": "US",
|
293
|
+
"country_name": "United States",
|
294
|
+
"default": true
|
295
|
+
}
|
296
|
+
}
|
297
|
+
}
|
298
|
+
]
|
299
|
+
}
|