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 refund invoice for one or more shipment groups, and triggers a refund for non-facilitated payment orders. This can only be used for line items that have previously been charged using createChargeInvoice. All amounts (except for the summary) are incremental with respect to the previous invoice.
See: Content API for Shopping Reference for content.orderinvoices.createrefundinvoice
.
Synopsis
- type OrderinvoicesCreaterefundinvoiceResource = "content" :> ("v2.1" :> (Capture "merchantId" (Textual Word64) :> ("orderinvoices" :> (Capture "orderId" Text :> ("createRefundInvoice" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] OrderinvoicesCreateRefundInvoiceRequest :> Post '[JSON] OrderinvoicesCreateRefundInvoiceResponse)))))))
- orderinvoicesCreaterefundinvoice :: Word64 -> OrderinvoicesCreateRefundInvoiceRequest -> Text -> OrderinvoicesCreaterefundinvoice
- data OrderinvoicesCreaterefundinvoice
- ocMerchantId :: Lens' OrderinvoicesCreaterefundinvoice Word64
- ocPayload :: Lens' OrderinvoicesCreaterefundinvoice OrderinvoicesCreateRefundInvoiceRequest
- ocOrderId :: Lens' OrderinvoicesCreaterefundinvoice Text
REST Resource
type OrderinvoicesCreaterefundinvoiceResource = "content" :> ("v2.1" :> (Capture "merchantId" (Textual Word64) :> ("orderinvoices" :> (Capture "orderId" Text :> ("createRefundInvoice" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] OrderinvoicesCreateRefundInvoiceRequest :> Post '[JSON] OrderinvoicesCreateRefundInvoiceResponse))))))) Source #
A resource alias for content.orderinvoices.createrefundinvoice
method which the
OrderinvoicesCreaterefundinvoice
request conforms to.
Creating a Request
orderinvoicesCreaterefundinvoice Source #
Creates a value of OrderinvoicesCreaterefundinvoice
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data OrderinvoicesCreaterefundinvoice Source #
Creates a refund invoice for one or more shipment groups, and triggers a refund for non-facilitated payment orders. This can only be used for line items that have previously been charged using createChargeInvoice. All amounts (except for the summary) are incremental with respect to the previous invoice.
See: orderinvoicesCreaterefundinvoice
smart constructor.
Instances
Request Lenses
ocMerchantId :: Lens' OrderinvoicesCreaterefundinvoice Word64 Source #
The ID of the account that manages the order. This cannot be a multi-client account.
ocPayload :: Lens' OrderinvoicesCreaterefundinvoice OrderinvoicesCreateRefundInvoiceRequest Source #
Multipart request metadata.