gogol-shopping-content-0.4.0: Google Content API for Shopping 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.Content.Orderinvoices.Createrefundinvoice

Contents

Description

Creates a refund invoice for one or more shipment groups, and triggers a refund for non-facilitated payment orders. This can only be used for line items that have previously been charged using createChargeInvoice. All amounts (except for the summary) are incremental with respect to the previous invoice.

See: Content API for Shopping Reference for content.orderinvoices.createrefundinvoice.

Synopsis

REST Resource

type OrderinvoicesCreaterefundinvoiceResource = "content" :> ("v2.1" :> (Capture "merchantId" (Textual Word64) :> ("orderinvoices" :> (Capture "orderId" Text :> ("createRefundInvoice" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] OrderinvoicesCreateRefundInvoiceRequest :> Post '[JSON] OrderinvoicesCreateRefundInvoiceResponse))))))) Source #

A resource alias for content.orderinvoices.createrefundinvoice method which the OrderinvoicesCreaterefundinvoice request conforms to.

Creating a Request

orderinvoicesCreaterefundinvoice Source #

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

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

data OrderinvoicesCreaterefundinvoice Source #

Creates a refund invoice for one or more shipment groups, and triggers a refund for non-facilitated payment orders. This can only be used for line items that have previously been charged using createChargeInvoice. All amounts (except for the summary) are incremental with respect to the previous invoice.

See: orderinvoicesCreaterefundinvoice smart constructor.

Instances
Eq OrderinvoicesCreaterefundinvoice Source # 
Instance details

Defined in Network.Google.Resource.Content.Orderinvoices.Createrefundinvoice

Data OrderinvoicesCreaterefundinvoice Source # 
Instance details

Defined in Network.Google.Resource.Content.Orderinvoices.Createrefundinvoice

Methods

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

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

toConstr :: OrderinvoicesCreaterefundinvoice -> Constr #

dataTypeOf :: OrderinvoicesCreaterefundinvoice -> DataType #

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

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

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

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

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

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

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

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

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

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

Show OrderinvoicesCreaterefundinvoice Source # 
Instance details

Defined in Network.Google.Resource.Content.Orderinvoices.Createrefundinvoice

Generic OrderinvoicesCreaterefundinvoice Source # 
Instance details

Defined in Network.Google.Resource.Content.Orderinvoices.Createrefundinvoice

Associated Types

type Rep OrderinvoicesCreaterefundinvoice :: Type -> Type #

GoogleRequest OrderinvoicesCreaterefundinvoice Source # 
Instance details

Defined in Network.Google.Resource.Content.Orderinvoices.Createrefundinvoice

type Rep OrderinvoicesCreaterefundinvoice Source # 
Instance details

Defined in Network.Google.Resource.Content.Orderinvoices.Createrefundinvoice

type Rep OrderinvoicesCreaterefundinvoice = D1 (MetaData "OrderinvoicesCreaterefundinvoice" "Network.Google.Resource.Content.Orderinvoices.Createrefundinvoice" "gogol-shopping-content-0.4.0-BIsXJOofTh8GkBklIAn8Hh" False) (C1 (MetaCons "OrderinvoicesCreaterefundinvoice'" PrefixI True) (S1 (MetaSel (Just "_ocMerchantId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Textual Word64)) :*: (S1 (MetaSel (Just "_ocPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 OrderinvoicesCreateRefundInvoiceRequest) :*: S1 (MetaSel (Just "_ocOrderId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Scopes OrderinvoicesCreaterefundinvoice Source # 
Instance details

Defined in Network.Google.Resource.Content.Orderinvoices.Createrefundinvoice

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

Defined in Network.Google.Resource.Content.Orderinvoices.Createrefundinvoice

Request Lenses

ocMerchantId :: Lens' OrderinvoicesCreaterefundinvoice Word64 Source #

The ID of the account that manages the order. This cannot be a multi-client account.