sm-types 1.10.5 → 1.10.6

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.
@@ -37,7 +37,10 @@ export type EnrichedJourneyOptions = {
37
37
  export interface IListFlightJourneyOptionsResDto {
38
38
  journeys: EnrichedJourneyOptions[];
39
39
  supplier: string;
40
- search_valid_until: Date;
40
+ session_info: {
41
+ id: string;
42
+ valid_until: Date;
43
+ };
41
44
  }
42
45
  export interface ISelectFlightChangeOptionsResDto {
43
46
  success: boolean;
@@ -46,6 +49,22 @@ export interface ISelectFlightChangeOptionsResDto {
46
49
  valid_until: Date;
47
50
  };
48
51
  }
52
+ export type RecalculateFlightOfferData = {
53
+ session_info: {
54
+ id: string;
55
+ valid_until: Date;
56
+ };
57
+ base_offer_token: string;
58
+ journeys_changed: {
59
+ old_journey_id: string;
60
+ new_journey_id: string;
61
+ }[];
62
+ payment_details: {
63
+ currency_code: string;
64
+ amount_to_pay: number;
65
+ amount: number;
66
+ };
67
+ };
49
68
  export type FlightChangeInfoJson = {
50
69
  supplier: string;
51
70
  newJourneys: ISmWcfOffer[];
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "author": "Smartrips",
4
4
  "license": "ISC",
5
5
  "keywords": [],
6
- "version": "1.10.05",
6
+ "version": "1.10.06",
7
7
  "description": "",
8
8
  "repository": {
9
9
  "type": "git",
@@ -80,26 +80,7 @@ export interface IApplyOfferChangesReqDto {
80
80
  supplierSearchId: string;
81
81
  journeysToApplyChange: OptionToRecalculateDto[];
82
82
  paymentDataHash: string;
83
- passengersInfo: {
84
- firstName: string;
85
- surname: string;
86
- birthDate: string;
87
- sex: string;
88
- nationality: string;
89
- residenceCountry: string;
90
- cpf?: {
91
- firstName: string;
92
- surname: string;
93
- number: string;
94
- };
95
- passport?: {
96
- firstName: string;
97
- surname: string;
98
- number: string;
99
- issuingCountry: string;
100
- expirationDate: string;
101
- };
102
- }[];
83
+ passengersInfo: IPassengerInfo[];
103
84
  }
104
85
  export interface IGetSupplierOffersReqDto {
105
86
  supplier: string;
@@ -2,6 +2,7 @@ import { IListOffersFiltersInfo, ISmAzulOffer, ISmWcfOffer, IPriceDetails, IWcfC
2
2
  import { CredentialTypeEnum, Nullable } from "../../common";
3
3
  import { IAzulCredentials, IAzulFareDetails } from "../../sm-azul";
4
4
  import { AmadeusCredentials, SmAmadeusOffer } from "../../sm-amadeus";
5
+ import { EnrichedJourneyOptions } from "../../api-core/flight-controller/responses";
5
6
  export interface IListFareFamiliesResDto {
6
7
  fareFamilies: ISmWcfFamilyOffer[];
7
8
  }
@@ -168,10 +169,7 @@ export interface IRecalculateOfferChangesResDto {
168
169
  };
169
170
  }
170
171
  export interface IListChangeOptionsResDto {
171
- journeys: {
172
- options_for_change: ISmWcfOffer[] | ISmAzulOffer[];
173
- general_data: IListOffersFiltersInfo;
174
- }[];
172
+ journeys: EnrichedJourneyOptions[];
175
173
  }
176
174
  export interface IGetSupplierOffersResDto {
177
175
  supplierOffers: ISmWcfOffer[];