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 |
Sandbox only. Cancels a test order for customer-initiated cancellation.
See: Content API for Shopping Reference for content.orders.canceltestorderbycustomer
.
Synopsis
- type OrdersCanceltestOrderbycustomerResource = "content" :> ("v2.1" :> (Capture "merchantId" (Textual Word64) :> ("testorders" :> (Capture "orderId" Text :> ("cancelByCustomer" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] OrdersCancelTestOrderByCustomerRequest :> Post '[JSON] OrdersCancelTestOrderByCustomerResponse)))))))
- ordersCanceltestOrderbycustomer :: Word64 -> OrdersCancelTestOrderByCustomerRequest -> Text -> OrdersCanceltestOrderbycustomer
- data OrdersCanceltestOrderbycustomer
- ocoMerchantId :: Lens' OrdersCanceltestOrderbycustomer Word64
- ocoPayload :: Lens' OrdersCanceltestOrderbycustomer OrdersCancelTestOrderByCustomerRequest
- ocoOrderId :: Lens' OrdersCanceltestOrderbycustomer Text
REST Resource
type OrdersCanceltestOrderbycustomerResource = "content" :> ("v2.1" :> (Capture "merchantId" (Textual Word64) :> ("testorders" :> (Capture "orderId" Text :> ("cancelByCustomer" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] OrdersCancelTestOrderByCustomerRequest :> Post '[JSON] OrdersCancelTestOrderByCustomerResponse))))))) Source #
A resource alias for content.orders.canceltestorderbycustomer
method which the
OrdersCanceltestOrderbycustomer
request conforms to.
Creating a Request
ordersCanceltestOrderbycustomer Source #
Creates a value of OrdersCanceltestOrderbycustomer
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data OrdersCanceltestOrderbycustomer Source #
Sandbox only. Cancels a test order for customer-initiated cancellation.
See: ordersCanceltestOrderbycustomer
smart constructor.
Instances
Request Lenses
ocoMerchantId :: Lens' OrdersCanceltestOrderbycustomer Word64 Source #
The ID of the account that manages the order. This cannot be a multi-client account.
ocoPayload :: Lens' OrdersCanceltestOrderbycustomer OrdersCancelTestOrderByCustomerRequest Source #
Multipart request metadata.
ocoOrderId :: Lens' OrdersCanceltestOrderbycustomer Text Source #
The ID of the test order to cancel.