diff --git a/config/backend-routes/user/user.php b/config/backend-routes/user/user.php index d2da58d5..ac196f27 100644 --- a/config/backend-routes/user/user.php +++ b/config/backend-routes/user/user.php @@ -82,6 +82,12 @@ 'register', [ 'POST' => CommandConfig::getPostConfig(Command\User\RegisterUserSelfserve::class), + 'register-consultant-operator' => RouteConfig::getRouteConfig( + 'register-consultant-operator', + [ + 'POST' => CommandConfig::getPostConfig(Command\User\RegisterConsultantAndOperator::class), + ] + ), ] ), 'remind-username' => RouteConfig::getRouteConfig( diff --git a/src/Command/User/RegisterConsultantAndOperator.php b/src/Command/User/RegisterConsultantAndOperator.php new file mode 100644 index 00000000..f03965c1 --- /dev/null +++ b/src/Command/User/RegisterConsultantAndOperator.php @@ -0,0 +1,33 @@ +operatorDetails; + } + + public function getConsultantDetails() + { + return $this->consultantDetails; + } +} diff --git a/src/Command/User/RegisterUserSelfserve.php b/src/Command/User/RegisterUserSelfserve.php index ea4f8b82..6bb1a567 100644 --- a/src/Command/User/RegisterUserSelfserve.php +++ b/src/Command/User/RegisterUserSelfserve.php @@ -6,6 +6,7 @@ namespace Dvsa\Olcs\Transfer\Command\User; +use Dvsa\Olcs\Transfer\FieldType\Traits\OrganisationOptional; use Dvsa\Olcs\Transfer\FieldType\Traits\TranslateToWelshOptional; use Dvsa\Olcs\Transfer\Util\Annotation as Transfer; use Dvsa\Olcs\Transfer\Command\AbstractCommand; @@ -17,6 +18,7 @@ final class RegisterUserSelfserve extends AbstractCommand { use TranslateToWelshOptional; + use OrganisationOptional; /** * @Transfer\Filter("Laminas\Filter\StringTrim")