bj-rutledge / CRUD-API-Example

Simple Example of a CRUD API
MIT License
1 stars 3 forks source link

write total spent method for customer class #35

Open bj-rutledge opened 1 year ago

bj-rutledge commented 1 year ago

The customer class does not have a way to get the total amount spent. We'll have to approach this one of 2 ways:

1 -> change the array of order numbers to be an array or actual orders

2 -> query the db for orders and calculate the total. Both require refactoring.