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. Retrieves an order template that can be used to quickly create a new order in sandbox.
See: Content API for Shopping Reference for content.orders.gettestordertemplate
.
Synopsis
- type OrdersGettestOrdertemplateResource = "content" :> ("v2.1" :> (Capture "merchantId" (Textual Word64) :> ("testordertemplates" :> (Capture "templateName" OrdersGettestOrdertemplateTemplateName :> (QueryParam "country" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] OrdersGetTestOrderTemplateResponse))))))
- ordersGettestOrdertemplate :: Word64 -> OrdersGettestOrdertemplateTemplateName -> OrdersGettestOrdertemplate
- data OrdersGettestOrdertemplate
- ogoMerchantId :: Lens' OrdersGettestOrdertemplate Word64
- ogoTemplateName :: Lens' OrdersGettestOrdertemplate OrdersGettestOrdertemplateTemplateName
- ogoCountry :: Lens' OrdersGettestOrdertemplate (Maybe Text)
REST Resource
type OrdersGettestOrdertemplateResource = "content" :> ("v2.1" :> (Capture "merchantId" (Textual Word64) :> ("testordertemplates" :> (Capture "templateName" OrdersGettestOrdertemplateTemplateName :> (QueryParam "country" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] OrdersGetTestOrderTemplateResponse)))))) Source #
A resource alias for content.orders.gettestordertemplate
method which the
OrdersGettestOrdertemplate
request conforms to.
Creating a Request
ordersGettestOrdertemplate Source #
Creates a value of OrdersGettestOrdertemplate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data OrdersGettestOrdertemplate Source #
Sandbox only. Retrieves an order template that can be used to quickly create a new order in sandbox.
See: ordersGettestOrdertemplate
smart constructor.
Instances
Request Lenses
ogoMerchantId :: Lens' OrdersGettestOrdertemplate Word64 Source #
The ID of the account that should manage the order. This cannot be a multi-client account.
ogoTemplateName :: Lens' OrdersGettestOrdertemplate OrdersGettestOrdertemplateTemplateName Source #
The name of the template to retrieve.
ogoCountry :: Lens' OrdersGettestOrdertemplate (Maybe Text) Source #
The country of the template to retrieve. Defaults to US.