Interface B2BRegistrationFacade
- All Known Implementing Classes:
DefaultB2BRegistrationFacade
public interface B2BRegistrationFacade
Facade responsible for everything related to B2B registration
-
Method Summary
Modifier and TypeMethodDescriptionvoidregister(B2BRegistrationData data) Initiates the registration process for B2B.
-
Method Details
-
register
void register(B2BRegistrationData data) throws CustomerAlreadyExistsException, RegistrationNotEnabledException Initiates the registration process for B2B. This method will first validate the submitted data, check if a user or a company to the given name already exists, persist the registration request (as a model) and initiate the workflow so that the registration request either gets approved OR rejected.- Parameters:
data- The registration data- Throws:
CustomerAlreadyExistsException- If a user using the same email existRegistrationNotEnabledException- If the website does not support registration
-