gogol-android-publisher-0.4.0: Google Play Developer SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.AndroidPublisher.Orders.Refund

Contents

Description

Refund a user's subscription or in-app purchase order.

See: Google Play Developer API Reference for androidpublisher.orders.refund.

Synopsis

REST Resource

type OrdersRefundResource = "androidpublisher" :> ("v3" :> ("applications" :> (Capture "packageName" Text :> ("orders" :> (CaptureMode "orderId" "refund" Text :> (QueryParam "revoke" Bool :> (QueryParam "alt" AltJSON :> Post '[JSON] ()))))))) Source #

A resource alias for androidpublisher.orders.refund method which the OrdersRefund request conforms to.

Creating a Request

ordersRefund Source #

Creates a value of OrdersRefund with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data OrdersRefund Source #

Refund a user's subscription or in-app purchase order.

See: ordersRefund smart constructor.

Instances
Eq OrdersRefund Source # 
Instance details

Defined in Network.Google.Resource.AndroidPublisher.Orders.Refund

Data OrdersRefund Source # 
Instance details

Defined in Network.Google.Resource.AndroidPublisher.Orders.Refund

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> OrdersRefund -> c OrdersRefund #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c OrdersRefund #

toConstr :: OrdersRefund -> Constr #

dataTypeOf :: OrdersRefund -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c OrdersRefund) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c OrdersRefund) #

gmapT :: (forall b. Data b => b -> b) -> OrdersRefund -> OrdersRefund #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> OrdersRefund -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> OrdersRefund -> r #

gmapQ :: (forall d. Data d => d -> u) -> OrdersRefund -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> OrdersRefund -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> OrdersRefund -> m OrdersRefund #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> OrdersRefund -> m OrdersRefund #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> OrdersRefund -> m OrdersRefund #

Show OrdersRefund Source # 
Instance details

Defined in Network.Google.Resource.AndroidPublisher.Orders.Refund

Generic OrdersRefund Source # 
Instance details

Defined in Network.Google.Resource.AndroidPublisher.Orders.Refund

Associated Types

type Rep OrdersRefund :: Type -> Type #

GoogleRequest OrdersRefund Source # 
Instance details

Defined in Network.Google.Resource.AndroidPublisher.Orders.Refund

Associated Types

type Rs OrdersRefund :: Type #

type Scopes OrdersRefund :: [Symbol] #

type Rep OrdersRefund Source # 
Instance details

Defined in Network.Google.Resource.AndroidPublisher.Orders.Refund

type Rep OrdersRefund = D1 (MetaData "OrdersRefund" "Network.Google.Resource.AndroidPublisher.Orders.Refund" "gogol-android-publisher-0.4.0-A8TPJe0z8xz1LYUimgzodq" False) (C1 (MetaCons "OrdersRefund'" PrefixI True) (S1 (MetaSel (Just "_orPackageName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_orRevoke") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_orOrderId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Scopes OrdersRefund Source # 
Instance details

Defined in Network.Google.Resource.AndroidPublisher.Orders.Refund

type Scopes OrdersRefund = "https://www.googleapis.com/auth/androidpublisher" ': ([] :: [Symbol])
type Rs OrdersRefund Source # 
Instance details

Defined in Network.Google.Resource.AndroidPublisher.Orders.Refund

type Rs OrdersRefund = ()

Request Lenses

orPackageName :: Lens' OrdersRefund Text Source #

The package name of the application for which this subscription or in-app item was purchased (for example, 'com.some.thing').

orRevoke :: Lens' OrdersRefund (Maybe Bool) Source #

Whether to revoke the purchased item. If set to true, access to the subscription or in-app item will be terminated immediately. If the item is a recurring subscription, all future payments will also be terminated. Consumed in-app items need to be handled by developer's app. (optional)

orOrderId :: Lens' OrdersRefund Text Source #

The order ID provided to the user when the subscription or in-app order was purchased.