| GET | /v1/formfill/status/{Token}/request |
|---|
<?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 FormFillRequestResponse implements JsonSerializable
{
public function __construct(
/** @var bool|null */
public ?bool $Open=null,
/** @var string|null */
public ?string $RequestUID=null,
/** @var string|null */
public ?string $Note=null,
/** @var string|null */
public ?string $From=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 array<string>|null */
public ?array $Keys=null,
/** @var array<string>|null */
public ?array $Resign=null,
/** @var array<string>|null */
public ?array $SignKeys=null,
/** @var array<string>|null */
public ?array $Sensitive=null,
/** @var string|null */
public ?string $AppJson=null,
/** @var string|null */
public ?string $AnswersJson=null,
/** @var ResponseStatus|null */
public ?ResponseStatus $ResponseStatus=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['Open'])) $this->Open = $o['Open'];
if (isset($o['RequestUID'])) $this->RequestUID = $o['RequestUID'];
if (isset($o['Note'])) $this->Note = $o['Note'];
if (isset($o['From'])) $this->From = $o['From'];
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['Keys'])) $this->Keys = JsonConverters::fromArray('string', $o['Keys']);
if (isset($o['Resign'])) $this->Resign = JsonConverters::fromArray('string', $o['Resign']);
if (isset($o['SignKeys'])) $this->SignKeys = JsonConverters::fromArray('string', $o['SignKeys']);
if (isset($o['Sensitive'])) $this->Sensitive = JsonConverters::fromArray('string', $o['Sensitive']);
if (isset($o['AppJson'])) $this->AppJson = $o['AppJson'];
if (isset($o['AnswersJson'])) $this->AnswersJson = $o['AnswersJson'];
if (isset($o['ResponseStatus'])) $this->ResponseStatus = JsonConverters::from('ResponseStatus', $o['ResponseStatus']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->Open)) $o['Open'] = $this->Open;
if (isset($this->RequestUID)) $o['RequestUID'] = $this->RequestUID;
if (isset($this->Note)) $o['Note'] = $this->Note;
if (isset($this->From)) $o['From'] = $this->From;
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->Keys)) $o['Keys'] = JsonConverters::toArray('string', $this->Keys);
if (isset($this->Resign)) $o['Resign'] = JsonConverters::toArray('string', $this->Resign);
if (isset($this->SignKeys)) $o['SignKeys'] = JsonConverters::toArray('string', $this->SignKeys);
if (isset($this->Sensitive)) $o['Sensitive'] = JsonConverters::toArray('string', $this->Sensitive);
if (isset($this->AppJson)) $o['AppJson'] = $this->AppJson;
if (isset($this->AnswersJson)) $o['AnswersJson'] = $this->AnswersJson;
if (isset($this->ResponseStatus)) $o['ResponseStatus'] = JsonConverters::to('ResponseStatus', $this->ResponseStatus);
return empty($o) ? new class(){} : $o;
}
}
class FormFillRequestRequest 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 FormFillRequestRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/formfill/status/{Token}/request HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"Open":false,"RequestUID":"String","Note":"String","From":"String","Number":"String","FormName":"String","Noun":"String","NounEs":"String","TenantName":"String","Lang":"String","Today":"String","Keys":["String"],"Resign":["String"],"SignKeys":["String"],"Sensitive":["String"],"AppJson":"String","AnswersJson":"String","ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}