public class ProfileHandler extends AbstractHandler
| Constructor and Description |
|---|
ProfileHandler(String baseUrl) |
| Modifier and Type | Method and Description |
|---|---|
ProfileResponse |
createProfile(ProfileRequest body)
In order to process payments, you need to create a website profile.
|
ProfileResponse |
createProfile(ProfileRequest body,
QueryParams params)
In order to process payments, you need to create a website profile.
|
void |
deleteProfile(String id)
This endpoint enables profile deletions, rendering the profile unavailable for further API calls and transactions.
|
void |
deleteProfile(String id,
QueryParams params)
This endpoint enables profile deletions, rendering the profile unavailable for further API calls and transactions.
|
void |
disableMyPaymentMethod(PaymentMethod paymentMethod)
Disable a payment method on an authenticated profile.
|
void |
disableMyPaymentMethod(PaymentMethod paymentMethod,
QueryParams params)
Disable a payment method on an authenticated profile.
|
void |
disablePaymentMethod(String profileId,
PaymentMethod paymentMethod)
Disable a payment method on a specific profile.
|
void |
disablePaymentMethod(String profileId,
PaymentMethod paymentMethod,
QueryParams params)
Disable a payment method on a specific profile.
|
MethodResponse |
enableMyPaymentMethod(PaymentMethod paymentMethod)
Enable a payment method on an authenticated profile to use it with payments.
|
MethodResponse |
enableMyPaymentMethod(PaymentMethod paymentMethod,
QueryParams params)
Enable a payment method on an authenticated profile to use it with payments.
|
MethodResponse |
enablePaymentMethod(String profileId,
PaymentMethod paymentMethod)
Enable a payment method on a specific profile to use it with payments.
|
MethodResponse |
enablePaymentMethod(String profileId,
PaymentMethod paymentMethod,
QueryParams params)
Enable a payment method on a specific profile to use it with payments.
|
ProfileResponse |
getMyProfile()
Use this API if you are creating a plugin or SaaS application that allows users to enter a Mollie API key, and you want to give a confirmation of the website profile that will be used in your plugin or application.
|
ProfileResponse |
getMyProfile(QueryParams params)
Use this API if you are creating a plugin or SaaS application that allows users to enter a Mollie API key, and you want to give a confirmation of the website profile that will be used in your plugin or application.
|
ProfileResponse |
getProfile(String id)
Retrieve details of a profile, using the profile’s identifier.
|
ProfileResponse |
getProfile(String id,
QueryParams params)
Retrieve details of a profile, using the profile’s identifier.
|
Pagination<ProfileListResponse> |
getProfiles()
Retrieve all profiles available on the account.
|
Pagination<ProfileListResponse> |
getProfiles(QueryParams params)
Retrieve all profiles available on the account.
|
ProfileResponse |
updateProfile(String id,
ProfileRequest body)
A profile is required to process payments.
|
ProfileResponse |
updateProfile(String id,
ProfileRequest body,
QueryParams params)
A profile is required to process payments.
|
delete, delete, delete, get, get, patch, patch, post, post, postWithoutBody, validateResponsepublic ProfileHandler(String baseUrl)
public ProfileResponse createProfile(ProfileRequest body) throws MollieException
body - ProfileRequest objectMollieException - when something went wrongpublic ProfileResponse createProfile(ProfileRequest body, QueryParams params) throws MollieException
body - ProfileRequest objectparams - A map of query paramsMollieException - when something went wrongpublic ProfileResponse getProfile(String id) throws MollieException
id - A profile IDMollieException - when something went wrongpublic ProfileResponse getProfile(String id, QueryParams params) throws MollieException
id - A profile IDparams - A map of query paramsMollieException - when something went wrongpublic ProfileResponse getMyProfile() throws MollieException
This is similar to the Get current organization endpoint for OAuth.
MollieException - when something went wrongpublic ProfileResponse getMyProfile(QueryParams params) throws MollieException
This is similar to the Get current organization endpoint for OAuth.
params - A map of query paramsMollieException - when something went wrongpublic ProfileResponse updateProfile(String id, ProfileRequest body) throws MollieException
id - A profile IDbody - ProfileRequest ObjectMollieException - when something went wrongpublic ProfileResponse updateProfile(String id, ProfileRequest body, QueryParams params) throws MollieException
id - A profile IDbody - ProfileRequest Objectparams - A map of query paramsMollieException - when something went wrongpublic void deleteProfile(String id) throws MollieException
id - A profile IDMollieException - when something went wrongpublic void deleteProfile(String id, QueryParams params) throws MollieException
id - A profile IDparams - A map of query paramsMollieException - when something went wrongpublic MethodResponse enableMyPaymentMethod(PaymentMethod paymentMethod) throws MollieException
paymentMethod - A payment methodMollieException - when something went wrongpublic MethodResponse enableMyPaymentMethod(PaymentMethod paymentMethod, QueryParams params) throws MollieException
paymentMethod - A payment methodparams - A map of query paramsMollieException - when something went wrongpublic MethodResponse enablePaymentMethod(String profileId, PaymentMethod paymentMethod) throws MollieException
profileId - A profile IDpaymentMethod - A payment methodMollieException - when something went wrongpublic MethodResponse enablePaymentMethod(String profileId, PaymentMethod paymentMethod, QueryParams params) throws MollieException
profileId - A profile IDpaymentMethod - A payment methodparams - A map of query paramsMollieException - when something went wrongpublic void disableMyPaymentMethod(PaymentMethod paymentMethod) throws MollieException
paymentMethod - A payment methodMollieException - when something went wrongpublic void disableMyPaymentMethod(PaymentMethod paymentMethod, QueryParams params) throws MollieException
paymentMethod - A payment methodparams - A map of query paramsMollieException - when something went wrongpublic void disablePaymentMethod(String profileId, PaymentMethod paymentMethod) throws MollieException
profileId - A profile IDpaymentMethod - A payment methodMollieException - when something went wrongpublic void disablePaymentMethod(String profileId, PaymentMethod paymentMethod, QueryParams params) throws MollieException
profileId - A profile IDpaymentMethod - A payment methodparams - A map of query paramsMollieException - when something went wrongpublic Pagination<ProfileListResponse> getProfiles() throws MollieException
MollieException - when something went wrongpublic Pagination<ProfileListResponse> getProfiles(QueryParams params) throws MollieException
params - A map of query paramsMollieException - when something went wrongCopyright © 2020. All rights reserved.