@@ -1998,12 +1998,13 @@ instance ToJSON FareInfo where
19981998--
19991999-- /See:/ 'tripOptionsRequest' smart constructor.
20002000data TripOptionsRequest = TripOptionsRequest'
2001− { _torRefundable :: !(Maybe Bool)
2002− , _torSaleCountry :: !(Maybe Text)
2003− , _torPassengers :: !(Maybe PassengerCounts)
2004− , _torSolutions :: !(Maybe (Textual Int32))
2005− , _torSlice :: !(Maybe [SliceInput])
2006− , _torMaxPrice :: !(Maybe Text)
2001+ { _torRefundable :: !(Maybe Bool)
2002+ , _torSaleCountry :: !(Maybe Text)
2003+ , _torPassengers :: !(Maybe PassengerCounts)
2004+ , _torTicketingCountry :: !(Maybe Text)
2005+ , _torSolutions :: !(Maybe (Textual Int32))
2006+ , _torSlice :: !(Maybe [SliceInput])
2007+ , _torMaxPrice :: !(Maybe Text)
20072008 } deriving (Eq,Show,Data,Typeable,Generic)
20082009
20092010-- | Creates a value of 'TripOptionsRequest' with the minimum fields required to make a request.
@@ -2016,6 +2017,8 @@ data TripOptionsRequest = TripOptionsRequest'
20162017--
20172018-- * 'torPassengers'
20182019--
2020+-- * 'torTicketingCountry'
2021+--
20192022-- * 'torSolutions'
20202023--
20212024-- * 'torSlice'
@@ -2028,6 +2031,7 @@ tripOptionsRequest =
20282031 { _torRefundable = Nothing
20292032 , _torSaleCountry = Nothing
20302033 , _torPassengers = Nothing
2034+ , _torTicketingCountry = Nothing
20312035 , _torSolutions = Nothing
20322036 , _torSlice = Nothing
20332037 , _torMaxPrice = Nothing
@@ -2052,6 +2056,12 @@ torPassengers
20522056 = lens _torPassengers
20532057 (\ s a -> s{_torPassengers = a})
20542058
2059+-- | IATA country code representing the point of ticketing.
2060+torTicketingCountry :: Lens' TripOptionsRequest (Maybe Text)
2061+torTicketingCountry
2062+ = lens _torTicketingCountry
2063+ (\ s a -> s{_torTicketingCountry = a})
2064+
20552065-- | The number of solutions to return, maximum 500.
20562066torSolutions :: Lens' TripOptionsRequest (Maybe Int32)
20572067torSolutions
@@ -2085,6 +2095,7 @@ instance FromJSON TripOptionsRequest where
20852095 TripOptionsRequest' <$>
20862096 (o .:? "refundable") <*> (o .:? "saleCountry") <*>
20872097 (o .:? "passengers")
2098+ <*> (o .:? "ticketingCountry")
20882099 <*> (o .:? "solutions")
20892100 <*> (o .:? "slice" .!= mempty)
20902101 <*> (o .:? "maxPrice"))
@@ -2096,6 +2107,7 @@ instance ToJSON TripOptionsRequest where
20962107 [("refundable" .=) <$> _torRefundable,
20972108 ("saleCountry" .=) <$> _torSaleCountry,
20982109 ("passengers" .=) <$> _torPassengers,
2110+ ("ticketingCountry" .=) <$> _torTicketingCountry,
20992111 ("solutions" .=) <$> _torSolutions,
21002112 ("slice" .=) <$> _torSlice,
21012113 ("maxPrice" .=) <$> _torMaxPrice])