Class OrganizationHandler
- java.lang.Object
-
- be.woutschoovaerts.mollie.handler.connect.OrganizationHandler
-
public class OrganizationHandler extends Object
Handles the organizations API Mollie docs- Author:
- Wout Schoovaerts
-
-
Constructor Summary
Constructors Constructor Description OrganizationHandler(RestService restService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OrganizationResponse
getMyOrganization()
Retrieve the currently authenticated organization.OrganizationResponse
getMyOrganization(QueryParams params)
Retrieve the currently authenticated organization.OrganizationResponse
getOrganization(String organizationId)
Retrieve an organization by its ID.OrganizationResponse
getOrganization(String organizationId, QueryParams params)
Retrieve an organization by its ID.OrganizationPartnerResponse
getPartner()
Retrieve details about the partner status of the currently authenticated organization.OrganizationPartnerResponse
getPartner(QueryParams params)
Retrieve details about the partner status of the currently authenticated organization.
-
-
-
Constructor Detail
-
OrganizationHandler
public OrganizationHandler(RestService restService)
-
-
Method Detail
-
getMyOrganization
public OrganizationResponse getMyOrganization() throws MollieException
Retrieve the currently authenticated organization.- Returns:
- OrganizationResponse object
- Throws:
MollieException
- when something went wrong
-
getMyOrganization
public OrganizationResponse getMyOrganization(QueryParams params) throws MollieException
Retrieve the currently authenticated organization.- Parameters:
params
- a map of query params- Returns:
- OrganizationResponse object
- Throws:
MollieException
- when something went wrong
-
getOrganization
public OrganizationResponse getOrganization(String organizationId) throws MollieException
Retrieve an organization by its ID.If you do not know the organization’s ID, you can use the organizations list endpoint to retrieve all organizations that are accessible.
- Parameters:
organizationId
- An organization ID- Returns:
- OrganizationResponse object
- Throws:
MollieException
- when something went wrong
-
getOrganization
public OrganizationResponse getOrganization(String organizationId, QueryParams params) throws MollieException
Retrieve an organization by its ID.If you do not know the organization’s ID, you can use the organizations list endpoint to retrieve all organizations that are accessible.
- Parameters:
organizationId
- An organization IDparams
- a map of query params- Returns:
- OrganizationResponse object
- Throws:
MollieException
- when something went wrong
-
getPartner
public OrganizationPartnerResponse getPartner() throws MollieException
Retrieve details about the partner status of the currently authenticated organization.- Returns:
- OrganizationPartnerResponse object
- Throws:
MollieException
- when something went wrong
-
getPartner
public OrganizationPartnerResponse getPartner(QueryParams params) throws MollieException
Retrieve details about the partner status of the currently authenticated organization.- Parameters:
params
- a map of query params- Returns:
- OrganizationPartnerResponse object
- Throws:
MollieException
- when something went wrong
-
-