Class OnboardingHandler


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

      • OnboardingHandler

        public OnboardingHandler​(RestService restService)
    • Method Detail

      • getOnboardingStatus

        public OnboardingResponse getOnboardingStatus()
                                               throws MollieException
        Get the status of onboarding of the authenticated organization.
        Returns:
        OnboardingResponse object
        Throws:
        MollieException - when something went wrong
      • getOnboardingStatus

        public OnboardingResponse getOnboardingStatus​(QueryParams params)
                                               throws MollieException
        Get the status of onboarding of the authenticated organization.
        Parameters:
        params - A map of query params
        Returns:
        OnboardingResponse object
        Throws:
        MollieException - when something went wrong
      • submitOnboardingData

        @Deprecated
        public void submitOnboardingData​(OnboardingRequest body)
                                  throws MollieException
        Deprecated.
        Use ClientLinkHandler.createClientLink()
        Submit data that will be prefilled in the merchant’s onboarding. Please note that the data you submit will only be processed when the onboarding status is needs-data.
        Parameters:
        body - OnboardingRequest object
        Throws:
        MollieException - when something went wrong
      • submitOnboardingData

        @Deprecated
        public void submitOnboardingData​(OnboardingRequest body,
                                         QueryParams params)
                                  throws MollieException
        Deprecated.
        Use ClientLinkHandler.createClientLink()
        Submit data that will be prefilled in the merchant’s onboarding. Please note that the data you submit will only be processed when the onboarding status is needs-data.
        Parameters:
        body - OnboardingRequest object
        params - A map of query params
        Throws:
        MollieException - when something went wrong