@tripian/model 9.1.48 → 9.1.51
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/api/v4/enums/PROVIDER_NAME.d.ts +6 -5
- package/api/v4/index.d.ts +2 -0
- package/api/v4/models/ConfigList.d.ts +1 -0
- package/api/v4/models/SuggestedCity.d.ts +5 -0
- package/api/v4/models/SuggestedCityMatch.d.ts +7 -0
- package/api/v4/models/TranslationList.d.ts +1 -1
- package/helper/index.d.ts +1 -0
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/providers/viator/AvailabilityCheck.d.ts +23 -0
- package/providers/viator/AvailabilitySchedule.d.ts +6 -0
- package/providers/viator/BookingCardHold.d.ts +18 -2
- package/providers/viator/Product.d.ts +7 -1
package/package.json
CHANGED
|
@@ -18,6 +18,28 @@ export type TotalPrice = {
|
|
|
18
18
|
partnerTotalPrice: number;
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
|
+
export type AvailabilityExtraChargesSummary = {
|
|
22
|
+
price: {
|
|
23
|
+
recommendedRetailPrice: number;
|
|
24
|
+
};
|
|
25
|
+
priceBeforeDiscount?: {
|
|
26
|
+
recommendedRetailPrice: number;
|
|
27
|
+
};
|
|
28
|
+
mandatory: {
|
|
29
|
+
totalExtraCharges: number;
|
|
30
|
+
items: {
|
|
31
|
+
name: string;
|
|
32
|
+
numberOfUnits: number;
|
|
33
|
+
amountPerUnit: number;
|
|
34
|
+
totalAmount: number;
|
|
35
|
+
inDestination: {
|
|
36
|
+
amountPerUnit: number;
|
|
37
|
+
totalAmount: number;
|
|
38
|
+
currency: string;
|
|
39
|
+
};
|
|
40
|
+
}[];
|
|
41
|
+
};
|
|
42
|
+
};
|
|
21
43
|
export type AvailabilityBookableItem = {
|
|
22
44
|
productOptionCode: string;
|
|
23
45
|
startTime?: string;
|
|
@@ -25,6 +47,7 @@ export type AvailabilityBookableItem = {
|
|
|
25
47
|
lineItems: LineItem[];
|
|
26
48
|
totalPrice: TotalPrice;
|
|
27
49
|
unavailableReason?: string;
|
|
50
|
+
extraChargesSummary?: AvailabilityExtraChargesSummary;
|
|
28
51
|
};
|
|
29
52
|
export type AvailabilityCheck = {
|
|
30
53
|
currency: string;
|
|
@@ -42,9 +42,15 @@ export type BookableItem = {
|
|
|
42
42
|
export type Summary = {
|
|
43
43
|
fromPrice: number;
|
|
44
44
|
};
|
|
45
|
+
export type AvailabilityScheduleExtraChargesSummary = {
|
|
46
|
+
fromPrice: number;
|
|
47
|
+
fromPriceBeforeDiscount?: number;
|
|
48
|
+
extraCharges: number;
|
|
49
|
+
};
|
|
45
50
|
export type AvailabilitySchedule = {
|
|
46
51
|
productCode: string;
|
|
47
52
|
bookableItems: BookableItem[];
|
|
48
53
|
currency: string;
|
|
49
54
|
summary: Summary;
|
|
55
|
+
extraChargesSummary?: AvailabilityScheduleExtraChargesSummary;
|
|
50
56
|
};
|
|
@@ -40,12 +40,28 @@ export type CartHoldItem = {
|
|
|
40
40
|
export type CartHoldTotalHeldPrice = {
|
|
41
41
|
price: CardHoldPrice;
|
|
42
42
|
};
|
|
43
|
+
export type CardHoldExtraChargesSummary = {
|
|
44
|
+
price: {
|
|
45
|
+
recommendedRetailPrice: number;
|
|
46
|
+
};
|
|
47
|
+
productPriceBeforeDiscount?: {
|
|
48
|
+
recommendedRetailPrice: number;
|
|
49
|
+
};
|
|
50
|
+
totalExtraCharges: number;
|
|
51
|
+
};
|
|
52
|
+
export type CardHoldTranslationInfo = {
|
|
53
|
+
containsMachineTranslatedText: boolean;
|
|
54
|
+
translationSource: string;
|
|
55
|
+
translationAttribution?: string;
|
|
56
|
+
};
|
|
43
57
|
export type BookingCardHold = {
|
|
44
58
|
cartRef: string;
|
|
59
|
+
partnerCartRef: string;
|
|
45
60
|
currency: string;
|
|
46
61
|
items: CartHoldItem[];
|
|
47
|
-
partnerCartRef: string;
|
|
48
|
-
paymentSessionToken: string;
|
|
49
62
|
totalHeldPrice: CartHoldTotalHeldPrice;
|
|
50
63
|
paymentDataSubmissionUrl?: string;
|
|
64
|
+
paymentSessionToken: string;
|
|
65
|
+
extraChargesSummary?: CardHoldExtraChargesSummary;
|
|
66
|
+
translationInfo?: CardHoldTranslationInfo;
|
|
51
67
|
};
|
|
@@ -29,9 +29,15 @@ export type Product = {
|
|
|
29
29
|
pricing: {
|
|
30
30
|
summary: {
|
|
31
31
|
fromPrice: number;
|
|
32
|
-
fromPriceBeforeDiscount
|
|
32
|
+
fromPriceBeforeDiscount?: number;
|
|
33
33
|
};
|
|
34
34
|
currency: string;
|
|
35
|
+
partnerNetFromPrice?: number;
|
|
36
|
+
extraChargesSummary?: {
|
|
37
|
+
fromPrice: number;
|
|
38
|
+
fromPriceBeforeDiscount?: number;
|
|
39
|
+
extraCharges: number;
|
|
40
|
+
};
|
|
35
41
|
};
|
|
36
42
|
productUrl: string;
|
|
37
43
|
destinations: [
|