Trendsic Platform Service

<back to all web services

FormFillSignPageRequest

The following routes are available for this service:
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 .csv suffix or ?format=csv

HTTP + CSV

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: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"RequestUID":"String","Number":"String","FormName":"String","Noun":"String","NounEs":"String","TenantName":"String","Lang":"String","Today":"String","Note":"String","From":"String","SignKeys":["String"],"AppJson":"String","Read":[{"Title":"String","Rows":[{"L":"String","V":"String","Kept":false}]}],"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}