| 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 .xml suffix or ?format=xml
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: application/xml
Content-Type: application/xml
Content-Length: length
<AgentAgreementDocRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<AgentRegistrationTempId>0</AgentRegistrationTempId>
</AgentAgreementDocRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<AgentAgreementDocResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<AgentAgreementDisclosureDocs>
<AgentAgreementDoc>
<Active>false</Active>
<ApplicationId>String</ApplicationId>
<FileExtension>String</FileExtension>
<FileName>String</FileName>
<Id>0</Id>
<LegalRegion>String</LegalRegion>
<Name>String</Name>
<Order>0</Order>
<Section>String</Section>
<Version>0</Version>
</AgentAgreementDoc>
</AgentAgreementDisclosureDocs>
<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>
</AgentAgreementDocResponse>