Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
16bb8e2508 |
@ -4,7 +4,11 @@ All notable changes to this project will be documented in this file.
|
|||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
## [Unreleased](https://git.d3data.de/D3Public/klicktipp-php-client/compare/1.0.3...rel_1.x)
|
## [Unreleased](https://git.d3data.de/D3Public/klicktipp-php-client/compare/1.1.0...rel_1.x)
|
||||||
|
|
||||||
|
## [1.1.0](https://git.d3data.de/D3Public/klicktipp-php-client/compare/1.0.3...1.1.0) - 2025-05-20
|
||||||
|
### Added
|
||||||
|
- can request optin pending status
|
||||||
|
|
||||||
## [1.0.3](https://git.d3data.de/D3Public/klicktipp-php-client/compare/1.0.2...1.0.3) - 2025-03-06
|
## [1.0.3](https://git.d3data.de/D3Public/klicktipp-php-client/compare/1.0.2...1.0.3) - 2025-03-06
|
||||||
### Fixed
|
### Fixed
|
||||||
|
@ -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