forked from mrvautin/expressCart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtestdata.json
256 lines (256 loc) · 10.8 KB
/
testdata.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
{
"products": [
{
"productPermalink": "duckworth-jacket",
"productTitle": "Duckworth Woolfill Jacket",
"productPrice": "188.00",
"productDescription": "Inspired by the timeless, functionality of your grandfather's work coat, the Foraker features brass buttons and 4 patch pockets. Crafted in Bristol, Tennessee, our 10oz organic duck canvas is light enough for an early summer morning, but rugged enough to handle your days work.<ul><li>100% Organic Duck Canvas.</li></ul>",
"productGtin": "1111111111",
"productBrand": "Duckworth",
"productPublished": true,
"productTags": "organic, jacket",
"productStock": 10
},
{
"productPermalink": "5-panel-camp-cap",
"productTitle": "5 Panel Camp Cap",
"productPrice": "48.00",
"productDescription": "A classic 5 panel hat with our United By Blue logo on the front and an adjustable strap to keep fit and secure. Made with recycled polyester and organic cotton mix. <ul><li>Made in New Jersey</li><li>7oz Eco-Twill fabric: 35% organic cotton, 65% recycled PET (plastic water and soda bottles)</li><li>Embossed leather patch</li></ul>",
"productGtin": "2222222222",
"productBrand": "United By Blue",
"productPublished": true,
"productTags": "panel, cap",
"productStock": 10
},
{
"productPermalink": "ranger-boot",
"productTitle": "Red Wing Iron Ranger Boot",
"productPrice": "310.00",
"productDescription": "The Mesabi Iron Range lies in northern Minnesota, a rugged and remote area known for its iron mines. The local residents who work these mines are proudly known as Iron Rangers, individuals with a sense of adventure and a determined personality. Originally designed to be worn in the iron mines, Iron Ranger work boots had to be as tough as the people who wore them in demanding conditions. Iron Ranger boots are built with a double layer of leaver over the toe to provide an extra measure of safety.<ul><li>6 inch, Amber Harness leather with Nitrile Cork sole.</li></ul>",
"productGtin": "3333333333",
"productBrand": "Iron Ranger",
"productPublished": true,
"productTags": "ranger, boot, leather",
"productStock": 10
},
{
"productPermalink": "whitney-pullover",
"productTitle": "Whitney pullover",
"productPrice": "138.00",
"productDescription": "Buttons are fussy. Sometimes you just want to roll out of bed, put on the pull over and get to the days work. <ul><li>100% Wool, Heavy 4 gauge thickness</li><li>Handmade in Nepal.</li></ul>",
"productGtin": "4444444444",
"productBrand": "Whitney",
"productPublished": true,
"productTags": "whitney, pullover",
"productStock": 10
},
{
"productPermalink": "scout-backpack",
"productTitle": "Scout Backpack",
"productPrice": "128.00",
"productDescription": "This durable backpack is ready for any adventure, large or small. Features adjustable and padded shoulder pads for comfort. Designed with a storm flap and a secured by two snap-button closure. Made with a waxed downpour proof exterior canvas and a soft cotton interior lining. Finished with brass hardware and genuine leather trimmings.<ul><li>100% organic waxed 18 oz canvas</li><li>Full grain genuine leather accents</li><li>Adjustable shoulder straps</li><li>Lifetime&nbsp;Guarantee</li></ul>",
"productGtin": "5555555555",
"productBrand": "Scout",
"productPublished": true,
"productTags": "backpack, organic",
"productStock": 100
},
{
"productPermalink": "hudderton-backpack",
"productTitle": "Hudderton Backpack",
"productPrice": "49.95",
"productDescription": "Durable, rugged, and dependable designed with four zipper compartments. Two bellowed front pockets allow for easy access to smaller items, one large, spacious compartment with a padded laptop sleeve, and a tiny convenient pouch on top to keep keys and other small items secure. The Hudderton is built with organic downpour proof canvas, a durable full grain leather bottom to prevent wear and tear, and padded canvas shoulder straps for all-day comfort. From the commute to the trail the Hudderton is perfect for bag for the entire week.<ul><li>100% organic waxed 18 oz canvas</li><li>Full grain genuine leather detail</li><li>Soft interior cotton lining</li><li>Brass hardware and YKK zippers</li><li>Cotton Padded interior laptop sleeve</li><li>Lifetime Guarantee</li></ul>",
"productGtin": "6666666666",
"productBrand": "Hudderton",
"productPublished": true,
"productTags": "backpack",
"productStock": 10
},
{
"productPermalink": "ayres-chambray",
"productTitle": "Ayres Chambray",
"productPrice": "77.99",
"productDescription": "Comfortable and practical, our chambray button down is perfect for travel or days spent on the go. The Ayres Chambray has a rich, washed out indigo color suitable to throw on for any event. Made with sustainable soft chambray featuring two chest pockets with sturdy and scratch resistant corozo buttons.<ul><li>100% Organic Cotton Chambray, 4.9 oz Fabric.</li><li>Natural Corozo Buttons.</li></ul>",
"productGtin": "7777777777",
"productBrand": "Ayres",
"productPublished": true,
"productTags": "shirt",
"productStock": 10
},
{
"productPermalink": "gym-membership",
"productTitle": "Gym membership",
"productPrice": "15.00",
"productDescription": "This a monthly recurring Gym membership subscription.",
"productBrand": "expressCart",
"productPublished": true,
"productTags": "subscription",
"productStock": 0,
"productSubscription": "plan_XXXXXXXXXXXXXX",
"productStockDisable": true
}
],
"variants": [
{
"title" : "Extra Large",
"price" : "60.00",
"stock" : 20
},
{
"title" : "Large",
"price" : "50.00",
"stock" : 20
},
{
"title" : "Medium",
"price" : "40.00",
"stock" : 20
},
{
"title" : "Small",
"price" : "30.00",
"stock" : 20
},
{
"title" : "Extra Small",
"price" : "20.00",
"stock" : 20
}
],
"customers": [
{
"email": "test@test.com",
"firstName": "Testy",
"lastName": "Cles",
"address1": "1 test street",
"address2": "testvile",
"country": "Netherlands",
"state": "NL",
"postcode": "2000TW",
"phone": "123456789",
"password": "$2a$10$kKjnX1J/CAdgdmLI0WuPY.ILH1c7N8mD0H/ZyUXEfee1mJxJvZIS."
},
{
"email": "test1@test.com",
"firstName": "Testy",
"lastName": "McTesterson",
"address1": "2 test street",
"address2": "testvile",
"country": "Netherlands",
"state": "",
"postcode": "2000ZT",
"phone": "123456789",
"password": "$2a$10$kKjnX1J/CAdgdmLI0WuPY.ILH1c7N8mD0H/ZyUXEfee1mJxJvZIS."
}
],
"users": [
{
"usersName": "Owner user",
"userEmail": "owner@test.com",
"userPassword": "$2a$10$7jQx/hQOWrRni531b/dHRuH8o1ZP8Yo8g..GpTOF4M7RrEH/pzTMy",
"isAdmin": true,
"isOwner": true
},
{
"usersName": "Non Owner",
"userEmail": "nonowner@test.com",
"userPassword": "$2a$10$7jQx/hQOWrRni531b/dHRuH8o1ZP8Yo8g..GpTOF4M7RrEH/pzTMy",
"isAdmin": false,
"isOwner": false
}
],
"orders": [
{
"orderPaymentId": "ch_1ElPw5L7TBqK1az83hbmOFuJ",
"orderPaymentGateway": "Stripe",
"orderPaymentMessage": "Payment complete.",
"orderTotal": 310,
"orderEmail": "test@test.com",
"orderFirstname": "Testy",
"orderLastname": "Cles",
"orderAddr1": "1 test street",
"orderAddr2": "testvile",
"orderCountry": "Netherlands",
"orderState": "SA",
"orderPostcode": "2000TW",
"orderPhoneNumber": "123456789",
"orderComment": "",
"orderStatus": "Paid",
"orderProducts": []
},
{
"orderPaymentId": "ch_1ElPw5L7TBqK1az83hbmOFuJ",
"orderPaymentGateway": "Stripe",
"orderPaymentMessage": "Payment complete.",
"orderTotal": 310,
"orderEmail": "test@test.com",
"orderFirstname": "Testy",
"orderLastname": "Cles",
"orderAddr1": "1 test street",
"orderAddr2": "testvile",
"orderCountry": "Netherlands",
"orderState": "SA",
"orderPostcode": "2000TW",
"orderPhoneNumber": "123456789",
"orderComment": "",
"orderStatus": "Declined",
"orderProducts": []
}
],
"reviews": [
{
"title": "This is a great product!",
"description": "Great product. Works exactly how it's described.",
"rating": 5
},
{
"title": "Horrible!!!",
"description": "Terrible! Don't recommend this product to anyone.",
"rating": 1
}
],
"discounts": [
{
"code": "valid_10_amount_code",
"type": "amount",
"value": 10,
"start": "",
"end": ""
},
{
"code": "valid_10_percent_code",
"type": "percent",
"value": 10,
"start": "",
"end": ""
},
{
"code": "expired_10_percent_code",
"type": "percent",
"value": 10,
"start": "",
"end": ""
},
{
"code": "future_10_percent_code",
"type": "percent",
"value": 10,
"start": "",
"end": ""
}
],
"menu": {
"items": [
{
"title": "Backpacks",
"link": "/category/backpack",
"order": 0
},
{
"title": "Boots",
"link": "/category/boots",
"order": 1
}
]
}
}