AddServiceLoyalty

This commit is contained in:
2026-07-15 20:42:03 +03:30
parent 0d4158db4e
commit a2d0232113
6 changed files with 137 additions and 5 deletions
+11
View File
@@ -94,10 +94,20 @@ export type BusinessService = {
price: string;
durationMinutes?: number | null;
isActive: boolean;
loyaltyEnabled?: boolean;
loyaltyEveryN?: number | null;
serviceTemplate?: ServiceTemplate;
classPrices?: BusinessServiceClassPrice[];
};
export type ServiceLoyaltyStatus = {
enabled: boolean;
everyN: number | null;
paidCount: number;
nextIsFree: boolean;
remainingPaidVisits: number | null;
};
export type Booking = {
id: string;
customerId: string;
@@ -111,6 +121,7 @@ export type Booking = {
cancellationReason?: string | null;
paymentToken?: string | null;
paymentAmount?: string | null;
loyaltyRedeemed?: boolean;
business?: Business;
businessService?: BusinessService;
serviceClass?: BusinessServiceClass;