Skip to content

Latest commit

 

History

History
51 lines (41 loc) · 1.16 KB

README.md

File metadata and controls

51 lines (41 loc) · 1.16 KB

Classes:

UI
- store: Store
+ addOfferViews(HTMLElement, Product[])
+ addProductViews(HTMLElement, Product[])
+ getters
+ setters
Store
- catalog: Catalog
- user: User
+ addProducts()
+ catalog(): Product[]
+ getters
+ setters
Catalog
- productList: Product[]
+ addProduct(Product)
+ getters
+ setters
Product
- id: Number
- title: String
- description: String
- img: String
- quantity: Number
+ decreaseQuantity(Number)
+ increaseQuantity(Number)
+ applyDiscount(Offer)
+ getters
+ setters
User
- userId: Number
- username: String
- password: String
- email: String
+ getters
+ setters
Offer
- discount: Number
- initialDate: Date
- finishDate: Date
+ getters
+ setters
Cart
- items: CartItem[]
+ getters
+ setters
CartItem
- item: Item
- quantity: Number
+ getters
+ setters
Sale
- cart: Cart
- payment: Payment
- date: Date
- state: String
+ getters
+ setters
Payment
- id: Number
+ getters
+ setters