Skip to content

Commit c6087fc

Browse files
authored
Merge pull request #70 from woocommerce/issue/refresh-fake-data
Delete old order, refresh order list json, add new detailed orders
2 parents 60e2111 + 980b3f6 commit c6087fc

File tree

8 files changed

+1412
-1016
lines changed

8 files changed

+1412
-1016
lines changed
Lines changed: 173 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,173 @@
1+
2+
{
3+
"id": 1044,
4+
"parent_id": 0,
5+
"number": "1044",
6+
"order_key": "wc_order_5ae0817b45e8d",
7+
"created_via": "checkout",
8+
"version": "3.3.5",
9+
"status": "completed",
10+
"currency": "USD",
11+
"date_created": "2018-04-25T09:24:11",
12+
"date_created_gmt": "2018-04-25T13:24:11",
13+
"date_modified": "2018-05-23T13:39:33",
14+
"date_modified_gmt": "2018-05-23T17:39:33",
15+
"discount_total": "0.00",
16+
"discount_tax": "0.00",
17+
"shipping_total": "0.00",
18+
"shipping_tax": "0.00",
19+
"cart_tax": "0.00",
20+
"total": "30.00",
21+
"total_tax": "0.00",
22+
"prices_include_tax": false,
23+
"customer_id": 5,
24+
"customer_ip_address": "75.86.132.7",
25+
"customer_user_agent": "mozilla/5.0 (macintosh; intel mac os x 10_13_4) applewebkit/605.1.15 (khtml, like gecko) version/11.1 safari/605.1.15",
26+
"customer_note": "I love pancake syrup!",
27+
"billing": {
28+
"first_name": "Pickles",
29+
"last_name": "Salty Pork Von Hausen",
30+
"company": "",
31+
"address_1": "101 E Clay St",
32+
"address_2": "",
33+
"city": "Saukville",
34+
"state": "WI",
35+
"postcode": "53080-1903",
36+
"country": "US",
37+
"email": "[email protected]",
38+
"phone": "262-284-3271"
39+
},
40+
"shipping": {
41+
"first_name": "Pickles",
42+
"last_name": "Salty Pork Von Hausen",
43+
"company": "",
44+
"address_1": "101 E CLAY ST",
45+
"address_2": "",
46+
"city": "SAUKVILLE",
47+
"state": "WI",
48+
"postcode": "53080-1903",
49+
"country": "US"
50+
},
51+
"payment_method": "stripe",
52+
"payment_method_title": "Credit Card (Stripe)",
53+
"transaction_id": "ch_1CKnbUJK48mSkzFLKh1h23Ln",
54+
"date_paid": "2018-04-25T09:24:13",
55+
"date_paid_gmt": "2018-04-25T13:24:13",
56+
"date_completed": "2018-05-23T13:39:33",
57+
"date_completed_gmt": "2018-05-23T17:39:33",
58+
"cart_hash": "611eb0cc7aa90912553db6f1c61330f0",
59+
"meta_data": [
60+
{
61+
"id": 44242,
62+
"key": "_stripe_source_id",
63+
"value": "src_1CKnbRJK48mSkzFLYbpkEsMv"
64+
},
65+
{
66+
"id": 44243,
67+
"key": "_stripe_charge_captured",
68+
"value": "yes"
69+
},
70+
{
71+
"id": 44244,
72+
"key": "_stripe_fee",
73+
"value": "1.17"
74+
},
75+
{
76+
"id": 44245,
77+
"key": "_stripe_net",
78+
"value": "28.83"
79+
},
80+
{
81+
"id": 44246,
82+
"key": "_stripe_currency",
83+
"value": "USD"
84+
},
85+
{
86+
"id": 44466,
87+
"key": "_shipstation_exported",
88+
"value": "yes"
89+
},
90+
{
91+
"id": 44621,
92+
"key": "_shipping_phone",
93+
"value": "262-284-3271"
94+
},
95+
{
96+
"id": 44622,
97+
"key": "_wc_connect_destination_normalized",
98+
"value": "1"
99+
}
100+
],
101+
"line_items": [
102+
{
103+
"id": 931,
104+
"name": "Fabric (Variable Product)",
105+
"product_id": 262,
106+
"variation_id": 264,
107+
"quantity": 1,
108+
"tax_class": "",
109+
"subtotal": "30.00",
110+
"subtotal_tax": "0.00",
111+
"total": "30.00",
112+
"total_tax": "0.00",
113+
"taxes": [],
114+
"meta_data": [
115+
{
116+
"id": 6838,
117+
"key": "pa_fabric",
118+
"value": "italian"
119+
},
120+
{
121+
"id": 6839,
122+
"key": "size",
123+
"value": "Medium"
124+
},
125+
{
126+
"id": 6840,
127+
"key": "pa_color",
128+
"value": "green"
129+
}
130+
],
131+
"sku": "",
132+
"price": 30
133+
}
134+
],
135+
"tax_lines": [],
136+
"shipping_lines": [
137+
{
138+
"id": 932,
139+
"method_title": "Free shipping",
140+
"method_id": "free_shipping:26",
141+
"total": "0.00",
142+
"total_tax": "0.00",
143+
"taxes": [],
144+
"meta_data": [
145+
{
146+
"id": 6845,
147+
"key": "Items",
148+
"value": "Fabric (Variable Product) × 1"
149+
}
150+
]
151+
}
152+
],
153+
"fee_lines": [],
154+
"coupon_lines": [],
155+
"refunds": [],
156+
"_links": {
157+
"self": [
158+
{
159+
"href": "https://jamosova3.mystagingwebsite.com/wp-json/wc/v2/orders/1044"
160+
}
161+
],
162+
"collection": [
163+
{
164+
"href": "https://jamosova3.mystagingwebsite.com/wp-json/wc/v2/orders"
165+
}
166+
],
167+
"customer": [
168+
{
169+
"href": "https://jamosova3.mystagingwebsite.com/wp-json/wc/v2/customers/5"
170+
}
171+
]
172+
}
173+
}
Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
{
2+
"id": 1107,
3+
"parent_id": 0,
4+
"number": "1107",
5+
"order_key": "wc_order_5af1f51d8b947",
6+
"created_via": "checkout",
7+
"version": "3.3.5",
8+
"status": "pending",
9+
"currency": "USD",
10+
"date_created": "2018-05-08T15:06:05",
11+
"date_created_gmt": "2018-05-08T19:06:05",
12+
"date_modified": "2018-05-08T15:06:05",
13+
"date_modified_gmt": "2018-05-08T19:06:05",
14+
"discount_total": "0.00",
15+
"discount_tax": "0.00",
16+
"shipping_total": "0.00",
17+
"shipping_tax": "0.00",
18+
"cart_tax": "0.00",
19+
"total": "30.00",
20+
"total_tax": "0.00",
21+
"prices_include_tax": false,
22+
"customer_id": 1,
23+
"customer_ip_address": "192.0.124.251",
24+
"customer_user_agent": "mozilla/5.0 (macintosh; intel mac os x 10_13_4) applewebkit/537.36 (khtml, like gecko) chrome/66.0.3359.117 safari/537.36",
25+
"customer_note": "",
26+
"billing": {
27+
"first_name": "Julia",
28+
"last_name": "Woo",
29+
"company": "The Nuttery",
30+
"address_1": "200 Collins Ave",
31+
"address_2": "",
32+
"city": "Miami Beach",
33+
"state": "FL",
34+
"postcode": "33139",
35+
"country": "US",
36+
"email": "[email protected]",
37+
"phone": "333-333-3333"
38+
},
39+
"shipping": {
40+
"first_name": "Julia",
41+
"last_name": "Woo",
42+
"company": "The Nuttery",
43+
"address_1": "200 Collins Ave",
44+
"address_2": "",
45+
"city": "Miami Beach",
46+
"state": "FL",
47+
"postcode": "33139",
48+
"country": "US"
49+
},
50+
"payment_method": "bluepayecheck",
51+
"payment_method_title": "ECheck (BluePay)",
52+
"transaction_id": "",
53+
"date_paid": null,
54+
"date_paid_gmt": null,
55+
"date_completed": null,
56+
"date_completed_gmt": null,
57+
"cart_hash": "4b64cfb28c0e6b2d5e25c958fc9826ba",
58+
"meta_data": [
59+
{
60+
"id": 44670,
61+
"key": "_fue_conversion",
62+
"value": "1050"
63+
},
64+
{
65+
"id": 44671,
66+
"key": "_fue_recorded",
67+
"value": "1"
68+
},
69+
{
70+
"id": 44673,
71+
"key": "_shipping_phone",
72+
"value": "333-333-3333"
73+
}
74+
],
75+
"line_items": [
76+
{
77+
"id": 948,
78+
"name": "Black Dress (H&M)",
79+
"product_id": 373,
80+
"variation_id": 0,
81+
"quantity": 1,
82+
"tax_class": "",
83+
"subtotal": "30.00",
84+
"subtotal_tax": "0.00",
85+
"total": "30.00",
86+
"total_tax": "0.00",
87+
"taxes": [],
88+
"meta_data": [],
89+
"sku": "111-111-111",
90+
"price": 30
91+
}
92+
],
93+
"tax_lines": [],
94+
"shipping_lines": [
95+
{
96+
"id": 949,
97+
"method_title": "Free shipping",
98+
"method_id": "free_shipping:26",
99+
"total": "0.00",
100+
"total_tax": "0.00",
101+
"taxes": [],
102+
"meta_data": [
103+
{
104+
"id": 6971,
105+
"key": "Items",
106+
"value": "Black Dress (H&M) × 1"
107+
}
108+
]
109+
}
110+
],
111+
"fee_lines": [],
112+
"coupon_lines": [],
113+
"refunds": [],
114+
"_links": {
115+
"self": [
116+
{
117+
"href": "https://jamosova3.mystagingwebsite.com/wp-json/wc/v2/orders/1107"
118+
}
119+
],
120+
"collection": [
121+
{
122+
"href": "https://jamosova3.mystagingwebsite.com/wp-json/wc/v2/orders"
123+
}
124+
],
125+
"customer": [
126+
{
127+
"href": "https://jamosova3.mystagingwebsite.com/wp-json/wc/v2/customers/1"
128+
}
129+
]
130+
}
131+
}

0 commit comments

Comments
 (0)