KKlochko
02cdb1f792
Add MessageFactory, MessageByNameFactory.
2 years ago
KKlochko
2b37a4c2e7
Refactor ValidatorByNameFactories of Company and Item models.
2 years ago
KKlochko
c415a77272
Add InformativeValidatorByNameFactory.
2 years ago
KKlochko
b43759f3f4
Refactor Validators.
2 years ago
KKlochko
f85bc047b8
Refactor to use CompanyInformativeValidatorByNameFactory.
2 years ago
KKlochko
a37992c2e9
Add CompanyInformativeValidatorByNameFactory.
2 years ago
KKlochko
36a803131e
Refactor to use ItemInformativeValidatorByNameFactory.
2 years ago
KKlochko
9a83b398c0
Add ItemInformativeValidatorByNameFactory.
2 years ago
KKlochko
e057d2de27
Add EmptyNameValidator and ItemValidatorByName.
2 years ago
KKlochko
3ffc82ee7c
Refactor InformativeValidator.
2 years ago
KKlochko
7662d98bce
Add Informative Validators.
2 years ago
KKlochko
da847273b8
Update Validators to extend ABC instead of implementing interface.
2 years ago
KKlochko
a4c0b3463b
Add a validator interface, UpperRangeValidator and OkValidator.
2 years ago
KKlochko
4430b04f11
Add UserAddress model.
2 years ago
KKlochko
8c62393d3f
Add ItemValidationByName.
2 years ago
KKlochko
c9974b007a
Add UserValidationByMatrixUsername.
2 years ago
KKlochko
1a7c585aa7
Add CityValidationByName.
2 years ago
KKlochko
f437d777a5
Add ValidationByName and CompanyValidationByName.
2 years ago
KKlochko
135f4c0c93
Refactor the Company and its validator test.
2 years ago
KKlochko
c22945926c
Refactor the City, Company and their tests.
2 years ago
KKlochko
394f821d35
Refactor the City and its tests.
2 years ago
KKlochko
6db3465407
Refactor the User validator.
2 years ago
KKlochko
6c13fe7d7d
Add the method to get cart items as the JSON array.
2 years ago
KKlochko
d5cd9f4096
Fix the getters in Cart model for a city, a company.
2 years ago
KKlochko
b371ac2773
Add a getter for companies in City model.
2 years ago
KKlochko
8850d43575
Fix the addItemIds method in Cart model.
2 years ago
KKlochko
5b0a1ee8f6
Fix methods to add/remove items from the Cart.
2 years ago
KKlochko
50d39c7e9b
Add methods to City model to add, remove Company by id.
2 years ago
KKlochko
118b9bb74c
Add methods to City model to get, add, remove Companies by ids.
2 years ago
KKlochko
f7214205d8
Add Pivot table for the relationship between Cities and Companies.
2 years ago
KKlochko
7636ae4715
Fix Cart.getItem() method.
2 years ago
KKlochko
6bb99c7f70
Add the clone method for Item model.
2 years ago
KKlochko
ada0abd69d
Add the count field to Item model.
2 years ago
KKlochko
563254c725
Add getItem to Cart model.
2 years ago
KKlochko
e91b808a0f
Add a method to check that an item in a cart.
2 years ago
KKlochko
73b45084b7
Refactor the Cart method names.
2 years ago
KKlochko
a7dbea1d79
Add getCategory, getCompany, isBelong methods to Item model.
2 years ago
KKlochko
aedb4d5949
Add the validation for Item that returns message for requests.
2 years ago
KKlochko
3eff14173b
Add getters to Cart model to get its City or Company.
2 years ago
KKlochko
e0ec4f1efa
Add foreign keys to field in Category, Item models.
2 years ago
KKlochko
3fe7287e06
Refactor the Cart model.
...
Moved the dropItems above its first usage.
2 years ago
KKlochko
d90f017cbe
Add the getItemIds in the Cart to get ids of items.
2 years ago
KKlochko
a8559a52c6
Add the setCompany method in the Cart model.
2 years ago
KKlochko
fd4a37c36a
Add the validation for Company that returns message for requests.
2 years ago
KKlochko
76f6c699aa
Fix the method, isEmpty, in the Cart model.
2 years ago
KKlochko
0c2f6355cf
Add methods to add and remove Items from a Cart.
2 years ago
KKlochko
2d4fb6a59b
Add the validation for City, User that returns message for requests.
2 years ago
KKlochko
814eb18028
Update the setCity method in the Cart model.
2 years ago
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.
2 years ago
KKlochko
4a4d5e7335
Add Cart model, resource and its API, Pivot table with Items.
...
Update Items model to have relationship with cart.
2 years ago