@almatar/smart-booking-dashboard 0.0.1 → 0.0.2-alpha.2
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/components/action-card/action-card.component.mjs +3 -3
- package/esm2022/lib/components/add-note-dialog/add-note-dialog.component.mjs +3 -3
- package/esm2022/lib/components/almatar-aside/aside-back-button.service.mjs +24 -0
- package/esm2022/lib/components/almatar-aside/aside.component.mjs +123 -0
- package/esm2022/lib/components/booking-input/booking-input.component.mjs +4 -3
- package/esm2022/lib/components/cancel-dialog/cancel-dialog.component.mjs +53 -4
- package/esm2022/lib/components/data-search/data-search.component.mjs +3 -3
- package/esm2022/lib/components/hotel-cancel/almatar-hotel-auto-cancellation.component.mjs +544 -0
- package/esm2022/lib/components/hotel-cancel/components/almatar-hotel-auto-cancellation-refund-method/almatar-hotel-auto-cancellation-refund-method.component.mjs +43 -0
- package/esm2022/lib/components/hotel-cancel/components/almatar-hotel-auto-cancellation-refund-summary/almatar-hotel-auto-cancellation-refund-summary.component.mjs +296 -0
- package/esm2022/lib/components/hotel-cancel/components/almatar-hotel-auto-cancellation-select-rooms/almatar-hotel-auto-cancellation-select-rooms.component.mjs +88 -0
- package/esm2022/lib/components/hotel-cancel/components/almatar-hotel-auto-cancellation-select-rooms/components/almatar-hotel-auto-cancellation-non-refundable-room/almatar-hotel-auto-cancellation-non-refundable-room.component.mjs +242 -0
- package/esm2022/lib/components/hotel-cancel/components/almatar-hotel-auto-cancellation-select-rooms/components/almatar-hotel-auto-cancellation-refundable-room/almatar-hotel-auto-cancellation-refundable-room.component.mjs +48 -0
- package/esm2022/lib/components/hotel-cancel/components/hotel-content/hotel-content.component.mjs +129 -0
- package/esm2022/lib/components/hotel-cancel/components/hotel-refund-method-selector/hotel-refund-method-selector.component.mjs +321 -0
- package/esm2022/lib/components/hotel-cancel/components/result-overlay/result-overlay.component.mjs +52 -0
- package/esm2022/lib/components/hotel-cancel/enums/almatar-hotel-auto-cancellation-endpoints.enum.mjs +9 -0
- package/esm2022/lib/components/hotel-cancel/enums/almatar-hotel-auto-cancellation-step.enum.mjs +7 -0
- package/esm2022/lib/components/hotel-cancel/interfaces/i-almatar-hotel-auto-cancellation.interface.mjs +2 -0
- package/esm2022/lib/components/hotel-cancel/services/almatar-hotel-auto-cancellation-endpoints.service.mjs +448 -0
- package/esm2022/lib/components/hotel-cancel/services/almatar-hotel-auto-cancellation.service.mjs +55 -0
- package/esm2022/lib/components/hotel-itinerary-card/hotel-itinerary-card.component.mjs +48 -0
- package/esm2022/lib/components/result-panel/result-panel.component.mjs +3 -3
- package/esm2022/lib/components/shared/components/confirm-modal/confirm-modal.component.mjs +75 -0
- package/esm2022/lib/components/shared/components/manage-booking-failed-modal/manage-booking-failed-modal.component.mjs +46 -0
- package/esm2022/lib/components/shared/enums/hotel-manage-booking-aside-tab.enum.mjs +9 -0
- package/esm2022/lib/components/shared/interfaces/i-flight-refund-details.mjs +86 -0
- package/esm2022/lib/components/shared/models/cancel-hotel-booking.model.mjs +7 -0
- package/esm2022/lib/components/shared/services/hotel-manage-booking/hotel-manage-booking.service.mjs +27 -0
- package/esm2022/lib/components/shared/services/hotel-manage-booking-endpoints/hotel-manage-booking-endpoints.service.mjs +17 -0
- package/esm2022/lib/config/hotel-actions.config.mjs +21 -1
- package/esm2022/lib/models/booking.types.mjs +73 -2
- package/esm2022/lib/pages/smart-booking-dashboard/smart-booking-dashboard.component.mjs +25 -7
- package/esm2022/lib/services/booking.service.mjs +6 -2
- package/esm2022/lib/shared/components/currency-code-icon/currency-code-icon.component.mjs +35 -0
- package/esm2022/lib/shared/enums/brand-enums.enum.mjs +7 -0
- package/esm2022/lib/shared/environments/environment.mjs +10 -0
- package/esm2022/lib/shared/models/index.mjs +6 -0
- package/esm2022/lib/shared/modules/almatar-icon/almatar-icon.module.mjs +36 -0
- package/esm2022/lib/shared/modules/loader/loader.module.mjs +43 -0
- package/esm2022/lib/shared/pipes/exchange.pipe.mjs +49 -0
- package/esm2022/lib/shared/services/api.service.mjs +42 -0
- package/esm2022/lib/shared/services/shared.service.mjs +34 -0
- package/esm2022/lib/shared/services/translation.service.mjs +61 -0
- package/esm2022/lib/shared/services/webengage-tracking.service.mjs +28 -0
- package/esm2022/lib/shared/store/selectors/currency.selectors.mjs +9 -0
- package/fesm2022/almatar-smart-booking-dashboard.mjs +3278 -180
- package/fesm2022/almatar-smart-booking-dashboard.mjs.map +1 -1
- package/lib/components/almatar-aside/aside-back-button.service.d.ts +11 -0
- package/lib/components/almatar-aside/aside.component.d.ts +47 -0
- package/lib/components/cancel-dialog/cancel-dialog.component.d.ts +7 -0
- package/lib/components/hotel-cancel/almatar-hotel-auto-cancellation.component.d.ts +97 -0
- package/lib/components/hotel-cancel/components/almatar-hotel-auto-cancellation-refund-method/almatar-hotel-auto-cancellation-refund-method.component.d.ts +25 -0
- package/lib/components/hotel-cancel/components/almatar-hotel-auto-cancellation-refund-summary/almatar-hotel-auto-cancellation-refund-summary.component.d.ts +91 -0
- package/lib/components/hotel-cancel/components/almatar-hotel-auto-cancellation-select-rooms/almatar-hotel-auto-cancellation-select-rooms.component.d.ts +39 -0
- package/lib/components/hotel-cancel/components/almatar-hotel-auto-cancellation-select-rooms/components/almatar-hotel-auto-cancellation-non-refundable-room/almatar-hotel-auto-cancellation-non-refundable-room.component.d.ts +44 -0
- package/lib/components/hotel-cancel/components/almatar-hotel-auto-cancellation-select-rooms/components/almatar-hotel-auto-cancellation-refundable-room/almatar-hotel-auto-cancellation-refundable-room.component.d.ts +19 -0
- package/lib/components/hotel-cancel/components/hotel-content/hotel-content.component.d.ts +38 -0
- package/lib/components/hotel-cancel/components/hotel-refund-method-selector/hotel-refund-method-selector.component.d.ts +142 -0
- package/lib/components/hotel-cancel/components/result-overlay/result-overlay.component.d.ts +23 -0
- package/lib/components/hotel-cancel/enums/almatar-hotel-auto-cancellation-endpoints.enum.d.ts +7 -0
- package/lib/components/hotel-cancel/enums/almatar-hotel-auto-cancellation-step.enum.d.ts +5 -0
- package/lib/components/hotel-cancel/interfaces/i-almatar-hotel-auto-cancellation.interface.d.ts +252 -0
- package/lib/components/hotel-cancel/services/almatar-hotel-auto-cancellation-endpoints.service.d.ts +82 -0
- package/lib/components/hotel-cancel/services/almatar-hotel-auto-cancellation.service.d.ts +21 -0
- package/lib/components/hotel-itinerary-card/hotel-itinerary-card.component.d.ts +16 -0
- package/lib/components/shared/components/confirm-modal/confirm-modal.component.d.ts +17 -0
- package/lib/components/shared/components/manage-booking-failed-modal/manage-booking-failed-modal.component.d.ts +10 -0
- package/lib/components/shared/enums/hotel-manage-booking-aside-tab.enum.d.ts +7 -0
- package/lib/components/shared/interfaces/i-flight-refund-details.d.ts +73 -0
- package/lib/components/shared/models/cancel-hotel-booking.model.d.ts +6 -0
- package/lib/components/shared/services/hotel-manage-booking/hotel-manage-booking.service.d.ts +11 -0
- package/lib/components/shared/services/hotel-manage-booking-endpoints/hotel-manage-booking-endpoints.service.d.ts +7 -0
- package/lib/models/booking.types.d.ts +28 -0
- package/lib/pages/smart-booking-dashboard/smart-booking-dashboard.component.d.ts +1 -0
- package/lib/shared/components/currency-code-icon/currency-code-icon.component.d.ts +13 -0
- package/lib/shared/enums/brand-enums.enum.d.ts +5 -0
- package/lib/shared/environments/environment.d.ts +7 -0
- package/lib/shared/models/index.d.ts +11 -0
- package/lib/shared/modules/almatar-icon/almatar-icon.module.d.ts +13 -0
- package/lib/shared/modules/loader/loader.module.d.ts +13 -0
- package/lib/shared/pipes/exchange.pipe.d.ts +17 -0
- package/lib/shared/services/api.service.d.ts +43 -0
- package/lib/shared/services/shared.service.d.ts +12 -0
- package/lib/shared/services/translation.service.d.ts +17 -0
- package/lib/shared/services/webengage-tracking.service.d.ts +8 -0
- package/lib/shared/store/selectors/currency.selectors.d.ts +2 -0
- package/package.json +2 -19
- package/LICENSE +0 -21
- package/README.md +0 -132
package/lib/components/hotel-cancel/interfaces/i-almatar-hotel-auto-cancellation.interface.d.ts
ADDED
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
export interface IAlmatarHotelAutoCancellationRoom {
|
|
2
|
+
packageId: string;
|
|
3
|
+
roomName: string;
|
|
4
|
+
roomType?: string;
|
|
5
|
+
mealPlan?: string;
|
|
6
|
+
isRefundable?: boolean;
|
|
7
|
+
isSelected?: boolean;
|
|
8
|
+
nights?: number;
|
|
9
|
+
roomAmount: number;
|
|
10
|
+
cancellationFee: number;
|
|
11
|
+
refundAmount: number;
|
|
12
|
+
cancellationDate?: string;
|
|
13
|
+
currentCancellation?: boolean;
|
|
14
|
+
route?: string;
|
|
15
|
+
bedType?: string;
|
|
16
|
+
roomView?: string;
|
|
17
|
+
roomBasis?: string;
|
|
18
|
+
refundability?: boolean;
|
|
19
|
+
refundableUntil?: string;
|
|
20
|
+
cancelledBefore?: boolean;
|
|
21
|
+
roomId?: string | undefined;
|
|
22
|
+
manualRefundRequest?: boolean;
|
|
23
|
+
fee?: number;
|
|
24
|
+
adultsNum?: number;
|
|
25
|
+
childrenNum?: number;
|
|
26
|
+
infantsNum?: number;
|
|
27
|
+
passengerName?: string;
|
|
28
|
+
isCancelled?: boolean;
|
|
29
|
+
supplier?: string;
|
|
30
|
+
}
|
|
31
|
+
export interface IAlmatarHotelAutoCancellationPackageRoom {
|
|
32
|
+
roomId: string;
|
|
33
|
+
roomName: string;
|
|
34
|
+
roomType?: string;
|
|
35
|
+
bedType?: string;
|
|
36
|
+
roomBasis?: string;
|
|
37
|
+
}
|
|
38
|
+
export interface IAlmatarHotelAutoCancellationPackage {
|
|
39
|
+
packageId: string;
|
|
40
|
+
packageName: string;
|
|
41
|
+
boardBasis?: string;
|
|
42
|
+
isRefundable?: boolean;
|
|
43
|
+
isSelected?: boolean;
|
|
44
|
+
refundability?: boolean;
|
|
45
|
+
refundableUntil?: string;
|
|
46
|
+
rooms: IAlmatarHotelAutoCancellationPackageRoom[];
|
|
47
|
+
roomAmount: number;
|
|
48
|
+
cancellationFee: number;
|
|
49
|
+
refundAmount: number;
|
|
50
|
+
manualRefundRequest?: boolean;
|
|
51
|
+
cancelledBefore?: boolean;
|
|
52
|
+
cancellationPolicies?: IBookingPackageCancellationPolicy[];
|
|
53
|
+
fee?: number;
|
|
54
|
+
cancellationPoliciesRemarks?: {
|
|
55
|
+
mandatory?: string;
|
|
56
|
+
optional?: string;
|
|
57
|
+
};
|
|
58
|
+
isCancelled?: boolean;
|
|
59
|
+
supplier?: string;
|
|
60
|
+
}
|
|
61
|
+
export interface IBookingPackageRoom {
|
|
62
|
+
roomId: string;
|
|
63
|
+
roomName: string;
|
|
64
|
+
roomType: string;
|
|
65
|
+
roomView: string;
|
|
66
|
+
roomBasis: string;
|
|
67
|
+
bedType: string;
|
|
68
|
+
adultsNum?: number;
|
|
69
|
+
childrenNum?: number;
|
|
70
|
+
infantsNum?: number;
|
|
71
|
+
passengers?: {
|
|
72
|
+
name?: string;
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
export interface IBookingPackageCancellationPolicy {
|
|
76
|
+
fromDate: string;
|
|
77
|
+
toDate: string;
|
|
78
|
+
penaltyType: string;
|
|
79
|
+
penaltyValue: number;
|
|
80
|
+
}
|
|
81
|
+
export interface IBookingPackage {
|
|
82
|
+
id: string;
|
|
83
|
+
rooms: IBookingPackageRoom[];
|
|
84
|
+
cancellationPolicies: IBookingPackageCancellationPolicy[];
|
|
85
|
+
isRefundable: boolean;
|
|
86
|
+
refundableUntil: string;
|
|
87
|
+
refundability: boolean;
|
|
88
|
+
cancellationPoliciesRemarks?: {
|
|
89
|
+
mandatory?: string;
|
|
90
|
+
optional?: string;
|
|
91
|
+
};
|
|
92
|
+
isCancelled?: boolean;
|
|
93
|
+
supplier?: string;
|
|
94
|
+
}
|
|
95
|
+
export interface IAlmatarHotelAutoCancellationHotelInfo {
|
|
96
|
+
hotelName: string;
|
|
97
|
+
hotelImage?: string;
|
|
98
|
+
checkIn: any;
|
|
99
|
+
checkOut: any;
|
|
100
|
+
totalRooms: number;
|
|
101
|
+
nights: number;
|
|
102
|
+
checkInTime: string;
|
|
103
|
+
checkOutTime: string;
|
|
104
|
+
}
|
|
105
|
+
export interface IAlmatarHotelAutoCancellationRefundSummary {
|
|
106
|
+
totalPaid: number;
|
|
107
|
+
totalRefund: number;
|
|
108
|
+
rooms: IAlmatarHotelAutoCancellationRoom[];
|
|
109
|
+
packages?: IAlmatarHotelAutoCancellationRefundPackage[];
|
|
110
|
+
summaries?: IRefundSummaryItem[];
|
|
111
|
+
payout?: IRefundPayout;
|
|
112
|
+
totals?: any;
|
|
113
|
+
totalFees?: number;
|
|
114
|
+
coupon?: number;
|
|
115
|
+
giftsTotal?: number;
|
|
116
|
+
giftsDetails?: IGift[];
|
|
117
|
+
serviceFee?: number;
|
|
118
|
+
surcharge?: number;
|
|
119
|
+
goldenGift?: boolean;
|
|
120
|
+
previousRooms?: IRefundPreviousRoom[];
|
|
121
|
+
}
|
|
122
|
+
export interface IRefundRoomPax {
|
|
123
|
+
adults: number;
|
|
124
|
+
children: number;
|
|
125
|
+
total: number;
|
|
126
|
+
}
|
|
127
|
+
export interface IAlmatarHotelAutoCancellationRefundPackageRoom {
|
|
128
|
+
roomId: string;
|
|
129
|
+
roomName: string;
|
|
130
|
+
basis?: string;
|
|
131
|
+
nights?: number;
|
|
132
|
+
pax?: IRefundRoomPax;
|
|
133
|
+
adults?: number;
|
|
134
|
+
children?: number;
|
|
135
|
+
}
|
|
136
|
+
export interface IGroupedRoom {
|
|
137
|
+
roomName: string;
|
|
138
|
+
count: number;
|
|
139
|
+
nights?: number;
|
|
140
|
+
adults?: number;
|
|
141
|
+
basis?: string;
|
|
142
|
+
}
|
|
143
|
+
export interface IAlmatarHotelAutoCancellationRefundPackage {
|
|
144
|
+
packageId: string;
|
|
145
|
+
packageName: string;
|
|
146
|
+
rooms: IAlmatarHotelAutoCancellationRefundPackageRoom[];
|
|
147
|
+
amount: number;
|
|
148
|
+
fee: number;
|
|
149
|
+
serviceFee: number;
|
|
150
|
+
refund: number;
|
|
151
|
+
refundable: boolean;
|
|
152
|
+
route?: string;
|
|
153
|
+
cancellationDate?: string;
|
|
154
|
+
cancelledBefore?: boolean;
|
|
155
|
+
}
|
|
156
|
+
export interface IRefundDetailsApiResponse {
|
|
157
|
+
status: number;
|
|
158
|
+
data: IRefundDetailsData;
|
|
159
|
+
errors: any;
|
|
160
|
+
}
|
|
161
|
+
export interface IRefundDetailsData {
|
|
162
|
+
bookingId: number;
|
|
163
|
+
currency: string;
|
|
164
|
+
status: string;
|
|
165
|
+
message: string;
|
|
166
|
+
flags: IRefundFlags;
|
|
167
|
+
selection: IRefundSelection;
|
|
168
|
+
totals: IRefundTotals;
|
|
169
|
+
previous: IRefundPreviousRoom[];
|
|
170
|
+
current: IRefundCurrent;
|
|
171
|
+
payout: IRefundPayout;
|
|
172
|
+
summaries: IRefundSummaryItem[];
|
|
173
|
+
gifts: IGift[];
|
|
174
|
+
}
|
|
175
|
+
export interface IRefundFlags {
|
|
176
|
+
refundable: boolean;
|
|
177
|
+
partial: boolean;
|
|
178
|
+
goldenGift: boolean;
|
|
179
|
+
}
|
|
180
|
+
export interface IRefundSelection {
|
|
181
|
+
packageIds: string[];
|
|
182
|
+
}
|
|
183
|
+
export interface IRefundTotals {
|
|
184
|
+
paid: number;
|
|
185
|
+
beforeCoupon: number;
|
|
186
|
+
roomsBooked: number;
|
|
187
|
+
coupon: number;
|
|
188
|
+
gifts: number;
|
|
189
|
+
serviceFee: number;
|
|
190
|
+
wallet: number;
|
|
191
|
+
card: number;
|
|
192
|
+
tabby: number;
|
|
193
|
+
tamara: number;
|
|
194
|
+
mokafa: number;
|
|
195
|
+
qitaf: number;
|
|
196
|
+
}
|
|
197
|
+
export interface IRefundPreviousRoom {
|
|
198
|
+
packageId: string;
|
|
199
|
+
roomName: string;
|
|
200
|
+
amount: number;
|
|
201
|
+
fee: number;
|
|
202
|
+
refunded: number;
|
|
203
|
+
cancelledAt: string;
|
|
204
|
+
roomId?: string | undefined;
|
|
205
|
+
nights?: any;
|
|
206
|
+
}
|
|
207
|
+
export interface IRefundCurrentRoom {
|
|
208
|
+
packageId: string;
|
|
209
|
+
roomName: string;
|
|
210
|
+
amount: number;
|
|
211
|
+
fee: number;
|
|
212
|
+
refund: number;
|
|
213
|
+
refundable: boolean;
|
|
214
|
+
route: string;
|
|
215
|
+
roomId?: string | undefined;
|
|
216
|
+
nights?: any;
|
|
217
|
+
}
|
|
218
|
+
export interface IRefundCurrent {
|
|
219
|
+
rooms: IRefundCurrentRoom[];
|
|
220
|
+
amount: number;
|
|
221
|
+
fee: number;
|
|
222
|
+
surcharge: number;
|
|
223
|
+
refund: number;
|
|
224
|
+
}
|
|
225
|
+
export interface IRefundPayout {
|
|
226
|
+
alreadyRefunded: number;
|
|
227
|
+
current: number;
|
|
228
|
+
afterThis: number;
|
|
229
|
+
feesTotal: number;
|
|
230
|
+
wallet: number;
|
|
231
|
+
card: number;
|
|
232
|
+
tabby: number;
|
|
233
|
+
tamara: number;
|
|
234
|
+
loyaltyToWallet: number;
|
|
235
|
+
note: string | null;
|
|
236
|
+
}
|
|
237
|
+
export interface IRefundSummaryItem {
|
|
238
|
+
code: string;
|
|
239
|
+
label: string;
|
|
240
|
+
paid: number;
|
|
241
|
+
refund: number;
|
|
242
|
+
refundable: boolean;
|
|
243
|
+
gateway?: string;
|
|
244
|
+
}
|
|
245
|
+
export interface IGift {
|
|
246
|
+
id: number;
|
|
247
|
+
key: string | null;
|
|
248
|
+
name: string;
|
|
249
|
+
amount: number;
|
|
250
|
+
refundable: boolean;
|
|
251
|
+
refund: number;
|
|
252
|
+
}
|
package/lib/components/hotel-cancel/services/almatar-hotel-auto-cancellation-endpoints.service.d.ts
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { IAlmatarHotelAutoCancellationRoom, IAlmatarHotelAutoCancellationRefundSummary, IAlmatarHotelAutoCancellationRefundPackage, IRefundDetailsApiResponse, IRefundDetailsData } from '../interfaces/i-almatar-hotel-auto-cancellation.interface';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export interface IRefundDetailsRequest {
|
|
5
|
+
bookingId: string;
|
|
6
|
+
product: 'hotels';
|
|
7
|
+
packageIds: string[];
|
|
8
|
+
}
|
|
9
|
+
export interface IProcessCancellationRequest {
|
|
10
|
+
bookingId: string;
|
|
11
|
+
product: 'hotels';
|
|
12
|
+
packageIds: string[];
|
|
13
|
+
preferredPaymentMethod?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface IProcessNonRefundableCancellationRequest {
|
|
16
|
+
bookingId: string;
|
|
17
|
+
product: 'hotels';
|
|
18
|
+
packageIds: string[];
|
|
19
|
+
preferredPaymentMethod: string;
|
|
20
|
+
processedMode: 'auto';
|
|
21
|
+
language: string;
|
|
22
|
+
attachmentUrl: string;
|
|
23
|
+
}
|
|
24
|
+
export interface IAutoCancellationProcessResponse {
|
|
25
|
+
status: number;
|
|
26
|
+
data: {
|
|
27
|
+
error: string;
|
|
28
|
+
message: string;
|
|
29
|
+
bookingId: number;
|
|
30
|
+
preferredPaymentMethod: string;
|
|
31
|
+
isWhatsApp?: boolean;
|
|
32
|
+
cancel: {
|
|
33
|
+
status: string;
|
|
34
|
+
packageIds: string[];
|
|
35
|
+
};
|
|
36
|
+
refund: {
|
|
37
|
+
status: string;
|
|
38
|
+
bookingStatus: string;
|
|
39
|
+
amount: number;
|
|
40
|
+
currency: string;
|
|
41
|
+
breakdown: {
|
|
42
|
+
wallet: number;
|
|
43
|
+
mokafa: number;
|
|
44
|
+
qitaf: number;
|
|
45
|
+
card: number;
|
|
46
|
+
tabby: number;
|
|
47
|
+
tamara: number;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
errors: any;
|
|
52
|
+
}
|
|
53
|
+
export declare class AlmatarHotelAutoCancellationEndpointsService {
|
|
54
|
+
private readonly api;
|
|
55
|
+
private readonly route;
|
|
56
|
+
private readonly hotelManageBookingService;
|
|
57
|
+
private readonly _almatarBookingId;
|
|
58
|
+
private readonly _confirmationNumber;
|
|
59
|
+
private readonly _isNusukFlow;
|
|
60
|
+
private readonly _selectedPackageIds;
|
|
61
|
+
readonly almatarBookingId: import("@angular/core").Signal<string>;
|
|
62
|
+
readonly confirmationNumber: import("@angular/core").Signal<string>;
|
|
63
|
+
readonly isNusukFlow: import("@angular/core").Signal<boolean>;
|
|
64
|
+
constructor();
|
|
65
|
+
private initializeBookingData;
|
|
66
|
+
getRefundDetails(packageIds?: string[]): Observable<IRefundDetailsApiResponse>;
|
|
67
|
+
mapApiResponseToRooms(data: IRefundDetailsData): IAlmatarHotelAutoCancellationRoom[];
|
|
68
|
+
mapApiResponseToRefundSummary(data: IRefundDetailsData): IAlmatarHotelAutoCancellationRefundSummary;
|
|
69
|
+
getAllPackages(data: IRefundDetailsData): IAlmatarHotelAutoCancellationRefundPackage[];
|
|
70
|
+
getAllRooms(data: IRefundDetailsData): IAlmatarHotelAutoCancellationRoom[];
|
|
71
|
+
processAutoCancellation(packageIds: string[], refundOption?: string): Observable<IAutoCancellationProcessResponse>;
|
|
72
|
+
processNonRefundableCancellation(packageId: string, attachmentUrl: string, language?: string): Observable<IAutoCancellationProcessResponse>;
|
|
73
|
+
calculateLocalRefundSummary(rooms: IAlmatarHotelAutoCancellationRoom[]): IAlmatarHotelAutoCancellationRefundSummary;
|
|
74
|
+
getSelectedPackageIds(): string[];
|
|
75
|
+
clearSelectedPackageIds(): void;
|
|
76
|
+
private getEntrySourceDeviceBrand;
|
|
77
|
+
private getEntrySource;
|
|
78
|
+
private getDevice;
|
|
79
|
+
private handleError;
|
|
80
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AlmatarHotelAutoCancellationEndpointsService, never>;
|
|
81
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AlmatarHotelAutoCancellationEndpointsService>;
|
|
82
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { AlmatarHotelAutoCancellationStepEnum } from '../enums/almatar-hotel-auto-cancellation-step.enum';
|
|
2
|
+
import { IAlmatarHotelAutoCancellationRoom, IAlmatarHotelAutoCancellationHotelInfo, IAlmatarHotelAutoCancellationRefundSummary } from '../interfaces/i-almatar-hotel-auto-cancellation.interface';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class AlmatarHotelAutoCancellationService {
|
|
5
|
+
readonly currentStep: import("@angular/core").WritableSignal<AlmatarHotelAutoCancellationStepEnum>;
|
|
6
|
+
readonly selectedRooms: import("@angular/core").WritableSignal<IAlmatarHotelAutoCancellationRoom[]>;
|
|
7
|
+
readonly hotelInfo: import("@angular/core").WritableSignal<IAlmatarHotelAutoCancellationHotelInfo>;
|
|
8
|
+
readonly refundSummary: import("@angular/core").WritableSignal<IAlmatarHotelAutoCancellationRefundSummary>;
|
|
9
|
+
readonly selectedRoomsCount: import("@angular/core").Signal<number>;
|
|
10
|
+
readonly hasSelectedRooms: import("@angular/core").Signal<boolean>;
|
|
11
|
+
readonly totalRefundAmount: import("@angular/core").Signal<number>;
|
|
12
|
+
setCurrentStep(step: AlmatarHotelAutoCancellationStepEnum): void;
|
|
13
|
+
setSelectedRooms(rooms: IAlmatarHotelAutoCancellationRoom[]): void;
|
|
14
|
+
setHotelInfo(info: IAlmatarHotelAutoCancellationHotelInfo): void;
|
|
15
|
+
setRefundSummary(summary: IAlmatarHotelAutoCancellationRefundSummary): void;
|
|
16
|
+
toggleRoomSelection(packageId: string): void;
|
|
17
|
+
calculateRefundSummary(rooms: IAlmatarHotelAutoCancellationRoom[], totalPaid: number): IAlmatarHotelAutoCancellationRefundSummary;
|
|
18
|
+
reset(): void;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AlmatarHotelAutoCancellationService, never>;
|
|
20
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AlmatarHotelAutoCancellationService>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class SbdHotelItineraryCardComponent {
|
|
3
|
+
data: import("@angular/core").InputSignal<any>;
|
|
4
|
+
verified: import("@angular/core").InputSignal<boolean>;
|
|
5
|
+
private bi;
|
|
6
|
+
hotelInfo: import("@angular/core").Signal<any>;
|
|
7
|
+
checkinCheckout: import("@angular/core").Signal<any>;
|
|
8
|
+
roomInfo: import("@angular/core").Signal<any>;
|
|
9
|
+
passengers: import("@angular/core").Signal<any[]>;
|
|
10
|
+
payment: import("@angular/core").Signal<any>;
|
|
11
|
+
readonly typeLabel: Record<string, string>;
|
|
12
|
+
fmtTime(dt: string): string;
|
|
13
|
+
fmtShortDate(dt: string): string;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SbdHotelItineraryCardComponent, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SbdHotelItineraryCardComponent, "app-sbd-hotel-itinerary-card", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "verified": { "alias": "verified"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ConfirmModalComponent {
|
|
4
|
+
visible: boolean;
|
|
5
|
+
title: string;
|
|
6
|
+
message: string;
|
|
7
|
+
confirmLabel: string;
|
|
8
|
+
cancelLabel: string;
|
|
9
|
+
visibleChange: EventEmitter<boolean>;
|
|
10
|
+
confirm: EventEmitter<void>;
|
|
11
|
+
cancel: EventEmitter<void>;
|
|
12
|
+
onConfirm(): void;
|
|
13
|
+
onCancel(): void;
|
|
14
|
+
private close;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmModalComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ConfirmModalComponent, "confirm-modal", never, { "visible": { "alias": "visible"; "required": false; }; "title": { "alias": "title"; "required": false; }; "message": { "alias": "message"; "required": false; }; "confirmLabel": { "alias": "confirmLabel"; "required": false; }; "cancelLabel": { "alias": "cancelLabel"; "required": false; }; }, { "visibleChange": "visibleChange"; "confirm": "confirm"; "cancel": "cancel"; }, never, never, true, never>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ManageBookingFailedModalComponent {
|
|
4
|
+
visible: boolean;
|
|
5
|
+
message: string;
|
|
6
|
+
visibleChange: EventEmitter<boolean>;
|
|
7
|
+
close(): void;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ManageBookingFailedModalComponent, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ManageBookingFailedModalComponent, "manage-booking-failed-modal", never, { "visible": { "alias": "visible"; "required": false; }; "message": { "alias": "message"; "required": false; }; }, { "visibleChange": "visibleChange"; }, never, never, true, never>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
export interface IRefundDetailsData {
|
|
2
|
+
bookingId?: string | number;
|
|
3
|
+
refundAmount?: number;
|
|
4
|
+
totalRefundAmount?: number;
|
|
5
|
+
walletRefundAmount?: number;
|
|
6
|
+
totalCardRefundAmount?: number;
|
|
7
|
+
totalLoyaltyPointsRefundAmount?: number;
|
|
8
|
+
totalLoyaltyPoints?: number;
|
|
9
|
+
currency?: string;
|
|
10
|
+
refundMethod?: RefundPreferredMethod | string;
|
|
11
|
+
paymentGateway?: PaymentGatewayCode | LoyaltyPaymentType | string;
|
|
12
|
+
loyaltyPaymentType?: LoyaltyPaymentType | string;
|
|
13
|
+
isFullWalletRefundAllowed?: boolean;
|
|
14
|
+
paymentMethodCustomerUsed?: string;
|
|
15
|
+
isRefundable?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export type RefundPreferredMethod = 'ORIGINAL_PAYMENT_METHOD' | 'WALLET' | 'wallet' | 'originalPaymentMethod' | 'BANK_TRANSFER' | 'LOYALTY_POINTS';
|
|
18
|
+
export type LoyaltyPaymentType = 'ALMATAR_POINTS' | 'ALFURSAN' | 'AlRajhiMokafaa' | 'Qitaf' | 'Wala';
|
|
19
|
+
export declare enum PaymentGatewayCode {
|
|
20
|
+
MADA = "MADA",
|
|
21
|
+
VISA = "VISA",
|
|
22
|
+
MASTERCARD = "MASTERCARD",
|
|
23
|
+
AMEX = "AMEX",
|
|
24
|
+
APPLE_PAY = "APPLE_PAY",
|
|
25
|
+
AlRajhiMokafaa = "RAJHI",
|
|
26
|
+
Qitaf = "QITAF",
|
|
27
|
+
Wala = "WALA",
|
|
28
|
+
Tamara = "TM",
|
|
29
|
+
Tabby = "TB",
|
|
30
|
+
Stc = "STC",
|
|
31
|
+
CH = "CH",
|
|
32
|
+
HP = "HP",
|
|
33
|
+
MF = "MF",
|
|
34
|
+
WT = "WT",
|
|
35
|
+
TM = "TM",
|
|
36
|
+
TB = "TB",
|
|
37
|
+
RAJHI = "RAJHI",
|
|
38
|
+
STC = "STC",
|
|
39
|
+
PPB = "PPB",
|
|
40
|
+
PP = "PP",
|
|
41
|
+
TAMAM = "TAMAM",
|
|
42
|
+
QITAF = "QITAF",
|
|
43
|
+
WALA = "WALA"
|
|
44
|
+
}
|
|
45
|
+
/** Labels for `paymentMethodCustomerUsed` gateway codes returned by the backend. */
|
|
46
|
+
export declare const PAYMENT_GATEWAY_LABELS: Record<string, {
|
|
47
|
+
en: string;
|
|
48
|
+
ar: string;
|
|
49
|
+
}>;
|
|
50
|
+
/** Gateway codes that refund to an installment plan rather than the original card. */
|
|
51
|
+
export declare const INSTALLMENT_GATEWAY_CODES: string[];
|
|
52
|
+
/** Gateway codes that refund to a loyalty-program account rather than the original card. */
|
|
53
|
+
export declare const LOYALTY_GATEWAY_CODES: string[];
|
|
54
|
+
/**
|
|
55
|
+
* Internal payment-processor/gateway names, never customer-recognizable
|
|
56
|
+
* brands — must not be surfaced verbatim (e.g. a card refund processed
|
|
57
|
+
* through Hyperpay must read as "Card"/"Original Payment Method", never
|
|
58
|
+
* "Hyperpay"). Callers fall back to a generic label whenever the normalized
|
|
59
|
+
* lookup returns ''.
|
|
60
|
+
*/
|
|
61
|
+
export declare const INTERNAL_GATEWAY_CODES: string[];
|
|
62
|
+
/**
|
|
63
|
+
* Result/confirmation-screen-only override: these gateways process card
|
|
64
|
+
* payments through Mada — shown specifically as "Mada Card" instead of
|
|
65
|
+
* falling back to the generic "Original Payment Method" label used
|
|
66
|
+
* everywhere else `INTERNAL_GATEWAY_CODES` applies.
|
|
67
|
+
*/
|
|
68
|
+
export declare const MADA_GATEWAY_CODES: string[];
|
|
69
|
+
/**
|
|
70
|
+
* Normalizes a raw payment gateway code from the backend to a standardized code.
|
|
71
|
+
* Handles both uppercase codes (e.g. 'HP') and labels (e.g. 'Hyperpay').
|
|
72
|
+
*/
|
|
73
|
+
export declare function normalizePaymentGatewayCode(raw?: string | null): PaymentGatewayCode | '';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Observable, BehaviorSubject } from 'rxjs';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class HotelManageBookingService {
|
|
4
|
+
private activeAsideTab;
|
|
5
|
+
selectedHotelBooking: BehaviorSubject<any>;
|
|
6
|
+
getActiveAsideTab(): string;
|
|
7
|
+
setActiveAsideTab(tab: string): void;
|
|
8
|
+
getBookingDetails(bookingId: string): Observable<any>;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HotelManageBookingService, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<HotelManageBookingService>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class HotelManageBookingEndpointsService {
|
|
4
|
+
cancelBookingRequest(payload: any): Observable<any>;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HotelManageBookingEndpointsService, never>;
|
|
6
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<HotelManageBookingEndpointsService>;
|
|
7
|
+
}
|
|
@@ -1,6 +1,34 @@
|
|
|
1
|
+
import { IBookingPackage } from '../components/hotel-cancel/interfaces/i-almatar-hotel-auto-cancellation.interface';
|
|
1
2
|
export type ProductType = 'flight' | 'hotel';
|
|
2
3
|
export type BookingStatus = 'idle' | 'loading' | 'success' | 'error';
|
|
3
4
|
export interface BookingResponse {
|
|
4
5
|
data: any;
|
|
5
6
|
elapsedMs: number;
|
|
6
7
|
}
|
|
8
|
+
export interface IHotelBookingData {
|
|
9
|
+
hotelId?: string | number;
|
|
10
|
+
bookingId?: string | number;
|
|
11
|
+
hotelName?: string;
|
|
12
|
+
coverImage?: string;
|
|
13
|
+
dateFrom?: string;
|
|
14
|
+
dateTo?: string;
|
|
15
|
+
from?: {
|
|
16
|
+
_i?: string;
|
|
17
|
+
};
|
|
18
|
+
to?: {
|
|
19
|
+
_i?: string;
|
|
20
|
+
};
|
|
21
|
+
packages?: IBookingPackage[];
|
|
22
|
+
rooms?: number;
|
|
23
|
+
numberOfNights?: number;
|
|
24
|
+
nightNumber?: number;
|
|
25
|
+
checkInTime?: string;
|
|
26
|
+
checkOutTime?: string;
|
|
27
|
+
price?: number;
|
|
28
|
+
data?: any;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Maps raw API response to IHotelBookingData interface
|
|
32
|
+
* This function handles the actual API response format from the booking endpoint
|
|
33
|
+
*/
|
|
34
|
+
export declare function mapToHotelBookingData(apiResponse: any): IHotelBookingData | null;
|
|
@@ -8,6 +8,7 @@ export declare class SmartBookingDashboardComponent {
|
|
|
8
8
|
bookingStatus: import("@angular/core").WritableSignal<"error" | "idle" | "loading" | "success">;
|
|
9
9
|
bookingData: import("@angular/core").WritableSignal<any>;
|
|
10
10
|
cancelDialogOpen: import("@angular/core").WritableSignal<boolean>;
|
|
11
|
+
hotelAutoCancelDialogOpen: import("@angular/core").WritableSignal<boolean>;
|
|
11
12
|
actionDialogOpen: import("@angular/core").WritableSignal<boolean>;
|
|
12
13
|
addNoteDialogOpen: import("@angular/core").WritableSignal<boolean>;
|
|
13
14
|
selectedActionKey: import("@angular/core").WritableSignal<string>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare enum CurrencySizeEnum {
|
|
3
|
+
SMALL = "small",
|
|
4
|
+
MEDIUM = "medium",
|
|
5
|
+
LARGE = "large",
|
|
6
|
+
LG = "large"
|
|
7
|
+
}
|
|
8
|
+
export declare class CurrencyCodeIconComponent {
|
|
9
|
+
currencyCode: string;
|
|
10
|
+
size: CurrencySizeEnum;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CurrencyCodeIconComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CurrencyCodeIconComponent, "currency-code-icon", never, { "currencyCode": { "alias": "currencyCode"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, {}, never, never, true, never>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface ICurrency {
|
|
2
|
+
code: string;
|
|
3
|
+
name?: string;
|
|
4
|
+
symbol?: string;
|
|
5
|
+
rate?: number;
|
|
6
|
+
}
|
|
7
|
+
export declare const loyaltyPointsMethods: {
|
|
8
|
+
readonly ALMATAR_POINTS: "ALMATAR_POINTS";
|
|
9
|
+
readonly ALFURSAN: "ALFURSAN";
|
|
10
|
+
};
|
|
11
|
+
export type LoyaltyPointsMethod = typeof loyaltyPointsMethods[keyof typeof loyaltyPointsMethods];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "@angular/common";
|
|
3
|
+
export declare class AlmatarIconComponent {
|
|
4
|
+
name: string;
|
|
5
|
+
size: number;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AlmatarIconComponent, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AlmatarIconComponent, "almatar-icon", never, { "name": { "alias": "name"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, {}, never, never, true, never>;
|
|
8
|
+
}
|
|
9
|
+
export declare class AlmatarIconModule {
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AlmatarIconModule, never>;
|
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AlmatarIconModule, never, [typeof i1.CommonModule, typeof AlmatarIconComponent], [typeof AlmatarIconComponent]>;
|
|
12
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AlmatarIconModule>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "@angular/common";
|
|
3
|
+
export declare class LoaderComponent {
|
|
4
|
+
loading: boolean;
|
|
5
|
+
message: string;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LoaderComponent, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LoaderComponent, "app-loader", never, { "loading": { "alias": "loading"; "required": false; }; "message": { "alias": "message"; "required": false; }; }, {}, never, never, true, never>;
|
|
8
|
+
}
|
|
9
|
+
export declare class LoaderModule {
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LoaderModule, never>;
|
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<LoaderModule, never, [typeof i1.CommonModule, typeof LoaderComponent], [typeof LoaderComponent]>;
|
|
12
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<LoaderModule>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ExchangePipe implements PipeTransform {
|
|
4
|
+
transform(value: number, currency?: string, rate?: number): number;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ExchangePipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<ExchangePipe, "exchange", true>;
|
|
7
|
+
}
|
|
8
|
+
export declare class ExchangeRoundPipe implements PipeTransform {
|
|
9
|
+
transform(value: number, currency?: string, rate?: number): number;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ExchangeRoundPipe, never>;
|
|
11
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<ExchangeRoundPipe, "exchange_round", true>;
|
|
12
|
+
}
|
|
13
|
+
export declare class ExchangePipeModule {
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ExchangePipeModule, never>;
|
|
15
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ExchangePipeModule, never, [typeof ExchangePipe, typeof ExchangeRoundPipe], [typeof ExchangePipe, typeof ExchangeRoundPipe]>;
|
|
16
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ExchangePipeModule>;
|
|
17
|
+
}
|