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. Creates a test return.
See: Content API for Shopping Reference for content.orders.createtestreturn
.
Synopsis
- type OrdersCreatetestreturnResource = "content" :> ("v2.1" :> (Capture "merchantId" (Textual Word64) :> ("orders" :> (Capture "orderId" Text :> ("testreturn" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] OrdersCreateTestReturnRequest :> Post '[JSON] OrdersCreateTestReturnResponse)))))))
- ordersCreatetestreturn :: Word64 -> OrdersCreateTestReturnRequest -> Text -> OrdersCreatetestreturn
- data OrdersCreatetestreturn
- occMerchantId :: Lens' OrdersCreatetestreturn Word64
- occPayload :: Lens' OrdersCreatetestreturn OrdersCreateTestReturnRequest
- occOrderId :: Lens' OrdersCreatetestreturn Text
REST Resource
type OrdersCreatetestreturnResource = "content" :> ("v2.1" :> (Capture "merchantId" (Textual Word64) :> ("orders" :> (Capture "orderId" Text :> ("testreturn" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] OrdersCreateTestReturnRequest :> Post '[JSON] OrdersCreateTestReturnResponse))))))) Source #
A resource alias for content.orders.createtestreturn
method which the
OrdersCreatetestreturn
request conforms to.
Creating a Request
ordersCreatetestreturn Source #
Creates a value of OrdersCreatetestreturn
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data OrdersCreatetestreturn Source #
Sandbox only. Creates a test return.
See: ordersCreatetestreturn
smart constructor.
Instances
Request Lenses
occMerchantId :: Lens' OrdersCreatetestreturn Word64 Source #
The ID of the account that manages the order. This cannot be a multi-client account.
occPayload :: Lens' OrdersCreatetestreturn OrdersCreateTestReturnRequest Source #
Multipart request metadata.
occOrderId :: Lens' OrdersCreatetestreturn Text Source #
The ID of the order.