EnvelopeFieldResponse
in package
Field payload returned for an envelope recipient.
Table of Contents
Properties
- $checked : bool|null
- $name : string
- $source : string|null
- $timezone : string|null
- $type : string
- $userTimezone : string|null
- $userValue : string|null
- $value : mixed|null
Methods
- __construct() : mixed
- fromArray() : self
- getName() : string
- getSource() : string|null
- Where the value originated: "server" for auto-filled fields or "user" for values submitted by the recipient.
- getTimezone() : string|null
- IANA timezone of the stored value. For datetime fields the value is normalized to UTC, so this is "UTC" once a value is captured.
- getType() : string
- Returns one of the DocumentFieldType constants.
- getUserTimezone() : string|null
- IANA timezone the recipient submitted the value in (datetime fields).
- getUserValue() : string|null
- Original value as submitted by the recipient, before UTC normalization (datetime fields).
- getValue() : mixed|null
- isChecked() : bool|null
- optionalString() : string|null
Properties
$checked
private
bool|null
$checked
$name
private
string
$name
$source
private
string|null
$source
$timezone
private
string|null
$timezone
$type
private
string
$type
One of the DocumentFieldType constants.
$userTimezone
private
string|null
$userTimezone
$userValue
private
string|null
$userValue
$value
private
mixed|null
$value
Methods
__construct()
public
__construct(string $name, string $type[, mixed|null $value = null ][, bool|null $checked = null ][, string|null $timezone = null ][, string|null $source = null ][, string|null $userValue = null ][, string|null $userTimezone = null ]) : mixed
Parameters
- $name : string
- $type : string
-
One of the DocumentFieldType constants.
- $value : mixed|null = null
- $checked : bool|null = null
- $timezone : string|null = null
- $source : string|null = null
- $userValue : string|null = null
- $userTimezone : string|null = null
fromArray()
public
static fromArray(array<string, mixed> $payload) : self
Parameters
- $payload : array<string, mixed>
Return values
selfgetName()
public
getName() : string
Return values
stringgetSource()
Where the value originated: "server" for auto-filled fields or "user" for values submitted by the recipient.
public
getSource() : string|null
Return values
string|nullgetTimezone()
IANA timezone of the stored value. For datetime fields the value is normalized to UTC, so this is "UTC" once a value is captured.
public
getTimezone() : string|null
Return values
string|nullgetType()
Returns one of the DocumentFieldType constants.
public
getType() : string
Return values
stringgetUserTimezone()
IANA timezone the recipient submitted the value in (datetime fields).
public
getUserTimezone() : string|null
Return values
string|nullgetUserValue()
Original value as submitted by the recipient, before UTC normalization (datetime fields).
public
getUserValue() : string|null
Return values
string|nullgetValue()
public
getValue() : mixed|null
Return values
mixed|nullisChecked()
public
isChecked() : bool|null
Return values
bool|nulloptionalString()
private
static optionalString(array<string, mixed> $payload, string $key) : string|null
Parameters
- $payload : array<string, mixed>
- $key : string