| GET | /v1/formfill/sign/{Token} |
|---|
<?php namespace dtos;
use DateTime;
use Exception;
use DateInterval;
use JsonSerializable;
use ServiceStack\{IReturn,IReturnVoid,IGet,IPost,IPut,IDelete,IPatch,IMeta,IHasSessionId,IHasBearerToken,IHasVersion};
use ServiceStack\{ICrud,ICreateDb,IUpdateDb,IPatchDb,IDeleteDb,ISaveDb,AuditBase,QueryDb,QueryDb2,QueryData,QueryData2,QueryResponse};
use ServiceStack\{ResponseStatus,ResponseError,EmptyResponse,IdResponse,ArrayList,KeyValuePair2,StringResponse,StringsResponse,Tuple2,Tuple3,ByteArray};
use ServiceStack\{JsonConverters,Returns,TypeContext};
class FormFillReadRow implements JsonSerializable
{
public function __construct(
/** @var string|null */
public ?string $L=null,
/** @var string|null */
public ?string $V=null,
/** @var bool|null */
public ?bool $Kept=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['L'])) $this->L = $o['L'];
if (isset($o['V'])) $this->V = $o['V'];
if (isset($o['Kept'])) $this->Kept = $o['Kept'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->L)) $o['L'] = $this->L;
if (isset($this->V)) $o['V'] = $this->V;
if (isset($this->Kept)) $o['Kept'] = $this->Kept;
return empty($o) ? new class(){} : $o;
}
}
class FormFillReadPage implements JsonSerializable
{
public function __construct(
/** @var string|null */
public ?string $Title=null,
/** @var array<FormFillReadRow>|null */
public ?array $Rows=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['Title'])) $this->Title = $o['Title'];
if (isset($o['Rows'])) $this->Rows = JsonConverters::fromArray('FormFillReadRow', $o['Rows']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->Title)) $o['Title'] = $this->Title;
if (isset($this->Rows)) $o['Rows'] = JsonConverters::toArray('FormFillReadRow', $this->Rows);
return empty($o) ? new class(){} : $o;
}
}
class FormFillSignPageResponse implements JsonSerializable
{
public function __construct(
/** @var string|null */
public ?string $RequestUID=null,
/** @var string|null */
public ?string $Number=null,
/** @var string|null */
public ?string $FormName=null,
/** @var string|null */
public ?string $Noun=null,
/** @var string|null */
public ?string $NounEs=null,
/** @var string|null */
public ?string $TenantName=null,
/** @var string|null */
public ?string $Lang=null,
/** @var string|null */
public ?string $Today=null,
/** @var string|null */
public ?string $Note=null,
/** @var string|null */
public ?string $From=null,
/** @var array<string>|null */
public ?array $SignKeys=null,
/** @var string|null */
public ?string $AppJson=null,
/** @var array<FormFillReadPage>|null */
public ?array $Read=null,
/** @var ResponseStatus|null */
public ?ResponseStatus $ResponseStatus=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['RequestUID'])) $this->RequestUID = $o['RequestUID'];
if (isset($o['Number'])) $this->Number = $o['Number'];
if (isset($o['FormName'])) $this->FormName = $o['FormName'];
if (isset($o['Noun'])) $this->Noun = $o['Noun'];
if (isset($o['NounEs'])) $this->NounEs = $o['NounEs'];
if (isset($o['TenantName'])) $this->TenantName = $o['TenantName'];
if (isset($o['Lang'])) $this->Lang = $o['Lang'];
if (isset($o['Today'])) $this->Today = $o['Today'];
if (isset($o['Note'])) $this->Note = $o['Note'];
if (isset($o['From'])) $this->From = $o['From'];
if (isset($o['SignKeys'])) $this->SignKeys = JsonConverters::fromArray('string', $o['SignKeys']);
if (isset($o['AppJson'])) $this->AppJson = $o['AppJson'];
if (isset($o['Read'])) $this->Read = JsonConverters::fromArray('FormFillReadPage', $o['Read']);
if (isset($o['ResponseStatus'])) $this->ResponseStatus = JsonConverters::from('ResponseStatus', $o['ResponseStatus']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->RequestUID)) $o['RequestUID'] = $this->RequestUID;
if (isset($this->Number)) $o['Number'] = $this->Number;
if (isset($this->FormName)) $o['FormName'] = $this->FormName;
if (isset($this->Noun)) $o['Noun'] = $this->Noun;
if (isset($this->NounEs)) $o['NounEs'] = $this->NounEs;
if (isset($this->TenantName)) $o['TenantName'] = $this->TenantName;
if (isset($this->Lang)) $o['Lang'] = $this->Lang;
if (isset($this->Today)) $o['Today'] = $this->Today;
if (isset($this->Note)) $o['Note'] = $this->Note;
if (isset($this->From)) $o['From'] = $this->From;
if (isset($this->SignKeys)) $o['SignKeys'] = JsonConverters::toArray('string', $this->SignKeys);
if (isset($this->AppJson)) $o['AppJson'] = $this->AppJson;
if (isset($this->Read)) $o['Read'] = JsonConverters::toArray('FormFillReadPage', $this->Read);
if (isset($this->ResponseStatus)) $o['ResponseStatus'] = JsonConverters::to('ResponseStatus', $this->ResponseStatus);
return empty($o) ? new class(){} : $o;
}
}
class FormFillSignPageRequest implements JsonSerializable
{
public function __construct(
/** @var string|null */
public ?string $Token=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['Token'])) $this->Token = $o['Token'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->Token)) $o['Token'] = $this->Token;
return empty($o) ? new class(){} : $o;
}
}
PHP FormFillSignPageRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/formfill/sign/{Token} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<FormFillSignPageResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<AppJson>String</AppJson>
<FormName>String</FormName>
<From>String</From>
<Lang>String</Lang>
<Note>String</Note>
<Noun>String</Noun>
<NounEs>String</NounEs>
<Number>String</Number>
<Read>
<FormFillReadPage>
<Rows>
<FormFillReadRow>
<Kept>false</Kept>
<L>String</L>
<V>String</V>
</FormFillReadRow>
</Rows>
<Title>String</Title>
</FormFillReadPage>
</Read>
<RequestUID>String</RequestUID>
<ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:Message>String</d2p1:Message>
<d2p1:StackTrace>String</d2p1:StackTrace>
<d2p1:Errors>
<d2p1:ResponseError>
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:FieldName>String</d2p1:FieldName>
<d2p1:Message>String</d2p1:Message>
<d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:KeyValueOfstringstring>
<d5p1:Key>String</d5p1:Key>
<d5p1:Value>String</d5p1:Value>
</d5p1:KeyValueOfstringstring>
</d2p1:Meta>
</d2p1:ResponseError>
</d2p1:Errors>
<d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfstringstring>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>String</d3p1:Value>
</d3p1:KeyValueOfstringstring>
</d2p1:Meta>
</ResponseStatus>
<SignKeys xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>String</d2p1:string>
</SignKeys>
<TenantName>String</TenantName>
<Today>String</Today>
</FormFillSignPageResponse>