Trendsic Platform Service

<back to all web services

FormSubmissionAssignRequest

Requires Authentication
The following routes are available for this service:
POST/v1/forms/submissions/{SubmissionUID}/assign
<?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 FormStageInfo implements JsonSerializable
{
    public function __construct(
        /** @var string|null */
        public ?string $Id=null,
        /** @var string|null */
        public ?string $Label=null,
        /** @var string|null */
        public ?string $Tone=null,
        /** @var string|null */
        public ?string $Kind=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['Id'])) $this->Id = $o['Id'];
        if (isset($o['Label'])) $this->Label = $o['Label'];
        if (isset($o['Tone'])) $this->Tone = $o['Tone'];
        if (isset($o['Kind'])) $this->Kind = $o['Kind'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->Id)) $o['Id'] = $this->Id;
        if (isset($this->Label)) $o['Label'] = $this->Label;
        if (isset($this->Tone)) $o['Tone'] = $this->Tone;
        if (isset($this->Kind)) $o['Kind'] = $this->Kind;
        return empty($o) ? new class(){} : $o;
    }
}

class FormPerson implements JsonSerializable
{
    public function __construct(
        /** @var int */
        public int $AgentId=0,
        /** @var string|null */
        public ?string $AgentName=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['AgentId'])) $this->AgentId = $o['AgentId'];
        if (isset($o['AgentName'])) $this->AgentName = $o['AgentName'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->AgentId)) $o['AgentId'] = $this->AgentId;
        if (isset($this->AgentName)) $o['AgentName'] = $this->AgentName;
        return empty($o) ? new class(){} : $o;
    }
}

class FormRecordFile implements JsonSerializable
{
    public function __construct(
        /** @var string */
        public string $AttachmentId='',
        /** @var string|null */
        public ?string $Name=null,
        /** @var string|null */
        public ?string $Kind=null,
        /** @var string|null */
        public ?string $Size=null,
        /** @var bool|null */
        public ?bool $Sensitive=null,
        /** @var bool|null */
        public ?bool $Locked=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['AttachmentId'])) $this->AttachmentId = $o['AttachmentId'];
        if (isset($o['Name'])) $this->Name = $o['Name'];
        if (isset($o['Kind'])) $this->Kind = $o['Kind'];
        if (isset($o['Size'])) $this->Size = $o['Size'];
        if (isset($o['Sensitive'])) $this->Sensitive = $o['Sensitive'];
        if (isset($o['Locked'])) $this->Locked = $o['Locked'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->AttachmentId)) $o['AttachmentId'] = $this->AttachmentId;
        if (isset($this->Name)) $o['Name'] = $this->Name;
        if (isset($this->Kind)) $o['Kind'] = $this->Kind;
        if (isset($this->Size)) $o['Size'] = $this->Size;
        if (isset($this->Sensitive)) $o['Sensitive'] = $this->Sensitive;
        if (isset($this->Locked)) $o['Locked'] = $this->Locked;
        return empty($o) ? new class(){} : $o;
    }
}

class FormRecordSig implements JsonSerializable
{
    public function __construct(
        /** @var bool|null */
        public ?bool $Pending=null,
        /** @var string|null */
        public ?string $Mode=null,
        /** @var string|null */
        public ?string $SignerName=null,
        /** @var string|null */
        public ?string $Role=null,
        /** @var int */
        public int $RecordId=0,
        /** @var string|null */
        public ?string $ImageHash=null,
        /** @var string|null */
        public ?string $DocumentDigest=null,
        /** @var string|null */
        public ?string $Ip=null,
        /** @var string|null */
        public ?string $Browser=null,
        /** @var bool|null */
        public ?bool $ConsentStored=null,
        /** @var string|null */
        public ?string $SignedText=null,
        /** @var bool|null */
        public ?bool $HasImage=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['Pending'])) $this->Pending = $o['Pending'];
        if (isset($o['Mode'])) $this->Mode = $o['Mode'];
        if (isset($o['SignerName'])) $this->SignerName = $o['SignerName'];
        if (isset($o['Role'])) $this->Role = $o['Role'];
        if (isset($o['RecordId'])) $this->RecordId = $o['RecordId'];
        if (isset($o['ImageHash'])) $this->ImageHash = $o['ImageHash'];
        if (isset($o['DocumentDigest'])) $this->DocumentDigest = $o['DocumentDigest'];
        if (isset($o['Ip'])) $this->Ip = $o['Ip'];
        if (isset($o['Browser'])) $this->Browser = $o['Browser'];
        if (isset($o['ConsentStored'])) $this->ConsentStored = $o['ConsentStored'];
        if (isset($o['SignedText'])) $this->SignedText = $o['SignedText'];
        if (isset($o['HasImage'])) $this->HasImage = $o['HasImage'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->Pending)) $o['Pending'] = $this->Pending;
        if (isset($this->Mode)) $o['Mode'] = $this->Mode;
        if (isset($this->SignerName)) $o['SignerName'] = $this->SignerName;
        if (isset($this->Role)) $o['Role'] = $this->Role;
        if (isset($this->RecordId)) $o['RecordId'] = $this->RecordId;
        if (isset($this->ImageHash)) $o['ImageHash'] = $this->ImageHash;
        if (isset($this->DocumentDigest)) $o['DocumentDigest'] = $this->DocumentDigest;
        if (isset($this->Ip)) $o['Ip'] = $this->Ip;
        if (isset($this->Browser)) $o['Browser'] = $this->Browser;
        if (isset($this->ConsentStored)) $o['ConsentStored'] = $this->ConsentStored;
        if (isset($this->SignedText)) $o['SignedText'] = $this->SignedText;
        if (isset($this->HasImage)) $o['HasImage'] = $this->HasImage;
        return empty($o) ? new class(){} : $o;
    }
}

class FormRecordRow implements JsonSerializable
{
    public function __construct(
        /** @var string|null */
        public ?string $K=null,
        /** @var string|null */
        public ?string $L=null,
        /** @var string|null */
        public ?string $T=null,
        /** @var string|null */
        public ?string $Kind=null,
        /** @var string|null */
        public ?string $V=null,
        /** @var bool|null */
        public ?bool $Sensitive=null,
        /** @var bool|null */
        public ?bool $CanReveal=null,
        /** @var bool|null */
        public ?bool $Locked=null,
        /** @var array<FormRecordFile>|null */
        public ?array $Files=null,
        /** @var bool|null */
        public ?bool $NoFiles=null,
        /** @var FormRecordSig|null */
        public ?FormRecordSig $Sig=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['K'])) $this->K = $o['K'];
        if (isset($o['L'])) $this->L = $o['L'];
        if (isset($o['T'])) $this->T = $o['T'];
        if (isset($o['Kind'])) $this->Kind = $o['Kind'];
        if (isset($o['V'])) $this->V = $o['V'];
        if (isset($o['Sensitive'])) $this->Sensitive = $o['Sensitive'];
        if (isset($o['CanReveal'])) $this->CanReveal = $o['CanReveal'];
        if (isset($o['Locked'])) $this->Locked = $o['Locked'];
        if (isset($o['Files'])) $this->Files = JsonConverters::fromArray('FormRecordFile', $o['Files']);
        if (isset($o['NoFiles'])) $this->NoFiles = $o['NoFiles'];
        if (isset($o['Sig'])) $this->Sig = JsonConverters::from('FormRecordSig', $o['Sig']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->K)) $o['K'] = $this->K;
        if (isset($this->L)) $o['L'] = $this->L;
        if (isset($this->T)) $o['T'] = $this->T;
        if (isset($this->Kind)) $o['Kind'] = $this->Kind;
        if (isset($this->V)) $o['V'] = $this->V;
        if (isset($this->Sensitive)) $o['Sensitive'] = $this->Sensitive;
        if (isset($this->CanReveal)) $o['CanReveal'] = $this->CanReveal;
        if (isset($this->Locked)) $o['Locked'] = $this->Locked;
        if (isset($this->Files)) $o['Files'] = JsonConverters::toArray('FormRecordFile', $this->Files);
        if (isset($this->NoFiles)) $o['NoFiles'] = $this->NoFiles;
        if (isset($this->Sig)) $o['Sig'] = JsonConverters::to('FormRecordSig', $this->Sig);
        return empty($o) ? new class(){} : $o;
    }
}

class FormRecordSection implements JsonSerializable
{
    public function __construct(
        /** @var string|null */
        public ?string $Title=null,
        /** @var array<FormRecordRow>|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('FormRecordRow', $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('FormRecordRow', $this->Rows);
        return empty($o) ? new class(){} : $o;
    }
}

class FormRecordDoc implements JsonSerializable
{
    public function __construct(
        /** @var string|null */
        public ?string $Name=null,
        /** @var bool|null */
        public ?bool $Ok=null,
        /** @var string|null */
        public ?string $Tag=null,
        /** @var string|null */
        public ?string $Tone=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['Name'])) $this->Name = $o['Name'];
        if (isset($o['Ok'])) $this->Ok = $o['Ok'];
        if (isset($o['Tag'])) $this->Tag = $o['Tag'];
        if (isset($o['Tone'])) $this->Tone = $o['Tone'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->Name)) $o['Name'] = $this->Name;
        if (isset($this->Ok)) $o['Ok'] = $this->Ok;
        if (isset($this->Tag)) $o['Tag'] = $this->Tag;
        if (isset($this->Tone)) $o['Tone'] = $this->Tone;
        return empty($o) ? new class(){} : $o;
    }
}

class FormRecordComputed implements JsonSerializable
{
    public function __construct(
        /** @var string|null */
        public ?string $L=null,
        /** @var string|null */
        public ?string $V=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['L'])) $this->L = $o['L'];
        if (isset($o['V'])) $this->V = $o['V'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->L)) $o['L'] = $this->L;
        if (isset($this->V)) $o['V'] = $this->V;
        return empty($o) ? new class(){} : $o;
    }
}

class FormRecordEvent implements JsonSerializable
{
    public function __construct(
        /** @var string|null */
        public ?string $Who=null,
        /** @var string|null */
        public ?string $X=null,
        /** @var string|null */
        public ?string $T=null,
        /** @var DateTime */
        public DateTime $At=new DateTime(),
        /** @var string|null */
        public ?string $Dot=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['Who'])) $this->Who = $o['Who'];
        if (isset($o['X'])) $this->X = $o['X'];
        if (isset($o['T'])) $this->T = $o['T'];
        if (isset($o['At'])) $this->At = JsonConverters::from('DateTime', $o['At']);
        if (isset($o['Dot'])) $this->Dot = $o['Dot'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->Who)) $o['Who'] = $this->Who;
        if (isset($this->X)) $o['X'] = $this->X;
        if (isset($this->T)) $o['T'] = $this->T;
        if (isset($this->At)) $o['At'] = JsonConverters::to('DateTime', $this->At);
        if (isset($this->Dot)) $o['Dot'] = $this->Dot;
        return empty($o) ? new class(){} : $o;
    }
}

class FormSubmissionRecord implements JsonSerializable
{
    public function __construct(
        /** @var string */
        public string $SubmissionUID='',
        /** @var string */
        public string $FormUID='',
        /** @var string|null */
        public ?string $FormName=null,
        /** @var string|null */
        public ?string $Noun=null,
        /** @var string|null */
        public ?string $Number=null,
        /** @var string|null */
        public ?string $ApplicantName=null,
        /** @var FormStageInfo|null */
        public ?FormStageInfo $Stage=null,
        /** @var array<string>|null */
        public ?array $Tags=null,
        /** @var int|null */
        public ?int $AssigneeAgentId=null,
        /** @var string|null */
        public ?string $AssigneeName=null,
        /** @var string|null */
        public ?string $BranchName=null,
        /** @var DateTime|null */
        public ?DateTime $SubmittedAt=null,
        /** @var int */
        public int $VersionNo=0,
        /** @var int */
        public int $CurrentVersionNo=0,
        /** @var string|null */
        public ?string $Email=null,
        /** @var string|null */
        public ?string $Phone=null,
        /** @var string|null */
        public ?string $ContactName=null,
        /** @var string|null */
        public ?string $Meta=null,
        /** @var array<FormStageInfo>|null */
        public ?array $Stages=null,
        /** @var array<FormStageInfo>|null */
        public ?array $Moves=null,
        /** @var array<FormPerson>|null */
        public ?array $People=null,
        /** @var bool|null */
        public ?bool $CanEdit=null,
        /** @var bool|null */
        public ?bool $CanSensitive=null,
        /** @var array<FormRecordSection>|null */
        public ?array $Sections=null,
        /** @var array<FormRecordDoc>|null */
        public ?array $Docs=null,
        /** @var string|null */
        public ?string $DocCount=null,
        /** @var array<FormRecordComputed>|null */
        public ?array $Computed=null,
        /** @var array<FormRecordEvent>|null */
        public ?array $Timeline=null,
        /** @var array<FormRecordEvent>|null */
        public ?array $Notes=null,
        /** @var array<FormRecordEvent>|null */
        public ?array $Audit=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['SubmissionUID'])) $this->SubmissionUID = $o['SubmissionUID'];
        if (isset($o['FormUID'])) $this->FormUID = $o['FormUID'];
        if (isset($o['FormName'])) $this->FormName = $o['FormName'];
        if (isset($o['Noun'])) $this->Noun = $o['Noun'];
        if (isset($o['Number'])) $this->Number = $o['Number'];
        if (isset($o['ApplicantName'])) $this->ApplicantName = $o['ApplicantName'];
        if (isset($o['Stage'])) $this->Stage = JsonConverters::from('FormStageInfo', $o['Stage']);
        if (isset($o['Tags'])) $this->Tags = JsonConverters::fromArray('string', $o['Tags']);
        if (isset($o['AssigneeAgentId'])) $this->AssigneeAgentId = $o['AssigneeAgentId'];
        if (isset($o['AssigneeName'])) $this->AssigneeName = $o['AssigneeName'];
        if (isset($o['BranchName'])) $this->BranchName = $o['BranchName'];
        if (isset($o['SubmittedAt'])) $this->SubmittedAt = JsonConverters::from('DateTime', $o['SubmittedAt']);
        if (isset($o['VersionNo'])) $this->VersionNo = $o['VersionNo'];
        if (isset($o['CurrentVersionNo'])) $this->CurrentVersionNo = $o['CurrentVersionNo'];
        if (isset($o['Email'])) $this->Email = $o['Email'];
        if (isset($o['Phone'])) $this->Phone = $o['Phone'];
        if (isset($o['ContactName'])) $this->ContactName = $o['ContactName'];
        if (isset($o['Meta'])) $this->Meta = $o['Meta'];
        if (isset($o['Stages'])) $this->Stages = JsonConverters::fromArray('FormStageInfo', $o['Stages']);
        if (isset($o['Moves'])) $this->Moves = JsonConverters::fromArray('FormStageInfo', $o['Moves']);
        if (isset($o['People'])) $this->People = JsonConverters::fromArray('FormPerson', $o['People']);
        if (isset($o['CanEdit'])) $this->CanEdit = $o['CanEdit'];
        if (isset($o['CanSensitive'])) $this->CanSensitive = $o['CanSensitive'];
        if (isset($o['Sections'])) $this->Sections = JsonConverters::fromArray('FormRecordSection', $o['Sections']);
        if (isset($o['Docs'])) $this->Docs = JsonConverters::fromArray('FormRecordDoc', $o['Docs']);
        if (isset($o['DocCount'])) $this->DocCount = $o['DocCount'];
        if (isset($o['Computed'])) $this->Computed = JsonConverters::fromArray('FormRecordComputed', $o['Computed']);
        if (isset($o['Timeline'])) $this->Timeline = JsonConverters::fromArray('FormRecordEvent', $o['Timeline']);
        if (isset($o['Notes'])) $this->Notes = JsonConverters::fromArray('FormRecordEvent', $o['Notes']);
        if (isset($o['Audit'])) $this->Audit = JsonConverters::fromArray('FormRecordEvent', $o['Audit']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->SubmissionUID)) $o['SubmissionUID'] = $this->SubmissionUID;
        if (isset($this->FormUID)) $o['FormUID'] = $this->FormUID;
        if (isset($this->FormName)) $o['FormName'] = $this->FormName;
        if (isset($this->Noun)) $o['Noun'] = $this->Noun;
        if (isset($this->Number)) $o['Number'] = $this->Number;
        if (isset($this->ApplicantName)) $o['ApplicantName'] = $this->ApplicantName;
        if (isset($this->Stage)) $o['Stage'] = JsonConverters::to('FormStageInfo', $this->Stage);
        if (isset($this->Tags)) $o['Tags'] = JsonConverters::toArray('string', $this->Tags);
        if (isset($this->AssigneeAgentId)) $o['AssigneeAgentId'] = $this->AssigneeAgentId;
        if (isset($this->AssigneeName)) $o['AssigneeName'] = $this->AssigneeName;
        if (isset($this->BranchName)) $o['BranchName'] = $this->BranchName;
        if (isset($this->SubmittedAt)) $o['SubmittedAt'] = JsonConverters::to('DateTime', $this->SubmittedAt);
        if (isset($this->VersionNo)) $o['VersionNo'] = $this->VersionNo;
        if (isset($this->CurrentVersionNo)) $o['CurrentVersionNo'] = $this->CurrentVersionNo;
        if (isset($this->Email)) $o['Email'] = $this->Email;
        if (isset($this->Phone)) $o['Phone'] = $this->Phone;
        if (isset($this->ContactName)) $o['ContactName'] = $this->ContactName;
        if (isset($this->Meta)) $o['Meta'] = $this->Meta;
        if (isset($this->Stages)) $o['Stages'] = JsonConverters::toArray('FormStageInfo', $this->Stages);
        if (isset($this->Moves)) $o['Moves'] = JsonConverters::toArray('FormStageInfo', $this->Moves);
        if (isset($this->People)) $o['People'] = JsonConverters::toArray('FormPerson', $this->People);
        if (isset($this->CanEdit)) $o['CanEdit'] = $this->CanEdit;
        if (isset($this->CanSensitive)) $o['CanSensitive'] = $this->CanSensitive;
        if (isset($this->Sections)) $o['Sections'] = JsonConverters::toArray('FormRecordSection', $this->Sections);
        if (isset($this->Docs)) $o['Docs'] = JsonConverters::toArray('FormRecordDoc', $this->Docs);
        if (isset($this->DocCount)) $o['DocCount'] = $this->DocCount;
        if (isset($this->Computed)) $o['Computed'] = JsonConverters::toArray('FormRecordComputed', $this->Computed);
        if (isset($this->Timeline)) $o['Timeline'] = JsonConverters::toArray('FormRecordEvent', $this->Timeline);
        if (isset($this->Notes)) $o['Notes'] = JsonConverters::toArray('FormRecordEvent', $this->Notes);
        if (isset($this->Audit)) $o['Audit'] = JsonConverters::toArray('FormRecordEvent', $this->Audit);
        return empty($o) ? new class(){} : $o;
    }
}

class FormSubmissionRecordResponse implements JsonSerializable
{
    public function __construct(
        /** @var FormSubmissionRecord|null */
        public ?FormSubmissionRecord $Record=null,
        /** @var ResponseStatus|null */
        public ?ResponseStatus $ResponseStatus=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['Record'])) $this->Record = JsonConverters::from('FormSubmissionRecord', $o['Record']);
        if (isset($o['ResponseStatus'])) $this->ResponseStatus = JsonConverters::from('ResponseStatus', $o['ResponseStatus']);
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->Record)) $o['Record'] = JsonConverters::to('FormSubmissionRecord', $this->Record);
        if (isset($this->ResponseStatus)) $o['ResponseStatus'] = JsonConverters::to('ResponseStatus', $this->ResponseStatus);
        return empty($o) ? new class(){} : $o;
    }
}

class FormSubmissionAssignRequest implements JsonSerializable
{
    public function __construct(
        /** @var string */
        public string $SubmissionUID='',
        /** @var int|null */
        public ?int $AgentId=null
    ) {
    }

    /** @throws Exception */
    public function fromMap($o): void {
        if (isset($o['SubmissionUID'])) $this->SubmissionUID = $o['SubmissionUID'];
        if (isset($o['AgentId'])) $this->AgentId = $o['AgentId'];
    }
    
    /** @throws Exception */
    public function jsonSerialize(): mixed
    {
        $o = [];
        if (isset($this->SubmissionUID)) $o['SubmissionUID'] = $this->SubmissionUID;
        if (isset($this->AgentId)) $o['AgentId'] = $this->AgentId;
        return empty($o) ? new class(){} : $o;
    }
}

PHP FormSubmissionAssignRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /v1/forms/submissions/{SubmissionUID}/assign HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<FormSubmissionAssignRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <AgentId>0</AgentId>
  <SubmissionUID>00000000-0000-0000-0000-000000000000</SubmissionUID>
</FormSubmissionAssignRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<FormSubmissionRecordResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <Record>
    <ApplicantName>String</ApplicantName>
    <AssigneeAgentId>0</AssigneeAgentId>
    <AssigneeName>String</AssigneeName>
    <Audit>
      <FormRecordEvent>
        <At>0001-01-01T00:00:00</At>
        <Dot>String</Dot>
        <T>String</T>
        <Who>String</Who>
        <X>String</X>
      </FormRecordEvent>
    </Audit>
    <BranchName>String</BranchName>
    <CanEdit>false</CanEdit>
    <CanSensitive>false</CanSensitive>
    <Computed>
      <FormRecordComputed>
        <L>String</L>
        <V>String</V>
      </FormRecordComputed>
    </Computed>
    <ContactName>String</ContactName>
    <CurrentVersionNo>0</CurrentVersionNo>
    <DocCount>String</DocCount>
    <Docs>
      <FormRecordDoc>
        <Name>String</Name>
        <Ok>false</Ok>
        <Tag>String</Tag>
        <Tone>String</Tone>
      </FormRecordDoc>
    </Docs>
    <Email>String</Email>
    <FormName>String</FormName>
    <FormUID>00000000-0000-0000-0000-000000000000</FormUID>
    <Meta>String</Meta>
    <Moves>
      <FormStageInfo>
        <Id>String</Id>
        <Kind>String</Kind>
        <Label>String</Label>
        <Tone>String</Tone>
      </FormStageInfo>
    </Moves>
    <Notes>
      <FormRecordEvent>
        <At>0001-01-01T00:00:00</At>
        <Dot>String</Dot>
        <T>String</T>
        <Who>String</Who>
        <X>String</X>
      </FormRecordEvent>
    </Notes>
    <Noun>String</Noun>
    <Number>String</Number>
    <People>
      <FormPerson>
        <AgentId>0</AgentId>
        <AgentName>String</AgentName>
      </FormPerson>
    </People>
    <Phone>String</Phone>
    <Sections>
      <FormRecordSection>
        <Rows>
          <FormRecordRow>
            <CanReveal>false</CanReveal>
            <Files>
              <FormRecordFile>
                <AttachmentId>00000000-0000-0000-0000-000000000000</AttachmentId>
                <Kind>String</Kind>
                <Locked>false</Locked>
                <Name>String</Name>
                <Sensitive>false</Sensitive>
                <Size>String</Size>
              </FormRecordFile>
            </Files>
            <K>String</K>
            <Kind>String</Kind>
            <L>String</L>
            <Locked>false</Locked>
            <NoFiles>false</NoFiles>
            <Sensitive>false</Sensitive>
            <Sig>
              <Browser>String</Browser>
              <ConsentStored>false</ConsentStored>
              <DocumentDigest>String</DocumentDigest>
              <HasImage>false</HasImage>
              <ImageHash>String</ImageHash>
              <Ip>String</Ip>
              <Mode>String</Mode>
              <Pending>false</Pending>
              <RecordId>0</RecordId>
              <Role>String</Role>
              <SignedText>String</SignedText>
              <SignerName>String</SignerName>
            </Sig>
            <T>String</T>
            <V>String</V>
          </FormRecordRow>
        </Rows>
        <Title>String</Title>
      </FormRecordSection>
    </Sections>
    <Stage>
      <Id>String</Id>
      <Kind>String</Kind>
      <Label>String</Label>
      <Tone>String</Tone>
    </Stage>
    <Stages>
      <FormStageInfo>
        <Id>String</Id>
        <Kind>String</Kind>
        <Label>String</Label>
        <Tone>String</Tone>
      </FormStageInfo>
    </Stages>
    <SubmissionUID>00000000-0000-0000-0000-000000000000</SubmissionUID>
    <SubmittedAt>0001-01-01T00:00:00</SubmittedAt>
    <Tags xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>String</d3p1:string>
    </Tags>
    <Timeline>
      <FormRecordEvent>
        <At>0001-01-01T00:00:00</At>
        <Dot>String</Dot>
        <T>String</T>
        <Who>String</Who>
        <X>String</X>
      </FormRecordEvent>
    </Timeline>
    <VersionNo>0</VersionNo>
  </Record>
  <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>
</FormSubmissionRecordResponse>