sm-types 1.5.1 → 1.5.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/{dist/common → common}/index.d.ts +0 -0
- package/{dist/common → common}/index.js +0 -0
- package/{dist/common → common}/shared/index.d.ts +0 -0
- package/{dist/common → common}/shared/index.js +0 -0
- package/{dist/errors → errors}/index.d.ts +0 -0
- package/{dist/errors → errors}/index.js +0 -0
- package/errors/user/create-user.d.ts +4 -0
- package/{dist/errors → errors}/user/create-user.js +0 -0
- package/{dist/errors → errors}/user/index.d.ts +0 -0
- package/{dist/errors → errors}/user/index.js +0 -0
- package/package.json +2 -2
- package/{dist/sm-airlines → sm-airlines}/command-params/index.d.ts +0 -0
- package/{dist/sm-airlines → sm-airlines}/command-params/index.js +0 -0
- package/{dist/sm-airlines → sm-airlines}/dtos/index.d.ts +0 -0
- package/{dist/sm-airlines → sm-airlines}/dtos/index.js +0 -0
- package/{dist/sm-airlines → sm-airlines}/dtos/request.d.ts +0 -0
- package/{dist/sm-airlines → sm-airlines}/dtos/request.js +0 -0
- package/{dist/sm-airlines → sm-airlines}/dtos/response.d.ts +0 -0
- package/{dist/sm-airlines → sm-airlines}/dtos/response.js +0 -0
- package/{dist/sm-airlines → sm-airlines}/index.d.ts +0 -0
- package/{dist/sm-airlines → sm-airlines}/index.js +0 -0
- package/{dist/sm-azul → sm-azul}/index.d.ts +0 -0
- package/{dist/sm-azul → sm-azul}/index.js +0 -0
- package/{dist/sm-azul → sm-azul}/shared/index.d.ts +0 -0
- package/{dist/sm-azul → sm-azul}/shared/index.js +0 -0
- package/{dist/sm-car-rentals → sm-car-rentals}/index.d.ts +0 -0
- package/{dist/sm-car-rentals → sm-car-rentals}/index.js +0 -0
- package/{dist/sm-car-rentals → sm-car-rentals}/localiza/index.d.ts +0 -0
- package/{dist/sm-car-rentals → sm-car-rentals}/localiza/index.js +0 -0
- package/{dist/sm-car-rentals → sm-car-rentals}/movida/index.d.ts +0 -0
- package/{dist/sm-car-rentals → sm-car-rentals}/movida/index.js +0 -0
- package/{dist/sm-tech → sm-tech}/index.d.ts +0 -0
- package/{dist/sm-tech → sm-tech}/index.js +0 -0
- package/{dist/sm-tech → sm-tech}/shared/index.d.ts +0 -0
- package/{dist/sm-tech → sm-tech}/shared/index.js +0 -0
- package/{dist/sm-wcf → sm-wcf}/index.d.ts +0 -0
- package/{dist/sm-wcf → sm-wcf}/index.js +0 -0
- package/dist/README.md +0 -3
- package/dist/errors/user/create-user.d.ts +0 -4
- package/dist/package.json +0 -35
- package/src/common/index.ts +0 -13
- package/src/common/shared/index.ts +0 -16
- package/src/errors/index.ts +0 -1
- package/src/errors/user/create-user.ts +0 -5
- package/src/errors/user/index.ts +0 -1
- package/src/sm-airlines/command-params/index.ts +0 -30
- package/src/sm-airlines/dtos/index.ts +0 -20
- package/src/sm-airlines/dtos/request.ts +0 -44
- package/src/sm-airlines/dtos/response.ts +0 -73
- package/src/sm-airlines/index.ts +0 -672
- package/src/sm-azul/index.ts +0 -231
- package/src/sm-azul/shared/index.ts +0 -895
- package/src/sm-car-rentals/index.ts +0 -163
- package/src/sm-car-rentals/localiza/index.ts +0 -12
- package/src/sm-car-rentals/movida/index.ts +0 -11
- package/src/sm-tech/index.ts +0 -137
- package/src/sm-tech/shared/index.ts +0 -116
- package/src/sm-wcf/index.ts +0 -201
|
@@ -1,895 +0,0 @@
|
|
|
1
|
-
export const FareType = {
|
|
2
|
-
P: "P",
|
|
3
|
-
T: "T",
|
|
4
|
-
R: "R",
|
|
5
|
-
W: "W",
|
|
6
|
-
C: "C",
|
|
7
|
-
O: "O",
|
|
8
|
-
V: "V",
|
|
9
|
-
} as const;
|
|
10
|
-
|
|
11
|
-
export const CurrencyOptions = {
|
|
12
|
-
BRL: "BRL",
|
|
13
|
-
USD: "USD",
|
|
14
|
-
} as const;
|
|
15
|
-
|
|
16
|
-
export const Gender = {
|
|
17
|
-
MALE: "M",
|
|
18
|
-
FEMALE: "F",
|
|
19
|
-
} as const;
|
|
20
|
-
|
|
21
|
-
export const FareClassControl = {
|
|
22
|
-
LOWEST_FARE_CLASS: "LowestFareClass",
|
|
23
|
-
COMPRESS_BY_PRODUCT_CLASS: "CompressByProductClass",
|
|
24
|
-
DEFAULT: "Default",
|
|
25
|
-
} as const;
|
|
26
|
-
|
|
27
|
-
export const AvailabilityFilter = {
|
|
28
|
-
DEFAULT: "Default",
|
|
29
|
-
EXCLUDE_DEPARTED: "ExcludeDeparted",
|
|
30
|
-
EXCLUDE_IMMINENT: "ExcludeImminent",
|
|
31
|
-
EXCLUDE_UNAVAILABLE: "ExcludeUnavailable",
|
|
32
|
-
} as const;
|
|
33
|
-
|
|
34
|
-
export const AvailabilityType = {
|
|
35
|
-
DEFAULT: "Default",
|
|
36
|
-
STAND_BY: "Standby",
|
|
37
|
-
OVERBOOK: "Overbook",
|
|
38
|
-
MOVE: "Move",
|
|
39
|
-
} as const;
|
|
40
|
-
|
|
41
|
-
export const FlightType = {
|
|
42
|
-
NONE: "None",
|
|
43
|
-
NON_STOP: "NonStop",
|
|
44
|
-
THROUGH: "Through",
|
|
45
|
-
DIRECT: "Direct",
|
|
46
|
-
CONNECT: "Connect",
|
|
47
|
-
ALL: "All",
|
|
48
|
-
} as const;
|
|
49
|
-
|
|
50
|
-
export const InboundOutbound = {
|
|
51
|
-
NONE: "None",
|
|
52
|
-
INBOUND: "Inbound",
|
|
53
|
-
OUTBOUND: "Outbound",
|
|
54
|
-
BOTH: "Both",
|
|
55
|
-
ROUND_FROM: "RoundFrom",
|
|
56
|
-
ROUND_TO: "RoundTo",
|
|
57
|
-
UNMAPPED: "Unmapped",
|
|
58
|
-
} as const;
|
|
59
|
-
|
|
60
|
-
export const DayOfWeek = {
|
|
61
|
-
NONE: "None",
|
|
62
|
-
MONDAY: "Monday",
|
|
63
|
-
TUESDAY: "Tuesday",
|
|
64
|
-
WEDNESDAY: "Wednesday",
|
|
65
|
-
THRUSDAY: "Thrusday",
|
|
66
|
-
FRIDAY: "Friday",
|
|
67
|
-
WEEK_DAY: "WeekDay",
|
|
68
|
-
SATURDAY: "Saturday",
|
|
69
|
-
SUNDAY: "Sunday",
|
|
70
|
-
WEEK_END: "WeekEnd",
|
|
71
|
-
DAILY: "Daily",
|
|
72
|
-
} as const;
|
|
73
|
-
|
|
74
|
-
export const ChargeType = {
|
|
75
|
-
FARE_PRICE: "FarePrice",
|
|
76
|
-
DISCOUNT: "Discount",
|
|
77
|
-
INCLUDED_TRAVEL_FEE: "IncludedTravelFee",
|
|
78
|
-
INCLUDED_TAX: "IncludedTax",
|
|
79
|
-
TRAVEL_FEE: "TravelFee",
|
|
80
|
-
TAX: "Tax",
|
|
81
|
-
SERVICE_CHARGE: "ServiceCharge",
|
|
82
|
-
PROMOTION_DISCOUNT: "PromotionDiscount",
|
|
83
|
-
CONNECTION_ADJUSTMENT_AMOUNT: "ConnectionAdjustmentAmount",
|
|
84
|
-
ADD_ON_SERVICE_PRICE: "AddOnServicePrice",
|
|
85
|
-
POINTS: "Points",
|
|
86
|
-
INCLUDED_ADD_ON_SERVICE_FEE: "IncludedAddOnServiceFee",
|
|
87
|
-
ADD_ON_SERVICE_FEE: "AddOnServiceFee",
|
|
88
|
-
ADD_ON_SERVICE_MARKUP: "AddOnServiceMarkup",
|
|
89
|
-
CALCULATED: "Calculated",
|
|
90
|
-
NOTE: "Note",
|
|
91
|
-
} as const;
|
|
92
|
-
|
|
93
|
-
export const CollectType = {
|
|
94
|
-
IMMEDIATE: "Immediate",
|
|
95
|
-
DEFERRED: "Deferred",
|
|
96
|
-
} as const;
|
|
97
|
-
|
|
98
|
-
export const MessageState = {
|
|
99
|
-
CLEAN: "Clean",
|
|
100
|
-
NEW: "New",
|
|
101
|
-
MODIFIED: "Modified",
|
|
102
|
-
DELETED: "Deleted",
|
|
103
|
-
CONFIRMED: "Confirmed",
|
|
104
|
-
} as const;
|
|
105
|
-
|
|
106
|
-
export const FareStatus = {
|
|
107
|
-
DEFAULT: "Default",
|
|
108
|
-
SAME_DAY_STAND_BY: "SameDayStandBy",
|
|
109
|
-
FARE_OVERRIDE_CONFIRMING: "FareOverrideConfirming",
|
|
110
|
-
FARE_OVERRIDE_CONFIRMED: "FareOverrideConfirmed",
|
|
111
|
-
UNMAPPED: "Unmapped",
|
|
112
|
-
} as const;
|
|
113
|
-
|
|
114
|
-
export const FareApplicationType = {
|
|
115
|
-
ROUTE: "Route",
|
|
116
|
-
SECTOR: "Sector",
|
|
117
|
-
GOVERNING: "Governing",
|
|
118
|
-
UNMAPPED: "Unmapped",
|
|
119
|
-
} as const;
|
|
120
|
-
|
|
121
|
-
export const TripType = {
|
|
122
|
-
NONE: "None",
|
|
123
|
-
ONE_WAY: "OneWay",
|
|
124
|
-
ROUND_TRIP: "RoundTrip",
|
|
125
|
-
HALF_ROUND: "HalfRound",
|
|
126
|
-
OPEN_JAW: "OpenJaw",
|
|
127
|
-
CIRCLE_TRIP: "CircleTrip",
|
|
128
|
-
ALL: "All",
|
|
129
|
-
} as const;
|
|
130
|
-
|
|
131
|
-
export const CheckInStatus = {
|
|
132
|
-
NOT_YET_OPEN: "NotYetOpen",
|
|
133
|
-
OPEN: "Open",
|
|
134
|
-
CLOSED: "Closed",
|
|
135
|
-
} as const;
|
|
136
|
-
|
|
137
|
-
export const ClassStatus = {
|
|
138
|
-
ACTIVE: "Active",
|
|
139
|
-
INACTIVE: "InActive",
|
|
140
|
-
AVS_OPEN: "AVSOpen",
|
|
141
|
-
AVS_ON_REQUEST: "AVSOnRequest",
|
|
142
|
-
AVS_CLOSED: "AVSClosed",
|
|
143
|
-
} as const;
|
|
144
|
-
|
|
145
|
-
export const SeatAssignmentLevel = {
|
|
146
|
-
UNKNOWN: "Unknown",
|
|
147
|
-
SEGMENT: "Segment",
|
|
148
|
-
LEG: "Leg",
|
|
149
|
-
PARTIAL_SEGMENT: "PartialSegment",
|
|
150
|
-
} as const;
|
|
151
|
-
|
|
152
|
-
export const LiftStatus1 = {
|
|
153
|
-
DEFAULT: "Default",
|
|
154
|
-
CHECKED_IN: "CheckedIn",
|
|
155
|
-
BOARDED: "Boarded",
|
|
156
|
-
NO_SHOW: "NoShow",
|
|
157
|
-
UNMAPPED: "Unmapped",
|
|
158
|
-
} as const;
|
|
159
|
-
|
|
160
|
-
export const BaggageStatus = {
|
|
161
|
-
DEFAULT: "Default",
|
|
162
|
-
CHECKED: "Checked",
|
|
163
|
-
REMOVED: "Removed",
|
|
164
|
-
ADDED: "Added",
|
|
165
|
-
} as const;
|
|
166
|
-
|
|
167
|
-
export const PriceStatus = {
|
|
168
|
-
INVALID: "Invalid",
|
|
169
|
-
OVERRIDE: "Override",
|
|
170
|
-
VALID: "Valid",
|
|
171
|
-
} as const;
|
|
172
|
-
|
|
173
|
-
export const FeeType = {
|
|
174
|
-
ALL: "All",
|
|
175
|
-
TAX: "Tax",
|
|
176
|
-
TRAVEL_FEE: "TravelFee",
|
|
177
|
-
SERVICE_FEE: "ServiceFee",
|
|
178
|
-
PAYMENT_FEE: "PaymentFee",
|
|
179
|
-
PENALTY_FEE: "PenaltyFee",
|
|
180
|
-
SSR_FEE: "SSRFee",
|
|
181
|
-
NON_FLIGHT_SERVICE_FEE: "NonFlightServiceFee",
|
|
182
|
-
UPGRADE_FEE: "UpgradeFee",
|
|
183
|
-
SEAT_FEE: "SeatFee",
|
|
184
|
-
BASE_FARE: "BaseFare",
|
|
185
|
-
SPOILAGE_FEE: "SpoilageFee",
|
|
186
|
-
NAME_CHANGE_FEE: "NameChangeFee",
|
|
187
|
-
CONVENIENCE_FEE: "ConvenienceFee",
|
|
188
|
-
} as const;
|
|
189
|
-
|
|
190
|
-
export const ProductClass = {
|
|
191
|
-
AZUL: "F+",
|
|
192
|
-
AZUL_MAIS: "PR",
|
|
193
|
-
AZUL_SOUTH_AMERICA: "TP",
|
|
194
|
-
AZUL_MAIS_SOUTH_AMERICA: "TI",
|
|
195
|
-
AZUL_NORTH_AMERICA_AND_EUROPE: "ZK",
|
|
196
|
-
AZUL_MAIS_NORTH_AMERICA_AND_EUROPE: "ZJ",
|
|
197
|
-
AZUL_SUPER: "ZF",
|
|
198
|
-
AZUL_BUSINESS: "ZE",
|
|
199
|
-
} as const;
|
|
200
|
-
|
|
201
|
-
export const ProductClassName = {
|
|
202
|
-
AZUL: "azul",
|
|
203
|
-
AZUL_MAIS: "azul+",
|
|
204
|
-
AZUL_SOUTH_AMERICA: "azulSA",
|
|
205
|
-
AZUL_MAIS_SOUTH_AMERICA: "azul+SA",
|
|
206
|
-
AZUL_NORTH_AMERICA_AND_EUROPE: "azulEUAndSA",
|
|
207
|
-
AZUL_MAIS_NORTH_AMERICA_AND_EUROPE: "azul+EUAndSA",
|
|
208
|
-
AZUL_SUPER: "azulSuper",
|
|
209
|
-
AZUL_BUSINESS: "azulBusiness",
|
|
210
|
-
} as const;
|
|
211
|
-
|
|
212
|
-
export const PaxType = {
|
|
213
|
-
ADULT: "ADT",
|
|
214
|
-
CHILDREN: "CHD",
|
|
215
|
-
INFANT: "INF",
|
|
216
|
-
} as const;
|
|
217
|
-
|
|
218
|
-
export const SeatPreference = {
|
|
219
|
-
NONE: "None",
|
|
220
|
-
WINDOW: "Window",
|
|
221
|
-
AISLE: "Aisle",
|
|
222
|
-
NO_PREFERENCE: "NoPreference",
|
|
223
|
-
} as const;
|
|
224
|
-
|
|
225
|
-
export const BookingStatus = {
|
|
226
|
-
DEFAULT: "Default",
|
|
227
|
-
HOLD: "Hold",
|
|
228
|
-
CONFIRMED: "Confirmed",
|
|
229
|
-
CLOSED: "Closed",
|
|
230
|
-
HOLD_CANCELED: "HoldCanceled",
|
|
231
|
-
PENDING_ARCHIVE: "PendingArchive",
|
|
232
|
-
ARCHIVED: "Archive",
|
|
233
|
-
};
|
|
234
|
-
|
|
235
|
-
// create types based on object values
|
|
236
|
-
type ValueOf<T> = T[keyof T];
|
|
237
|
-
export type IFareTypeDto = ValueOf<typeof FareType>;
|
|
238
|
-
export type ICurrencyOptionsDto = ValueOf<typeof CurrencyOptions>;
|
|
239
|
-
export type IGenderDto = ValueOf<typeof Gender>;
|
|
240
|
-
export type IFareClassControlDto = ValueOf<typeof FareClassControl>;
|
|
241
|
-
export type IFareApplicationTypeDto = ValueOf<typeof FareApplicationType>;
|
|
242
|
-
export type IFareStatusDto = ValueOf<typeof FareStatus>;
|
|
243
|
-
export type IAvailabilityFilterDto = ValueOf<typeof AvailabilityFilter>;
|
|
244
|
-
export type IAvailabilityTypeDto = ValueOf<typeof AvailabilityType>;
|
|
245
|
-
export type IFlightTypeDto = ValueOf<typeof FlightType>;
|
|
246
|
-
export type IInboundOutboundDto = ValueOf<typeof InboundOutbound>;
|
|
247
|
-
export type IDayOfWeekDto = ValueOf<typeof DayOfWeek>;
|
|
248
|
-
export type IChargeTypeDto = ValueOf<typeof ChargeType>;
|
|
249
|
-
export type ICollectTypeDto = ValueOf<typeof CollectType>;
|
|
250
|
-
export type IMessageStateDto = ValueOf<typeof MessageState>;
|
|
251
|
-
export type ITripTypeDto = ValueOf<typeof TripType>;
|
|
252
|
-
export type ICheckInStatusDto = ValueOf<typeof CheckInStatus>;
|
|
253
|
-
export type IClassStatusDto = ValueOf<typeof ClassStatus>;
|
|
254
|
-
export type ISeatAssignmentLevelDto = ValueOf<typeof SeatAssignmentLevel>;
|
|
255
|
-
export type ILiftStatus1Dto = ValueOf<typeof LiftStatus1>;
|
|
256
|
-
export type IBaggageStatusDto = ValueOf<typeof BaggageStatus>;
|
|
257
|
-
export type IPriceStatusDto = ValueOf<typeof PriceStatus>;
|
|
258
|
-
export type IFeeTypeDto = ValueOf<typeof FeeType>;
|
|
259
|
-
export type IProductClassDto = ValueOf<typeof ProductClass>;
|
|
260
|
-
export type IProductClassNameDto = ValueOf<typeof ProductClassName>;
|
|
261
|
-
export type IPaxTypeDto = ValueOf<typeof PaxType>;
|
|
262
|
-
export type ISeatPreferenceDto = ValueOf<typeof SeatPreference>;
|
|
263
|
-
export type IBookingStatusDto = ValueOf<typeof BookingStatus>;
|
|
264
|
-
|
|
265
|
-
export interface ITariffedOfferDto {
|
|
266
|
-
currencyCode: string;
|
|
267
|
-
total: number;
|
|
268
|
-
priceStatus: IPriceStatusDto;
|
|
269
|
-
tariffedJourneys: IJourneyServiceDto[];
|
|
270
|
-
bookingPassengers: IBookingPassengerDto[];
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
export interface IAirlinesOffer {
|
|
274
|
-
id: number;
|
|
275
|
-
supplier: string;
|
|
276
|
-
supplierOfferDetails: ITariffedOfferDto;
|
|
277
|
-
status: string;
|
|
278
|
-
oneway: boolean;
|
|
279
|
-
international: boolean;
|
|
280
|
-
paxInfo: IPaxInfoRequestDto;
|
|
281
|
-
price: number;
|
|
282
|
-
recordLocator: string;
|
|
283
|
-
routes: IRouteRequestDto[];
|
|
284
|
-
availability: boolean;
|
|
285
|
-
carrier: string;
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
export interface Session {
|
|
289
|
-
secureToken: string;
|
|
290
|
-
// session_control: string;
|
|
291
|
-
// system_type: string;
|
|
292
|
-
sessionId: number;
|
|
293
|
-
// sequence_number: string;
|
|
294
|
-
// message_version: string;
|
|
295
|
-
// signature: string;
|
|
296
|
-
roleCode: string;
|
|
297
|
-
// channel_type: string;
|
|
298
|
-
// in_transaction: string;
|
|
299
|
-
// transaction_depth: string;
|
|
300
|
-
// transaction_count: string;
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
export interface IGeneralInfoDto {
|
|
304
|
-
routes: IRouteInfoDto[];
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
export interface IRouteRequestDto {
|
|
308
|
-
date: string;
|
|
309
|
-
departureStation: string;
|
|
310
|
-
arrivalStation: string;
|
|
311
|
-
stopover: {
|
|
312
|
-
station: string;
|
|
313
|
-
days: number;
|
|
314
|
-
};
|
|
315
|
-
filters?: IRouteFiltersRequestDto;
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
export interface IRouteFiltersRequestDto {
|
|
319
|
-
productClassName: IProductClassNameDto;
|
|
320
|
-
flightNumber: string;
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
export interface IPaxInfoRequestDto {
|
|
324
|
-
adults: number;
|
|
325
|
-
children: number;
|
|
326
|
-
babies: number;
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
export interface IJourneysPerStepDto {
|
|
330
|
-
routeInfo: IRouteInfoDto;
|
|
331
|
-
journeys: IInventoryJourneyDto[];
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
export interface IRouteInfoDto {
|
|
335
|
-
departureStation: string;
|
|
336
|
-
departureDate: Date;
|
|
337
|
-
arrivalStation: string;
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
export interface IFlightDesignatorDto {
|
|
341
|
-
carrierCode: string;
|
|
342
|
-
flightNumber: string;
|
|
343
|
-
opSuffix: string;
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
export interface IPointOfSaleDto {
|
|
347
|
-
state: string;
|
|
348
|
-
agentCode: string;
|
|
349
|
-
organizationCode: string;
|
|
350
|
-
domainCode: string;
|
|
351
|
-
locationCode: string;
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
export interface INameDto {
|
|
355
|
-
title: string;
|
|
356
|
-
firstName: string;
|
|
357
|
-
middleName: string;
|
|
358
|
-
lastName: string;
|
|
359
|
-
suffix: string;
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
export interface ILegDto {
|
|
363
|
-
departure: {
|
|
364
|
-
station: string;
|
|
365
|
-
dateTime: Date;
|
|
366
|
-
paxDateTime: Date;
|
|
367
|
-
terminal: string;
|
|
368
|
-
LTV: number;
|
|
369
|
-
};
|
|
370
|
-
arrival: {
|
|
371
|
-
station: string;
|
|
372
|
-
dateTime: Date;
|
|
373
|
-
paxDateTime: Date;
|
|
374
|
-
terminal: string;
|
|
375
|
-
LTV: number;
|
|
376
|
-
};
|
|
377
|
-
flightDesignator: IFlightDesignatorDto;
|
|
378
|
-
status: string;
|
|
379
|
-
inventoryLegKey: string;
|
|
380
|
-
aircraftType: string;
|
|
381
|
-
aircraftTypeSuffix: string;
|
|
382
|
-
PRBCCode: string;
|
|
383
|
-
scheduleServiceType: string;
|
|
384
|
-
onTime: string;
|
|
385
|
-
eTicket: boolean;
|
|
386
|
-
IROP: boolean;
|
|
387
|
-
FLIFOUpdated: boolean;
|
|
388
|
-
subjectToGovtApproval: boolean;
|
|
389
|
-
capacity: number;
|
|
390
|
-
lid: number;
|
|
391
|
-
adjustedCapacity: number;
|
|
392
|
-
sold: number;
|
|
393
|
-
soldNonStop: number;
|
|
394
|
-
soldConnect: number;
|
|
395
|
-
outMoveDays: number;
|
|
396
|
-
backMoveDays: number;
|
|
397
|
-
soldThru: number;
|
|
398
|
-
codeShareIndicator: string;
|
|
399
|
-
operatingCarrier: string;
|
|
400
|
-
operatingFlightNumber: string;
|
|
401
|
-
operatingOpSuffix: string;
|
|
402
|
-
operatedByText: string;
|
|
403
|
-
transitLayover: number;
|
|
404
|
-
transitDays: number;
|
|
405
|
-
}
|
|
406
|
-
|
|
407
|
-
export interface IFareDto {
|
|
408
|
-
classOfService: string;
|
|
409
|
-
ruleTariff: string;
|
|
410
|
-
carrierCode: string;
|
|
411
|
-
ruleCode: string;
|
|
412
|
-
fareBasis: string;
|
|
413
|
-
paxFares: IPaxFareDto[];
|
|
414
|
-
fareApplicationType: IFareApplicationTypeDto;
|
|
415
|
-
inboundOutbound: string;
|
|
416
|
-
isAllotmentMarketFare: boolean;
|
|
417
|
-
sellKey: string;
|
|
418
|
-
tripTypeRule: string;
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
export interface IServiceChargeDto {
|
|
422
|
-
chargeType: IChargeTypeDto;
|
|
423
|
-
collectType: ICollectTypeDto;
|
|
424
|
-
chargeCode: string;
|
|
425
|
-
ticketCode: string;
|
|
426
|
-
currencyCode: string;
|
|
427
|
-
amount: number;
|
|
428
|
-
chargeDetail: string;
|
|
429
|
-
foreignCurrencyCode: string;
|
|
430
|
-
foreignAmount: number;
|
|
431
|
-
}
|
|
432
|
-
|
|
433
|
-
export interface IPaxFareDto {
|
|
434
|
-
paxType: IPaxTypeDto;
|
|
435
|
-
discountCode: string;
|
|
436
|
-
ruleTariff: string;
|
|
437
|
-
carrierCode: string;
|
|
438
|
-
ruleCode: string;
|
|
439
|
-
fareBasis: string;
|
|
440
|
-
fareDiscountCode: string;
|
|
441
|
-
actionStatusCode: string;
|
|
442
|
-
productClass: string;
|
|
443
|
-
productClassName: IProductClassNameDto;
|
|
444
|
-
fareStatus: IFareStatusDto;
|
|
445
|
-
charges: IServiceChargeDto[];
|
|
446
|
-
lastModified: Date;
|
|
447
|
-
availableCount: number;
|
|
448
|
-
status: string;
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
export interface IInventoryJourneyDto {
|
|
452
|
-
state?: string;
|
|
453
|
-
segments: ISegmentDto[];
|
|
454
|
-
journeyClasses?: any;
|
|
455
|
-
salesDate?: Date;
|
|
456
|
-
notForGeneralUse: boolean;
|
|
457
|
-
sellKey: string;
|
|
458
|
-
fares: IFareDto[];
|
|
459
|
-
}
|
|
460
|
-
|
|
461
|
-
export interface IBookingContactDto {
|
|
462
|
-
firstName: string;
|
|
463
|
-
lastName: string;
|
|
464
|
-
email: string;
|
|
465
|
-
phone: string;
|
|
466
|
-
companyName: string;
|
|
467
|
-
address: string;
|
|
468
|
-
city: string;
|
|
469
|
-
state: string;
|
|
470
|
-
postalCode: string;
|
|
471
|
-
countryCode: string;
|
|
472
|
-
}
|
|
473
|
-
|
|
474
|
-
export interface IBookingPassengerDto {
|
|
475
|
-
paxType: IPaxTypeDto;
|
|
476
|
-
// state: IMessageStateDto;
|
|
477
|
-
// customerNumber: string;
|
|
478
|
-
// passengerNumber: number;
|
|
479
|
-
// name: INameDto;
|
|
480
|
-
// paxPriceType: {
|
|
481
|
-
// paxType: string;
|
|
482
|
-
// paxDiscountCode: string;
|
|
483
|
-
// };
|
|
484
|
-
passengerFees: IPassengerFeeDto[];
|
|
485
|
-
// passengerId: number;
|
|
486
|
-
// familyNumber: number;
|
|
487
|
-
// DOB: Date;
|
|
488
|
-
// gender: IGenderDto;
|
|
489
|
-
// weightCategory: string;
|
|
490
|
-
// infant: boolean;
|
|
491
|
-
// nationality: string;
|
|
492
|
-
// residentCountry: string;
|
|
493
|
-
// programCode: string;
|
|
494
|
-
// programLevelCode: string;
|
|
495
|
-
// programNumber: string;
|
|
496
|
-
// totalCost: number;
|
|
497
|
-
// balanceDue: number;
|
|
498
|
-
// passengerAddresses: unknown;
|
|
499
|
-
// passengerTravelDocs: unknown;
|
|
500
|
-
}
|
|
501
|
-
|
|
502
|
-
export interface IPassengerDto {
|
|
503
|
-
state: string;
|
|
504
|
-
customerNumber: string;
|
|
505
|
-
passengerNumber: string;
|
|
506
|
-
name: INameDto | {};
|
|
507
|
-
paxPriceType: IPaxPriceType;
|
|
508
|
-
passengerFees: IPassengerFeeDto[];
|
|
509
|
-
passengerPenaltyFees: IPassengerFeeDto[];
|
|
510
|
-
}
|
|
511
|
-
|
|
512
|
-
export interface IPaxPriceType {
|
|
513
|
-
paxType: IPaxTypeDto;
|
|
514
|
-
paxDiscountCodeField: string;
|
|
515
|
-
}
|
|
516
|
-
|
|
517
|
-
export interface IPersonNameDto {
|
|
518
|
-
personId: number;
|
|
519
|
-
personNameId: number;
|
|
520
|
-
nameType: string;
|
|
521
|
-
name: INameDto;
|
|
522
|
-
state: IMessageStateDto;
|
|
523
|
-
createdAgentId: number;
|
|
524
|
-
createdDate: Date;
|
|
525
|
-
modifiedAgentId: number;
|
|
526
|
-
modifiedDate: Date;
|
|
527
|
-
}
|
|
528
|
-
|
|
529
|
-
export interface IPassengerFeeDto {
|
|
530
|
-
// feeNumber: number;
|
|
531
|
-
feeCode: string;
|
|
532
|
-
feeType: string;
|
|
533
|
-
// actionStatusCode: string;
|
|
534
|
-
// feeDetail: string;
|
|
535
|
-
// note: string;
|
|
536
|
-
// feeOverride: boolean;
|
|
537
|
-
// refNumber: number;
|
|
538
|
-
charges: IServiceChargeDto[];
|
|
539
|
-
// SSRCode: string;
|
|
540
|
-
// SSRNumber: number;
|
|
541
|
-
// paymentId: number;
|
|
542
|
-
// createdAgentId: number;
|
|
543
|
-
// createdDate: Date;
|
|
544
|
-
}
|
|
545
|
-
|
|
546
|
-
export interface IJourneyServiceDto {
|
|
547
|
-
notForGeneralUse: boolean;
|
|
548
|
-
sellKey: string;
|
|
549
|
-
fare: IFareDto;
|
|
550
|
-
segments: ISegment1Dto[];
|
|
551
|
-
salesDate: Date;
|
|
552
|
-
}
|
|
553
|
-
|
|
554
|
-
interface IBaseSegmentDto {
|
|
555
|
-
state: IMessageStateDto;
|
|
556
|
-
departure: {
|
|
557
|
-
station: string;
|
|
558
|
-
dateTime: Date;
|
|
559
|
-
terminalOverride?: string;
|
|
560
|
-
};
|
|
561
|
-
arrival: {
|
|
562
|
-
station: string;
|
|
563
|
-
dateTime: Date;
|
|
564
|
-
terminalOverride?: string;
|
|
565
|
-
};
|
|
566
|
-
flightDesignator: IFlightDesignatorDto;
|
|
567
|
-
segmentType: string;
|
|
568
|
-
international: boolean;
|
|
569
|
-
legs: ILegDto[];
|
|
570
|
-
sellKey: string;
|
|
571
|
-
trafficRestriction: string;
|
|
572
|
-
}
|
|
573
|
-
|
|
574
|
-
export interface ISegmentDto extends IBaseSegmentDto {
|
|
575
|
-
jointOpInfoOverride: string;
|
|
576
|
-
inventorySegmentSSRNEsts: string;
|
|
577
|
-
segmentClasses: string[];
|
|
578
|
-
fares: IFareDto[];
|
|
579
|
-
}
|
|
580
|
-
|
|
581
|
-
export interface ISegment1Dto extends IBaseSegmentDto {
|
|
582
|
-
fares: IFareDto[];
|
|
583
|
-
cancelSegment: boolean;
|
|
584
|
-
actionStatusCode: string;
|
|
585
|
-
classOfService: string;
|
|
586
|
-
classType: string;
|
|
587
|
-
paxCount: number;
|
|
588
|
-
priorityCode: string;
|
|
589
|
-
priorityDate: Date;
|
|
590
|
-
changeReasonCode: string;
|
|
591
|
-
timeChanged: boolean;
|
|
592
|
-
tripType: ITripTypeDto;
|
|
593
|
-
checkInStatus: ICheckInStatusDto;
|
|
594
|
-
createdDate: Date;
|
|
595
|
-
paxSegmentServices: IPaxSegmentServiceDto[];
|
|
596
|
-
fareClassOfService: string;
|
|
597
|
-
cabinOfService: string;
|
|
598
|
-
aVSStatusIndicator: IClassStatusDto;
|
|
599
|
-
segmentId: string;
|
|
600
|
-
}
|
|
601
|
-
|
|
602
|
-
export interface IPaxSegmentServiceDto {
|
|
603
|
-
passengerId: number;
|
|
604
|
-
passengerNumber: number;
|
|
605
|
-
// * created field
|
|
606
|
-
baggageCount: number;
|
|
607
|
-
baggageWeight: number;
|
|
608
|
-
paxLegServices?: IPaxLegServiceDto[];
|
|
609
|
-
// boardingSequence: string;
|
|
610
|
-
// liftStatus: ILiftStatus1;
|
|
611
|
-
// seatAssignmentLevel: ISeatAssignmentLevel;
|
|
612
|
-
// activityDate: Date;
|
|
613
|
-
}
|
|
614
|
-
|
|
615
|
-
export interface IPaxLegServiceDto {
|
|
616
|
-
legNumber: number;
|
|
617
|
-
legSSRServices: unknown;
|
|
618
|
-
legBaggageList: ILegBaggageDto[];
|
|
619
|
-
}
|
|
620
|
-
|
|
621
|
-
export interface ILegBaggageDto {
|
|
622
|
-
baggageId: string;
|
|
623
|
-
baggageStatus: IBaggageStatusDto;
|
|
624
|
-
compartmentId: string;
|
|
625
|
-
}
|
|
626
|
-
|
|
627
|
-
export interface IFareChangeDto {
|
|
628
|
-
journeyKey: string;
|
|
629
|
-
fareClass: string;
|
|
630
|
-
paxFares: IPaxFareDto[];
|
|
631
|
-
}
|
|
632
|
-
|
|
633
|
-
export interface IOtherServiceInformationDto {
|
|
634
|
-
text: string;
|
|
635
|
-
OSIType: string;
|
|
636
|
-
OSISeverity: string;
|
|
637
|
-
}
|
|
638
|
-
|
|
639
|
-
export interface IBookingQueueInfoDto {
|
|
640
|
-
bookingID: string;
|
|
641
|
-
passengerID: string;
|
|
642
|
-
queueCode: string;
|
|
643
|
-
notes: string;
|
|
644
|
-
queueEventType: string;
|
|
645
|
-
watchListID: string;
|
|
646
|
-
queueName: string;
|
|
647
|
-
queueAction: string;
|
|
648
|
-
queueMode: string;
|
|
649
|
-
}
|
|
650
|
-
|
|
651
|
-
export interface IPaymentDto {
|
|
652
|
-
paymentID: string;
|
|
653
|
-
referenceType: string;
|
|
654
|
-
referenceID: string;
|
|
655
|
-
paymentMethodType: string;
|
|
656
|
-
paymentMethodCode: string;
|
|
657
|
-
currencyCode: string;
|
|
658
|
-
nominalPaymentAmount: number;
|
|
659
|
-
collectedCurrencyCode: string;
|
|
660
|
-
collectedAmount: number;
|
|
661
|
-
quotedCurrencyCode: string;
|
|
662
|
-
quotedAmount: number;
|
|
663
|
-
status: string;
|
|
664
|
-
accountNumber: string;
|
|
665
|
-
expiration: Date;
|
|
666
|
-
authorizationCode: string;
|
|
667
|
-
authorizationStatus: string;
|
|
668
|
-
parentPaymentId: string;
|
|
669
|
-
transferred: boolean;
|
|
670
|
-
DCCTransactionID: string;
|
|
671
|
-
DCCRateID: string;
|
|
672
|
-
DCCStatus: string;
|
|
673
|
-
reconciliationID: string;
|
|
674
|
-
fundedDate: Date;
|
|
675
|
-
installments: number;
|
|
676
|
-
paymentText: string;
|
|
677
|
-
channelType: string;
|
|
678
|
-
paymentNumber: string;
|
|
679
|
-
accountName: string;
|
|
680
|
-
sourcePointOfSale?: IPointOfSaleDto;
|
|
681
|
-
pointOfSale: IPointOfSaleDto;
|
|
682
|
-
paymentFields?: IPaymentFieldDto[];
|
|
683
|
-
paymentAddresses?: IPaymentAddressDto[];
|
|
684
|
-
paymentAttachments?: IPaymentAttachmentDto[];
|
|
685
|
-
interestAmount: number;
|
|
686
|
-
taxAmount: number;
|
|
687
|
-
}
|
|
688
|
-
|
|
689
|
-
export interface IPaymentFieldDto {
|
|
690
|
-
fieldName: string;
|
|
691
|
-
fieldValue: string | boolean;
|
|
692
|
-
}
|
|
693
|
-
|
|
694
|
-
export interface IPaymentAddressDto {
|
|
695
|
-
paymentID: string;
|
|
696
|
-
companyName: string;
|
|
697
|
-
addressLine1: string;
|
|
698
|
-
addressLine2: string;
|
|
699
|
-
addressLine3: string;
|
|
700
|
-
city: string;
|
|
701
|
-
provinceState: string;
|
|
702
|
-
postalCode: string;
|
|
703
|
-
countryCode: string;
|
|
704
|
-
}
|
|
705
|
-
|
|
706
|
-
export interface IPaymentAttachmentDto {
|
|
707
|
-
paymentID: string;
|
|
708
|
-
paymentAttachmentID: string;
|
|
709
|
-
paymentAttachmentType: string;
|
|
710
|
-
attachment: string[];
|
|
711
|
-
}
|
|
712
|
-
|
|
713
|
-
export interface IRecordLocatorDto {
|
|
714
|
-
systemDomainCode: string;
|
|
715
|
-
owningSystemCode: string;
|
|
716
|
-
recordCode: string;
|
|
717
|
-
bookingSystemCode: string;
|
|
718
|
-
interactionPurpose: string;
|
|
719
|
-
hostedCarrierCode: string;
|
|
720
|
-
}
|
|
721
|
-
|
|
722
|
-
export interface IBookingCommentDto {
|
|
723
|
-
bookingCommentID: string;
|
|
724
|
-
commentType: string;
|
|
725
|
-
commentText: string;
|
|
726
|
-
pointOfSale: IPointOfSaleDto;
|
|
727
|
-
}
|
|
728
|
-
|
|
729
|
-
export interface ISSRResponseDto {
|
|
730
|
-
inventoryLegKey: string;
|
|
731
|
-
passengerNumber: string;
|
|
732
|
-
legSSRServices: ILegSSRServiceDto[];
|
|
733
|
-
}
|
|
734
|
-
|
|
735
|
-
export interface ILegSSRServiceDto {
|
|
736
|
-
actionStatusCode: string;
|
|
737
|
-
SSRCode: string;
|
|
738
|
-
SSRNumber: string;
|
|
739
|
-
SSRDetail: string;
|
|
740
|
-
note: string;
|
|
741
|
-
feeCode: string;
|
|
742
|
-
unitValue: number;
|
|
743
|
-
}
|
|
744
|
-
|
|
745
|
-
export interface ISeatResponseDto {
|
|
746
|
-
flightDesignator: IFlightDesignatorDto;
|
|
747
|
-
departure: {
|
|
748
|
-
station: string;
|
|
749
|
-
dateTime: Date;
|
|
750
|
-
};
|
|
751
|
-
arrival: {
|
|
752
|
-
station: string;
|
|
753
|
-
dateTime: Date;
|
|
754
|
-
};
|
|
755
|
-
passengerNumber: string;
|
|
756
|
-
seat: ISeatDto;
|
|
757
|
-
seatGroup: string;
|
|
758
|
-
seatAssignmentLevel: ISeatAssignmentLevelDto;
|
|
759
|
-
seatPreference: string; //enum
|
|
760
|
-
}
|
|
761
|
-
|
|
762
|
-
export interface ISeatDto {
|
|
763
|
-
row: string;
|
|
764
|
-
column: string;
|
|
765
|
-
cabinOfService: string;
|
|
766
|
-
}
|
|
767
|
-
|
|
768
|
-
export interface ISegmentChangeDto {
|
|
769
|
-
flightDesignator: IFlightDesignatorDto;
|
|
770
|
-
departure: {
|
|
771
|
-
station: string;
|
|
772
|
-
dateTime: Date;
|
|
773
|
-
};
|
|
774
|
-
arrival: {
|
|
775
|
-
station: string;
|
|
776
|
-
dateTime: Date;
|
|
777
|
-
};
|
|
778
|
-
classOfService: string;
|
|
779
|
-
cabinOfService: string;
|
|
780
|
-
}
|
|
781
|
-
|
|
782
|
-
export interface IPassengerSegmentDto {
|
|
783
|
-
flightDesignator: IFlightDesignatorDto;
|
|
784
|
-
departure: {
|
|
785
|
-
station: string;
|
|
786
|
-
dateTime: Date;
|
|
787
|
-
};
|
|
788
|
-
arrival: {
|
|
789
|
-
station: string;
|
|
790
|
-
dateTime: Date;
|
|
791
|
-
};
|
|
792
|
-
passengerNumber: string;
|
|
793
|
-
ticketIndicator: string;
|
|
794
|
-
ticketNumber: string;
|
|
795
|
-
ticketStatus: string;
|
|
796
|
-
infantTicketNumber: string;
|
|
797
|
-
}
|
|
798
|
-
|
|
799
|
-
export interface IBookingComponent {
|
|
800
|
-
shouldCommitToPDS: string;
|
|
801
|
-
bookingComponentID: string;
|
|
802
|
-
bookingID: string;
|
|
803
|
-
supplierCode: string;
|
|
804
|
-
supplierRecordLocator: string;
|
|
805
|
-
systemCode: string;
|
|
806
|
-
systemRecordLocator: string;
|
|
807
|
-
recordReference: string;
|
|
808
|
-
serviceTypeCode: string;
|
|
809
|
-
status: string;
|
|
810
|
-
beginDate: Date;
|
|
811
|
-
endDate: Date;
|
|
812
|
-
beginLocationCode: string;
|
|
813
|
-
endLocationCode: string;
|
|
814
|
-
sourceCode: string;
|
|
815
|
-
rateCode: string;
|
|
816
|
-
productCode: string;
|
|
817
|
-
SKUCode: string;
|
|
818
|
-
quantity: number;
|
|
819
|
-
passengerID: string;
|
|
820
|
-
passengerNumber: string;
|
|
821
|
-
flightReference: string;
|
|
822
|
-
productDescription: string;
|
|
823
|
-
changeReasonCode: string;
|
|
824
|
-
createdAgentCode: string;
|
|
825
|
-
createdOrganizationCode: string;
|
|
826
|
-
createdDomainCode: string;
|
|
827
|
-
createdLocationCode: string;
|
|
828
|
-
sourceAgentCode: string;
|
|
829
|
-
sourceOrganizationCode: string;
|
|
830
|
-
sourceDomainCode: string;
|
|
831
|
-
sourceLocationCode: string;
|
|
832
|
-
bookingComponentCharges: IBookingComponentChargeDto[];
|
|
833
|
-
bookingComponentDetails: IBookingComponentDetailDto[];
|
|
834
|
-
bookingComponentInfos: IBookingComponentInfoDto[];
|
|
835
|
-
bookingComponentNotes: IBookingComponentNoteDto[];
|
|
836
|
-
bookingComponentSSRs: IBookingComponentSSRDto[];
|
|
837
|
-
}
|
|
838
|
-
|
|
839
|
-
export interface IBookingComponentChargeDto {
|
|
840
|
-
bookingComponentID: string;
|
|
841
|
-
chargeNumber: string;
|
|
842
|
-
chargeType: IChargeTypeDto;
|
|
843
|
-
chargeCode: string;
|
|
844
|
-
ticketCode: string;
|
|
845
|
-
collectType: ICollectTypeDto;
|
|
846
|
-
currencyCode: string;
|
|
847
|
-
chargeAmount: number;
|
|
848
|
-
chargeDetail: string;
|
|
849
|
-
foreignCurrencyCode: string;
|
|
850
|
-
foreignAmount: number;
|
|
851
|
-
createdDateTime: Date;
|
|
852
|
-
createdAgentID: string;
|
|
853
|
-
}
|
|
854
|
-
|
|
855
|
-
export interface IBookingComponentDetailDto {
|
|
856
|
-
bookingComponentID: string;
|
|
857
|
-
productDetailTypeCode: string;
|
|
858
|
-
productDetailCode: string;
|
|
859
|
-
productDetailDescription: string;
|
|
860
|
-
}
|
|
861
|
-
|
|
862
|
-
export interface IBookingComponentInfoDto {
|
|
863
|
-
bookingComponentID: string;
|
|
864
|
-
typeCode: string;
|
|
865
|
-
infoData: string;
|
|
866
|
-
}
|
|
867
|
-
|
|
868
|
-
export interface IBookingComponentNoteDto {
|
|
869
|
-
bookingComponentID: string;
|
|
870
|
-
typeCode: string;
|
|
871
|
-
note: string;
|
|
872
|
-
}
|
|
873
|
-
|
|
874
|
-
export interface IBookingComponentSSRDto {
|
|
875
|
-
bookingComponentID: string;
|
|
876
|
-
SSRNumber: string;
|
|
877
|
-
SSRCode: string;
|
|
878
|
-
note: string;
|
|
879
|
-
}
|
|
880
|
-
|
|
881
|
-
export interface IValidationErrorDto {
|
|
882
|
-
errorType: string;
|
|
883
|
-
errorDescription: string;
|
|
884
|
-
attributeName: string;
|
|
885
|
-
}
|
|
886
|
-
export interface IPriceDetailsDto {
|
|
887
|
-
total: number;
|
|
888
|
-
totalPublic: number;
|
|
889
|
-
totalFare: number;
|
|
890
|
-
totalTaxes: number;
|
|
891
|
-
totalAdditional: number;
|
|
892
|
-
totalDiscount: number;
|
|
893
|
-
totalPassengerFees?: number;
|
|
894
|
-
totalDiscountMargin: number;
|
|
895
|
-
}
|