@revolugo/common 7.4.3-alpha.1 ā 7.4.3-alpha.3
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/package.json
CHANGED
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
CHECK_IN_DATE_SCHEMA,
|
|
10
10
|
CHECK_OUT_DATE_SCHEMA,
|
|
11
11
|
CHILDREN_SCHEMA,
|
|
12
|
+
IS_CANCELLATION_POLICIES_UPDATED,
|
|
12
13
|
IS_PRICE_INCREASED,
|
|
13
14
|
} from './global.ts'
|
|
14
15
|
import { HOTEL_ROOM_OFFER_SCHEMA } from './hotel-room-offer.ts'
|
|
@@ -39,6 +40,7 @@ export const BOOKING_POLICY_SCHEMA = z
|
|
|
39
40
|
id: z.string().openapi({
|
|
40
41
|
description: '**Booking Policy** id',
|
|
41
42
|
}),
|
|
43
|
+
is_cancellation_policies_updated: IS_CANCELLATION_POLICIES_UPDATED,
|
|
42
44
|
is_price_increased: IS_PRICE_INCREASED,
|
|
43
45
|
})
|
|
44
46
|
.openapi('bookingPoliciesApi', {
|
package/src/schemas/global.ts
CHANGED
|
@@ -70,6 +70,11 @@ export const IMAGES_SCHEMA = z
|
|
|
70
70
|
'š DEPRECATED - Hotel images details.\n\nIn order to retrieve a specific image you need to construct the complete URL from the images parameters: **[images.prefix][highres|lowres|thumb]/[index]/[images.suffix]**. If **images.count = n**, then index is in [0...n-1] range.\n\ne.g.: https://s3.eu-west-3.amazonaws.com/revolugo/hotels/yhKY/images/highres/0.jpg',
|
|
71
71
|
})
|
|
72
72
|
|
|
73
|
+
export const IS_CANCELLATION_POLICIES_UPDATED = z.boolean().openapi({
|
|
74
|
+
description:
|
|
75
|
+
'Indicates whether the cancellation policies of the **Hotel Room Offer** have changed (become stricter) compared to those returned by [Retrieve Hotel Room Offers endpoint](/v1/documentation#operation/getV1Hotel_room_offers).\n\nIf **is_cancellation_policies_updated** is **true**, the cancellation policies are now less favourable than when the offer was first retrieved. ā ļø It is strongly advised to clearly inform your customer of any cancellation policy change that may occur.',
|
|
76
|
+
})
|
|
77
|
+
|
|
73
78
|
export const IS_PRICE_INCREASED = z.boolean().openapi({
|
|
74
79
|
description:
|
|
75
80
|
'Indicates whether the price of the **Hotel Room Offer** (without breakfast included) has increased compared to the price returned by [Retrieve Hotel Room Offers endpoint](/v1/documentation#operation/getV1Hotel_room_offers).\n\nIn some case, the returned price may increase for various reasons including: Currency rate change between the POST **Booking Policies** call and the GET **Hotel Room Offers** call, **Hotel Room Offer** price has increased since the GET **Hotel Room Offers** call.\n\nIf **is_price_increased** is **true**, it means that the actual/updated price of the **Hotel Room Offer** is greater than the price previously returned by [Retrieve Hotel Room Offers endpoint](/v1/documentation#operation/getV1Hotel_room_offers). If **is_price_increased** is **false**, the price of the **Hotel Room Offer** is equal to the price returned by [Retrieve Hotel Room Offers endpoint](/v1/documentation#operation/getV1Hotel_room_offers).\n\nā ļø It is strongly advised to clearly inform your customer of any price increase that may occur.',
|