on develop help sign in
Regenerating gogol-qpxexpress from latest service definition
commitb9abae0211be4ec5ec1af73615d3dfa84ac39bab authorBrendan Hay <brendan.g.hay@gmail.com> dateTue 25 Oct 2016, 11:37 (10 years ago) parent78c61c0
4 files changed+26−8
gen/model/qpxexpress/v1/qpxexpress-api.json+6−2 gogol-qpxexpress/gen/Network/Google/QPXExpress.hs+1 gogol-qpxexpress/gen/Network/Google/QPXExpress/Types.hs+1 gogol-qpxexpress/gen/Network/Google/QPXExpress/Types/Product.hs+18−6
gen/model/qpxexpress/v1/qpxexpress-api.json+6−2
@@ -1,12 +1,12 @@
11{
22 "kind": "discovery#restDescription",
3− "etag": "\"bRFOOrZKfO9LweMbPqu0kcu6De8/mP0X0J9scme9uxhB3oYtWrSUhT0\"",
3+ "etag": "\"C5oy1hgQsABtYOYIOXWcR3BgYqU/ijp44wmwc3ANNTETi-Hxe_Mf9S0\"",
44 "discoveryVersion": "v1",
55 "id": "qpxExpress:v1",
66 "name": "qpxExpress",
77 "canonicalName": "QPX Express",
88 "version": "v1",
9− "revision": "20160307",
9+ "revision": "20160708",
1010 "title": "QPX Express API",
1111 "description": "Finds the least expensive flights between an origin and a destination.",
1212 "ownerDomain": "google.com",
@@ -816,6 +816,10 @@
816816 "type": "integer",
817817 "description": "The number of solutions to return, maximum 500.",
818818 "format": "int32"
819+ },
820+ "ticketingCountry": {
821+ "type": "string",
822+ "description": "IATA country code representing the point of ticketing."
819823 }
820824 }
821825 },
gogol-qpxexpress/gen/Network/Google/QPXExpress.hs+1
@@ -243,6 +243,7 @@ module Network.Google.QPXExpress
243243 , torRefundable
244244 , torSaleCountry
245245 , torPassengers
246+ , torTicketingCountry
246247 , torSolutions
247248 , torSlice
248249 , torMaxPrice
gogol-qpxexpress/gen/Network/Google/QPXExpress/Types.hs+1
@@ -231,6 +231,7 @@ module Network.Google.QPXExpress.Types
231231 , torRefundable
232232 , torSaleCountry
233233 , torPassengers
234+ , torTicketingCountry
234235 , torSolutions
235236 , torSlice
236237 , torMaxPrice
gogol-qpxexpress/gen/Network/Google/QPXExpress/Types/Product.hs+18−6
@@ -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])