Skip to content

Commit 1f98423

Browse files
author
Sharma Elanthiriayan
committed
- Add tax_lines to mock json files.
1 parent 800372b commit 1f98423

File tree

3 files changed

+33
-3
lines changed

3 files changed

+33
-3
lines changed

Networking/NetworkingTests/Responses/order-with-faulty-attributes.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@
100100
"date_created_gmt" : "2021-08-04T19:28:01",
101101
"date_modified_gmt" : "2021-08-04T19:28:01",
102102
"coupon_lines" : [],
103-
"discount_tax" : "0.00"
103+
"discount_tax" : "0.00",
104+
"tax_lines": [],
104105
}
105106
}

Networking/NetworkingTests/Responses/order.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,19 @@
8585
"meta_data": []
8686
}
8787
],
88+
"tax_lines": [
89+
{
90+
"id": 1330,
91+
"rate_code": "US-NY-STATE-2",
92+
"rate_id": 6,
93+
"label": "State",
94+
"compound": true,
95+
"tax_total": "7.71",
96+
"shipping_tax_total": "0.00",
97+
"rate_percent": 4.5,
98+
"meta_data": []
99+
}
100+
],
88101
"payment_method": "stripe",
89102
"payment_method_title": "Credit Card (Stripe)",
90103
"date_paid_gmt": "2018-04-03T23:05:14",

Networking/NetworkingTests/Responses/orders-load-all.json

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,19 @@
8686
"meta_data": []
8787
}
8888
],
89+
"tax_lines": [
90+
{
91+
"id": 1330,
92+
"rate_code": "US-NY-STATE-2",
93+
"rate_id": 6,
94+
"label": "State",
95+
"compound": true,
96+
"tax_total": "7.71",
97+
"shipping_tax_total": "0.00",
98+
"rate_percent": 4.5,
99+
"meta_data": []
100+
}
101+
],
89102
"payment_method": "stripe",
90103
"payment_method_title": "Credit Card (Stripe)",
91104
"date_paid_gmt": "2018-04-03T23:05:14",
@@ -254,7 +267,8 @@
254267
}
255268
],
256269
"coupon_lines": [],
257-
"fee_lines": []
270+
"fee_lines": [],
271+
"tax_lines": []
258272
},
259273
{
260274
"id": 960,
@@ -327,7 +341,8 @@
327341
}
328342
],
329343
"coupon_lines": [],
330-
"fee_lines": []
344+
"fee_lines": [],
345+
"tax_lines": []
331346
},
332347
{
333348
"id": 560,
@@ -1272,6 +1287,7 @@
12721287
}
12731288
],
12741289
"fee_lines": [],
1290+
"tax_lines": [],
12751291
"coupon_lines": [],
12761292
"refunds": [
12771293
{

0 commit comments

Comments
 (0)