|
|
@@ -9,6 +9,7 @@ use ApiPlatform\Metadata\ApiResource;
|
|
|
use ApiPlatform\Metadata\Get;
|
|
|
use App\ApiResources\ApiResourcesInterface;
|
|
|
use App\Enum\Organization\LegalEnum;
|
|
|
+use App\Enum\Organization\PrincipalTypeEnum;
|
|
|
use App\Enum\Organization\SettingsProductEnum;
|
|
|
use Symfony\Component\Serializer\Annotation\Groups;
|
|
|
use Symfony\Component\Validator\Constraints as Assert;
|
|
|
@@ -65,6 +66,19 @@ class OrganizationProfile implements ApiResourcesInterface
|
|
|
#[Groups('access_profile_read')]
|
|
|
private ?int $parametersId = null;
|
|
|
|
|
|
+ #[Groups('access_profile_read')]
|
|
|
+ #[Assert\Type(type: PrincipalTypeEnum::class)]
|
|
|
+ private ?PrincipalTypeEnum $principalType = null;
|
|
|
+
|
|
|
+ #[Groups('access_profile_read')]
|
|
|
+ private ?bool $trialActive = false;
|
|
|
+
|
|
|
+ #[Groups('access_profile_read')]
|
|
|
+ private ?int $trialCountDown = null;
|
|
|
+
|
|
|
+ #[Groups('access_profile_read')]
|
|
|
+ private ?SettingsProductEnum $productBeforeTrial = null;
|
|
|
+
|
|
|
public function getId(): ?int
|
|
|
{
|
|
|
return $this->id;
|
|
|
@@ -224,4 +238,52 @@ class OrganizationProfile implements ApiResourcesInterface
|
|
|
|
|
|
return $this;
|
|
|
}
|
|
|
+
|
|
|
+ public function getPrincipalType(): ?PrincipalTypeEnum
|
|
|
+ {
|
|
|
+ return $this->principalType;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function setPrincipalType(?PrincipalTypeEnum $principalType): self
|
|
|
+ {
|
|
|
+ $this->principalType = $principalType;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function isTrialActive(): bool
|
|
|
+ {
|
|
|
+ return $this->trialActive;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function setTrialActive(?bool $trialActive): self
|
|
|
+ {
|
|
|
+ $this->trialActive = $trialActive ?? false;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function getTrialCountDown(): ?int
|
|
|
+ {
|
|
|
+ return $this->trialCountDown;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function setTrialCountDown(?int $trialCountDown): self
|
|
|
+ {
|
|
|
+ $this->trialCountDown = $trialCountDown;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function getProductBeforeTrial(): ?SettingsProductEnum
|
|
|
+ {
|
|
|
+ return $this->productBeforeTrial;
|
|
|
+ }
|
|
|
+
|
|
|
+ public function setProductBeforeTrial(?SettingsProductEnum $productBeforeTrial): self
|
|
|
+ {
|
|
|
+ $this->productBeforeTrial = $productBeforeTrial;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
}
|