@roomstay/core 0.1.57-3 → 0.1.57-4
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/types/Api/Reservations.type.d.ts +2 -25
- package/package.json +1 -1
- package/dist/node.js.LICENSE.txt +0 -7
- package/dist/types/Analytics/IBigQueryResponse.type.d.ts +0 -24
- package/dist/types/Booking/IBookingCreateErrorResponse.d.ts +0 -11
- package/dist/types/Booking/IBookingStatus.type.d.ts +0 -5
- package/dist/types/Booking/IPrice.type.d.ts +0 -7
- package/dist/types/Fees/IFeeOptions.type.d.ts +0 -6
- package/dist/utils/feeOptionRules.d.ts +0 -0
- package/dist/web.js.LICENSE.txt +0 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EBookingPaymentMethod } from '../Booking/IBookingPayment.type';
|
|
1
|
+
import { EBookingPaymentMethod, IPaymentCheckoutDetails } from '../Booking/IBookingPayment.type';
|
|
2
2
|
import { SimpleItemisedFee } from '../Fees/IFee.type';
|
|
3
3
|
import { RoomNightRateDTO } from './RoomNightRate.type';
|
|
4
4
|
export type ReservationsDTO = {
|
|
@@ -8,30 +8,7 @@ export type ReservationsDTO = {
|
|
|
8
8
|
hotelFrontendId?: string;
|
|
9
9
|
warnings?: string[];
|
|
10
10
|
total?: string;
|
|
11
|
-
payment?:
|
|
12
|
-
planpay?: {
|
|
13
|
-
id: string;
|
|
14
|
-
checkoutWorkflow: {
|
|
15
|
-
type: string;
|
|
16
|
-
id: string;
|
|
17
|
-
scriptUrl: string;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
external?: {
|
|
21
|
-
id: string;
|
|
22
|
-
redirectUrl: string;
|
|
23
|
-
};
|
|
24
|
-
adyen?: {
|
|
25
|
-
roomstayId: string;
|
|
26
|
-
sessionData: string;
|
|
27
|
-
sessionId: string;
|
|
28
|
-
clientKey: string;
|
|
29
|
-
isLive: boolean;
|
|
30
|
-
currency: string;
|
|
31
|
-
amount: string;
|
|
32
|
-
countryCode: string;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
11
|
+
payment?: IPaymentCheckoutDetails;
|
|
35
12
|
itemisedFees?: SimpleItemisedFee[];
|
|
36
13
|
feesSummary?: SimpleItemisedFee[];
|
|
37
14
|
};
|
package/package.json
CHANGED
package/dist/node.js.LICENSE.txt
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export type IDailyRevenue = {
|
|
2
|
-
date: string;
|
|
3
|
-
revenue: number;
|
|
4
|
-
};
|
|
5
|
-
export type IDailyRoomBreakdown = {
|
|
6
|
-
date: string;
|
|
7
|
-
roomName: string;
|
|
8
|
-
purchases: number;
|
|
9
|
-
};
|
|
10
|
-
export type IRegionBreakdown = {
|
|
11
|
-
country: string;
|
|
12
|
-
region: string;
|
|
13
|
-
purchases: number;
|
|
14
|
-
revenue: number;
|
|
15
|
-
};
|
|
16
|
-
export type IBigQueryResponse = {
|
|
17
|
-
purchases: number;
|
|
18
|
-
cancellations: number;
|
|
19
|
-
revenue: number;
|
|
20
|
-
conversionRate: number;
|
|
21
|
-
dailyRevenue: IDailyRevenue[];
|
|
22
|
-
dailyRoomsBreakdown: IDailyRoomBreakdown[];
|
|
23
|
-
regionBreakdown: IRegionBreakdown[];
|
|
24
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This is the response body that comes down if a booking fails anywhere in the booking flow.
|
|
3
|
-
*
|
|
4
|
-
* Object will contain a public message only, with partial reservation data to be able to attempt to "resume" the booking
|
|
5
|
-
*/
|
|
6
|
-
export type IBookingCreateErrorResponse = {
|
|
7
|
-
canRetryPayment: boolean;
|
|
8
|
-
isPaymentTaken: boolean;
|
|
9
|
-
publicMessage: string;
|
|
10
|
-
roomstayId: string;
|
|
11
|
-
};
|
|
File without changes
|