| GET | /v1/formfill/status/{Token} |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class FormFillStatusRequest
{
public String Token = null;
public String getToken() { return Token; }
public FormFillStatusRequest setToken(String value) { this.Token = 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 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 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; }
}
}
Java FormFillStatusRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/formfill/status/{Token} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Number: String,
FormName: String,
Noun: String,
TenantName: String,
Stage: String,
StageKind: String,
Stages:
[
{
Id: String,
Label: String,
Tone: String,
Kind: String
}
],
Seen:
[
{
Id: String,
At: 0001-01-01
}
],
SubmittedAt: 0001-01-01,
Receipt:
[
{
Channel: String,
To: String,
Outcome: String
}
],
CanWithdraw: False,
Lang: String,
NounEs: String,
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}