Co-authored-by: TakahashiNg <83152264+TakahashiNguyen@users.noreply.github.com> Reviewed-on: #39
This commit was merged in pull request #39.
This commit is contained in:
+17
-2
@@ -125,6 +125,7 @@ export interface MenuItemEntity {
|
||||
export interface ShiftEntity {}
|
||||
|
||||
export interface EateryEntity {
|
||||
id: string;
|
||||
ownerId: string;
|
||||
name: string;
|
||||
menuItems: MenuItemEntity[];
|
||||
@@ -150,10 +151,24 @@ export interface deleteMenuItemMutation {
|
||||
export interface CartItemEntity {
|
||||
productId: string;
|
||||
quantity: number;
|
||||
priceAtTimeOfAdding: number;
|
||||
priceAtTimeOfAdding?: number;
|
||||
}
|
||||
|
||||
export interface CartEntity {
|
||||
Id: string;
|
||||
items: CartItemEntity[];
|
||||
}
|
||||
totalAmount: number;
|
||||
paymentQrUrl: string;
|
||||
}
|
||||
|
||||
export interface getCartQuery {
|
||||
getCart: CartEntity;
|
||||
}
|
||||
|
||||
export interface createCartMutation {
|
||||
createCart: string;
|
||||
}
|
||||
|
||||
export interface addMenuItemMutation {
|
||||
addItem: CartEntity;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user