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 |
Cancels a line item, making a full refund.
See: Content API for Shopping Reference for content.orders.cancellineitem
.
Synopsis
- type OrdersCancellineitemResource = "content" :> ("v2.1" :> (Capture "merchantId" (Textual Word64) :> ("orders" :> (Capture "orderId" Text :> ("cancelLineItem" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] OrdersCancelLineItemRequest :> Post '[JSON] OrdersCancelLineItemResponse)))))))
- ordersCancellineitem :: Word64 -> OrdersCancelLineItemRequest -> Text -> OrdersCancellineitem
- data OrdersCancellineitem
- oc1MerchantId :: Lens' OrdersCancellineitem Word64
- oc1Payload :: Lens' OrdersCancellineitem OrdersCancelLineItemRequest
- oc1OrderId :: Lens' OrdersCancellineitem Text
REST Resource
type OrdersCancellineitemResource = "content" :> ("v2.1" :> (Capture "merchantId" (Textual Word64) :> ("orders" :> (Capture "orderId" Text :> ("cancelLineItem" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] OrdersCancelLineItemRequest :> Post '[JSON] OrdersCancelLineItemResponse))))))) Source #
A resource alias for content.orders.cancellineitem
method which the
OrdersCancellineitem
request conforms to.
Creating a Request
Creates a value of OrdersCancellineitem
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data OrdersCancellineitem Source #
Cancels a line item, making a full refund.
See: ordersCancellineitem
smart constructor.
Instances
Request Lenses
oc1MerchantId :: Lens' OrdersCancellineitem Word64 Source #
The ID of the account that manages the order. This cannot be a multi-client account.
oc1Payload :: Lens' OrdersCancellineitem OrdersCancelLineItemRequest Source #
Multipart request metadata.
oc1OrderId :: Lens' OrdersCancellineitem Text Source #
The ID of the order.