@roomstay/core 0.1.56-0 → 0.1.56-1

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.
Files changed (49) hide show
  1. package/dist/node.js.LICENSE.txt +7 -0
  2. package/dist/types/Booking/ICheckoutBrowserSession.type.d.ts +14 -0
  3. package/dist/types/General/IJsonString.type.d.ts +6 -0
  4. package/dist/types/OHIP/IOHIPConfiguration.types.d.ts +1 -0
  5. package/dist/web.js.LICENSE.txt +7 -0
  6. package/package.json +1 -1
  7. package/dist/components/DateRangePicker/DateRangePicker.d.ts +0 -16
  8. package/dist/components/DateRangePicker/DateRangePicker.type.d.ts +0 -16
  9. package/dist/components/DateRangePicker/DateRangePickerContext.d.ts +0 -16
  10. package/dist/components/DateRangePicker/DateRangePickerDay.d.ts +0 -22
  11. package/dist/components/DateRangePicker/DateRangePickerDays.d.ts +0 -7
  12. package/dist/components/DateRangePicker/DateRangePickerMonth.d.ts +0 -9
  13. package/dist/components/DateRangePicker/FloatingDateRangePicker.d.ts +0 -26
  14. package/dist/components/DateRangePicker/index.d.ts +0 -3
  15. package/dist/components/Icon/Icon.d.ts +0 -19
  16. package/dist/components/Icon/index.d.ts +0 -1
  17. package/dist/components/Overlay/Overlay.d.ts +0 -21
  18. package/dist/components/Overlay/index.d.ts +0 -1
  19. package/dist/components/RoomstayPortal/RoomstayPortal.d.ts +0 -8
  20. package/dist/components/RoomstayPortal/index.d.ts +0 -1
  21. package/dist/components/Text/Text.d.ts +0 -18
  22. package/dist/components/Text/Text.type.d.ts +0 -14
  23. package/dist/components/Text/index.d.ts +0 -2
  24. package/dist/components/animations/AutoAutoHeight.d.ts +0 -9
  25. package/dist/components/animations/Fade.d.ts +0 -13
  26. package/dist/components/animations/index.d.ts +0 -1
  27. package/dist/components/index.d.ts +0 -6
  28. package/dist/hooks/BodyClickHook.d.ts +0 -8
  29. package/dist/index.node.d.ts +0 -2
  30. package/dist/index.web.d.ts +0 -3
  31. package/dist/node.js.map +0 -1
  32. package/dist/roomstay-core-0.1.26.tgz +0 -0
  33. package/dist/stories/DateRangePicker.stories.d.ts +0 -8
  34. package/dist/stories/FloatingDateRangePicker.stories.d.ts +0 -5
  35. package/dist/types/Addon/Addon.d.ts +0 -38
  36. package/dist/types/Api/ReservationsDTO.d.ts +0 -102
  37. package/dist/types/Api/RoomNightRateDTO.d.ts +0 -7
  38. package/dist/types/Hotel/IHotel.enum.d.ts +0 -32
  39. package/dist/types/Hotel/IHotel.type.d.ts +0 -275
  40. package/dist/types/Hotel/IntegrationConfigs.type.d.ts +0 -76
  41. package/dist/types/Hotel/InternalMemberSignInModal.type.d.ts +0 -13
  42. package/dist/types/Hotel/InternalMemberSignInModal.types.d.ts +0 -13
  43. package/dist/types/Room/HotelRoom.type.d.ts +0 -24
  44. package/dist/types/Room/SynxisRoom.type.d.ts +0 -35
  45. package/dist/utils/CalendarHelper.d.ts +0 -16
  46. package/dist/utils/color.d.ts +0 -17
  47. package/dist/utils/index.node.d.ts +0 -2
  48. package/dist/utils/index.web.d.ts +0 -4
  49. package/dist/web.js.map +0 -1
@@ -0,0 +1,7 @@
1
+ /*!
2
+ * decimal.js v10.4.3
3
+ * An arbitrary-precision Decimal type for JavaScript.
4
+ * https://github.com/MikeMcl/decimal.js
5
+ * Copyright (c) 2022 Michael Mclaughlin <M8ch88l@gmail.com>
6
+ * MIT Licence
7
+ */
@@ -0,0 +1,14 @@
1
+ import { EHotelCardProcessor, EHotelCardProcessorInitData } from './IBookingPayment.type';
2
+ export type ICheckoutBrowserSession<T extends EHotelCardProcessor | undefined = EHotelCardProcessor> = {
3
+ browserSessionId: string;
4
+ checkoutSessionId: string;
5
+ rows: {}[];
6
+ /**
7
+ * ISO 8601 date string
8
+ */
9
+ expiry: string;
10
+ payment: {
11
+ processor: T;
12
+ data: EHotelCardProcessorInitData[T];
13
+ };
14
+ };
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Basic object to wrap a string that is de/encoded as JSON.
3
+ */
4
+ export type IJsonString = {
5
+ message: string;
6
+ };
@@ -2,6 +2,7 @@ export type IOHIPConfiguration = {
2
2
  clientId: string | null;
3
3
  clientSecret: string | null;
4
4
  enterpriseId: string | null;
5
+ chainCode: string | null;
5
6
  isProduction: boolean;
6
7
  tokenExpiryDate?: Date | null;
7
8
  gatewayUrl: string | null;
@@ -0,0 +1,7 @@
1
+ /*!
2
+ * decimal.js v10.4.3
3
+ * An arbitrary-precision Decimal type for JavaScript.
4
+ * https://github.com/MikeMcl/decimal.js
5
+ * Copyright (c) 2022 Michael Mclaughlin <M8ch88l@gmail.com>
6
+ * MIT Licence
7
+ */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@roomstay/core",
3
- "version": "0.1.56-0",
3
+ "version": "0.1.56-1",
4
4
  "description": "Details shared between Roomstay libraries. Anything from Currency, to Generic types",
5
5
  "types": "./dist/index.d.ts",
6
6
  "files": [
@@ -1,16 +0,0 @@
1
- import dayjs from "dayjs";
2
- import React from "react";
3
- import { EDateRangePickerTheme, ShowYearOnCalendarProps } from "./DateRangePicker.type";
4
- export interface DatePickerProps extends ShowYearOnCalendarProps {
5
- selectedStartDate?: dayjs.Dayjs | null;
6
- selectedEndDate?: dayjs.Dayjs | null;
7
- showArrows?: boolean;
8
- small?: boolean;
9
- onStartDateChanged?: (date: dayjs.Dayjs) => void;
10
- onEndDateChanged?: (date: dayjs.Dayjs) => void;
11
- fixedStartDate?: boolean;
12
- showMultipleMonths?: boolean;
13
- theme?: EDateRangePickerTheme | string;
14
- }
15
- export default function DateRangePicker(props: DatePickerProps): React.JSX.Element;
16
- export { DateRangePicker };
@@ -1,16 +0,0 @@
1
- export declare enum EDateRangePickerTheme {
2
- Default = "default",
3
- Specific = "specific"
4
- }
5
- export declare enum EDateRangePickingState {
6
- StartDate = 1,
7
- EndDate = 2
8
- }
9
- export interface ShowYearOnCalendarProps {
10
- showYearOnCalendar?: boolean;
11
- yearDisplayOption?: string;
12
- }
13
- export declare enum WeekdayStartsOn {
14
- Monday = "monday",
15
- Sunday = "sunday"
16
- }
@@ -1,16 +0,0 @@
1
- import { Dayjs } from "dayjs";
2
- import React from "react";
3
- import { EDateRangePickerTheme } from "./DateRangePicker.type";
4
- export interface DateRangePickerContextProps {
5
- todayInUnix: number;
6
- today: Dayjs | null;
7
- startDate: Dayjs | null;
8
- endDate: Dayjs | null;
9
- hoveredMonth: Dayjs | null;
10
- currentMonth: Dayjs | null;
11
- onHoverOver: (date: Dayjs) => void;
12
- onDayClicked: (date: Dayjs) => void;
13
- fixedStartDate: boolean;
14
- theme?: EDateRangePickerTheme | string;
15
- }
16
- export declare const DateRangePickerContext: React.Context<DateRangePickerContextProps>;
@@ -1,22 +0,0 @@
1
- import * as dayjs from "dayjs";
2
- import React from "react";
3
- import { Color } from "../../utils/color";
4
- interface DatePickerDayProps {
5
- text: any;
6
- day?: dayjs.Dayjs | any;
7
- unix: number;
8
- price?: Promise<number>;
9
- statuses?: DatePickerDayStatus[];
10
- selectable?: boolean;
11
- onClick?: (day: string) => void;
12
- onHover?: (day: string, status: boolean) => void;
13
- color?: Color;
14
- }
15
- export declare enum DatePickerDayStatus {
16
- Inactive = 0,
17
- Selecting = "--selecting",
18
- Loading = "--loading",
19
- Selected = "--selected"
20
- }
21
- export default function DateRangePickerDay(props: DatePickerDayProps): React.JSX.Element;
22
- export {};
@@ -1,7 +0,0 @@
1
- import * as dayjs from "dayjs";
2
- import React from "react";
3
- interface DatePickerDaysProps {
4
- showingMonth: dayjs.Dayjs;
5
- }
6
- export default function DateRangePickerDays(props: DatePickerDaysProps): React.JSX.Element;
7
- export {};
@@ -1,9 +0,0 @@
1
- import * as dayjs from "dayjs";
2
- import React from "react";
3
- import { ShowYearOnCalendarProps } from "./DateRangePicker.type";
4
- interface DatePickerMonthProps extends ShowYearOnCalendarProps {
5
- showingMonth: dayjs.Dayjs;
6
- small?: boolean;
7
- }
8
- export default function DateRangePickerMonth(props: DatePickerMonthProps): React.JSX.Element;
9
- export {};
@@ -1,26 +0,0 @@
1
- import { Placement } from "@popperjs/core";
2
- import * as dayjs from "dayjs";
3
- import React from "react";
4
- import { DatePickerProps } from "./DateRangePicker";
5
- export interface FloatingDateRangePickerProps extends Omit<DatePickerProps, "selectedStartDate" | "selectedEndDate" | "onStartDateChanged" | "onEndDateChanged"> {
6
- children?: React.ReactNode;
7
- startDate?: dayjs.Dayjs | null;
8
- endDate?: dayjs.Dayjs | null;
9
- overlayOffset?: [number, number];
10
- fixedStartDate?: boolean;
11
- container?: HTMLElement;
12
- selectedDateChanged?: (startDate: dayjs.Dayjs, endDate: dayjs.Dayjs) => void;
13
- className?: string;
14
- overlay?: {
15
- placement?: Placement;
16
- fallbackPlacements?: Placement;
17
- };
18
- }
19
- export interface FloatingDateRangePickerHandle {
20
- closePicker: () => void;
21
- openPicker: () => void;
22
- toggle: () => void;
23
- }
24
- declare const FloatingDateRangePicker: React.ForwardRefExoticComponent<FloatingDateRangePickerProps & React.RefAttributes<FloatingDateRangePickerHandle>>;
25
- export default FloatingDateRangePicker;
26
- export { FloatingDateRangePicker };
@@ -1,3 +0,0 @@
1
- export * from "./DateRangePicker";
2
- export * from "./FloatingDateRangePicker";
3
- export * from "./DateRangePicker.type";
@@ -1,19 +0,0 @@
1
- import React from 'react';
2
- import { Color } from '../../utils/color';
3
- export declare enum IconType {
4
- ArrowLeft2 = "Arrow-2-Left",
5
- ArrowRight2 = "Arrow-2-Right"
6
- }
7
- export interface IconProps {
8
- icon: IconType;
9
- size?: string;
10
- name?: string;
11
- color?: Color;
12
- useColorAsBackground?: boolean;
13
- backgroundColor?: Color;
14
- noPadding?: boolean;
15
- onClick?: () => void;
16
- borderRadius?: 'oval' | 'round';
17
- className?: string;
18
- }
19
- export default function Icon(props: IconProps): React.JSX.Element;
@@ -1 +0,0 @@
1
- export * from './Icon';
@@ -1,21 +0,0 @@
1
- import { Placement, PositioningStrategy } from "@popperjs/core";
2
- import React, { LegacyRef, ReactNode } from "react";
3
- export type OverlayProps = {
4
- children: ReactNode | ReactNode[];
5
- open: boolean;
6
- usePortal?: boolean;
7
- container?: HTMLElement | null;
8
- followElement?: Element | null;
9
- className?: string;
10
- containerClassName?: string;
11
- hideStyles?: boolean;
12
- placement?: Placement;
13
- fallbackPlacements?: Placement;
14
- strategy?: PositioningStrategy;
15
- onClose?: (e: Event) => void;
16
- offset?: [number, number];
17
- overlayRef?: LegacyRef<HTMLDivElement>;
18
- preventScroll?: boolean;
19
- isAboveNav?: boolean;
20
- };
21
- export declare const Overlay: (props: OverlayProps) => React.JSX.Element;
@@ -1 +0,0 @@
1
- export * from './Overlay';
@@ -1,8 +0,0 @@
1
- import { ReactNode } from 'react';
2
- type RoomstayPortalProps = {
3
- target: HTMLElement;
4
- children: ReactNode | ReactNode[];
5
- preventZIndex?: boolean;
6
- };
7
- export declare const RoomstayPortal: (props: RoomstayPortalProps) => any;
8
- export {};
@@ -1 +0,0 @@
1
- export * from "./RoomstayPortal";
@@ -1,18 +0,0 @@
1
- import React, { PropsWithChildren } from "react";
2
- import { TextAlign, TextTransform, TextType } from "./Text.type";
3
- import { Color } from "../../utils/color";
4
- export interface TextProps extends PropsWithChildren<any> {
5
- [x: string]: React.ReactNode;
6
- type?: TextType;
7
- color?: Color;
8
- align?: TextAlign;
9
- transforms?: TextTransform[];
10
- className?: string;
11
- inline?: boolean;
12
- bold?: boolean;
13
- preformatted?: boolean;
14
- style?: React.CSSProperties;
15
- lineThrough?: boolean;
16
- }
17
- export declare const Text: React.ForwardRefExoticComponent<Pick<TextProps, keyof TextProps> & React.RefAttributes<HTMLParagraphElement>>;
18
- export default Text;
@@ -1,14 +0,0 @@
1
- export declare enum TextAlign {
2
- Center = "u-align-center",
3
- Right = "u-align-right",
4
- Left = "u-align-left"
5
- }
6
- export declare enum TextType {
7
- Body = "body",
8
- Small = "small",
9
- Caption = "caption",
10
- Label = "label"
11
- }
12
- export declare enum TextTransform {
13
- Uppercase = "u-uppercase"
14
- }
@@ -1,2 +0,0 @@
1
- export * from "./Text";
2
- export * from "./Text.type";
@@ -1,9 +0,0 @@
1
- import React from "react";
2
- interface AutoAutoHeightProps {
3
- children: React.ReactNode;
4
- open: boolean;
5
- startOpen?: boolean;
6
- onComponentHidden?: () => void;
7
- }
8
- export default function AutoAutoHeight(props: AutoAutoHeightProps): React.JSX.Element;
9
- export {};
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- interface FadeProps {
3
- children?: React.ReactElement;
4
- open: boolean;
5
- onEnter?: () => void;
6
- onExited?: () => void;
7
- /**
8
- * Callback on complete animation of exit action
9
- */
10
- onExitCompletely?: () => void;
11
- }
12
- declare const FadeAnimation: React.ForwardRefExoticComponent<FadeProps & React.RefAttributes<HTMLDivElement>>;
13
- export default FadeAnimation;
@@ -1 +0,0 @@
1
- export * from "./Fade";
@@ -1,6 +0,0 @@
1
- export * from "./DateRangePicker/index";
2
- export * from "./animations/index";
3
- export * from "./Icon/index";
4
- export * from "./Overlay/index";
5
- export * from "./RoomstayPortal/index";
6
- export * from "./Text/index";
@@ -1,8 +0,0 @@
1
- export declare const useBodyClick: () => {
2
- onBodyClick: (event: EventListener, target?: HTMLElement | Document | null) => {
3
- remove: () => void;
4
- };
5
- onBodyClickExcept: (event: EventListener, ignore: HTMLElement, target?: HTMLElement | Document | null) => {
6
- remove: () => void;
7
- };
8
- };
@@ -1,2 +0,0 @@
1
- export * from "./types/index";
2
- export * from "./utils/index.node";
@@ -1,3 +0,0 @@
1
- export * from "./types/index";
2
- export * from "./utils/index.web";
3
- export * from "./components/index";
package/dist/node.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"node.js","sources":["../src/types/Booking/IBookingStatus.type.ts","../src/types/Booking/IBookingPayment.type.ts","../src/types/Company/ECompanyProvider.enum.ts","../src/types/Hotel/IHotelOverrides.type.ts","../src/types/Hotel/EHotelPriceModel.enum.ts","../src/types/Hotel/EHotelWeekdayStartsOn.enum.ts","../src/types/RMS/ERMSDiscountType.enum.ts","../src/types/Image/IRoomstayImage.type.ts","../src/utils/bookingTotal.ts","../src/utils/uppercaseString.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null],"names":["IBookingStatus","EBookingPaymentMethod","EHotelCardProcessor","EPlanpayBookingStatus","ECompanyProvider","EDistanceUnitType","EHotelPriceModel","EHotelWeekdayStartsOn","ERMSDiscountType","ERoomstayImageSize","reservation","total","itinerary","Object","values","item","nightsArray","keys","nights","night","toUppercase","toUpperCase"],"mappings":"aAAA,IAAYA,ECAAC,EAUAC,EAMAC,EChBAC,ECAAC,ECAAC,ECAAC,ECAAC,ECAAC,EPAAT,QAIXA,oBAAA,GAJWA,EAAAA,QAAcA,iBAAdA,uBAIX,CAAA,IAHG,QAAA,UACAA,EAAA,UAAA,YACAA,EAAA,UAAA,YCHQC,QAKXA,2BAAA,GALWA,EAAAA,gCAAAA,QAAAA,sBAKX,CAAA,IAJG,KAAA,OACAA,EAAA,UAAA,YACAA,EAAA,QAAA,UACAA,EAAA,MAAA,QAMQC,QAIXA,yBAAA,GAJWA,EAAAA,8BAAAA,QAAAA,oBAIX,CAAA,IAHG,YAAA,cACAA,EAAA,MAAA,QACAA,EAAA,KAAA,OAGQC,QAOXA,2BAAA,GAPWA,EAAAA,QAAqBA,wBAArBA,8BAOX,CAAA,IANG,QAAA,UACAA,EAAA,OAAA,SACAA,EAAA,SAAA,WACAA,EAAA,UAAA,YACAA,EAAA,SAAA,WACAA,EAAA,SAAA,WCtBQC,QAIXA,sBAAA,GAJWA,EAAAA,QAAgBA,mBAAhBA,yBAIX,CAAA,IAHG,OAAA,SACAA,EAAA,SAAA,WACAA,EAAA,IAAA,MCHQC,QAGXA,uBAAA,GAHWA,EAAAA,QAAiBA,oBAAjBA,0BAGX,CAAA,IAFG,OAAA,SACAA,EAAA,SAAA,WCFQC,QAIXA,sBAAA,GAJWA,EAAAA,QAAgBA,mBAAhBA,yBAIX,CAAA,IAHG,UAAA,YACAA,EAAA,OAAA,SACAA,EAAA,aAAA,eCHQC,QAGXA,2BAAA,GAHWA,EAAAA,QAAqBA,wBAArBA,8BAGX,CAAA,IAFG,OAAA,SACAA,EAAA,OAAA,SCFQC,QAIXA,sBAAA,GAJWA,EAAAA,QAAgBA,mBAAhBA,yBAIX,CAAA,IAHG,WAAA,aACAA,EAAA,OAAA,SACAA,EAAA,KAAA,OCHQC,QAOXA,wBAAA,GAPWA,EAAAA,QAAkBA,qBAAlBA,2BAOX,CAAA,IANGA,EAAA,KAAA,KAAA,OACAA,EAAAA,EAAA,KAAA,KAAA,OACAA,EAAAA,EAAA,MAAA,KAAA,QACAA,EAAAA,EAAA,OAAA,KAAA,SACAA,EAAAA,EAAA,MAAA,MAAA,QACAA,EAAAA,EAAA,WAAA,MAAA,oDCC2CC,IAC3C,IAAIC,EAAQ,EAEZ,MAAMC,EAAYC,OAAOC,OAAOJ,EAAYE,WAE5C,IAAK,MAAMG,KAAQH,EAAW,CAC1B,MAAMI,EAAcH,OAAOI,KAAKF,EAAKG,QAErC,IAAK,MAAMC,KAASH,EAChBL,GAASI,EAAKG,OAAOC,GAAOR,KAEnC,CAED,OAAOA,CAAK,0BCpBV,SAA0BS,GAC5B,OAAOA,EAAYC,aACvB"}
Binary file
@@ -1,8 +0,0 @@
1
- import * as React from "react";
2
- import { DatePickerProps } from "../components/DateRangePicker/DateRangePicker";
3
- declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0fc72a6d").R, DatePickerProps>;
4
- export default _default;
5
- export declare const Primary: (args: DatePickerProps) => React.JSX.Element;
6
- export declare const StartDatePopulated: (args: DatePickerProps) => React.JSX.Element;
7
- export declare const MultipleMonths: (args: DatePickerProps) => React.JSX.Element;
8
- export declare const ThemeSpecific: (args: DatePickerProps) => React.JSX.Element;
@@ -1,5 +0,0 @@
1
- import * as React from "react";
2
- declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0fc72a6d").R, import("../index.web").FloatingDateRangePickerProps & React.RefAttributes<import("../index.web").FloatingDateRangePickerHandle>>;
3
- export default _default;
4
- export declare const Primary: () => React.JSX.Element;
5
- export declare const ThemeSpecific: () => React.JSX.Element;
@@ -1,38 +0,0 @@
1
- import { SimpleItemisedFee } from "types/Fees/IFee.type";
2
- export declare enum AddonPricingType {
3
- PER_STAY = "Per stay",
4
- PER_NIGHT = "Per night",
5
- PER_PERSON = "Per person",
6
- PER_PERSON_PER_NIGHT = "Per person per night",
7
- PER_ALL_PERSONS = "Per all persons",
8
- PER_ALL_PERSONS_PER_NIGHT = "Per all persons per night",
9
- PER_QUANTITY_NAME_PER_NIGHT = "Per Quantity Name Per Night",
10
- PER_ROOM_QUANTITY_PER_NIGHT = "Per Room Quantity Per Night",
11
- PER_PERSON_OCCUPANCY_PER_NIGHT = "Per Person Occupancy Per Night",
12
- PER_ADULT_OCCUPANCY_PER_NIGHT = "Per Adult Occupancy Per Night",
13
- PER_CHILD_OCCUPANCY_PER_NIGHT = "Per Child Occupancy Per Night"
14
- }
15
- export declare const ADDON_PER_NIGHT_TYPES: AddonPricingType[];
16
- export type BasketAddonDTO = {
17
- availability: any;
18
- code: string;
19
- inclusive: false;
20
- pricingType: string;
21
- quantity: number;
22
- adultQuantity: number;
23
- childQuantity?: number;
24
- description: string;
25
- name: string;
26
- category: string;
27
- image: string;
28
- price: number;
29
- adultPrice?: number;
30
- childPrice?: number;
31
- fee: number;
32
- adultFee?: number;
33
- childFee?: number;
34
- fees?: SimpleItemisedFee[];
35
- adultFees?: SimpleItemisedFee[];
36
- childFees?: SimpleItemisedFee[];
37
- nights?: number;
38
- };
@@ -1,102 +0,0 @@
1
- import { EBookingPaymentMethod } from "types/Booking/IBookingPayment.type";
2
- import { SimpleItemisedFee } from "types/Fees/IFee.type";
3
- import { RoomNightRateDTO } from "./RoomNightRateDTO";
4
- export type ReservationsDTO = {
5
- roomstayId: string;
6
- reservations: ReservationDTO[];
7
- itineraryNumber: string;
8
- hotelFrontendId?: string;
9
- warnings?: string[];
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
- };
35
- itemisedFees?: SimpleItemisedFee[];
36
- feesSummary?: SimpleItemisedFee[];
37
- };
38
- export type ReservationAddonDTO = {
39
- code: string;
40
- inclusive: false;
41
- pricingType: string;
42
- quantity: number;
43
- adultQuantity: number;
44
- childQuantity?: number;
45
- description: string;
46
- name: string;
47
- category: string;
48
- image: string;
49
- price: number;
50
- fees?: number;
51
- itemisedFees?: SimpleItemisedFee[];
52
- displayPrice: number;
53
- adultPrice?: number;
54
- childPrice?: number;
55
- nights?: number;
56
- };
57
- export type ReservationDTO = {
58
- nights: {
59
- [date: string]: RoomNightRateDTO;
60
- };
61
- guestCounts: {
62
- adults: number;
63
- children: number;
64
- };
65
- guest: {
66
- address: {
67
- line1: string;
68
- city: string;
69
- postalCode: string;
70
- };
71
- firstName: string;
72
- lastName: string;
73
- phone: string;
74
- email: string;
75
- };
76
- paymentCard: {
77
- type?: string;
78
- last4: string;
79
- expiry: string;
80
- name: string;
81
- };
82
- paymentMethod?: EBookingPaymentMethod;
83
- comments?: string[];
84
- addons?: ReservationAddonDTO[];
85
- itemisedFees?: SimpleItemisedFee[];
86
- reservationNumber: string;
87
- cancelPolicy: string;
88
- cancellationPolicyLongDescription?: string;
89
- guaranteePolicy: string;
90
- guaranteePolicyLongDescription?: string;
91
- roomType: string;
92
- roomCode: string;
93
- rate: string;
94
- images: [string];
95
- status: string;
96
- isCancelable: boolean;
97
- total: {
98
- beforeTax: number;
99
- afterTax: number;
100
- beforeFees?: number;
101
- };
102
- };
@@ -1,7 +0,0 @@
1
- export type RoomNightRateDTO = {
2
- cost: string;
3
- tax: string;
4
- fee: string;
5
- total: string;
6
- discount: string;
7
- };
@@ -1,32 +0,0 @@
1
- export declare enum EPaymentCardType {
2
- Visa = "VI",
3
- Mastercard = "MC",
4
- JCB = "JC",
5
- AmericanExpress = "AX",
6
- DinersClub = "DN",
7
- UnionPay = "UP"
8
- }
9
- export declare enum HotelDataSource {
10
- Synxis = "Synxis",
11
- Roomstay = "Roomstay"
12
- }
13
- export declare enum PlanPayEnvStage {
14
- Sandbox = "sbx",
15
- Staging = "stag",
16
- Production = "prod"
17
- }
18
- export declare enum DatepickerType {
19
- Month = "Month",
20
- Week = "Week"
21
- }
22
- export declare enum EHotelAvailabilityType {
23
- PerRoomType = "PerRoom",
24
- PerUnit = "PerUnit",
25
- /** @deprecated In place while we move RMS Clients from Channel availability to Rest */
26
- PerRoomOld = "PerRoomOld"
27
- }
28
- export declare enum EHotelMinPriceStrategy {
29
- SingleDayAvailability = "SingleDayAvailability",
30
- TwoDayMaxAvailability = "TwoDayMaxAvailability",
31
- IncludeAllAvailability = "AllAvailability"
32
- }