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 |
Notify about charge on user's selected payments method.
See: Content API for Shopping Reference for content.orderpayments.notifycharge
.
Synopsis
- type OrderpaymentsNotifychargeResource = "content" :> ("v2.1" :> (Capture "merchantId" (Textual Word64) :> ("orderpayments" :> (Capture "orderId" Text :> ("notifyCharge" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] OrderpaymentsNotifyChargeRequest :> Post '[JSON] OrderpaymentsNotifyChargeResponse)))))))
- orderpaymentsNotifycharge :: Word64 -> OrderpaymentsNotifyChargeRequest -> Text -> OrderpaymentsNotifycharge
- data OrderpaymentsNotifycharge
- onnMerchantId :: Lens' OrderpaymentsNotifycharge Word64
- onnPayload :: Lens' OrderpaymentsNotifycharge OrderpaymentsNotifyChargeRequest
- onnOrderId :: Lens' OrderpaymentsNotifycharge Text
REST Resource
type OrderpaymentsNotifychargeResource = "content" :> ("v2.1" :> (Capture "merchantId" (Textual Word64) :> ("orderpayments" :> (Capture "orderId" Text :> ("notifyCharge" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] OrderpaymentsNotifyChargeRequest :> Post '[JSON] OrderpaymentsNotifyChargeResponse))))))) Source #
A resource alias for content.orderpayments.notifycharge
method which the
OrderpaymentsNotifycharge
request conforms to.
Creating a Request
orderpaymentsNotifycharge Source #
Creates a value of OrderpaymentsNotifycharge
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data OrderpaymentsNotifycharge Source #
Notify about charge on user's selected payments method.
See: orderpaymentsNotifycharge
smart constructor.
Instances
Request Lenses
onnMerchantId :: Lens' OrderpaymentsNotifycharge Word64 Source #
The ID of the account that manages the order. This cannot be a multi-client account.
onnPayload :: Lens' OrderpaymentsNotifycharge OrderpaymentsNotifyChargeRequest Source #
Multipart request metadata.
onnOrderId :: Lens' OrderpaymentsNotifycharge Text Source #
The ID of the order for which charge is happening.