AddFirstBookingDiscount

This commit is contained in:
2026-07-16 12:42:59 +03:30
parent a2d0232113
commit a3d2764a4e
8 changed files with 277 additions and 36 deletions
+13
View File
@@ -38,6 +38,11 @@ export type Business = {
serviceClassesEnabled?: boolean;
autoApproveBookings?: boolean;
tipsEnabled?: boolean;
promoDiscountEnabled?: boolean;
promoDiscountTitle?: string | null;
promoDiscountPercent?: number | null;
promoDiscountCode?: string | null;
promoDiscountMode?: 'first_booking' | 'always';
averageRating?: number | null;
reviewCount?: number;
createdAt?: string;
@@ -57,6 +62,11 @@ export type UpdateBusinessPayload = {
serviceClassesEnabled?: boolean;
autoApproveBookings?: boolean;
tipsEnabled?: boolean;
promoDiscountEnabled?: boolean;
promoDiscountTitle?: string | null;
promoDiscountPercent?: number | null;
promoDiscountCode?: string | null;
promoDiscountMode?: 'first_booking' | 'always';
};
export type ServiceTemplate = {
@@ -122,6 +132,9 @@ export type Booking = {
paymentToken?: string | null;
paymentAmount?: string | null;
loyaltyRedeemed?: boolean;
promoDiscountApplied?: boolean;
promoDiscountPercent?: number | null;
promoDiscountTitle?: string | null;
business?: Business;
businessService?: BusinessService;
serviceClass?: BusinessServiceClass;