update restaurant details source & add loyalty icon
This commit is contained in:
@@ -91,7 +91,7 @@ export const PATHS = {
|
||||
privacy: path(ROOTS_DEFAULT, "/privacy"),
|
||||
};
|
||||
|
||||
export const RESTAURANT_DETAILS_URL = `${BASE_URL}restaurant/selectLanguage/`;
|
||||
export const RESTAURANT_DETAILS_URL = `${BASE_URL}restaurants/one`;
|
||||
export const PRODUCTS_AND_CATEGORIES_URL = `${BASE_URL}getRestaurantItems/`;
|
||||
export const PRODUCT_DETAILS_URL = `${BASE_URL}getOptionsForItem/`;
|
||||
export const ORDERS_URL = `${BASE_URL}customer_orders`;
|
||||
|
||||
@@ -319,11 +319,8 @@ export interface Translation {
|
||||
locale: string;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// #################################################
|
||||
|
||||
|
||||
export interface CartItem {
|
||||
id: number | string;
|
||||
name: string;
|
||||
@@ -343,7 +340,6 @@ export interface User {
|
||||
role: "admin" | "user";
|
||||
}
|
||||
|
||||
|
||||
export type Locale = "en" | "ar";
|
||||
export type Theme = "light" | "dark";
|
||||
|
||||
@@ -445,6 +441,22 @@ export interface Hours {
|
||||
}
|
||||
|
||||
export interface RestaurantDetails {
|
||||
restautantId: string;
|
||||
restautantName: string;
|
||||
nameAR: string;
|
||||
address: string;
|
||||
addressAR: string;
|
||||
restautantImage: string;
|
||||
restaurant_logo: string;
|
||||
restaurant_cover: string;
|
||||
distance: number;
|
||||
description: string;
|
||||
descriptionAR: string;
|
||||
price_rate: number;
|
||||
vat: number;
|
||||
lat: string;
|
||||
lng: string;
|
||||
hasDinein: boolean;
|
||||
dineIn: boolean;
|
||||
viewMenuOnly: boolean;
|
||||
pickup: boolean;
|
||||
@@ -452,7 +464,45 @@ export interface RestaurantDetails {
|
||||
gift: boolean;
|
||||
toOffice: boolean;
|
||||
toRoom: boolean;
|
||||
restaurant: Restaurant;
|
||||
online_payment: number;
|
||||
online_payment_for: number;
|
||||
is_wallet_payment_enabled: number;
|
||||
is_booking_enabled: number;
|
||||
loyalty_stamp_image: string;
|
||||
loyalty_stamps: number;
|
||||
customer_loyalty_points: number;
|
||||
is_loyalty_enabled: number;
|
||||
package_id: number;
|
||||
deliver_to_office: number;
|
||||
delivery_fees: string;
|
||||
delivery_to_office_fees: string;
|
||||
isCashPaymentEnabled: boolean;
|
||||
banner: Banner[];
|
||||
contact_number: string;
|
||||
menu_url: string;
|
||||
taxes: Tax[];
|
||||
openingTime: string;
|
||||
closingTime: string;
|
||||
isOpened: boolean;
|
||||
isFav: boolean;
|
||||
}
|
||||
|
||||
export interface Banner {
|
||||
restaurant_banner1: string;
|
||||
restaurant_banner2: string;
|
||||
restaurant_banner3: string;
|
||||
}
|
||||
|
||||
export interface Tax {
|
||||
id: number;
|
||||
restorant_id: number;
|
||||
name: string;
|
||||
name_local: string;
|
||||
percentage: string;
|
||||
is_active: number;
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
deleted_at: any;
|
||||
}
|
||||
|
||||
export interface Category {
|
||||
|
||||
Reference in New Issue
Block a user