sm-types 1.9.16 → 1.9.18
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-core/flight-controller/requests.d.ts +29 -0
- package/api-core/flight-controller/requests.js +2 -0
- package/api-core/flight-controller/responses.d.ts +43 -0
- package/api-core/flight-controller/responses.js +2 -0
- package/errors/web-app/index.d.ts +116 -0
- package/errors/web-app/index.js +5 -1
- package/errors/web-app/use-cases/listFlightJourneyOptions.d.ts +65 -0
- package/errors/web-app/use-cases/listFlightJourneyOptions.js +68 -0
- package/errors/web-app/use-cases/recalculateFlightChanges.d.ts +51 -0
- package/errors/web-app/use-cases/recalculateFlightChanges.js +54 -0
- package/package.json +1 -1
- package/sm-airlines/dtos/request.d.ts +11 -0
- package/sm-airlines/dtos/response.d.ts +12 -0
- package/sm-airlines/index.d.ts +1 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { CabinClass } from "../../common";
|
|
2
|
+
export type JourneyRequestDto = {
|
|
3
|
+
origin: {
|
|
4
|
+
locale: string;
|
|
5
|
+
country: string;
|
|
6
|
+
};
|
|
7
|
+
destination: {
|
|
8
|
+
locale: string;
|
|
9
|
+
country: string;
|
|
10
|
+
};
|
|
11
|
+
date: string;
|
|
12
|
+
cabin_class: CabinClass;
|
|
13
|
+
};
|
|
14
|
+
export type ListFlightJourneyOptionsRequestReqDto = {
|
|
15
|
+
journeys_to_change: {
|
|
16
|
+
journey_id_to_change: string;
|
|
17
|
+
journey_request_data: JourneyRequestDto;
|
|
18
|
+
}[];
|
|
19
|
+
};
|
|
20
|
+
export type SelectedFareToRecalculateDto = {
|
|
21
|
+
fare_id: string;
|
|
22
|
+
itinerary_id: string;
|
|
23
|
+
};
|
|
24
|
+
export type RecalculateFlightOfferReqDto = {
|
|
25
|
+
journeys_to_calculate_change: {
|
|
26
|
+
journey_id_to_change: string;
|
|
27
|
+
new_selected_fare: SelectedFareToRecalculateDto;
|
|
28
|
+
}[];
|
|
29
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { IJourneyIdentificator, IListOffersResDto, IPriceDetails, ISmWcfBound, ISmWcfFamilyOffer } from "../../sm-airlines";
|
|
2
|
+
export type EnrichedGeneralData = IListOffersResDto['generalData'] & {
|
|
3
|
+
searchResultCount: number;
|
|
4
|
+
};
|
|
5
|
+
export type JourneyOption = {
|
|
6
|
+
journey: ISmWcfBound;
|
|
7
|
+
extra_info: {
|
|
8
|
+
supplier: string;
|
|
9
|
+
itineraryId?: number | string;
|
|
10
|
+
travelIdentification: string | IJourneyIdentificator[];
|
|
11
|
+
price: number;
|
|
12
|
+
priceDetails: IPriceDetails;
|
|
13
|
+
flightIdentification: string;
|
|
14
|
+
stopType: string;
|
|
15
|
+
cabinClass: string;
|
|
16
|
+
diffAirports: boolean;
|
|
17
|
+
familyOffers?: ISmWcfFamilyOffer[];
|
|
18
|
+
selectedItineraryId?: number;
|
|
19
|
+
supplierSearchId?: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export type EnrichedJourneyOptions = {
|
|
23
|
+
old_journey_id: string;
|
|
24
|
+
options_for_change: JourneyOption[];
|
|
25
|
+
general_data: EnrichedGeneralData;
|
|
26
|
+
};
|
|
27
|
+
export type ListFlightJourneyOptionsResDto = {
|
|
28
|
+
journeys: EnrichedJourneyOptions[];
|
|
29
|
+
supplier: string;
|
|
30
|
+
search_valid_until: Date;
|
|
31
|
+
};
|
|
32
|
+
export type RecalculateFlightOfferResDto = {
|
|
33
|
+
base_offer_token: string;
|
|
34
|
+
journeys_changed: {
|
|
35
|
+
old_journey_id: string;
|
|
36
|
+
new_journey_id: string;
|
|
37
|
+
}[];
|
|
38
|
+
payment_details: {
|
|
39
|
+
currency_code: string;
|
|
40
|
+
amount_to_pay: number;
|
|
41
|
+
amount: number;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
@@ -50,4 +50,120 @@ export declare const APP_ERROR_CODES: {
|
|
|
50
50
|
};
|
|
51
51
|
};
|
|
52
52
|
};
|
|
53
|
+
LIST_FLIGHT_JOURNEY_OPTIONS: {
|
|
54
|
+
USER_NOT_FOUND: {
|
|
55
|
+
usecase: string;
|
|
56
|
+
type: string;
|
|
57
|
+
messageLangMap: {
|
|
58
|
+
'PT-BR': string;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
CLIENT_NOT_FOUND: {
|
|
62
|
+
usecase: string;
|
|
63
|
+
type: string;
|
|
64
|
+
messageLangMap: {
|
|
65
|
+
'PT-BR': string;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
TRAVEL_NOT_FOUND: {
|
|
69
|
+
usecase: string;
|
|
70
|
+
type: string;
|
|
71
|
+
messageLangMap: {
|
|
72
|
+
'PT-BR': string;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
OFFER_NOT_FOUND: {
|
|
76
|
+
usecase: string;
|
|
77
|
+
type: string;
|
|
78
|
+
messageLangMap: {
|
|
79
|
+
'PT-BR': string;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
USER_NOT_BELONG_TO_CLIENT: {
|
|
83
|
+
usecase: string;
|
|
84
|
+
type: string;
|
|
85
|
+
messageLangMap: {
|
|
86
|
+
'PT-BR': string;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
CABIN_CLASS_NOT_ALLOWED: {
|
|
90
|
+
usecase: string;
|
|
91
|
+
type: string;
|
|
92
|
+
messageLangMap: {
|
|
93
|
+
'PT-BR': string;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
OFFER_IS_NOT_FLIGHT: {
|
|
97
|
+
usecase: string;
|
|
98
|
+
type: string;
|
|
99
|
+
messageLangMap: {
|
|
100
|
+
'PT-BR': string;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
JOURNEY_ID_NOT_FOUND: {
|
|
104
|
+
usecase: string;
|
|
105
|
+
type: string;
|
|
106
|
+
messageLangMap: {
|
|
107
|
+
'PT-BR': string;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
MODIFICATION_NOT_ALLOWED: {
|
|
111
|
+
usecase: string;
|
|
112
|
+
type: string;
|
|
113
|
+
messageLangMap: {
|
|
114
|
+
'PT-BR': string;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
RECALCULATE_FLIGHT_CHANGES: {
|
|
119
|
+
USER_NOT_FOUND: {
|
|
120
|
+
usecase: string;
|
|
121
|
+
type: string;
|
|
122
|
+
messageLangMap: {
|
|
123
|
+
'PT-BR': string;
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
TRAVEL_NOT_FOUND: {
|
|
127
|
+
usecase: string;
|
|
128
|
+
type: string;
|
|
129
|
+
messageLangMap: {
|
|
130
|
+
'PT-BR': string;
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
OFFER_NOT_FOUND: {
|
|
134
|
+
usecase: string;
|
|
135
|
+
type: string;
|
|
136
|
+
messageLangMap: {
|
|
137
|
+
'PT-BR': string;
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
USER_NOT_BELONG_TO_CLIENT: {
|
|
141
|
+
usecase: string;
|
|
142
|
+
type: string;
|
|
143
|
+
messageLangMap: {
|
|
144
|
+
'PT-BR': string;
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
MODIFICATION_NOT_ALLOWED: {
|
|
148
|
+
usecase: string;
|
|
149
|
+
type: string;
|
|
150
|
+
messageLangMap: {
|
|
151
|
+
'PT-BR': string;
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
OFFER_IS_NOT_FLIGHT: {
|
|
155
|
+
usecase: string;
|
|
156
|
+
type: string;
|
|
157
|
+
messageLangMap: {
|
|
158
|
+
'PT-BR': string;
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
JOURNEY_ID_NOT_FOUND: {
|
|
162
|
+
usecase: string;
|
|
163
|
+
type: string;
|
|
164
|
+
messageLangMap: {
|
|
165
|
+
'PT-BR': string;
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
};
|
|
53
169
|
};
|
package/errors/web-app/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.APP_ERROR_CODES = void 0;
|
|
4
|
+
var listFlightJourneyOptions_1 = require("./use-cases/listFlightJourneyOptions");
|
|
4
5
|
var orderTravel_1 = require("./use-cases/orderTravel");
|
|
6
|
+
var recalculateFlightChanges_1 = require("./use-cases/recalculateFlightChanges");
|
|
5
7
|
exports.APP_ERROR_CODES = {
|
|
6
|
-
ORDER_TRAVEL: orderTravel_1.ORDER_TRAVEL
|
|
8
|
+
ORDER_TRAVEL: orderTravel_1.ORDER_TRAVEL,
|
|
9
|
+
LIST_FLIGHT_JOURNEY_OPTIONS: listFlightJourneyOptions_1.LIST_FLIGHT_JOURNEY_OPTIONS,
|
|
10
|
+
RECALCULATE_FLIGHT_CHANGES: recalculateFlightChanges_1.RECALCULATE_FLIGHT_CHANGES
|
|
7
11
|
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
export declare const LIST_FLIGHT_JOURNEY_OPTIONS: {
|
|
2
|
+
USER_NOT_FOUND: {
|
|
3
|
+
usecase: string;
|
|
4
|
+
type: string;
|
|
5
|
+
messageLangMap: {
|
|
6
|
+
'PT-BR': string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
CLIENT_NOT_FOUND: {
|
|
10
|
+
usecase: string;
|
|
11
|
+
type: string;
|
|
12
|
+
messageLangMap: {
|
|
13
|
+
'PT-BR': string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
TRAVEL_NOT_FOUND: {
|
|
17
|
+
usecase: string;
|
|
18
|
+
type: string;
|
|
19
|
+
messageLangMap: {
|
|
20
|
+
'PT-BR': string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
OFFER_NOT_FOUND: {
|
|
24
|
+
usecase: string;
|
|
25
|
+
type: string;
|
|
26
|
+
messageLangMap: {
|
|
27
|
+
'PT-BR': string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
USER_NOT_BELONG_TO_CLIENT: {
|
|
31
|
+
usecase: string;
|
|
32
|
+
type: string;
|
|
33
|
+
messageLangMap: {
|
|
34
|
+
'PT-BR': string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
CABIN_CLASS_NOT_ALLOWED: {
|
|
38
|
+
usecase: string;
|
|
39
|
+
type: string;
|
|
40
|
+
messageLangMap: {
|
|
41
|
+
'PT-BR': string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
OFFER_IS_NOT_FLIGHT: {
|
|
45
|
+
usecase: string;
|
|
46
|
+
type: string;
|
|
47
|
+
messageLangMap: {
|
|
48
|
+
'PT-BR': string;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
JOURNEY_ID_NOT_FOUND: {
|
|
52
|
+
usecase: string;
|
|
53
|
+
type: string;
|
|
54
|
+
messageLangMap: {
|
|
55
|
+
'PT-BR': string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
MODIFICATION_NOT_ALLOWED: {
|
|
59
|
+
usecase: string;
|
|
60
|
+
type: string;
|
|
61
|
+
messageLangMap: {
|
|
62
|
+
'PT-BR': string;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LIST_FLIGHT_JOURNEY_OPTIONS = void 0;
|
|
4
|
+
exports.LIST_FLIGHT_JOURNEY_OPTIONS = {
|
|
5
|
+
USER_NOT_FOUND: {
|
|
6
|
+
usecase: 'LIST_FLIGHT_JOURNEY_OPTIONS',
|
|
7
|
+
type: 'USER_NOT_FOUND',
|
|
8
|
+
messageLangMap: {
|
|
9
|
+
'PT-BR': 'Usuário não encontrado.',
|
|
10
|
+
},
|
|
11
|
+
},
|
|
12
|
+
CLIENT_NOT_FOUND: {
|
|
13
|
+
usecase: 'LIST_FLIGHT_JOURNEY_OPTIONS',
|
|
14
|
+
type: 'CLIENT_NOT_FOUND',
|
|
15
|
+
messageLangMap: {
|
|
16
|
+
'PT-BR': 'Cliente não encontrado.',
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
TRAVEL_NOT_FOUND: {
|
|
20
|
+
usecase: 'LIST_FLIGHT_JOURNEY_OPTIONS',
|
|
21
|
+
type: 'TRAVEL_NOT_FOUND',
|
|
22
|
+
messageLangMap: {
|
|
23
|
+
'PT-BR': 'Viagem não encontrado.',
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
OFFER_NOT_FOUND: {
|
|
27
|
+
usecase: 'LIST_FLIGHT_JOURNEY_OPTIONS',
|
|
28
|
+
type: 'OFFER_NOT_FOUND',
|
|
29
|
+
messageLangMap: {
|
|
30
|
+
'PT-BR': 'A oferta original não encontrado.',
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
USER_NOT_BELONG_TO_CLIENT: {
|
|
34
|
+
usecase: 'LIST_FLIGHT_JOURNEY_OPTIONS',
|
|
35
|
+
type: 'USER_NOT_BELONG_TO_CLIENT',
|
|
36
|
+
messageLangMap: {
|
|
37
|
+
'PT-BR': 'O usuário logado não pertence ao cliente da viagem.',
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
CABIN_CLASS_NOT_ALLOWED: {
|
|
41
|
+
usecase: 'LIST_FLIGHT_JOURNEY_OPTIONS',
|
|
42
|
+
type: 'CABIN_CLASS_NOT_ALLOWED',
|
|
43
|
+
messageLangMap: {
|
|
44
|
+
'PT-BR': 'Opção de cabine não permitida.',
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
OFFER_IS_NOT_FLIGHT: {
|
|
48
|
+
usecase: 'LIST_FLIGHT_JOURNEY_OPTIONS',
|
|
49
|
+
type: 'OFFER_IS_NOT_FLIGHT',
|
|
50
|
+
messageLangMap: {
|
|
51
|
+
'PT-BR': 'A oferta não é do tipo aéreo.',
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
JOURNEY_ID_NOT_FOUND: {
|
|
55
|
+
usecase: 'LIST_FLIGHT_JOURNEY_OPTIONS',
|
|
56
|
+
type: 'JOURNEY_ID_NOT_FOUND',
|
|
57
|
+
messageLangMap: {
|
|
58
|
+
'PT-BR': 'A(s) jornada(s) selecionada(s) não encontrada(s) na oferta base.',
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
MODIFICATION_NOT_ALLOWED: {
|
|
62
|
+
usecase: 'LIST_FLIGHT_JOURNEY_OPTIONS',
|
|
63
|
+
type: 'MODIFICATION_NOT_ALLOWED',
|
|
64
|
+
messageLangMap: {
|
|
65
|
+
'PT-BR': 'A oferta não permite modificações',
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export declare const RECALCULATE_FLIGHT_CHANGES: {
|
|
2
|
+
USER_NOT_FOUND: {
|
|
3
|
+
usecase: string;
|
|
4
|
+
type: string;
|
|
5
|
+
messageLangMap: {
|
|
6
|
+
'PT-BR': string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
TRAVEL_NOT_FOUND: {
|
|
10
|
+
usecase: string;
|
|
11
|
+
type: string;
|
|
12
|
+
messageLangMap: {
|
|
13
|
+
'PT-BR': string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
OFFER_NOT_FOUND: {
|
|
17
|
+
usecase: string;
|
|
18
|
+
type: string;
|
|
19
|
+
messageLangMap: {
|
|
20
|
+
'PT-BR': string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
USER_NOT_BELONG_TO_CLIENT: {
|
|
24
|
+
usecase: string;
|
|
25
|
+
type: string;
|
|
26
|
+
messageLangMap: {
|
|
27
|
+
'PT-BR': string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
MODIFICATION_NOT_ALLOWED: {
|
|
31
|
+
usecase: string;
|
|
32
|
+
type: string;
|
|
33
|
+
messageLangMap: {
|
|
34
|
+
'PT-BR': string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
OFFER_IS_NOT_FLIGHT: {
|
|
38
|
+
usecase: string;
|
|
39
|
+
type: string;
|
|
40
|
+
messageLangMap: {
|
|
41
|
+
'PT-BR': string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
JOURNEY_ID_NOT_FOUND: {
|
|
45
|
+
usecase: string;
|
|
46
|
+
type: string;
|
|
47
|
+
messageLangMap: {
|
|
48
|
+
'PT-BR': string;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RECALCULATE_FLIGHT_CHANGES = void 0;
|
|
4
|
+
exports.RECALCULATE_FLIGHT_CHANGES = {
|
|
5
|
+
USER_NOT_FOUND: {
|
|
6
|
+
usecase: 'RECALCULATE_FLIGHT_CHANGES',
|
|
7
|
+
type: 'USER_NOT_FOUND',
|
|
8
|
+
messageLangMap: {
|
|
9
|
+
'PT-BR': 'Usuário não encontrado.',
|
|
10
|
+
},
|
|
11
|
+
},
|
|
12
|
+
TRAVEL_NOT_FOUND: {
|
|
13
|
+
usecase: 'RECALCULATE_FLIGHT_CHANGES',
|
|
14
|
+
type: 'TRAVEL_NOT_FOUND',
|
|
15
|
+
messageLangMap: {
|
|
16
|
+
'PT-BR': 'Viagem não encontrado.',
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
OFFER_NOT_FOUND: {
|
|
20
|
+
usecase: 'RECALCULATE_FLIGHT_CHANGES',
|
|
21
|
+
type: 'OFFER_NOT_FOUND',
|
|
22
|
+
messageLangMap: {
|
|
23
|
+
'PT-BR': 'A oferta original não encontrado.',
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
USER_NOT_BELONG_TO_CLIENT: {
|
|
27
|
+
usecase: 'RECALCULATE_FLIGHT_CHANGES',
|
|
28
|
+
type: 'USER_NOT_BELONG_TO_CLIENT',
|
|
29
|
+
messageLangMap: {
|
|
30
|
+
'PT-BR': 'O usuário logado não pertence ao cliente da viagem.',
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
MODIFICATION_NOT_ALLOWED: {
|
|
34
|
+
usecase: 'RECALCULATE_FLIGHT_CHANGES',
|
|
35
|
+
type: 'MODIFICATION_NOT_ALLOWED',
|
|
36
|
+
messageLangMap: {
|
|
37
|
+
'PT-BR': 'A oferta não permite modificações',
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
OFFER_IS_NOT_FLIGHT: {
|
|
41
|
+
usecase: 'RECALCULATE_FLIGHT_CHANGES',
|
|
42
|
+
type: 'OFFER_IS_NOT_FLIGHT',
|
|
43
|
+
messageLangMap: {
|
|
44
|
+
'PT-BR': 'A oferta não é do tipo aéreo.',
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
JOURNEY_ID_NOT_FOUND: {
|
|
48
|
+
usecase: 'RECALCULATE_FLIGHT_CHANGES',
|
|
49
|
+
type: 'JOURNEY_ID_NOT_FOUND',
|
|
50
|
+
messageLangMap: {
|
|
51
|
+
'PT-BR': 'A(s) jornada(s) selecionada(s) não encontrada(s) na oferta base.',
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
};
|
package/package.json
CHANGED
|
@@ -72,3 +72,14 @@ export interface IAssocitateCustomerCredentialReqDto {
|
|
|
72
72
|
customerCode: string;
|
|
73
73
|
supplierCredentialId: number;
|
|
74
74
|
}
|
|
75
|
+
export type SelectedFareToRecalculate = {
|
|
76
|
+
fareId: string;
|
|
77
|
+
itineraryId: string;
|
|
78
|
+
};
|
|
79
|
+
export type RecalculateOfferChangesDto = {
|
|
80
|
+
journeyIdToChange: string;
|
|
81
|
+
newSelectedFare: SelectedFareToRecalculate;
|
|
82
|
+
};
|
|
83
|
+
export type RecalculateOfferChangesReqDto = {
|
|
84
|
+
journeysToCalculateChange: RecalculateOfferChangesDto[];
|
|
85
|
+
};
|
|
@@ -128,3 +128,15 @@ export interface IAssocitateCustomerCredentialResDto {
|
|
|
128
128
|
customerCode: string;
|
|
129
129
|
supplierCredentialId: string;
|
|
130
130
|
}
|
|
131
|
+
export type RecalculateOfferChangesResDto = {
|
|
132
|
+
base_airlines_offer_id: number;
|
|
133
|
+
journeys_changed: {
|
|
134
|
+
old_journey_id: string;
|
|
135
|
+
new_journey_id: string;
|
|
136
|
+
}[];
|
|
137
|
+
payment_info: {
|
|
138
|
+
currency_code: string;
|
|
139
|
+
amount_to_pay: number;
|
|
140
|
+
amount: number;
|
|
141
|
+
};
|
|
142
|
+
};
|