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
- $id : string
- $metadata : array<string, mixed>|null
- $status : string
Methods
- __construct() : mixed
- fromArray() : self
- getCompletedAt() : DateTimeImmutable|null
- getCreatedAt() : DateTimeImmutable
- getDocuments() : array<int, EnvelopeDocumentResponse>
- getExpiredAt() : DateTimeImmutable|null
- getId() : string
- getMetadata() : array<string, mixed>|null
- getStatus() : string
- Returns one of the EnvelopeStatus constants.
- 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
$id
private
string
$id
$metadata
private
array<string, mixed>|null
$metadata
$status
private
string
$status
One of the EnvelopeStatus constants.
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 ]) : 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
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|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
stringparseOptionalDate()
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