Updates
This commit is contained in:
@@ -86,7 +86,7 @@ public interface Api {
|
||||
customerCart.add(imgr.INVENTORY.getLast());
|
||||
|
||||
TransactionManager tmgr = TransactionManager.getInstance();
|
||||
|
||||
tmgr.load();
|
||||
/*
|
||||
* 3. Add a new transaction object to the list manager is handling
|
||||
*/
|
||||
@@ -98,7 +98,7 @@ public interface Api {
|
||||
*/
|
||||
tmgr.compute(tran);
|
||||
tmgr.complete(tran);
|
||||
tmgr.remove(tran);
|
||||
//tmgr.remove(tran);
|
||||
/*
|
||||
* 7. Format and return transaction data in print format
|
||||
*/
|
||||
@@ -135,6 +135,7 @@ public interface Api {
|
||||
o.setTitle("Windy Rowing");
|
||||
o.setDescription("East Market Square find. Local Author.");
|
||||
o.setAuthor("Dave Janson");
|
||||
o.setPrice(92.0f);
|
||||
o.setCreated(ZonedDateTime.now());
|
||||
return o;
|
||||
}
|
||||
@@ -143,6 +144,7 @@ public interface Api {
|
||||
o.setTitle("Walking by the beach.");
|
||||
o.setDescription("East Market Square find. Local Author.");
|
||||
o.setAuthor("Dave Janson");
|
||||
o.setPrice(51.0f);
|
||||
o.setCreated(ZonedDateTime.now());
|
||||
return o;
|
||||
}
|
||||
@@ -151,7 +153,7 @@ public interface Api {
|
||||
o.setTitle("Different day same thing");
|
||||
o.setDescription("East Market Square find. Local Author.");
|
||||
o.setAuthor("Dave Janson");
|
||||
|
||||
o.setPrice(102.0f);
|
||||
o.setCreated(ZonedDateTime.now());
|
||||
return o;
|
||||
}
|
||||
@@ -160,7 +162,8 @@ public interface Api {
|
||||
o.setTitle("Jolly Romp");
|
||||
o.setDescription("East Market Square find. Local Author.");
|
||||
o.setAuthor("Dave Janson");
|
||||
|
||||
o.setPrice(32.0f);
|
||||
o.setWeight(4.0F);
|
||||
o.setCreated(ZonedDateTime.now());
|
||||
return o;
|
||||
}
|
||||
|
||||
22
Api/src/resources/db/inventory.json
Normal file
22
Api/src/resources/db/inventory.json
Normal file
@@ -0,0 +1,22 @@
|
||||
[
|
||||
{
|
||||
"Author": "Dave Janson",
|
||||
"author": "Dave Janson",
|
||||
"created": "2025-10-30T13:47:16.4766896-04:00[America/New_York]",
|
||||
"description": "East Market Square find. Local Author.",
|
||||
"id": "1829220534",
|
||||
"price": 92.0,
|
||||
"title": "Windy Rowing",
|
||||
"type": "DRAWING"
|
||||
},
|
||||
{
|
||||
"Author": "Dave Janson",
|
||||
"author": "Dave Janson",
|
||||
"created": "2025-10-30T13:47:16.4776889-04:00[America/New_York]",
|
||||
"description": "East Market Square find. Local Author.",
|
||||
"id": "3269813598",
|
||||
"price": 102.0,
|
||||
"title": "Different day same thing",
|
||||
"type": "PRINT"
|
||||
}
|
||||
]
|
||||
31
Api/src/resources/db/transactions.json
Normal file
31
Api/src/resources/db/transactions.json
Normal file
@@ -0,0 +1,31 @@
|
||||
[
|
||||
{
|
||||
"completed": "2025-10-30T13:55:22.069972-04:00[America/New_York]",
|
||||
"created": "2025-10-30T13:55:22.069972-04:00[America/New_York]",
|
||||
"customerId": "4659170390",
|
||||
"customerInventoryList": [
|
||||
{
|
||||
"Author": "Dave Janson",
|
||||
"author": "Dave Janson",
|
||||
"created": "2025-10-30T13:47:16.4766896-04:00[America/New_York]",
|
||||
"description": "East Market Square find. Local Author.",
|
||||
"id": "1829220534",
|
||||
"price": 92.0,
|
||||
"title": "Windy Rowing",
|
||||
"type": "DRAWING"
|
||||
},
|
||||
{
|
||||
"Author": "Dave Janson",
|
||||
"author": "Dave Janson",
|
||||
"created": "2025-10-30T13:47:16.4776889-04:00[America/New_York]",
|
||||
"description": "East Market Square find. Local Author.",
|
||||
"id": "3269813598",
|
||||
"price": 102.0,
|
||||
"title": "Different day same thing",
|
||||
"type": "PRINT"
|
||||
}
|
||||
],
|
||||
"id": "h3kaUzeDU8llUhCPsdPacg",
|
||||
"totalPrice": 194.0
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user