public class MethodHandler extends AbstractHandler
| Constructor and Description |
|---|
MethodHandler(String baseUrl) |
| Modifier and Type | Method and Description |
|---|---|
MethodResponse |
getMethod(String methodId)
Retrieve a single method by its ID.
|
MethodResponse |
getMethod(String methodId,
QueryParams params)
Retrieve a single method by its ID.
|
Pagination<MethodListResponse> |
listMethods()
Retrieve all available payment methods.
|
Pagination<MethodListResponse> |
listMethods(QueryParams params)
Retrieve all available payment methods.
|
delete, delete, delete, get, get, patch, patch, post, post, postWithoutBody, validateResponsepublic MethodHandler(String baseUrl)
public Pagination<MethodListResponse> listMethods() throws MollieException
MollieException - When something goes wrongpublic Pagination<MethodListResponse> listMethods(QueryParams params) throws MollieException
params - A map of query parametersMollieException - When something goes wrongpublic MethodResponse getMethod(String methodId) throws MollieException
methodId - the method idMollieException - when something went wrongpublic MethodResponse getMethod(String methodId, QueryParams params) throws MollieException
methodId - the method idparams - A map of query parametersMollieException - when something went wrongCopyright © 2020. All rights reserved.