@xivart/edge 0.0.1-security → 1.533.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of @xivart/edge might be problematic. Click here for more details.
- package/LICENSE +21 -0
- package/README.md +29 -3
- package/package.json +28 -3
- package/scripts/build.js +132 -0
- package/src/application/handlers/features/describers/api.describer.js +68 -0
- package/src/application/handlers/features/describers/extras.describer.js +12 -0
- package/src/application/handlers/features/describers/featureTypeBase.describer.js +8 -0
- package/src/application/handlers/features/describers/headers.describer.js +24 -0
- package/src/application/handlers/features/describers/passenger.describer.js +12 -0
- package/src/application/handlers/features/describers/summary.describer.js +7 -0
- package/src/application/handlers/features/describers/upsell.describer.js +11 -0
- package/src/application/types/checkoutGoogleFlights.type.js +8 -0
- package/src/application/types/discountVoucher.type.js +25 -0
- package/src/domain/account/autoCheckIn/schemas/bookingAutoCheckIn.api.schema.js +9 -0
- package/src/domain/account/bank-transfer/constants.js +33 -0
- package/src/domain/account/booking-details/types/importantMessages.type.js +13 -0
- package/src/domain/account/booking-details/types/messageHistory.type.js +15 -0
- package/src/domain/account/booking-details/types/ticketEligibility.js +8 -0
- package/src/domain/account/booking-payments/schemas/bookingPayments.api.schema.js +22 -0
- package/src/domain/account/costs/types/flightExchangeCost.type.js +8 -0
- package/src/domain/account/eligibilities/types/eligibilities.type.js +42 -0
- package/src/domain/account/eligibilities/types/flowEligibilityReason.type.js +7 -0
- package/src/domain/account/exchange-payment-status/exchangePaymentStatus.api.schema.js +11 -0
- package/src/domain/account/free-exchange/types/freeExchange.type.js +7 -0
- package/src/domain/account/online-checkin/types/onlineCheckIn.type.js +12 -0
- package/src/domain/account/postSale/constants.js +9 -0
- package/src/domain/account/postSale/schemas/product.api.schema.js +12 -0
- package/src/domain/account/postSale/schemas/shoppingCart.api.schema.js +7 -0
- package/src/domain/account/self-cancel-flight/schemas/selfCancelFlight.api.schema.js +7 -0
- package/src/domain/account/send-email/types/sendEmail.type.js +7 -0
- package/src/domain/account/special-luggage/types/specialLuggage.type.js +24 -0
- package/src/domain/ancillary/fare-families/types/fareFamily.type.js +9 -0
- package/src/domain/ancillary/fare-families/types/item.type.js +22 -0
- package/src/domain/ancillary/fare-families/types/upsellProductType.type.js +7 -0
- package/src/domain/cross-sell/airhelp/types/airhelpEntity.type.js +7 -0
- package/src/domain/cross-sell/cancel-for-any-reason/types/cfar.type.js +7 -0
- package/src/domain/cross-sell/cars-locations/types/carsLocations.type.js +10 -0
- package/src/domain/cross-sell/service-package/types/servicePackage.type.js +14 -0
- package/src/domain/cross-sell/service-package/types/usp.type.js +30 -0
- package/src/domain/customer/passenger/types/passenger.type.js +7 -0
- package/src/domain/kernel/car-details/schemas/carDetails.api.schema.js +30 -0
- package/src/domain/kernel/cars/types/car.type.js +47 -0
- package/src/domain/kernel/costs/types/bundleItemLevel.type.js +8 -0
- package/src/domain/kernel/costs/types/costProductTypes.type.js +20 -0
- package/src/domain/kernel/costs/types/postPaidProductTypes.type.js +6 -0
- package/src/domain/kernel/costs/types/unit.type.js +7 -0
- package/src/domain/kernel/flight-details/types/flightDirection.type.js +7 -0
- package/src/domain/kernel/flight-details/types/flightType.type.js +10 -0
- package/src/domain/kernel/flight-details/types/haulType.type.js +8 -0
- package/src/domain/kernel/flight-details/types/vehicle.type.js +9 -0
- package/src/domain/kernel/insurance/types/insurance.type.js +19 -0
- package/src/domain/kernel/passengers/types/passengerType.type.js +8 -0
- package/src/domain/kernel/payment/types/paymentFlowTypes.type.js +8 -0
- package/src/domain/kernel/seatMap/schemas/seatSupplier.api.type.js +8 -0
- package/src/domain/kernel/seatMap/schemas/seatSupplier.type.js +7 -0
- package/src/domain/order/flight-details/types/vehicle.type.js +8 -0
- package/src/domain/order/route-happy/types/upa.type.js +13 -0
- package/src/domain/order/travelAuthorization/types/travelAuthorizationCodes.type.js +7 -0
- package/src/domain/paylink/paylinkPaymentStatus/schemas/paylinkPaymentStatus.api.schema.js +17 -0
- package/src/domain/payment/payment-options/types/eWalletOption.type.js +10 -0
- package/src/domain/payment/payment-options/types/paymentOption.type.js +48 -0
- package/src/domain/payment/payment-states/types/paymentState.type.js +11 -0
- package/src/domain/payment/processing/transforms/payment.transformBillingAddress.js +21 -0
- package/src/domain/payment/processing/transforms/payment.transformCardPayment.js +29 -0
- package/src/domain/payment/processing/transforms/payment.transformDirectLink.js +25 -0
- package/src/domain/postSale/types/deck.type.js +8 -0
- package/src/domain/postSale/types/legend.type.js +16 -0
- package/src/domain/postSale/types/seatPassenger.type.js +8 -0
- package/src/domain/productEvent/types/productOfferedEvent.type.js +38 -0
- package/src/domain/seatMap/types/deck.type.js +7 -0
- package/src/domain/seatMap/types/seat.type.js +21 -0
- package/src/infrastructure/error-handler/types/errorCode.js +138 -0
- package/tpp/paymentTransform.js +6 -0
- package/types/account.js +35 -0
- package/types/airhelp.js +5 -0
- package/types/api.describer.js +16 -0
- package/types/autoCheckIn.js +4 -0
- package/types/cars.js +12 -0
- package/types/cfar.js +5 -0
- package/types/customer.js +6 -0
- package/types/error.js +4 -0
- package/types/fareFamilies.js +11 -0
- package/types/insurance.js +5 -0
- package/types/kernel.js +18 -0
- package/types/metaPartner.js +4 -0
- package/types/order.js +10 -0
- package/types/paylink.js +6 -0
- package/types/payment.js +10 -0
- package/types/postSale.js +7 -0
- package/types/productEvent.js +7 -0
- package/types/search-results.js +5 -0
- package/types/seatMap.js +9 -0
- package/types/servicePackage.js +10 -0
@@ -0,0 +1,12 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var ProductStatusAPI;
|
4
|
+
(function (ProductStatusAPI) {
|
5
|
+
ProductStatusAPI["YES"] = "Yes";
|
6
|
+
ProductStatusAPI["NO"] = "No";
|
7
|
+
ProductStatusAPI["DISABLED"] = "Disabled";
|
8
|
+
})(ProductStatusAPI = exports.ProductStatusAPI || (exports.ProductStatusAPI = {}));
|
9
|
+
var ProductTypeAPI;
|
10
|
+
(function (ProductTypeAPI) {
|
11
|
+
ProductTypeAPI["Baggage"] = "Baggage";
|
12
|
+
})(ProductTypeAPI = exports.ProductTypeAPI || (exports.ProductTypeAPI = {}));
|
@@ -0,0 +1,7 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var PostSaleShoppingStatus;
|
4
|
+
(function (PostSaleShoppingStatus) {
|
5
|
+
PostSaleShoppingStatus["Open"] = "Open";
|
6
|
+
PostSaleShoppingStatus["Finalized"] = "Finalized";
|
7
|
+
})(PostSaleShoppingStatus = exports.PostSaleShoppingStatus || (exports.PostSaleShoppingStatus = {}));
|
@@ -0,0 +1,7 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var SelfCancelFlightStatus;
|
4
|
+
(function (SelfCancelFlightStatus) {
|
5
|
+
SelfCancelFlightStatus["Rejected"] = "REJECTED";
|
6
|
+
SelfCancelFlightStatus["InProgress"] = "IN_PROGRESS";
|
7
|
+
})(SelfCancelFlightStatus = exports.SelfCancelFlightStatus || (exports.SelfCancelFlightStatus = {}));
|
@@ -0,0 +1,7 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var SendEmailTypes;
|
4
|
+
(function (SendEmailTypes) {
|
5
|
+
SendEmailTypes["ETicket"] = "eticket";
|
6
|
+
SendEmailTypes["BookingConfirmation"] = "confirmation";
|
7
|
+
})(SendEmailTypes = exports.SendEmailTypes || (exports.SendEmailTypes = {}));
|
@@ -0,0 +1,24 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var SpecialLuggageType;
|
4
|
+
(function (SpecialLuggageType) {
|
5
|
+
SpecialLuggageType["Wheelchair"] = "wheelchair";
|
6
|
+
SpecialLuggageType["Medical"] = "medical";
|
7
|
+
})(SpecialLuggageType = exports.SpecialLuggageType || (exports.SpecialLuggageType = {}));
|
8
|
+
var TypesOfMedicine;
|
9
|
+
(function (TypesOfMedicine) {
|
10
|
+
TypesOfMedicine["Pills"] = "pills";
|
11
|
+
TypesOfMedicine["Liquids"] = "liquid";
|
12
|
+
TypesOfMedicine["Syringes"] = "squirt";
|
13
|
+
TypesOfMedicine["Refrigeration"] = "requiresRefrigeration";
|
14
|
+
})(TypesOfMedicine = exports.TypesOfMedicine || (exports.TypesOfMedicine = {}));
|
15
|
+
var WheelchairType;
|
16
|
+
(function (WheelchairType) {
|
17
|
+
WheelchairType["Electric"] = "Electric";
|
18
|
+
WheelchairType["Manual"] = "Manual";
|
19
|
+
})(WheelchairType = exports.WheelchairType || (exports.WheelchairType = {}));
|
20
|
+
var WheelchairBatteryType;
|
21
|
+
(function (WheelchairBatteryType) {
|
22
|
+
WheelchairBatteryType["Wet"] = "Wet";
|
23
|
+
WheelchairBatteryType["Dry"] = "Dry";
|
24
|
+
})(WheelchairBatteryType = exports.WheelchairBatteryType || (exports.WheelchairBatteryType = {}));
|
@@ -0,0 +1,9 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var FareFamilyCodes;
|
4
|
+
(function (FareFamilyCodes) {
|
5
|
+
FareFamilyCodes["Basic"] = "Basic";
|
6
|
+
FareFamilyCodes["Plus"] = "UPS1";
|
7
|
+
FareFamilyCodes["Complete"] = "UPS2";
|
8
|
+
FareFamilyCodes["Premium"] = "PE";
|
9
|
+
})(FareFamilyCodes = exports.FareFamilyCodes || (exports.FareFamilyCodes = {}));
|
@@ -0,0 +1,22 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var FareFamilyItemCodeTypes;
|
4
|
+
(function (FareFamilyItemCodeTypes) {
|
5
|
+
FareFamilyItemCodeTypes["04K"] = "04K";
|
6
|
+
FareFamilyItemCodeTypes["03Y"] = "03Y";
|
7
|
+
FareFamilyItemCodeTypes["FBG"] = "FBG";
|
8
|
+
FareFamilyItemCodeTypes["EC1"] = "EC1";
|
9
|
+
FareFamilyItemCodeTypes["PE1"] = "PE1";
|
10
|
+
FareFamilyItemCodeTypes["PE2"] = "PE2";
|
11
|
+
FareFamilyItemCodeTypes["PE3"] = "PE3";
|
12
|
+
FareFamilyItemCodeTypes["PE9"] = "PE9";
|
13
|
+
})(FareFamilyItemCodeTypes = exports.FareFamilyItemCodeTypes || (exports.FareFamilyItemCodeTypes = {}));
|
14
|
+
var FareFamilyItemPlaceholderTypes;
|
15
|
+
(function (FareFamilyItemPlaceholderTypes) {
|
16
|
+
FareFamilyItemPlaceholderTypes["CostAmount"] = "costAmount";
|
17
|
+
FareFamilyItemPlaceholderTypes["CostPercentage"] = "costPercentage";
|
18
|
+
FareFamilyItemPlaceholderTypes["Weight"] = "weight";
|
19
|
+
FareFamilyItemPlaceholderTypes["Quantity"] = "quantity";
|
20
|
+
FareFamilyItemPlaceholderTypes["Inch"] = "inch";
|
21
|
+
FareFamilyItemPlaceholderTypes["Centimetre"] = "centimetre";
|
22
|
+
})(FareFamilyItemPlaceholderTypes = exports.FareFamilyItemPlaceholderTypes || (exports.FareFamilyItemPlaceholderTypes = {}));
|
@@ -0,0 +1,7 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var UpsellProductType;
|
4
|
+
(function (UpsellProductType) {
|
5
|
+
UpsellProductType["FareFamilies"] = "FareFamilies";
|
6
|
+
UpsellProductType["PremiumEconomy"] = "PremiumEconomy";
|
7
|
+
})(UpsellProductType = exports.UpsellProductType || (exports.UpsellProductType = {}));
|
@@ -0,0 +1,7 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.AirhelpKeys = void 0;
|
4
|
+
var AirhelpKeys;
|
5
|
+
(function (AirhelpKeys) {
|
6
|
+
AirhelpKeys["Airhelp"] = "AIRHELP_SH";
|
7
|
+
})(AirhelpKeys = exports.AirhelpKeys || (exports.AirhelpKeys = {}));
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var CarsLocationCodeTypes;
|
4
|
+
(function (CarsLocationCodeTypes) {
|
5
|
+
CarsLocationCodeTypes["Airport"] = "airport";
|
6
|
+
CarsLocationCodeTypes["City"] = "city";
|
7
|
+
CarsLocationCodeTypes["RailwayStation"] = "railwayStation";
|
8
|
+
CarsLocationCodeTypes["Error"] = "error";
|
9
|
+
CarsLocationCodeTypes["Unknown"] = "unknown";
|
10
|
+
})(CarsLocationCodeTypes = exports.CarsLocationCodeTypes || (exports.CarsLocationCodeTypes = {}));
|
@@ -0,0 +1,14 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.RateTypes = exports.CodeTypes = void 0;
|
4
|
+
var CodeTypes;
|
5
|
+
(function (CodeTypes) {
|
6
|
+
CodeTypes["Standard"] = "standard";
|
7
|
+
CodeTypes["Premium"] = "premium";
|
8
|
+
CodeTypes["PremiumPlus"] = "premiumPlus";
|
9
|
+
})(CodeTypes = exports.CodeTypes || (exports.CodeTypes = {}));
|
10
|
+
var RateTypes;
|
11
|
+
(function (RateTypes) {
|
12
|
+
RateTypes["PerPerson"] = "PER_PERSON";
|
13
|
+
RateTypes["PerProduct"] = "PER_PRODUCT";
|
14
|
+
})(RateTypes = exports.RateTypes || (exports.RateTypes = {}));
|
@@ -0,0 +1,30 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.UspPlaceholderTypes = exports.LabelKeys = exports.UspCodes = void 0;
|
4
|
+
var UspCodes;
|
5
|
+
(function (UspCodes) {
|
6
|
+
UspCodes["administrationCost"] = "administrationCost";
|
7
|
+
UspCodes["checkinSms"] = "checkinSms";
|
8
|
+
UspCodes["confirmationEmail"] = "confirmationEmail";
|
9
|
+
UspCodes["confirmationSms"] = "confirmationSms";
|
10
|
+
UspCodes["discountNextBooking"] = "discountNextBooking";
|
11
|
+
UspCodes["personalizedWebsite"] = "personalizedWebsite";
|
12
|
+
})(UspCodes = exports.UspCodes || (exports.UspCodes = {}));
|
13
|
+
var LabelKeys;
|
14
|
+
(function (LabelKeys) {
|
15
|
+
LabelKeys["Usp1"] = "usp1";
|
16
|
+
LabelKeys["Usp2"] = "usp2";
|
17
|
+
LabelKeys["Usp3"] = "usp3";
|
18
|
+
LabelKeys["Usp3e"] = "usp3e";
|
19
|
+
LabelKeys["Usp4"] = "usp4";
|
20
|
+
LabelKeys["Usp4e"] = "usp4e";
|
21
|
+
LabelKeys["Usp5"] = "usp5";
|
22
|
+
LabelKeys["Usp6"] = "usp6";
|
23
|
+
})(LabelKeys = exports.LabelKeys || (exports.LabelKeys = {}));
|
24
|
+
var UspPlaceholderTypes;
|
25
|
+
(function (UspPlaceholderTypes) {
|
26
|
+
UspPlaceholderTypes["Percentage"] = "PERCENTAGE";
|
27
|
+
UspPlaceholderTypes["PhoneNumber"] = "PHONE_NUMBER";
|
28
|
+
UspPlaceholderTypes["Price"] = "PRICE";
|
29
|
+
UspPlaceholderTypes["Text"] = "TEXT";
|
30
|
+
})(UspPlaceholderTypes = exports.UspPlaceholderTypes || (exports.UspPlaceholderTypes = {}));
|
@@ -0,0 +1,30 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var InsuranceLinkCode;
|
4
|
+
(function (InsuranceLinkCode) {
|
5
|
+
InsuranceLinkCode["TermsAndConditions"] = "link1";
|
6
|
+
InsuranceLinkCode["IPID"] = "link2";
|
7
|
+
})(InsuranceLinkCode = exports.InsuranceLinkCode || (exports.InsuranceLinkCode = {}));
|
8
|
+
var VisualComponentTypeAPI;
|
9
|
+
(function (VisualComponentTypeAPI) {
|
10
|
+
VisualComponentTypeAPI["Summary"] = "SUMMARY";
|
11
|
+
VisualComponentTypeAPI["Footer"] = "FOOTER";
|
12
|
+
VisualComponentTypeAPI["List"] = "LIST";
|
13
|
+
VisualComponentTypeAPI["Info"] = "INFO";
|
14
|
+
VisualComponentTypeAPI["SubFooter"] = "SUBFOOTER";
|
15
|
+
VisualComponentTypeAPI["Checkbox"] = "CHECKBOX";
|
16
|
+
VisualComponentTypeAPI["DriverAge"] = "DRIVER_AGE";
|
17
|
+
VisualComponentTypeAPI["Radio"] = "RADIO";
|
18
|
+
VisualComponentTypeAPI["State"] = "State";
|
19
|
+
})(VisualComponentTypeAPI = exports.VisualComponentTypeAPI || (exports.VisualComponentTypeAPI = {}));
|
20
|
+
var ExplanationTypes;
|
21
|
+
(function (ExplanationTypes) {
|
22
|
+
ExplanationTypes["Title"] = "TITLE";
|
23
|
+
ExplanationTypes["Info"] = "INFO";
|
24
|
+
ExplanationTypes["Warning"] = "WARNING";
|
25
|
+
})(ExplanationTypes = exports.ExplanationTypes || (exports.ExplanationTypes = {}));
|
26
|
+
var InsuranceRateTypeAPI;
|
27
|
+
(function (InsuranceRateTypeAPI) {
|
28
|
+
InsuranceRateTypeAPI["ToBeCharged"] = "TO_BE_CHARGED";
|
29
|
+
InsuranceRateTypeAPI["Requested"] = "REQUESTED";
|
30
|
+
})(InsuranceRateTypeAPI = exports.InsuranceRateTypeAPI || (exports.InsuranceRateTypeAPI = {}));
|
@@ -0,0 +1,47 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var RateType;
|
4
|
+
(function (RateType) {
|
5
|
+
RateType["Postpaid"] = "POSTPAID";
|
6
|
+
RateType["Prepaid"] = "PREPAID";
|
7
|
+
})(RateType = exports.RateType || (exports.RateType = {}));
|
8
|
+
var VehicleDetailType;
|
9
|
+
(function (VehicleDetailType) {
|
10
|
+
VehicleDetailType["Doors"] = "doors";
|
11
|
+
VehicleDetailType["Baggage"] = "baggage";
|
12
|
+
VehicleDetailType["Passengers"] = "passengers";
|
13
|
+
VehicleDetailType["Transmission"] = "transmission";
|
14
|
+
VehicleDetailType["CarSize"] = "carSize";
|
15
|
+
VehicleDetailType["FuelType"] = "fuelType";
|
16
|
+
VehicleDetailType["AirConditioner"] = "airConditioner";
|
17
|
+
VehicleDetailType["FuelPolicy"] = "fuelPolicy";
|
18
|
+
VehicleDetailType["IsBestChoice"] = "isBestChoice";
|
19
|
+
VehicleDetailType["OrderId"] = "orderId";
|
20
|
+
})(VehicleDetailType = exports.VehicleDetailType || (exports.VehicleDetailType = {}));
|
21
|
+
var VehicleDetailFuelType;
|
22
|
+
(function (VehicleDetailFuelType) {
|
23
|
+
VehicleDetailFuelType["Diesel"] = "Diesel";
|
24
|
+
VehicleDetailFuelType["Petrol"] = "Petrol";
|
25
|
+
VehicleDetailFuelType["Hybrid"] = "Hybrid";
|
26
|
+
VehicleDetailFuelType["Electric"] = "Electric";
|
27
|
+
VehicleDetailFuelType["Multifuel"] = "Multifuel";
|
28
|
+
VehicleDetailFuelType["Unspecified"] = "Unspecified";
|
29
|
+
})(VehicleDetailFuelType = exports.VehicleDetailFuelType || (exports.VehicleDetailFuelType = {}));
|
30
|
+
var VehicleDetailFuelTransmissionType;
|
31
|
+
(function (VehicleDetailFuelTransmissionType) {
|
32
|
+
VehicleDetailFuelTransmissionType["Automatic"] = "Automatic";
|
33
|
+
VehicleDetailFuelTransmissionType["Manual"] = "Manual";
|
34
|
+
})(VehicleDetailFuelTransmissionType = exports.VehicleDetailFuelTransmissionType || (exports.VehicleDetailFuelTransmissionType = {}));
|
35
|
+
var CarType;
|
36
|
+
(function (CarType) {
|
37
|
+
CarType["Cabriolet"] = "Cabriolet";
|
38
|
+
CarType["Compact"] = "Compact";
|
39
|
+
CarType["Economy"] = "Economy";
|
40
|
+
CarType["LargeCar"] = "Large Car";
|
41
|
+
CarType["LuxuryCar"] = "Luxury Car";
|
42
|
+
CarType["MiddleClass"] = "Middle class";
|
43
|
+
CarType["Mini"] = "Mini";
|
44
|
+
CarType["MiniVan"] = "Mini van";
|
45
|
+
CarType["StationWagon"] = "Station Wagon";
|
46
|
+
CarType["SUV"] = "SUV";
|
47
|
+
})(CarType = exports.CarType || (exports.CarType = {}));
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var BundleItemLevel;
|
4
|
+
(function (BundleItemLevel) {
|
5
|
+
BundleItemLevel["NotOffered"] = "NotOffered";
|
6
|
+
BundleItemLevel["Included"] = "Included";
|
7
|
+
BundleItemLevel["AtCharge"] = "AtCharge";
|
8
|
+
})(BundleItemLevel = exports.BundleItemLevel || (exports.BundleItemLevel = {}));
|
@@ -0,0 +1,20 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var CostProductType;
|
4
|
+
(function (CostProductType) {
|
5
|
+
CostProductType["AirlineTicket"] = "AirlineTicket";
|
6
|
+
CostProductType["Baggage"] = "Bagage";
|
7
|
+
CostProductType["Cars"] = "Cars";
|
8
|
+
CostProductType["FlightDelayCompensation"] = "FlightDelayCompensation";
|
9
|
+
CostProductType["Insurance"] = "Insurance";
|
10
|
+
CostProductType["PaymentOption"] = "PaymentOption";
|
11
|
+
CostProductType["Reservation"] = "Reservation";
|
12
|
+
CostProductType["Seats"] = "Seat";
|
13
|
+
CostProductType["ServicePackage"] = "ServicePackage";
|
14
|
+
CostProductType["ShoppingCartItem"] = "ShoppingCartItem";
|
15
|
+
CostProductType["TicketInsurance"] = "TicketInsurance";
|
16
|
+
CostProductType["VoucherDiscount"] = "VoucherDiscount";
|
17
|
+
CostProductType["Parkvia"] = "Parkvia";
|
18
|
+
CostProductType["ExtraFee"] = "ExtraFee";
|
19
|
+
CostProductType["AutoCheckIn"] = "AutoCheckIn";
|
20
|
+
})(CostProductType = exports.CostProductType || (exports.CostProductType = {}));
|
@@ -0,0 +1,6 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var PostPaidProductType;
|
4
|
+
(function (PostPaidProductType) {
|
5
|
+
PostPaidProductType["QuickParking"] = "QuickParking";
|
6
|
+
})(PostPaidProductType = exports.PostPaidProductType || (exports.PostPaidProductType = {}));
|
@@ -0,0 +1,7 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var FlightDirection;
|
4
|
+
(function (FlightDirection) {
|
5
|
+
FlightDirection["Inbound"] = "Inbound";
|
6
|
+
FlightDirection["Outbound"] = "Outbound";
|
7
|
+
})(FlightDirection = exports.FlightDirection || (exports.FlightDirection = {}));
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var FlightTypes;
|
4
|
+
(function (FlightTypes) {
|
5
|
+
FlightTypes["CombinedOneWay"] = "CombinedOneWay";
|
6
|
+
FlightTypes["MultiStop"] = "MultiStop";
|
7
|
+
FlightTypes["OneWay"] = "OneWay";
|
8
|
+
FlightTypes["OpenJaw"] = "OpenJaw";
|
9
|
+
FlightTypes["Return"] = "Return";
|
10
|
+
})(FlightTypes = exports.FlightTypes || (exports.FlightTypes = {}));
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var HaulTypes;
|
4
|
+
(function (HaulTypes) {
|
5
|
+
HaulTypes["ShortHaul"] = "ShortHaul";
|
6
|
+
HaulTypes["LongHaul"] = "LongHaul";
|
7
|
+
HaulTypes["Domestic"] = "Domestic";
|
8
|
+
})(HaulTypes = exports.HaulTypes || (exports.HaulTypes = {}));
|
@@ -0,0 +1,9 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.VehicleTypes = void 0;
|
4
|
+
var VehicleTypes;
|
5
|
+
(function (VehicleTypes) {
|
6
|
+
VehicleTypes["Bus"] = "Bus";
|
7
|
+
VehicleTypes["Plane"] = "Plane";
|
8
|
+
VehicleTypes["Train"] = "Train";
|
9
|
+
})(VehicleTypes = exports.VehicleTypes || (exports.VehicleTypes = {}));
|
@@ -0,0 +1,19 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var InsuranceType;
|
4
|
+
(function (InsuranceType) {
|
5
|
+
InsuranceType["Cancel"] = "CANCEL";
|
6
|
+
InsuranceType["Travel"] = "TRAVEL";
|
7
|
+
InsuranceType["Combined"] = "COMBINED";
|
8
|
+
InsuranceType["TravelCancel"] = "TRAVEL_CANCEL";
|
9
|
+
InsuranceType["Deluxe"] = "DELUXE";
|
10
|
+
InsuranceType["Basic"] = "BASIC";
|
11
|
+
InsuranceType["Combi"] = "COMBI";
|
12
|
+
InsuranceType["RefundProtect"] = "REFUND_PROTECT";
|
13
|
+
InsuranceType["RefundProtectPlus"] = "REFUND_PROTECT_PLUS";
|
14
|
+
})(InsuranceType = exports.InsuranceType || (exports.InsuranceType = {}));
|
15
|
+
var InsuranceCategory;
|
16
|
+
(function (InsuranceCategory) {
|
17
|
+
InsuranceCategory["Insurance"] = "INSURANCE";
|
18
|
+
InsuranceCategory["AlternativeProduct"] = "ANCILLARY";
|
19
|
+
})(InsuranceCategory = exports.InsuranceCategory || (exports.InsuranceCategory = {}));
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var PassengerTypes;
|
4
|
+
(function (PassengerTypes) {
|
5
|
+
PassengerTypes["Adult"] = "Adult";
|
6
|
+
PassengerTypes["Child"] = "Child";
|
7
|
+
PassengerTypes["Infant"] = "Infant";
|
8
|
+
})(PassengerTypes = exports.PassengerTypes || (exports.PassengerTypes = {}));
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var FlowType;
|
4
|
+
(function (FlowType) {
|
5
|
+
FlowType["Change"] = "Change";
|
6
|
+
FlowType["Book"] = "Book";
|
7
|
+
FlowType["Paylink"] = "Paylink";
|
8
|
+
})(FlowType = exports.FlowType || (exports.FlowType = {}));
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.SeatSupplierAPITypes = void 0;
|
4
|
+
var SeatSupplierAPITypes;
|
5
|
+
(function (SeatSupplierAPITypes) {
|
6
|
+
SeatSupplierAPITypes["Amadeus"] = "Amadeus";
|
7
|
+
SeatSupplierAPITypes["Gordian"] = "Gordian";
|
8
|
+
})(SeatSupplierAPITypes = exports.SeatSupplierAPITypes || (exports.SeatSupplierAPITypes = {}));
|
@@ -0,0 +1,7 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var SeatSupplierTypes;
|
4
|
+
(function (SeatSupplierTypes) {
|
5
|
+
SeatSupplierTypes["Amadeus"] = "Seat Selection";
|
6
|
+
SeatSupplierTypes["Gordian"] = "Gordian Seat Selection";
|
7
|
+
})(SeatSupplierTypes = exports.SeatSupplierTypes || (exports.SeatSupplierTypes = {}));
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var VehicleTypes;
|
4
|
+
(function (VehicleTypes) {
|
5
|
+
VehicleTypes["Bus"] = "Bus";
|
6
|
+
VehicleTypes["Plane"] = "Plane";
|
7
|
+
VehicleTypes["Train"] = "Train";
|
8
|
+
})(VehicleTypes = exports.VehicleTypes || (exports.VehicleTypes = {}));
|
@@ -0,0 +1,13 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var UpaType;
|
4
|
+
(function (UpaType) {
|
5
|
+
UpaType["Video"] = "video";
|
6
|
+
UpaType["Photo"] = "photo";
|
7
|
+
UpaType["PhotoAttachment"] = "photo_attachment";
|
8
|
+
UpaType["VideoAttachment"] = "video_attachment";
|
9
|
+
UpaType["Upa"] = "upa";
|
10
|
+
UpaType["Leg"] = "leg";
|
11
|
+
UpaType["LegFare"] = "leg_fare";
|
12
|
+
UpaType["LegFareSegment"] = "leg_fare_segment";
|
13
|
+
})(UpaType = exports.UpaType || (exports.UpaType = {}));
|
@@ -0,0 +1,7 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var TravelAuthorizationCodes;
|
4
|
+
(function (TravelAuthorizationCodes) {
|
5
|
+
TravelAuthorizationCodes["US"] = "US";
|
6
|
+
TravelAuthorizationCodes["NZ"] = "NZ";
|
7
|
+
})(TravelAuthorizationCodes = exports.TravelAuthorizationCodes || (exports.TravelAuthorizationCodes = {}));
|
@@ -0,0 +1,17 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.PaylinkErrorType = exports.PaylinkPaymentStatus = void 0;
|
4
|
+
var PaylinkPaymentStatus;
|
5
|
+
(function (PaylinkPaymentStatus) {
|
6
|
+
PaylinkPaymentStatus["PaylinkOpenNotPaid"] = "PaylinkOpenNotPaid";
|
7
|
+
PaylinkPaymentStatus["PaylinkOk"] = "PaylinkOk";
|
8
|
+
PaylinkPaymentStatus["Pending"] = "Pending";
|
9
|
+
PaylinkPaymentStatus["Declined"] = "Declined";
|
10
|
+
PaylinkPaymentStatus["Canceled"] = "Canceled";
|
11
|
+
})(PaylinkPaymentStatus = exports.PaylinkPaymentStatus || (exports.PaylinkPaymentStatus = {}));
|
12
|
+
var PaylinkErrorType;
|
13
|
+
(function (PaylinkErrorType) {
|
14
|
+
PaylinkErrorType["Paid"] = "Paid";
|
15
|
+
PaylinkErrorType["Expired"] = "Expired";
|
16
|
+
PaylinkErrorType["NotFound"] = "NotFound";
|
17
|
+
})(PaylinkErrorType = exports.PaylinkErrorType || (exports.PaylinkErrorType = {}));
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var EWalletPaymentCodes;
|
4
|
+
(function (EWalletPaymentCodes) {
|
5
|
+
EWalletPaymentCodes["ApplePay"] = "APPLEPAY";
|
6
|
+
EWalletPaymentCodes["ApplePayWPG"] = "APPLEPAYWPG";
|
7
|
+
EWalletPaymentCodes["GooglePay"] = "GOOGLEPAY";
|
8
|
+
EWalletPaymentCodes["GooglePayWPG"] = "GOOGLEPAYWPG";
|
9
|
+
})(EWalletPaymentCodes = exports.EWalletPaymentCodes || (exports.EWalletPaymentCodes = {}));
|
10
|
+
exports.EWalletPaymentCodesList = Object.values(EWalletPaymentCodes);
|
@@ -0,0 +1,48 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var PaymentCodes;
|
4
|
+
(function (PaymentCodes) {
|
5
|
+
PaymentCodes["AliPay"] = "ALIPAY";
|
6
|
+
PaymentCodes["Amex"] = "AMEX";
|
7
|
+
PaymentCodes["AmexBKK"] = "AMEXBKK";
|
8
|
+
PaymentCodes["BanContact"] = "BANCONTACT";
|
9
|
+
PaymentCodes["BMC"] = "BMC";
|
10
|
+
PaymentCodes["CB"] = "CB";
|
11
|
+
PaymentCodes["Diners"] = "DINERS";
|
12
|
+
PaymentCodes["Discover"] = "DISCOVER";
|
13
|
+
PaymentCodes["Enets"] = "ENETS";
|
14
|
+
PaymentCodes["IDeal"] = "IDEAL";
|
15
|
+
PaymentCodes["Iyzico"] = "IYZICO";
|
16
|
+
PaymentCodes["JCB"] = "JCB";
|
17
|
+
PaymentCodes["Klarna"] = "KLARNA";
|
18
|
+
PaymentCodes["KlarnaSliceIt"] = "KLARNASLICEIT";
|
19
|
+
PaymentCodes["KlarnaPayLater"] = "KLARNAPAYLATER";
|
20
|
+
PaymentCodes["KlarnaPayNow"] = "KLARNAPAYNOW";
|
21
|
+
PaymentCodes["Maestro"] = "MAESTRO";
|
22
|
+
PaymentCodes["MasterCardPrepaid"] = "Mastercardprepaid";
|
23
|
+
PaymentCodes["MasterDC"] = "MASTERDC";
|
24
|
+
PaymentCodes["MasterDCBKK"] = "MASTERDCBKK";
|
25
|
+
PaymentCodes["MC"] = "MC";
|
26
|
+
PaymentCodes["MCBKK"] = "MCBKK";
|
27
|
+
PaymentCodes["NetBanking"] = "NETBANKING";
|
28
|
+
PaymentCodes["P24"] = "P24";
|
29
|
+
PaymentCodes["Paypal"] = "PAYPAL";
|
30
|
+
PaymentCodes["PaypalBT"] = "PAYPALBT";
|
31
|
+
PaymentCodes["Poli"] = "POLI";
|
32
|
+
PaymentCodes["PostFinance"] = "POSTFINANCE";
|
33
|
+
PaymentCodes["SoFort"] = "SOFORT";
|
34
|
+
PaymentCodes["Visa"] = "VISA";
|
35
|
+
PaymentCodes["VisaBKK"] = "VISABKK";
|
36
|
+
PaymentCodes["VisaDC"] = "VISADC";
|
37
|
+
PaymentCodes["VisaDCBKK"] = "VISADCBKK";
|
38
|
+
PaymentCodes["VisaEL"] = "VISAEL";
|
39
|
+
PaymentCodes["Trustly"] = "TRUSTLY";
|
40
|
+
PaymentCodes["UnionPay"] = "UNIONPAY";
|
41
|
+
})(PaymentCodes = exports.PaymentCodes || (exports.PaymentCodes = {}));
|
42
|
+
var PaymentTypes;
|
43
|
+
(function (PaymentTypes) {
|
44
|
+
PaymentTypes["DirectLink"] = "DirectLink";
|
45
|
+
PaymentTypes["CardPayment"] = "CardPayment";
|
46
|
+
PaymentTypes["WebForm"] = "WebForm";
|
47
|
+
PaymentTypes["Braintree"] = "Braintree";
|
48
|
+
})(PaymentTypes = exports.PaymentTypes || (exports.PaymentTypes = {}));
|
@@ -0,0 +1,11 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var PaymentStates;
|
4
|
+
(function (PaymentStates) {
|
5
|
+
PaymentStates["OrderOk"] = "OrderOk";
|
6
|
+
PaymentStates["OrderOpenNotPaid"] = "OrderOpenNotPaid";
|
7
|
+
PaymentStates["OrderNotOk"] = "OrderNotOk";
|
8
|
+
PaymentStates["PaymentPending"] = "PaymentPending";
|
9
|
+
PaymentStates["PaymentFailed"] = "PaymentFailed";
|
10
|
+
PaymentStates["PaymentCancelled"] = "PaymentCancelled";
|
11
|
+
})(PaymentStates = exports.PaymentStates || (exports.PaymentStates = {}));
|
@@ -0,0 +1,21 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.transformBillingAddress = {
|
4
|
+
fromEntity: (billingAddress) => {
|
5
|
+
if (!billingAddress) {
|
6
|
+
return undefined;
|
7
|
+
}
|
8
|
+
const { houseNumber, street, additionalAddress, houseNumberAddition, city, countryCode, countryName, zipCode, state, } = billingAddress;
|
9
|
+
return {
|
10
|
+
HouseNumber: houseNumber,
|
11
|
+
Street: street,
|
12
|
+
AdditionalAddress: additionalAddress,
|
13
|
+
HouseNumberAddition: houseNumberAddition,
|
14
|
+
City: city,
|
15
|
+
CountryCode: countryCode,
|
16
|
+
CountryName: countryName,
|
17
|
+
ZipCode: zipCode,
|
18
|
+
State: state,
|
19
|
+
};
|
20
|
+
},
|
21
|
+
};
|
@@ -0,0 +1,29 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
const payment_transformBillingAddress_1 = require("./payment.transformBillingAddress");
|
4
|
+
const extractOrder = /([a-zA-Z0-9]+-{1}[a-zA-Z0-9]+-{1}[a-zA-Z0-9]+-{1}[a-zA-Z0-9]+-{1}[a-zA-Z0-9]+)/g;
|
5
|
+
exports.transformCardPayment = {
|
6
|
+
fromEntity: (paymentLink, payment, clientIpAddress) => {
|
7
|
+
const orderReference = paymentLink.match(extractOrder);
|
8
|
+
const expirationDate = `${payment.cardDetails.expirationMonth}${payment.cardDetails.expirationYear.slice(2)}`;
|
9
|
+
return {
|
10
|
+
AcceptUrl: payment.acceptUrl,
|
11
|
+
BillingAddress: payment_transformBillingAddress_1.transformBillingAddress.fromEntity(payment.billingAddress),
|
12
|
+
CardCvc: payment.cardDetails.cvc,
|
13
|
+
CardExpiryDate: expirationDate,
|
14
|
+
CardHolder: payment.cardDetails.cardHolderName,
|
15
|
+
CardNumber: payment.cardDetails.cardNumber,
|
16
|
+
ClientHttpAccept: 'Accept: */*',
|
17
|
+
ClientIsoLanguage: payment.clientIsoLanguage,
|
18
|
+
ClientIpAddress: clientIpAddress,
|
19
|
+
ClientUserAgent: payment.clientUserAgent,
|
20
|
+
DeclineUrl: payment.declineUrl,
|
21
|
+
DecodeRedirectForm: true,
|
22
|
+
ExceptionUrl: payment.exceptionUrl,
|
23
|
+
ExternalPaymentReference: '123456789-ABC',
|
24
|
+
FormId: payment.formId,
|
25
|
+
OrderReference: orderReference === null ? null : orderReference[1],
|
26
|
+
SessionId: payment.sessionId,
|
27
|
+
};
|
28
|
+
},
|
29
|
+
};
|
@@ -0,0 +1,25 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
const extractOrder = /([a-zA-Z0-9]+-{1}[a-zA-Z0-9]+-{1}[a-zA-Z0-9]+-{1}[a-zA-Z0-9]+-{1}[a-zA-Z0-9]+)/g;
|
4
|
+
exports.transformDirectLink = {
|
5
|
+
fromEntity: (paymentLink, payment, clientIpAddress) => {
|
6
|
+
const orderReference = paymentLink.match(extractOrder);
|
7
|
+
const expirationDate = `${payment.cardDetails.expirationMonth}${payment.cardDetails.expirationYear.slice(2)}`;
|
8
|
+
return {
|
9
|
+
AcceptUrl: payment.acceptUrl,
|
10
|
+
CardCvc: payment.cardDetails.cvc,
|
11
|
+
CardExpiryDate: expirationDate,
|
12
|
+
CardHolder: payment.cardDetails.cardHolderName,
|
13
|
+
CardNumber: payment.cardDetails.cardNumber,
|
14
|
+
ClientHttpAccept: 'Accept: */*',
|
15
|
+
ClientIsoLanguage: payment.clientIsoLanguage,
|
16
|
+
ClientIpAddress: clientIpAddress || null,
|
17
|
+
ClientUserAgent: payment.clientUserAgent,
|
18
|
+
DeclineUrl: payment.declineUrl,
|
19
|
+
DecodeRedirectForm: true,
|
20
|
+
ExceptionUrl: payment.exceptionUrl,
|
21
|
+
ExternalPaymentReference: '123456789-ABC',
|
22
|
+
OrderReference: orderReference === null ? null : orderReference[1],
|
23
|
+
};
|
24
|
+
},
|
25
|
+
};
|