References
| summary | ||
| public |
F addProduct(id: number, title: string, price: number) adds a product to the products object |
|
| public |
F formatAddress(customerEmail: string): address returns an customer address in a format appropriate for putting on an envelope |
|
| public |
F productById(productId: number): Object takes a |
|
| public |
F productCost(productId: number): number takes a |
|
| public |
Returns the title of the shop |
|
| public |
returns the total cost of an order which is the sum of all products contained in an order |
|
| public |
F updateProductPrice(id: number, newPrice: number) updates the price of a product in the products object |
|
| public |
Coverts a string to uppercase |
|
| public |
F upperCaseShopTitle(): string Returns the shop title in uppercase. |
|
| public |
An address |
|
| public |
A customer |
|
| public |
An item which is part of an order |
|
| public |
An order |
|
| public |
A product |
|