simpo-component-library 3.6.998 → 3.6.999
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/elements/my-bookings/my-bookings.component.mjs +8 -4
- package/esm2022/lib/sections/appointment-form/appointment-booking/appointment-booking/appointment-booking.component.mjs +46 -13
- package/fesm2022/simpo-component-library.mjs +52 -15
- package/fesm2022/simpo-component-library.mjs.map +1 -1
- package/lib/elements/my-bookings/my-bookings.component.d.ts +1 -1
- package/lib/sections/appointment-form/appointment-booking/appointment-booking/appointment-booking.component.d.ts +17 -3
- package/package.json +1 -1
- package/simpo-component-library-3.6.999.tgz +0 -0
- package/simpo-component-library-3.6.998.tgz +0 -0
|
@@ -9,7 +9,7 @@ interface BookingRow {
|
|
|
9
9
|
bookingDate: string;
|
|
10
10
|
startTime?: string;
|
|
11
11
|
endTime?: string;
|
|
12
|
-
status: 'PENDING' | 'BOOKED' | 'HOLD' | 'COMPLETED' | 'CANCELLED';
|
|
12
|
+
status: 'PENDING' | 'BOOKED' | 'HOLD' | 'ONGOING' | 'COMPLETED' | 'CANCELLED';
|
|
13
13
|
storeName?: string;
|
|
14
14
|
customerDetail?: {
|
|
15
15
|
name: string;
|
|
@@ -45,9 +45,10 @@ export declare class AppointmentBookingComponent extends BaseSection implements
|
|
|
45
45
|
content?: BannerContentModel;
|
|
46
46
|
edit?: boolean;
|
|
47
47
|
/** Set by the admin panel's "Book New Appointment" tool - a staff member creating a booking on
|
|
48
|
-
* a customer's behalf, not a live customer self-service flow.
|
|
49
|
-
*
|
|
50
|
-
*
|
|
48
|
+
* a customer's behalf, not a live customer self-service flow. Still respects every service's
|
|
49
|
+
* mode-capability flags (homeAppointmentAvailable/videoCallAvailable/storeIds) same as the live
|
|
50
|
+
* website, since those are about what a service can actually be delivered as, not who's
|
|
51
|
+
* allowed to book it; only skips the login requirement and customer-account prefill. */
|
|
51
52
|
isAdminBooking?: boolean;
|
|
52
53
|
delete?: boolean;
|
|
53
54
|
customClass?: string;
|
|
@@ -75,6 +76,19 @@ export declare class AppointmentBookingComponent extends BaseSection implements
|
|
|
75
76
|
lineServiceTotal(line: ResolvedLine): number;
|
|
76
77
|
get servicesSubtotal(): number;
|
|
77
78
|
get reviewTotal(): number;
|
|
79
|
+
/** Mirrors appointment_service's DepositUtils#getServiceDepositAmount exactly, so this preview
|
|
80
|
+
* matches what BookingGroupService#holdBooking will actually compute into serviceDepositTotal.
|
|
81
|
+
* Uses priceDetails.totalPrice (tax-inclusive), same as the backend - not servicePrice()'s
|
|
82
|
+
* pre-tax `.price`, which would understate a percent-based deposit. */
|
|
83
|
+
private serviceDepositAmount;
|
|
84
|
+
get depositTotal(): number;
|
|
85
|
+
/** What's actually due at booking time for a live customer (serviceDepositTotal + home visit
|
|
86
|
+
* charge, matching BookingGroupService#holdBooking's totalCollectedAtBooking) - shown as an
|
|
87
|
+
* informational preview for admin bookings too, even though those collect ₹0 online and record
|
|
88
|
+
* the full amount in person later; this still previews the same policy that'll land on the
|
|
89
|
+
* booking's own detail page once created. */
|
|
90
|
+
get dueAtBookingTotal(): number;
|
|
91
|
+
get pendingAtAppointmentTotal(): number;
|
|
78
92
|
get bookingTotal(): number;
|
|
79
93
|
get bookingPaid(): number;
|
|
80
94
|
get bookingDue(): number;
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|