Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Returns and refunds a line item. Note that this method can only be called on fully shipped orders.
See: Content API for Shopping Reference for content.orders.returnrefundlineitem
.
Synopsis
- type OrdersReturnrefundlineitemResource = "content" :> ("v2.1" :> (Capture "merchantId" (Textual Word64) :> ("orders" :> (Capture "orderId" Text :> ("returnRefundLineItem" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] OrdersReturnRefundLineItemRequest :> Post '[JSON] OrdersReturnRefundLineItemResponse)))))))
- ordersReturnrefundlineitem :: Word64 -> OrdersReturnRefundLineItemRequest -> Text -> OrdersReturnrefundlineitem
- data OrdersReturnrefundlineitem
- orMerchantId :: Lens' OrdersReturnrefundlineitem Word64
- orPayload :: Lens' OrdersReturnrefundlineitem OrdersReturnRefundLineItemRequest
- orOrderId :: Lens' OrdersReturnrefundlineitem Text
REST Resource
type OrdersReturnrefundlineitemResource = "content" :> ("v2.1" :> (Capture "merchantId" (Textual Word64) :> ("orders" :> (Capture "orderId" Text :> ("returnRefundLineItem" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] OrdersReturnRefundLineItemRequest :> Post '[JSON] OrdersReturnRefundLineItemResponse))))))) Source #
A resource alias for content.orders.returnrefundlineitem
method which the
OrdersReturnrefundlineitem
request conforms to.
Creating a Request
ordersReturnrefundlineitem Source #
Creates a value of OrdersReturnrefundlineitem
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data OrdersReturnrefundlineitem Source #
Returns and refunds a line item. Note that this method can only be called on fully shipped orders.
See: ordersReturnrefundlineitem
smart constructor.
Instances
Request Lenses
orMerchantId :: Lens' OrdersReturnrefundlineitem Word64 Source #
The ID of the account that manages the order. This cannot be a multi-client account.
orPayload :: Lens' OrdersReturnrefundlineitem OrdersReturnRefundLineItemRequest Source #
Multipart request metadata.