public class CaptureHandler extends AbstractHandler
| Constructor and Description |
|---|
CaptureHandler(String baseUrl) |
| Modifier and Type | Method and Description |
|---|---|
CaptureResponse |
getCapture(String paymentId,
String captureId)
Retrieve a single capture by its ID.
|
CaptureResponse |
getCapture(String paymentId,
String captureId,
QueryParams params)
Retrieve a single capture by its ID.
|
Pagination<CaptureListResponse> |
listCaptures(String paymentId)
Retrieve all captures for a certain payment.
|
Pagination<CaptureListResponse> |
listCaptures(String paymentId,
QueryParams params)
Retrieve all captures for a certain payment.
|
delete, delete, delete, get, get, patch, patch, post, post, postWithoutBody, validateResponsepublic CaptureHandler(String baseUrl)
public CaptureResponse getCapture(String paymentId, String captureId) throws MollieException
Captures are used for payments that have the authorize-then-capture flow.
paymentId - a payment idcaptureId - a capture idMollieException - when something went wrongpublic CaptureResponse getCapture(String paymentId, String captureId, QueryParams params) throws MollieException
Captures are used for payments that have the authorize-then-capture flow.
paymentId - a payment idcaptureId - a capture idparams - A map of query parametersMollieException - when something went wrongpublic Pagination<CaptureListResponse> listCaptures(String paymentId) throws MollieException
Captures are used for payments that have the authorize-then-capture flow.
paymentId - a payment idMollieException - when something went wrongpublic Pagination<CaptureListResponse> listCaptures(String paymentId, QueryParams params) throws MollieException
Captures are used for payments that have the authorize-then-capture flow.
paymentId - a payment idparams - A map of query parametersMollieException - when something went wrongCopyright © 2020. All rights reserved.