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 |
Submit inventory for the given merchant.
See: Content API for Shopping Reference for content.pos.inventory
.
Synopsis
- type PosInventoryResource = "content" :> ("v2.1" :> (Capture "merchantId" (Textual Word64) :> ("pos" :> (Capture "targetMerchantId" (Textual Word64) :> ("inventory" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] PosInventoryRequest :> Post '[JSON] PosInventoryResponse)))))))
- posInventory' :: Word64 -> Word64 -> PosInventoryRequest -> PosInventory'
- data PosInventory'
- piMerchantId :: Lens' PosInventory' Word64
- piTargetMerchantId :: Lens' PosInventory' Word64
- piPayload :: Lens' PosInventory' PosInventoryRequest
REST Resource
type PosInventoryResource = "content" :> ("v2.1" :> (Capture "merchantId" (Textual Word64) :> ("pos" :> (Capture "targetMerchantId" (Textual Word64) :> ("inventory" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] PosInventoryRequest :> Post '[JSON] PosInventoryResponse))))))) Source #
A resource alias for content.pos.inventory
method which the
PosInventory'
request conforms to.
Creating a Request
Creates a value of PosInventory'
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data PosInventory' Source #
Submit inventory for the given merchant.
See: posInventory'
smart constructor.
Instances
Request Lenses
piMerchantId :: Lens' PosInventory' Word64 Source #
The ID of the POS or inventory data provider.
piTargetMerchantId :: Lens' PosInventory' Word64 Source #
The ID of the target merchant.
piPayload :: Lens' PosInventory' PosInventoryRequest Source #
Multipart request metadata.