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