uber-0.1.1.0: Uber client for Haskell

Safe HaskellNone
LanguageHaskell2010

Uber.Types.RideRequest

Documentation

data RideReqParams Source #

Instances

Show RideReqParams Source # 
Generic RideReqParams Source # 

Associated Types

type Rep RideReqParams :: * -> * #

ToJSON RideReqParams Source # 
type Rep RideReqParams Source # 
type Rep RideReqParams = D1 (MetaData "RideReqParams" "Uber.Types.RideRequest" "uber-0.1.1.0-Becqne0TbcLCG4NHczlEFb" False) (C1 (MetaCons "RideReqParams" PrefixI True) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "product_id") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "start_latitude") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Double))) (S1 (MetaSel (Just Symbol "start_longitude") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Double))))) ((:*:) (S1 (MetaSel (Just Symbol "start_nickname") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "start_address") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "start_place_id") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Text)))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "end_latitude") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Double))) ((:*:) (S1 (MetaSel (Just Symbol "end_longitude") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Double))) (S1 (MetaSel (Just Symbol "end_nickname") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Text))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "end_address") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "end_place_id") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "surge_confirmation_id") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "payment_method_id") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Text))))))))

data RideInfo Source #

Instances

Show RideInfo Source # 
Generic RideInfo Source # 

Associated Types

type Rep RideInfo :: * -> * #

Methods

from :: RideInfo -> Rep RideInfo x #

to :: Rep RideInfo x -> RideInfo #

FromJSON RideInfo Source # 
type Rep RideInfo Source # 

data Status Source #

Instances

Show Status Source # 
Generic Status Source # 

Associated Types

type Rep Status :: * -> * #

Methods

from :: Status -> Rep Status x #

to :: Rep Status x -> Status #

FromJSON Status Source # 
type Rep Status Source # 
type Rep Status = D1 (MetaData "Status" "Uber.Types.RideRequest" "uber-0.1.1.0-Becqne0TbcLCG4NHczlEFb" False) ((:+:) ((:+:) ((:+:) (C1 (MetaCons "Processing" PrefixI False) U1) (C1 (MetaCons "NoDriversAvailable" PrefixI False) U1)) ((:+:) (C1 (MetaCons "Accepted" PrefixI False) U1) (C1 (MetaCons "Arriving" PrefixI False) U1))) ((:+:) ((:+:) (C1 (MetaCons "InProgress" PrefixI False) U1) (C1 (MetaCons "DriverCanceled" PrefixI False) U1)) ((:+:) (C1 (MetaCons "RiderCanceled" PrefixI False) U1) (C1 (MetaCons "Completed" PrefixI False) U1))))

data Driver Source #

Constructors

Driver 

Instances

data Location Source #

Constructors

Location 

Instances

data Pickup Source #

Constructors

Pickup 

Instances

Show Pickup Source # 
Generic Pickup Source # 

Associated Types

type Rep Pickup :: * -> * #

Methods

from :: Pickup -> Rep Pickup x #

to :: Rep Pickup x -> Pickup #

FromJSON Pickup Source # 
type Rep Pickup Source # 
type Rep Pickup = D1 (MetaData "Pickup" "Uber.Types.RideRequest" "uber-0.1.1.0-Becqne0TbcLCG4NHczlEFb" False) (C1 (MetaCons "Pickup" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "p_latitude") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Double)) ((:*:) (S1 (MetaSel (Just Symbol "p_longitude") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Double)) (S1 (MetaSel (Just Symbol "p_eta") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Double)))))

data RidePatchParams Source #

data Price Source #

data Trip Source #

Instances

Show Trip Source # 

Methods

showsPrec :: Int -> Trip -> ShowS #

show :: Trip -> String #

showList :: [Trip] -> ShowS #

Generic Trip Source # 

Associated Types

type Rep Trip :: * -> * #

Methods

from :: Trip -> Rep Trip x #

to :: Rep Trip x -> Trip #

FromJSON Trip Source # 

Methods

parseJSON :: Value -> Parser Trip #

type Rep Trip Source # 
type Rep Trip = D1 (MetaData "Trip" "Uber.Types.RideRequest" "uber-0.1.1.0-Becqne0TbcLCG4NHczlEFb" False) (C1 (MetaCons "Trip" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "distance_estimate") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Double)) ((:*:) (S1 (MetaSel (Just Symbol "distance_unit") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)) (S1 (MetaSel (Just Symbol "duration_estimate") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))))

data UberError Source #

Constructors

UberError 

Fields

data SurgeError Source #

Instances

Show SurgeError Source # 
Generic SurgeError Source # 

Associated Types

type Rep SurgeError :: * -> * #

FromJSON SurgeError Source # 
type Rep SurgeError Source # 
type Rep SurgeError = D1 (MetaData "SurgeError" "Uber.Types.RideRequest" "uber-0.1.1.0-Becqne0TbcLCG4NHczlEFb" False) (C1 (MetaCons "SurgeError" PrefixI True) (S1 (MetaSel (Just Symbol "surge_confirmation") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 SurgeConfirmation)))