apply coupon discount
This commit is contained in:
@@ -103,3 +103,4 @@ export const LOGIN_URL = `${API_BASE_URL}login`;
|
||||
export const SEND_OTP_URL = `${API_BASE_URL}sendOtp`;
|
||||
export const CONFIRM_OTP_URL = `${API_BASE_URL}confirmOtp`;
|
||||
export const PAYMENT_CONFIRMATION_URL = `https://menu.fascano.com/payment/confirmation`;
|
||||
export const DISCOUNT_URL = `${BASE_URL}getDiscount`;
|
||||
@@ -342,13 +342,22 @@ export interface User {
|
||||
export type Locale = "en" | "ar";
|
||||
export type Theme = "light" | "dark";
|
||||
|
||||
export interface ApiResponse {
|
||||
export interface ApiResponse<T> {
|
||||
success: boolean;
|
||||
result: any;
|
||||
result: T;
|
||||
message: string;
|
||||
error: any;
|
||||
}
|
||||
|
||||
export interface DiscountResultType {
|
||||
value: number
|
||||
is_on_category: boolean
|
||||
id: number
|
||||
isDiscount: boolean
|
||||
isGift: boolean
|
||||
categories: any[]
|
||||
}
|
||||
|
||||
export interface Restaurant {
|
||||
id: string;
|
||||
name: string;
|
||||
|
||||
Reference in New Issue
Block a user