Skip to content
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
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) princip
- Add `query` parameter to `EnvelopeRecipientsEndpoint.update` method
- Add `BillingProfile` endpoint and resource
- Add `MyAccount.role` property
- Add `EnvelopeCategory` endpoint and resource
- Add `EnvelopeCategory` list endpoint and resource
- Add `EnvelopeRecipient.type` and `EnvelopeTemplateRecipient.type` property
- Add `EnvelopeProperties.consumerWithdrawalPeriod` property
- Add `EnvelopeProperties.consumerGuide` property
Expand Down
3 changes: 0 additions & 3 deletions src/Endpoint/EnvelopeCategoriesEndpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,18 @@
namespace DigitalCz\DigiSign\Endpoint;

use DigitalCz\DigiSign\DigiSign;
use DigitalCz\DigiSign\Endpoint\Traits\GetEndpointTrait;
use DigitalCz\DigiSign\Endpoint\Traits\ListEndpointTrait;
use DigitalCz\DigiSign\Resource\Envelope;
use DigitalCz\DigiSign\Resource\EnvelopeCategory;

/**
* @extends ResourceEndpoint<EnvelopeCategory>
* @method Envelope get(string $id)
* @method Envelope list(array $query)
*/
class EnvelopeCategoriesEndpoint extends ResourceEndpoint
{
/** @use ListEndpointTrait<EnvelopeCategory> */
use ListEndpointTrait;
use GetEndpointTrait;

public function __construct(DigiSign $parent)
{
Expand Down
2 changes: 2 additions & 0 deletions src/Resource/Envelope.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,6 @@ class Envelope extends BaseResource
public ?Blame $sentBy = null;

public bool $sentWithSignatureScenarios;

public EnvelopeCategory $category;
}
1 change: 1 addition & 0 deletions src/Resource/EnvelopeCategory.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ final class EnvelopeCategory extends BaseResource
{
public string $id;
public string $name;
public string $value;
}
2 changes: 2 additions & 0 deletions src/Resource/EnvelopeTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,6 @@ class EnvelopeTemplate extends BaseResource
public ?EnvelopeTemplateRecipientDefaults $approverDefaults = null;

public ?EnvelopeTemplateRecipientDefaults $ccDefaults = null;

public EnvelopeCategory $category;
}
6 changes: 0 additions & 6 deletions tests/Endpoint/EnvelopeCategoriesEndpointTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@ public function testList(): void
self::assertLastRequest('GET', "/api/envelope-categories?foo=bar");
}

public function testGet(): void
{
self::endpoint()->get('foo');
self::assertLastRequest('GET', "/api/envelope-categories/foo");
}

protected static function endpoint(): EnvelopeCategoriesEndpoint
{
return self::dgs()->envelopeCategories();
Expand Down
Loading