PdfGateEnvelope
in package
Envelope DTO returned by the create envelope endpoint.
Table of Contents
Properties
- $completedAt : DateTimeImmutable|null
- $createdAt : DateTimeImmutable
- $documents : array<int, EnvelopeDocumentResponse>
- $expiredAt : DateTimeImmutable|null
- $expiresAt : DateTimeImmutable|null
- $id : string
- $metadata : array<string, mixed>|null
- $status : string
- $voidedAt : DateTimeImmutable|null
- $voidReason : string|null
Methods
- __construct() : mixed
- fromArray() : self
- getCompletedAt() : DateTimeImmutable|null
- getCreatedAt() : DateTimeImmutable
- getDocuments() : array<int, EnvelopeDocumentResponse>
- getExpiredAt() : DateTimeImmutable|null
- getExpiresAt() : DateTimeImmutable|null
- When the envelope will expire if it is not completed.
- getId() : string
- getMetadata() : array<string, mixed>|null
- getStatus() : string
- Returns one of the EnvelopeStatus constants.
- getVoidedAt() : DateTimeImmutable|null
- getVoidReason() : string|null
- parseOptionalDate() : DateTimeImmutable|null
- parseRequiredDate() : DateTimeImmutable
Properties
$completedAt
private
DateTimeImmutable|null
$completedAt
$createdAt
private
DateTimeImmutable
$createdAt
$documents
private
array<int, EnvelopeDocumentResponse>
$documents
$expiredAt
private
DateTimeImmutable|null
$expiredAt
$expiresAt
private
DateTimeImmutable|null
$expiresAt
When the envelope will expire if it is not completed.
$id
private
string
$id
$metadata
private
array<string, mixed>|null
$metadata
$status
private
string
$status
One of the EnvelopeStatus constants.
$voidedAt
private
DateTimeImmutable|null
$voidedAt
$voidReason
private
string|null
$voidReason
Methods
__construct()
public
__construct(string $id, string $status, array<int, EnvelopeDocumentResponse> $documents, DateTimeImmutable $createdAt[, DateTimeImmutable|null $completedAt = null ][, DateTimeImmutable|null $expiredAt = null ][, array<string, mixed>|null $metadata = null ][, DateTimeImmutable|null $expiresAt = null ][, DateTimeImmutable|null $voidedAt = null ][, string|null $voidReason = null ]) : mixed
Parameters
- $id : string
- $status : string
-
One of the EnvelopeStatus constants.
- $documents : array<int, EnvelopeDocumentResponse>
- $createdAt : DateTimeImmutable
- $completedAt : DateTimeImmutable|null = null
- $expiredAt : DateTimeImmutable|null = null
- $metadata : array<string, mixed>|null = null
- $expiresAt : DateTimeImmutable|null = null
- $voidedAt : DateTimeImmutable|null = null
- $voidReason : string|null = null
fromArray()
public
static fromArray(array<string, mixed> $payload) : self
Parameters
- $payload : array<string, mixed>
Return values
selfgetCompletedAt()
public
getCompletedAt() : DateTimeImmutable|null
Return values
DateTimeImmutable|nullgetCreatedAt()
public
getCreatedAt() : DateTimeImmutable
Return values
DateTimeImmutablegetDocuments()
public
getDocuments() : array<int, EnvelopeDocumentResponse>
Return values
array<int, EnvelopeDocumentResponse>getExpiredAt()
public
getExpiredAt() : DateTimeImmutable|null
Return values
DateTimeImmutable|nullgetExpiresAt()
When the envelope will expire if it is not completed.
public
getExpiresAt() : DateTimeImmutable|null
Return values
DateTimeImmutable|nullgetId()
public
getId() : string
Return values
stringgetMetadata()
public
getMetadata() : array<string, mixed>|null
Return values
array<string, mixed>|nullgetStatus()
Returns one of the EnvelopeStatus constants.
public
getStatus() : string
Return values
stringgetVoidedAt()
public
getVoidedAt() : DateTimeImmutable|null
Return values
DateTimeImmutable|nullgetVoidReason()
public
getVoidReason() : string|null
Return values
string|nullparseOptionalDate()
private
static parseOptionalDate(array<string, mixed> $payload, string $field) : DateTimeImmutable|null
Parameters
- $payload : array<string, mixed>
- $field : string
Return values
DateTimeImmutable|nullparseRequiredDate()
private
static parseRequiredDate(array<string, mixed> $payload, string $field) : DateTimeImmutable
Parameters
- $payload : array<string, mixed>
- $field : string