Trendsic Platform Service

<back to all web services

FormFillReplyRequest

The following routes are available for this service:
POST/v1/formfill/status/{Token}/request/send
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class FormFillReplyRequest
    {
        public String Token = null;
        public String RequestUID = null;
        public String AnswersJson = null;
        public String Lang = null;
        
        public String getToken() { return Token; }
        public FormFillReplyRequest setToken(String value) { this.Token = value; return this; }
        public String getRequestUID() { return RequestUID; }
        public FormFillReplyRequest setRequestUID(String value) { this.RequestUID = value; return this; }
        public String getAnswersJson() { return AnswersJson; }
        public FormFillReplyRequest setAnswersJson(String value) { this.AnswersJson = value; return this; }
        public String getLang() { return Lang; }
        public FormFillReplyRequest setLang(String value) { this.Lang = value; return this; }
    }

    public static class FormFillReplyResponse
    {
        public Boolean Sent = null;
        public FormFillStatusResponse Status = null;
        public ArrayList<FormFillFieldError> Errors = new ArrayList<FormFillFieldError>();
        public ResponseStatus ResponseStatus = null;
        
        public Boolean isSent() { return Sent; }
        public FormFillReplyResponse setSent(Boolean value) { this.Sent = value; return this; }
        public FormFillStatusResponse getStatus() { return Status; }
        public FormFillReplyResponse setStatus(FormFillStatusResponse value) { this.Status = value; return this; }
        public ArrayList<FormFillFieldError> getErrors() { return Errors; }
        public FormFillReplyResponse setErrors(ArrayList<FormFillFieldError> value) { this.Errors = value; return this; }
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public FormFillReplyResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
    }

    public static class FormFillStatusResponse
    {
        public String Number = null;
        public String FormName = null;
        public String Noun = null;
        public String TenantName = null;
        public String Stage = null;
        public String StageKind = null;
        public ArrayList<FormFillStage> Stages = new ArrayList<FormFillStage>();
        public ArrayList<FormFillStageSeen> Seen = new ArrayList<FormFillStageSeen>();
        public Date SubmittedAt = null;
        public ArrayList<FormFillReceiptLine> Receipt = new ArrayList<FormFillReceiptLine>();
        public Boolean CanWithdraw = null;
        public String Lang = null;
        public String NounEs = null;
        public Boolean HasRequest = null;
        public String RequestNote = null;
        public String Outcome = null;
        public String DecisionReason = null;
        public String DecisionNote = null;
        public ResponseStatus ResponseStatus = null;
        
        public String getNumber() { return Number; }
        public FormFillStatusResponse setNumber(String value) { this.Number = value; return this; }
        public String getFormName() { return FormName; }
        public FormFillStatusResponse setFormName(String value) { this.FormName = value; return this; }
        public String getNoun() { return Noun; }
        public FormFillStatusResponse setNoun(String value) { this.Noun = value; return this; }
        public String getTenantName() { return TenantName; }
        public FormFillStatusResponse setTenantName(String value) { this.TenantName = value; return this; }
        public String getStage() { return Stage; }
        public FormFillStatusResponse setStage(String value) { this.Stage = value; return this; }
        public String getStageKind() { return StageKind; }
        public FormFillStatusResponse setStageKind(String value) { this.StageKind = value; return this; }
        public ArrayList<FormFillStage> getStages() { return Stages; }
        public FormFillStatusResponse setStages(ArrayList<FormFillStage> value) { this.Stages = value; return this; }
        public ArrayList<FormFillStageSeen> getSeen() { return Seen; }
        public FormFillStatusResponse setSeen(ArrayList<FormFillStageSeen> value) { this.Seen = value; return this; }
        public Date getSubmittedAt() { return SubmittedAt; }
        public FormFillStatusResponse setSubmittedAt(Date value) { this.SubmittedAt = value; return this; }
        public ArrayList<FormFillReceiptLine> getReceipt() { return Receipt; }
        public FormFillStatusResponse setReceipt(ArrayList<FormFillReceiptLine> value) { this.Receipt = value; return this; }
        public Boolean isCanWithdraw() { return CanWithdraw; }
        public FormFillStatusResponse setCanWithdraw(Boolean value) { this.CanWithdraw = value; return this; }
        public String getLang() { return Lang; }
        public FormFillStatusResponse setLang(String value) { this.Lang = value; return this; }
        public String getNounEs() { return NounEs; }
        public FormFillStatusResponse setNounEs(String value) { this.NounEs = value; return this; }
        public Boolean isHasRequest() { return HasRequest; }
        public FormFillStatusResponse setHasRequest(Boolean value) { this.HasRequest = value; return this; }
        public String getRequestNote() { return RequestNote; }
        public FormFillStatusResponse setRequestNote(String value) { this.RequestNote = value; return this; }
        public String getOutcome() { return Outcome; }
        public FormFillStatusResponse setOutcome(String value) { this.Outcome = value; return this; }
        public String getDecisionReason() { return DecisionReason; }
        public FormFillStatusResponse setDecisionReason(String value) { this.DecisionReason = value; return this; }
        public String getDecisionNote() { return DecisionNote; }
        public FormFillStatusResponse setDecisionNote(String value) { this.DecisionNote = value; return this; }
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public FormFillStatusResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
    }

    public static class FormFillStage
    {
        public String Id = null;
        public String Label = null;
        public String Tone = null;
        public String Kind = null;
        
        public String getId() { return Id; }
        public FormFillStage setId(String value) { this.Id = value; return this; }
        public String getLabel() { return Label; }
        public FormFillStage setLabel(String value) { this.Label = value; return this; }
        public String getTone() { return Tone; }
        public FormFillStage setTone(String value) { this.Tone = value; return this; }
        public String getKind() { return Kind; }
        public FormFillStage setKind(String value) { this.Kind = value; return this; }
    }

    public static class FormFillStageSeen
    {
        public String Id = null;
        public Date At = null;
        
        public String getId() { return Id; }
        public FormFillStageSeen setId(String value) { this.Id = value; return this; }
        public Date getAt() { return At; }
        public FormFillStageSeen setAt(Date value) { this.At = value; return this; }
    }

    public static class FormFillReceiptLine
    {
        public String Channel = null;
        public String To = null;
        public String Outcome = null;
        
        public String getChannel() { return Channel; }
        public FormFillReceiptLine setChannel(String value) { this.Channel = value; return this; }
        public String getTo() { return To; }
        public FormFillReceiptLine setTo(String value) { this.To = value; return this; }
        public String getOutcome() { return Outcome; }
        public FormFillReceiptLine setOutcome(String value) { this.Outcome = value; return this; }
    }

    public static class FormFillFieldError
    {
        public String K = null;
        public String Msg = null;
        
        public String getK() { return K; }
        public FormFillFieldError setK(String value) { this.K = value; return this; }
        public String getMsg() { return Msg; }
        public FormFillFieldError setMsg(String value) { this.Msg = value; return this; }
    }

}

Java FormFillReplyRequest 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/formfill/status/{Token}/request/send HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<FormFillReplyRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <AnswersJson>String</AnswersJson>
  <Lang>String</Lang>
  <RequestUID>String</RequestUID>
  <Token>String</Token>
</FormFillReplyRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<FormFillReplyResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <Errors>
    <FormFillFieldError>
      <K>String</K>
      <Msg>String</Msg>
    </FormFillFieldError>
  </Errors>
  <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>
  <Sent>false</Sent>
  <Status>
    <CanWithdraw>false</CanWithdraw>
    <DecisionNote>String</DecisionNote>
    <DecisionReason>String</DecisionReason>
    <FormName>String</FormName>
    <HasRequest>false</HasRequest>
    <Lang>String</Lang>
    <Noun>String</Noun>
    <NounEs>String</NounEs>
    <Number>String</Number>
    <Outcome>String</Outcome>
    <Receipt>
      <FormFillReceiptLine>
        <Channel>String</Channel>
        <Outcome>String</Outcome>
        <To>String</To>
      </FormFillReceiptLine>
    </Receipt>
    <RequestNote>String</RequestNote>
    <ResponseStatus xmlns:d3p1="http://schemas.servicestack.net/types">
      <d3p1:ErrorCode>String</d3p1:ErrorCode>
      <d3p1:Message>String</d3p1:Message>
      <d3p1:StackTrace>String</d3p1:StackTrace>
      <d3p1:Errors>
        <d3p1:ResponseError>
          <d3p1:ErrorCode>String</d3p1:ErrorCode>
          <d3p1:FieldName>String</d3p1:FieldName>
          <d3p1:Message>String</d3p1:Message>
          <d3p1:Meta xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <d6p1:KeyValueOfstringstring>
              <d6p1:Key>String</d6p1:Key>
              <d6p1:Value>String</d6p1:Value>
            </d6p1:KeyValueOfstringstring>
          </d3p1:Meta>
        </d3p1:ResponseError>
      </d3p1:Errors>
      <d3p1:Meta xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:KeyValueOfstringstring>
          <d4p1:Key>String</d4p1:Key>
          <d4p1:Value>String</d4p1:Value>
        </d4p1:KeyValueOfstringstring>
      </d3p1:Meta>
    </ResponseStatus>
    <Seen>
      <FormFillStageSeen>
        <At>0001-01-01T00:00:00</At>
        <Id>String</Id>
      </FormFillStageSeen>
    </Seen>
    <Stage>String</Stage>
    <StageKind>String</StageKind>
    <Stages>
      <FormFillStage>
        <Id>String</Id>
        <Kind>String</Kind>
        <Label>String</Label>
        <Tone>String</Tone>
      </FormFillStage>
    </Stages>
    <SubmittedAt>0001-01-01T00:00:00</SubmittedAt>
    <TenantName>String</TenantName>
  </Status>
</FormFillReplyResponse>