| Requires any of the roles: | Agent, Administrator |
| GET,OPTIONS | /v1/CommissionReport/{StartDate}/{EndDate} |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class CommissionReportRequest
{
public Date StartDate = null;
public Date EndDate = null;
public Boolean ShowProcessed = null;
public Date getStartDate() { return StartDate; }
public CommissionReportRequest setStartDate(Date value) { this.StartDate = value; return this; }
public Date getEndDate() { return EndDate; }
public CommissionReportRequest setEndDate(Date value) { this.EndDate = value; return this; }
public Boolean isShowProcessed() { return ShowProcessed; }
public CommissionReportRequest setShowProcessed(Boolean value) { this.ShowProcessed = value; return this; }
}
public static class CommissionReportResponse
{
public ResponseStatus ResponseStatus = null;
public ArrayList<CommissionRecord> ReportData = new ArrayList<CommissionRecord>();
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public CommissionReportResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
public ArrayList<CommissionRecord> getReportData() { return ReportData; }
public CommissionReportResponse setReportData(ArrayList<CommissionRecord> value) { this.ReportData = value; return this; }
}
public static class CommissionRecord
{
public Integer Id = null;
public Date DateCreated = null;
public String AgentNumber = null;
public String AgentName = null;
public String PolicyNumber = null;
public String InsuredAnnuitant = null;
public Date ProcessDate = null;
public BigDecimal Premium = null;
public BigDecimal GrossCommission = null;
public Double CommRate = null;
public Double Part = null;
public Date PaymentDate = null;
public String PolicyType = null;
public String Company = null;
public Integer AgentId = null;
public Date DateProcessed = null;
public Integer CommissionBatchId = null;
public Integer getId() { return Id; }
public CommissionRecord setId(Integer value) { this.Id = value; return this; }
public Date getDateCreated() { return DateCreated; }
public CommissionRecord setDateCreated(Date value) { this.DateCreated = value; return this; }
public String getAgentNumber() { return AgentNumber; }
public CommissionRecord setAgentNumber(String value) { this.AgentNumber = value; return this; }
public String getAgentName() { return AgentName; }
public CommissionRecord setAgentName(String value) { this.AgentName = value; return this; }
public String getPolicyNumber() { return PolicyNumber; }
public CommissionRecord setPolicyNumber(String value) { this.PolicyNumber = value; return this; }
public String getInsuredAnnuitant() { return InsuredAnnuitant; }
public CommissionRecord setInsuredAnnuitant(String value) { this.InsuredAnnuitant = value; return this; }
public Date getProcessDate() { return ProcessDate; }
public CommissionRecord setProcessDate(Date value) { this.ProcessDate = value; return this; }
public BigDecimal getPremium() { return Premium; }
public CommissionRecord setPremium(BigDecimal value) { this.Premium = value; return this; }
public BigDecimal getGrossCommission() { return GrossCommission; }
public CommissionRecord setGrossCommission(BigDecimal value) { this.GrossCommission = value; return this; }
public Double getCommRate() { return CommRate; }
public CommissionRecord setCommRate(Double value) { this.CommRate = value; return this; }
public Double getPart() { return Part; }
public CommissionRecord setPart(Double value) { this.Part = value; return this; }
public Date getPaymentDate() { return PaymentDate; }
public CommissionRecord setPaymentDate(Date value) { this.PaymentDate = value; return this; }
public String getPolicyType() { return PolicyType; }
public CommissionRecord setPolicyType(String value) { this.PolicyType = value; return this; }
public String getCompany() { return Company; }
public CommissionRecord setCompany(String value) { this.Company = value; return this; }
public Integer getAgentId() { return AgentId; }
public CommissionRecord setAgentId(Integer value) { this.AgentId = value; return this; }
public Date getDateProcessed() { return DateProcessed; }
public CommissionRecord setDateProcessed(Date value) { this.DateProcessed = value; return this; }
public Integer getCommissionBatchId() { return CommissionBatchId; }
public CommissionRecord setCommissionBatchId(Integer value) { this.CommissionBatchId = value; return this; }
}
}
Java CommissionReportRequest 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.
GET /v1/CommissionReport/{StartDate}/{EndDate} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<CommissionReportResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<ReportData>
<CommissionRecord>
<AgentId>0</AgentId>
<AgentName>String</AgentName>
<AgentNumber>String</AgentNumber>
<CommRate>0</CommRate>
<CommissionBatchId>0</CommissionBatchId>
<Company>String</Company>
<DateCreated>0001-01-01T00:00:00</DateCreated>
<DateProcessed>0001-01-01T00:00:00</DateProcessed>
<GrossCommission>0</GrossCommission>
<Id>0</Id>
<InsuredAnnuitant>String</InsuredAnnuitant>
<Part>0</Part>
<PaymentDate>0001-01-01T00:00:00</PaymentDate>
<PolicyNumber>String</PolicyNumber>
<PolicyType>String</PolicyType>
<Premium>0</Premium>
<ProcessDate>0001-01-01T00:00:00</ProcessDate>
</CommissionRecord>
</ReportData>
<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>
</CommissionReportResponse>