can request OptIn status
This commit is contained in:
@ -28,6 +28,7 @@ class Subscriber extends Entity
|
|||||||
use EndpointTrait;
|
use EndpointTrait;
|
||||||
|
|
||||||
public const STATUS_SUBSCRIBED = 'subscribed';
|
public const STATUS_SUBSCRIBED = 'subscribed';
|
||||||
|
public const STATUS_OPTIN_PENDING = 'Opt-In Pending';
|
||||||
public const BOUNCE_NOTBOUNCED = 'Not Bounced';
|
public const BOUNCE_NOTBOUNCED = 'Not Bounced';
|
||||||
|
|
||||||
private ?SubscriberEndpoint $endpoint;
|
private ?SubscriberEndpoint $endpoint;
|
||||||
@ -87,6 +88,11 @@ class Subscriber extends Entity
|
|||||||
return strtolower($this->getStatus()) === strtolower(self::STATUS_SUBSCRIBED);
|
return strtolower($this->getStatus()) === strtolower(self::STATUS_SUBSCRIBED);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function isOptInPending(): bool
|
||||||
|
{
|
||||||
|
return strtolower($this->getStatus()) === strtolower(self::STATUS_OPTIN_PENDING);
|
||||||
|
}
|
||||||
|
|
||||||
public function getBounce(): ?string
|
public function getBounce(): ?string
|
||||||
{
|
{
|
||||||
return $this->getStringOrNullValue($this->get(SubscriberEndpoint::BOUNCE));
|
return $this->getStringOrNullValue($this->get(SubscriberEndpoint::BOUNCE));
|
||||||
|
Reference in New Issue
Block a user