-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
David Kalianko
committed
Jan 20, 2025
1 parent
8a7f8d1
commit 3e2001f
Showing
5 changed files
with
111 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace DigitalCz\DigiSign\Endpoint; | ||
|
||
use DigitalCz\DigiSign\DigiSign; | ||
use DigitalCz\DigiSign\Endpoint\Traits\GetEndpointTrait; | ||
use DigitalCz\DigiSign\Resource\MultiSign; | ||
|
||
/** | ||
* @extends ResourceEndpoint<MultiSign> | ||
*/ | ||
final class MultiSignEndpoint extends ResourceEndpoint | ||
{ | ||
use GetEndpointTrait; | ||
|
||
public function __construct(DigiSign $parent) | ||
{ | ||
parent::__construct($parent, '/api/multi-signs', MultiSign::class); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace DigitalCz\DigiSign\Resource; | ||
|
||
use DateTime; | ||
use DigitalCz\DigiSign\Resource\Traits\EntityResourceTrait; | ||
|
||
final class MultiSign extends BaseResource | ||
{ | ||
use EntityResourceTrait; | ||
|
||
public ?string $alias; | ||
|
||
public string $name; | ||
|
||
public string $email; | ||
|
||
public ?string $mobile; | ||
|
||
public ?DateTime $birthdate; | ||
|
||
public ?string $birthnumber; | ||
|
||
public string $role; | ||
|
||
public string $signatureType; | ||
|
||
public string $authenticationOnOpen; | ||
|
||
public string $authenticationOnSignature; | ||
|
||
public string $status; | ||
|
||
public ?SignatureScenarioVersion $scenarioVersion; | ||
|
||
/** | ||
* @var string[] | ||
*/ | ||
public array $visibleFields; | ||
|
||
public ?DateTime $sentAt; | ||
|
||
public ?DateTime $deliveredAt; | ||
|
||
public ?DateTime $validTo; | ||
|
||
public ?DateTime $expiredAt; | ||
|
||
public int $expiration; | ||
|
||
public ?User $sender; | ||
|
||
public ?string $emailBody; | ||
|
||
public string $language; | ||
|
||
public ?Branding $branding; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace DigitalCz\DigiSign\Endpoint; | ||
|
||
/** | ||
* @covers \DigitalCz\DigiSign\Endpoint\MultiSignEndpoint | ||
*/ | ||
final class MultiSignEndpointTest extends EndpointTestCase | ||
{ | ||
public function testGet(): void | ||
{ | ||
self::endpoint()->get('foo'); | ||
self::assertLastRequest('GET', '/api/multi-signs/foo'); | ||
} | ||
|
||
protected static function endpoint(): MultiSignEndpoint | ||
{ | ||
return self::dgs()->multiSign(); | ||
} | ||
} |