diff --git a/CHANGELOG.md b/CHANGELOG.md index b42ce2a..9f52ed6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -42,9 +42,15 @@ Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) princip - Add `AccountBilling.timestampsAtsa` and `AccountBilling.timestampsPostSignum` property - Add `Features.timestampsAtsa` and `Features.timestampsPostSignum` property - Add `EnvelopeProperties.timestampsEnabled` property -- Add `EnvelopeProperties.timestampsRenewalPeriod` property +- Add `EnvelopeProperties.defaultTimestampsRenewalPeriod` property - Add `Features.timestampsRenewal` property - Add `AccountBilling.timestampsRenewal` property +- Add `EnvelopeDocument.timestampEnabled` and `EnvelopeDocument.timestampsRenewalPeriod` properties +- Add `EnvelopeTemplateDocument.timestampEnabled` and `EnvelopeTemplateDocument.timestampsRenewalPeriod` properties +- Add `EnvelopeProperties.defaultTimestampDocuments` and `EnvelopeProperties.timestampAuditLogRenewalPeriod` properties +- Add `EnvelopeTemplate.defaultTimestampDocuments` property +- Deprecate `EnvelopeProperties.timestampDocuments` in favor of `EnvelopeProperties.defaultTimestampDocuments` +- Deprecate `EnvelopeTemplate.timestampDocuments` in favor of `EnvelopeTemplate.defaultTimestampDocuments` ## [2.11.0] - 2025-11-12 ### Deprecated diff --git a/composer.json b/composer.json index 1ca30b1..ebb1dbf 100644 --- a/composer.json +++ b/composer.json @@ -45,7 +45,7 @@ "symfony/http-client": "*" }, "require-dev": { - "digitalcz/coding-standard": "^0.2.0", + "digitalcz/coding-standard": "^0.3.0", "nyholm/nsa": "^1.2.1", "nyholm/psr7": "^1.3", "php-http/httplug": "^2.1", @@ -55,6 +55,7 @@ "phpstan/phpstan-phpunit": "^1.3.2", "phpstan/phpstan-strict-rules": "^1.4.4", "phpunit/phpunit": "^9.5", + "slevomat/coding-standard": "^8.19.1", "symfony/cache": "^6.0", "symfony/http-client": "^6.0", "symfony/var-dumper": "^6.0" diff --git a/src/Resource/EnvelopeDocument.php b/src/Resource/EnvelopeDocument.php index f19460f..5d21111 100644 --- a/src/Resource/EnvelopeDocument.php +++ b/src/Resource/EnvelopeDocument.php @@ -42,4 +42,8 @@ class EnvelopeDocument extends BaseResource public ?DateTime $invalidatedAt = null; public bool $hasSignatures; + + public bool $timestampEnabled; + + public ?int $timestampsRenewalPeriod = null; } diff --git a/src/Resource/EnvelopeProperties.php b/src/Resource/EnvelopeProperties.php index 4833fa6..98ac3d5 100644 --- a/src/Resource/EnvelopeProperties.php +++ b/src/Resource/EnvelopeProperties.php @@ -27,6 +27,9 @@ class EnvelopeProperties extends BaseResource public bool $auditLogAvailableToAccountUsers; + public bool $defaultTimestampDocuments; + + /** @deprecated Use $defaultTimestampDocuments instead */ public bool $timestampDocuments; public bool $timestampAuditLog; @@ -51,5 +54,7 @@ class EnvelopeProperties extends BaseResource public bool $timestampsEnabled; - public ?int $timestampsRenewalPeriod; + public ?int $defaultTimestampsRenewalPeriod = null; + + public ?int $timestampAuditLogRenewalPeriod = null; } diff --git a/src/Resource/EnvelopeTemplate.php b/src/Resource/EnvelopeTemplate.php index e481448..df394e6 100644 --- a/src/Resource/EnvelopeTemplate.php +++ b/src/Resource/EnvelopeTemplate.php @@ -47,6 +47,9 @@ class EnvelopeTemplate extends BaseResource public string $channelForDownload; + public bool $defaultTimestampDocuments; + + /** @deprecated Use $defaultTimestampDocuments instead */ public bool $timestampDocuments; public bool $sendCompleted; diff --git a/src/Resource/EnvelopeTemplateDocument.php b/src/Resource/EnvelopeTemplateDocument.php index 30f11cf..a5c02b4 100644 --- a/src/Resource/EnvelopeTemplateDocument.php +++ b/src/Resource/EnvelopeTemplateDocument.php @@ -24,4 +24,8 @@ class EnvelopeTemplateDocument extends BaseResource /** @var array */ public array $assignments; + + public bool $timestampEnabled; + + public ?int $timestampsRenewalPeriod = null; }