PDFGate's PHP SDK

EnvelopeRecipientResponse
in package

Recipient payload returned for an envelope document.

Table of Contents

Properties

$activatedAt  : DateTimeImmutable|null
$autoSign  : bool
$email  : string
$embedded  : bool
$fields  : array<int, EnvelopeFieldResponse>
$previewLink  : string|null
$recipientId  : string|null
$sendSignedCopy  : bool
$signedAt  : DateTimeImmutable|null
$signingLink  : string|null
$signingOrder  : int|null
$status  : string
$viewedAt  : DateTimeImmutable|null

Methods

__construct()  : mixed
fromArray()  : self
getActivatedAt()  : DateTimeImmutable|null
The time it became the recipient's turn to sign. Null until the recipient is activated.
getEmail()  : string
getFields()  : array<int, EnvelopeFieldResponse>
getPreviewLink()  : string|null
Link to preview the signed document. Present once the recipient has signed.
getRecipientId()  : string|null
getSignedAt()  : DateTimeImmutable|null
getSigningLink()  : string|null
Link the recipient uses to sign. Present while the recipient still needs to sign.
getSigningOrder()  : int|null
Signing order of the recipient, starting from 1. Recipients sign one after another in this order and a recipient is activated once everyone with a lower value has signed. Recipients with the same value can sign in parallel. Null when the document has no signing order.
getStatus()  : string
Returns one of the DocumentRecipientStatus constants.
getViewedAt()  : DateTimeImmutable|null
isAutoSign()  : bool
Whether the recipient is signed automatically with their stored signature (automatic signing). Automatic signing recipients receive no signing email and have no signing session.
isEmbedded()  : bool
Whether the recipient signs through embedded signing. Embedded recipients receive no emails and have no signing link.
isSendSignedCopy()  : bool
Whether the recipient is emailed the signed document when the document completes.
parseOptionalDate()  : DateTimeImmutable|null

Properties

$sendSignedCopy

private bool $sendSignedCopy

Whether the recipient is emailed the signed document when the document completes.

Methods

__construct()

public __construct(string $email, string $status, DateTimeImmutable|null $signedAt, DateTimeImmutable|null $viewedAt, array<int, EnvelopeFieldResponse> $fields[, string|null $signingLink = null ][, string|null $previewLink = null ][, string|null $recipientId = null ][, bool $embedded = false ][, int|null $signingOrder = null ][, DateTimeImmutable|null $activatedAt = null ][, bool $autoSign = false ][, bool $sendSignedCopy = false ]) : mixed
Parameters
$email : string
$status : string

One of the DocumentRecipientStatus constants.

$signedAt : DateTimeImmutable|null
$viewedAt : DateTimeImmutable|null
$fields : array<int, EnvelopeFieldResponse>
$signingLink : string|null = null
$previewLink : string|null = null
$recipientId : string|null = null
$embedded : bool = false
$signingOrder : int|null = null
$activatedAt : DateTimeImmutable|null = null
$autoSign : bool = false
$sendSignedCopy : bool = false

fromArray()

public static fromArray(array<string, mixed> $payload) : self
Parameters
$payload : array<string, mixed>
Return values
self

getActivatedAt()

The time it became the recipient's turn to sign. Null until the recipient is activated.

public getActivatedAt() : DateTimeImmutable|null
Return values
DateTimeImmutable|null

Link to preview the signed document. Present once the recipient has signed.

public getPreviewLink() : string|null
Return values
string|null

Link the recipient uses to sign. Present while the recipient still needs to sign.

public getSigningLink() : string|null
Return values
string|null

getSigningOrder()

Signing order of the recipient, starting from 1. Recipients sign one after another in this order and a recipient is activated once everyone with a lower value has signed. Recipients with the same value can sign in parallel. Null when the document has no signing order.

public getSigningOrder() : int|null
Return values
int|null

getStatus()

Returns one of the DocumentRecipientStatus constants.

public getStatus() : string
Return values
string

isAutoSign()

Whether the recipient is signed automatically with their stored signature (automatic signing). Automatic signing recipients receive no signing email and have no signing session.

public isAutoSign() : bool
Return values
bool

isEmbedded()

Whether the recipient signs through embedded signing. Embedded recipients receive no emails and have no signing link.

public isEmbedded() : bool
Return values
bool

isSendSignedCopy()

Whether the recipient is emailed the signed document when the document completes.

public isSendSignedCopy() : bool
Return values
bool

parseOptionalDate()

private static parseOptionalDate(array<string, mixed> $payload, string $field, string $context) : DateTimeImmutable|null
Parameters
$payload : array<string, mixed>
$field : string
$context : string
Return values
DateTimeImmutable|null
On this page

Search results