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
$activatedAt
private
DateTimeImmutable|null
$activatedAt
$autoSign
private
bool
$autoSign
Whether the recipient is signed automatically with their stored signature.
private
string
$email
$embedded
private
bool
$embedded
Whether the recipient signs through embedded signing.
$fields
private
array<int, EnvelopeFieldResponse>
$fields
$previewLink
private
string|null
$previewLink
$recipientId
private
string|null
$recipientId
$sendSignedCopy
private
bool
$sendSignedCopy
Whether the recipient is emailed the signed document when the document completes.
$signedAt
private
DateTimeImmutable|null
$signedAt
$signingLink
private
string|null
$signingLink
$signingOrder
private
int|null
$signingOrder
Signing order of the recipient, starting from 1.
$status
private
string
$status
One of the DocumentRecipientStatus constants.
$viewedAt
private
DateTimeImmutable|null
$viewedAt
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
selfgetActivatedAt()
The time it became the recipient's turn to sign. Null until the recipient is activated.
public
getActivatedAt() : DateTimeImmutable|null
Return values
DateTimeImmutable|nullgetEmail()
public
getEmail() : string
Return values
stringgetFields()
public
getFields() : array<int, EnvelopeFieldResponse>
Return values
array<int, EnvelopeFieldResponse>getPreviewLink()
Link to preview the signed document. Present once the recipient has signed.
public
getPreviewLink() : string|null
Return values
string|nullgetRecipientId()
public
getRecipientId() : string|null
Return values
string|nullgetSignedAt()
public
getSignedAt() : DateTimeImmutable|null
Return values
DateTimeImmutable|nullgetSigningLink()
Link the recipient uses to sign. Present while the recipient still needs to sign.
public
getSigningLink() : string|null
Return values
string|nullgetSigningOrder()
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|nullgetStatus()
Returns one of the DocumentRecipientStatus constants.
public
getStatus() : string
Return values
stringgetViewedAt()
public
getViewedAt() : DateTimeImmutable|null
Return values
DateTimeImmutable|nullisAutoSign()
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
boolisEmbedded()
Whether the recipient signs through embedded signing. Embedded recipients receive no emails and have no signing link.
public
isEmbedded() : bool
Return values
boolisSendSignedCopy()
Whether the recipient is emailed the signed document when the document completes.
public
isSendSignedCopy() : bool
Return values
boolparseOptionalDate()
private
static parseOptionalDate(array<string, mixed> $payload, string $field, string $context) : DateTimeImmutable|null
Parameters
- $payload : array<string, mixed>
- $field : string
- $context : string