apply coupon discount

This commit is contained in:
2025-11-09 21:58:56 +03:00
parent b327d16260
commit 4389d267d4
8 changed files with 160 additions and 103 deletions

View File

@@ -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`;

View File

@@ -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;