Commit Graph
17 Commits
Author SHA1 Message Date
KKlochko 6c13fe7d7d Add the method to get cart items as the JSON array. 2023-06-22 10:58:21 +03:00
KKlochko d5cd9f4096 Fix the getters in Cart model for a city, a company.
continuous-integration/drone/push Build is passing
2023-06-20 17:34:35 +03:00
KKlochko 8850d43575 Fix the addItemIds method in Cart model.
continuous-integration/drone/push Build is passing
2023-06-19 22:09:16 +03:00
KKlochko 5b0a1ee8f6 Fix methods to add/remove items from the Cart.
continuous-integration/drone/push Build is failing
2023-06-19 21:55:48 +03:00
KKlochko 7636ae4715 Fix Cart.getItem() method. 2023-06-19 20:31:02 +03:00
KKlochko 563254c725 Add getItem to Cart model. 2023-06-19 18:11:28 +03:00
KKlochko e91b808a0f Add a method to check that an item in a cart. 2023-06-19 18:10:54 +03:00
KKlochko 73b45084b7 Refactor the Cart method names. 2023-06-19 18:08:34 +03:00
KKlochko 3eff14173b Add getters to Cart model to get its City or Company. 2023-06-19 15:05:37 +03:00
KKlochko 3fe7287e06 Refactor the Cart model.
Moved the dropItems above its first usage.
2023-06-18 18:42:40 +03:00
KKlochko d90f017cbe Add the getItemIds in the Cart to get ids of items. 2023-06-18 18:41:14 +03:00
KKlochko a8559a52c6 Add the setCompany method in the Cart model. 2023-06-18 18:34:19 +03:00
KKlochko 76f6c699aa Fix the method, isEmpty, in the Cart model. 2023-06-18 17:35:09 +03:00
KKlochko 0c2f6355cf Add methods to add and remove Items from a Cart. 2023-06-18 17:34:23 +03:00
KKlochko 814eb18028 Update the setCity method in the Cart model. 2023-06-18 16:15:22 +03:00
KKlochko ea120c8c9c Update User, Cart models.
Added isEmpty (no items), setCity, dropItems to Cart.
The cart field, company, was made nullable.

Updated the user field from name to username and made it unique.
2023-06-16 16:50:12 +03:00
KKlochko 4a4d5e7335 Add Cart model, resource and its API, Pivot table with Items.
Update Items model to have relationship with cart.
2023-06-15 17:43:59 +03:00