whitelabel-db 1.0.42 → 1.0.44
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/dist/libs/liteapiv3.d.ts +13 -13
- package/dist/libs/liteapiv3.js +2 -1
- package/package.json +1 -1
package/dist/libs/liteapiv3.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export interface HotelsRequestV3 {
|
|
|
11
11
|
checkout: string;
|
|
12
12
|
currency: string;
|
|
13
13
|
guestNationality: string;
|
|
14
|
+
rm?: boolean;
|
|
14
15
|
}
|
|
15
16
|
export interface AvailabilityResultV3 {
|
|
16
17
|
hotelId: string;
|
|
@@ -67,6 +68,7 @@ export interface RateV3 {
|
|
|
67
68
|
}
|
|
68
69
|
export interface RoomTypeV3 {
|
|
69
70
|
roomTypeId: string;
|
|
71
|
+
offerId: string;
|
|
70
72
|
rates: RateV3[];
|
|
71
73
|
supplier: string;
|
|
72
74
|
supplierId: number;
|
|
@@ -78,17 +80,13 @@ export interface FullRateAvailabilityResultV3 {
|
|
|
78
80
|
roomTypes: RoomTypeV3[];
|
|
79
81
|
}
|
|
80
82
|
export interface PrebookRateRequestV3 {
|
|
81
|
-
|
|
82
|
-
hotelId: string;
|
|
83
|
-
occupancies: OccupancyV3[];
|
|
84
|
-
currency: string;
|
|
85
|
-
guestNationality: string;
|
|
86
|
-
checkin: string;
|
|
87
|
-
checkout: string;
|
|
83
|
+
offerId: string;
|
|
88
84
|
payWithStripe?: boolean;
|
|
85
|
+
usePaymentSdk?: boolean;
|
|
89
86
|
}
|
|
90
87
|
export interface PrebookRateV3 {
|
|
91
88
|
prebookId: string;
|
|
89
|
+
offerId: string;
|
|
92
90
|
hotelId: string;
|
|
93
91
|
currency: string;
|
|
94
92
|
termsAndConditions: string;
|
|
@@ -111,24 +109,26 @@ export interface GuestInfoV3 {
|
|
|
111
109
|
guestEmail: string;
|
|
112
110
|
}
|
|
113
111
|
export interface PaymentInfoV3 {
|
|
114
|
-
method
|
|
115
|
-
transactionId
|
|
112
|
+
method?: string;
|
|
113
|
+
transactionId: string;
|
|
116
114
|
}
|
|
117
115
|
export interface UserV3 {
|
|
118
116
|
firstName: string;
|
|
119
117
|
lastName: string;
|
|
120
118
|
email: string;
|
|
121
119
|
}
|
|
122
|
-
export interface
|
|
123
|
-
|
|
120
|
+
export interface GuestsRequestV3 {
|
|
121
|
+
occupancyNumber: number;
|
|
124
122
|
remarks: string;
|
|
125
|
-
|
|
123
|
+
firstName: string;
|
|
124
|
+
lastName: string;
|
|
125
|
+
email: string;
|
|
126
126
|
}
|
|
127
127
|
export interface CheckoutRequestV3 {
|
|
128
128
|
payment: PaymentInfoV3;
|
|
129
129
|
prebookId: string;
|
|
130
130
|
holder: UserV3;
|
|
131
|
-
|
|
131
|
+
guests: GuestsRequestV3[];
|
|
132
132
|
}
|
|
133
133
|
export interface BookedRoomV3 {
|
|
134
134
|
roomType: {
|
package/dist/libs/liteapiv3.js
CHANGED
|
@@ -43,9 +43,10 @@ class LiteApiClientV3 {
|
|
|
43
43
|
}
|
|
44
44
|
getHotelsFullRate(options) {
|
|
45
45
|
return __awaiter(this, void 0, void 0, function* () {
|
|
46
|
+
const query = options.rm ? `rm=${options.rm}` : ``;
|
|
46
47
|
return (yield (0, axios_1.default)({
|
|
47
48
|
method: 'post',
|
|
48
|
-
url: `${baseUrl}/v3.0/hotels/rates`,
|
|
49
|
+
url: `${baseUrl}/v3.0/hotels/rates?${query}`,
|
|
49
50
|
data: options,
|
|
50
51
|
headers: {
|
|
51
52
|
'X-API-Key': this.apiKey,
|