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 |
Creates a charge invoice for a shipment group, and triggers a charge capture for orderinvoice enabled orders.
See: Content API for Shopping Reference for content.orderinvoices.createchargeinvoice
.
Synopsis
- type OrderinvoicesCreatechargeinvoiceResource = "content" :> ("v2.1" :> (Capture "merchantId" (Textual Word64) :> ("orderinvoices" :> (Capture "orderId" Text :> ("createChargeInvoice" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] OrderinvoicesCreateChargeInvoiceRequest :> Post '[JSON] OrderinvoicesCreateChargeInvoiceResponse)))))))
- orderinvoicesCreatechargeinvoice :: Word64 -> OrderinvoicesCreateChargeInvoiceRequest -> Text -> OrderinvoicesCreatechargeinvoice
- data OrderinvoicesCreatechargeinvoice
- oMerchantId :: Lens' OrderinvoicesCreatechargeinvoice Word64
- oPayload :: Lens' OrderinvoicesCreatechargeinvoice OrderinvoicesCreateChargeInvoiceRequest
- oOrderId :: Lens' OrderinvoicesCreatechargeinvoice Text
REST Resource
type OrderinvoicesCreatechargeinvoiceResource = "content" :> ("v2.1" :> (Capture "merchantId" (Textual Word64) :> ("orderinvoices" :> (Capture "orderId" Text :> ("createChargeInvoice" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] OrderinvoicesCreateChargeInvoiceRequest :> Post '[JSON] OrderinvoicesCreateChargeInvoiceResponse))))))) Source #
A resource alias for content.orderinvoices.createchargeinvoice
method which the
OrderinvoicesCreatechargeinvoice
request conforms to.
Creating a Request
orderinvoicesCreatechargeinvoice Source #
Creates a value of OrderinvoicesCreatechargeinvoice
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data OrderinvoicesCreatechargeinvoice Source #
Creates a charge invoice for a shipment group, and triggers a charge capture for orderinvoice enabled orders.
See: orderinvoicesCreatechargeinvoice
smart constructor.
Instances
Request Lenses
oMerchantId :: Lens' OrderinvoicesCreatechargeinvoice Word64 Source #
The ID of the account that manages the order. This cannot be a multi-client account.
oPayload :: Lens' OrderinvoicesCreatechargeinvoice OrderinvoicesCreateChargeInvoiceRequest Source #
Multipart request metadata.