| GET,DELETE,POST,PUT,OPTIONS | /v1/AgentAgreementDoc/{AgentRegistrationTempId} | ||
|---|---|---|---|
| GET,DELETE,POST,PUT,OPTIONS | /v1/AgentAgreementDoc |
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class AgentAgreementDocRequest
{
public Integer AgentRegistrationTempId = null;
public Integer getAgentRegistrationTempId() { return AgentRegistrationTempId; }
public AgentAgreementDocRequest setAgentRegistrationTempId(Integer value) { this.AgentRegistrationTempId = value; return this; }
}
public static class AgentAgreementDocResponse
{
public ResponseStatus ResponseStatus = null;
public ArrayList<AgentAgreementDoc> AgentAgreementDisclosureDocs = new ArrayList<AgentAgreementDoc>();
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public AgentAgreementDocResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
public ArrayList<AgentAgreementDoc> getAgentAgreementDisclosureDocs() { return AgentAgreementDisclosureDocs; }
public AgentAgreementDocResponse setAgentAgreementDisclosureDocs(ArrayList<AgentAgreementDoc> value) { this.AgentAgreementDisclosureDocs = value; return this; }
}
public static class AgentAgreementDoc
{
public Integer Id = null;
public String ApplicationId = null;
public String Name = null;
public Integer Version = null;
public String LegalRegion = null;
public String Section = null;
public String FileExtension = null;
public String FileName = null;
public Integer Order = null;
public Boolean Active = null;
public Integer getId() { return Id; }
public AgentAgreementDoc setId(Integer value) { this.Id = value; return this; }
public String getApplicationId() { return ApplicationId; }
public AgentAgreementDoc setApplicationId(String value) { this.ApplicationId = value; return this; }
public String getName() { return Name; }
public AgentAgreementDoc setName(String value) { this.Name = value; return this; }
public Integer getVersion() { return Version; }
public AgentAgreementDoc setVersion(Integer value) { this.Version = value; return this; }
public String getLegalRegion() { return LegalRegion; }
public AgentAgreementDoc setLegalRegion(String value) { this.LegalRegion = value; return this; }
public String getSection() { return Section; }
public AgentAgreementDoc setSection(String value) { this.Section = value; return this; }
public String getFileExtension() { return FileExtension; }
public AgentAgreementDoc setFileExtension(String value) { this.FileExtension = value; return this; }
public String getFileName() { return FileName; }
public AgentAgreementDoc setFileName(String value) { this.FileName = value; return this; }
public Integer getOrder() { return Order; }
public AgentAgreementDoc setOrder(Integer value) { this.Order = value; return this; }
public Boolean isActive() { return Active; }
public AgentAgreementDoc setActive(Boolean value) { this.Active = value; return this; }
}
}
Java AgentAgreementDocRequest 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.
POST /v1/AgentAgreementDoc/{AgentRegistrationTempId} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
AgentRegistrationTempId: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
},
AgentAgreementDisclosureDocs:
[
{
Id: 0,
ApplicationId: String,
Name: String,
Version: 0,
LegalRegion: String,
Section: String,
FileExtension: String,
FileName: String,
Order: 0,
Active: False
}
]
}