Trendsic Platform Service

<back to all web services

CommissionReportRequest

Requires Authentication
Requires any of the roles:Agent, Administrator
The following routes are available for this service:
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 .jsv suffix or ?format=jsv

HTTP + JSV

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: text/jsv
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
		}
	},
	ReportData: 
	[
		{
			Id: 0,
			DateCreated: 0001-01-01,
			AgentNumber: String,
			AgentName: String,
			PolicyNumber: String,
			InsuredAnnuitant: String,
			ProcessDate: 0001-01-01,
			Premium: 0,
			GrossCommission: 0,
			CommRate: 0,
			Part: 0,
			PaymentDate: 0001-01-01,
			PolicyType: String,
			Company: String,
			AgentId: 0,
			DateProcessed: 0001-01-01,
			CommissionBatchId: 0
		}
	]
}