Class OrganizationHandler


  • public class OrganizationHandler
    extends Object
    Handles the organizations API Mollie docs
    Author:
    Wout Schoovaerts
    • Constructor Detail

      • OrganizationHandler

        public OrganizationHandler​(RestService restService)
    • Method Detail

      • 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 ID
        params - a map of query params
        Returns:
        OrganizationResponse object
        Throws:
        MollieException - when something went wrong