Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: VOL-5664 selfserve accounts require t&c signup on first login #97

Merged
merged 4 commits into from
Nov 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions config/backend-routes/user/user.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,12 @@
'POST' => CommandConfig::getPostConfig(Command\User\RemindUsernameSelfserve::class),
]
),
'agree-terms' => RouteConfig::getRouteConfig(
'agree-terms',
[
'POST' => CommandConfig::getPostConfig(Command\User\AgreeTerms::class),
]
),
'single' => RouteConfig::getSingleConfig(
[
'GET' => QueryConfig::getConfig(Query\User\UserSelfserve::class),
Expand Down
16 changes: 16 additions & 0 deletions src/Command/User/AgreeTerms.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

declare(strict_types=1);

namespace Dvsa\Olcs\Transfer\Command\User;

use Dvsa\Olcs\Transfer\Util\Annotation as Transfer;
use Dvsa\Olcs\Transfer\Command\AbstractCommand;

/**
* @Transfer\RouteName("backend/user/selfserve/agree-terms")
* @Transfer\Method("POST")
*/
final class AgreeTerms extends AbstractCommand
{
fibble marked this conversation as resolved.
Show resolved Hide resolved
}
11 changes: 11 additions & 0 deletions src/Command/User/RegisterUserSelfserve.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ final class RegisterUserSelfserve extends AbstractCommand
*/
protected $businessType;

/**
* @Transfer\Filter("Laminas\Filter\Boolean")
* @Transfer\Optional
*/
protected $createdByConsultant = false;

public function getLoginId()
{
return $this->loginId;
Expand All @@ -76,4 +82,9 @@ public function getBusinessType()
{
return $this->businessType;
}

public function getCreatedByConsultant()
{
return $this->createdByConsultant;
}
}
Loading