@@ -26,7 +26,7 @@ import Network.Google.QPXExpress.Types.Sum
26data TripOptionsResponse = TripOptionsResponse
26data TripOptionsResponse = TripOptionsResponse
27 { _torRequestId :: !(Maybe Text)
27 { _torRequestId :: !(Maybe Text)
28 , _torKind :: !Text
28 , _torKind :: !Text
29− , _torData :: !(Maybe Data)
29+ , _torData :: !(Maybe Data')
30 , _torTripOption :: !(Maybe [TripOption])
30 , _torTripOption :: !(Maybe [TripOption])
31 } deriving (Eq,Show,Data,Typeable,Generic)
31 } deriving (Eq,Show,Data,Typeable,Generic)
@@ -62,7 +62,7 @@ torKind :: Lens' TripOptionsResponse Text
62torKind = lens _torKind (\ s a -> s{_torKind = a})
62torKind = lens _torKind (\ s a -> s{_torKind = a})
64-- | Informational data global to list of solutions.
64-- | Informational data global to list of solutions.
65−torData :: Lens' TripOptionsResponse (Maybe Data)
65+torData :: Lens' TripOptionsResponse (Maybe Data')
66torData = lens _torData (\ s a -> s{_torData = a})
66torData = lens _torData (\ s a -> s{_torData = a})
68-- | A list of priced itinerary solutions to the QPX Express query.
68-- | A list of priced itinerary solutions to the QPX Express query.
@@ -312,7 +312,7 @@ instance ToJSON TimeOfDayRange where
312-- aircraft.
312-- aircraft.
314-- /See:/ 'data'' smart constructor.
314-- /See:/ 'data'' smart constructor.
315−data Data = Data
315+data Data' = Data'
316 { _dCarrier :: !(Maybe [CarrierData])
316 { _dCarrier :: !(Maybe [CarrierData])
317 , _dKind :: !Text
317 , _dKind :: !Text
318 , _dAircraft :: !(Maybe [AircraftData])
318 , _dAircraft :: !(Maybe [AircraftData])
@@ -337,9 +337,9 @@ data Data = Data
338-- * 'dTax'
338-- * 'dTax'
340− :: Data
340+ :: Data'
343 { _dCarrier = Nothing
343 { _dCarrier = Nothing
344 , _dKind = "qpxexpress#data"
344 , _dKind = "qpxexpress#data"
345 , _dAircraft = Nothing
345 , _dAircraft = Nothing
@@ -350,7 +350,7 @@ data' =
351-- | The airline carrier of the aircraft flying between an origin and
351-- | The airline carrier of the aircraft flying between an origin and
352-- destination. Allowed values are IATA carrier codes.
352-- destination. Allowed values are IATA carrier codes.
353−dCarrier :: Lens' Data [CarrierData]
353+dCarrier :: Lens' Data' [CarrierData]
355 = lens _dCarrier (\ s a -> s{_dCarrier = a}) .
355 = lens _dCarrier (\ s a -> s{_dCarrier = a}) .
@@ -359,40 +359,40 @@ dCarrier
359-- | Identifies this as QPX Express response resource, including a trip\'s
359-- | Identifies this as QPX Express response resource, including a trip\'s
360-- airport, city, taxes, airline, and aircraft. Value: the fixed string
360-- airport, city, taxes, airline, and aircraft. Value: the fixed string
361-- qpxexpress#data.
361-- qpxexpress#data.
362−dKind :: Lens' Data Text
362+dKind :: Lens' Data' Text
363dKind = lens _dKind (\ s a -> s{_dKind = a})
363dKind = lens _dKind (\ s a -> s{_dKind = a})
365-- | The aircraft that is flying between an origin and destination.
365-- | The aircraft that is flying between an origin and destination.
366−dAircraft :: Lens' Data [AircraftData]
366+dAircraft :: Lens' Data' [AircraftData]
368 = lens _dAircraft (\ s a -> s{_dAircraft = a}) .
368 = lens _dAircraft (\ s a -> s{_dAircraft = a}) .
370 . _Coerce
370 . _Coerce
372-- | The airport of an origin or destination.
372-- | The airport of an origin or destination.
373−dAirport :: Lens' Data [AirportData]
373+dAirport :: Lens' Data' [AirportData]
375 = lens _dAirport (\ s a -> s{_dAirport = a}) .
375 = lens _dAirport (\ s a -> s{_dAirport = a}) .
377 . _Coerce
377 . _Coerce
379-- | The city that is either the origin or destination of part of a trip.
379-- | The city that is either the origin or destination of part of a trip.
380−dCity :: Lens' Data [CityData]
380+dCity :: Lens' Data' [CityData]
382 = lens _dCity (\ s a -> s{_dCity = a}) . _Default .
382 = lens _dCity (\ s a -> s{_dCity = a}) . _Default .
385-- | The taxes due for flying between an origin and a destination.
385-- | The taxes due for flying between an origin and a destination.
386−dTax :: Lens' Data [TaxData]
386+dTax :: Lens' Data' [TaxData]
388 = lens _dTax (\ s a -> s{_dTax = a}) . _Default .
388 = lens _dTax (\ s a -> s{_dTax = a}) . _Default .
391−instance FromJSON Data where
391+instance FromJSON Data' where
392 parseJSON
392 parseJSON
393 = withObject "Data"
393 = withObject "Data"
395− Data <$>
395+ Data' <$>
396 (o .:? "carrier" .!= mempty) <*>
396 (o .:? "carrier" .!= mempty) <*>
397 (o .:? "kind" .!= "qpxexpress#data")
397 (o .:? "kind" .!= "qpxexpress#data")
398 <*> (o .:? "aircraft" .!= mempty)
398 <*> (o .:? "aircraft" .!= mempty)
@@ -400,8 +400,8 @@ instance FromJSON Data where
400 <*> (o .:? "city" .!= mempty)
400 <*> (o .:? "city" .!= mempty)
401 <*> (o .:? "tax" .!= mempty))
401 <*> (o .:? "tax" .!= mempty))
403−instance ToJSON Data where
403+instance ToJSON Data' where
404− toJSON Data{..}
404+ toJSON Data'{..}
406 (catMaybes
406 (catMaybes
407 [("carrier" .=) <$> _dCarrier,
407 [("carrier" .=) <$> _dCarrier,