Trendsic Platform Service

<back to all web services

PolicyReportRequest

Requires Authentication
Requires any of the roles:Agent, Administrator
The following routes are available for this service:
GET,OPTIONS/v1/PolicyReport/{PolicyNumber}
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class PolicyReportRequest
    {
        public String PolicyNumber = null;
        
        public String getPolicyNumber() { return PolicyNumber; }
        public PolicyReportRequest setPolicyNumber(String value) { this.PolicyNumber = value; return this; }
    }

    public static class PolicyReportResponse
    {
        public ResponseStatus ResponseStatus = null;
        public ArrayList<CommissionListing> ReportData = new ArrayList<CommissionListing>();
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public PolicyReportResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public ArrayList<CommissionListing> getReportData() { return ReportData; }
        public PolicyReportResponse setReportData(ArrayList<CommissionListing> value) { this.ReportData = value; return this; }
    }

    public static class CommissionListing
    {
        public Integer ID = null;
        public Date ProcessDate = null;
        public Date PaymentDate = null;
        public Integer AgentId = null;
        public String Agent = null;
        public Integer OAgentID = null;
        public String OAgent = null;
        public String Policy = null;
        public String PolicyType = null;
        public String Insured = null;
        public BigDecimal Premium = null;
        public Double Part = null;
        public Double PartPercent = null;
        public BigDecimal Amount = null;
        public String Company = null;
        public BigDecimal Gross = null;
        public String AgentNumber = null;
        public Double CommissionRate = null;
        public String Description = null;
        
        public Integer getId() { return ID; }
        public CommissionListing setId(Integer value) { this.ID = value; return this; }
        public Date getProcessDate() { return ProcessDate; }
        public CommissionListing setProcessDate(Date value) { this.ProcessDate = value; return this; }
        public Date getPaymentDate() { return PaymentDate; }
        public CommissionListing setPaymentDate(Date value) { this.PaymentDate = value; return this; }
        public Integer getAgentId() { return AgentId; }
        public CommissionListing setAgentId(Integer value) { this.AgentId = value; return this; }
        public String getAgent() { return Agent; }
        public CommissionListing setAgent(String value) { this.Agent = value; return this; }
        public Integer getOAgentID() { return OAgentID; }
        public CommissionListing setOAgentID(Integer value) { this.OAgentID = value; return this; }
        public String getOAgent() { return OAgent; }
        public CommissionListing setOAgent(String value) { this.OAgent = value; return this; }
        public String getPolicy() { return Policy; }
        public CommissionListing setPolicy(String value) { this.Policy = value; return this; }
        public String getPolicyType() { return PolicyType; }
        public CommissionListing setPolicyType(String value) { this.PolicyType = value; return this; }
        public String getInsured() { return Insured; }
        public CommissionListing setInsured(String value) { this.Insured = value; return this; }
        public BigDecimal getPremium() { return Premium; }
        public CommissionListing setPremium(BigDecimal value) { this.Premium = value; return this; }
        public Double getPart() { return Part; }
        public CommissionListing setPart(Double value) { this.Part = value; return this; }
        public Double getPartPercent() { return PartPercent; }
        public CommissionListing setPartPercent(Double value) { this.PartPercent = value; return this; }
        public BigDecimal getAmount() { return Amount; }
        public CommissionListing setAmount(BigDecimal value) { this.Amount = value; return this; }
        public String getCompany() { return Company; }
        public CommissionListing setCompany(String value) { this.Company = value; return this; }
        public BigDecimal getGross() { return Gross; }
        public CommissionListing setGross(BigDecimal value) { this.Gross = value; return this; }
        public String getAgentNumber() { return AgentNumber; }
        public CommissionListing setAgentNumber(String value) { this.AgentNumber = value; return this; }
        public Double getCommissionRate() { return CommissionRate; }
        public CommissionListing setCommissionRate(Double value) { this.CommissionRate = value; return this; }
        public String getDescription() { return Description; }
        public CommissionListing setDescription(String value) { this.Description = value; return this; }
    }

}

Java PolicyReportRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /v1/PolicyReport/{PolicyNumber} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
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,"ProcessDate":"0001-01-01T00:00:00.0000000","PaymentDate":"0001-01-01T00:00:00.0000000","AgentId":0,"Agent":"String","OAgentID":0,"OAgent":"String","Policy":"String","PolicyType":"String","Insured":"String","Premium":0,"Part":0,"PartPercent":0,"Amount":0,"Company":"String","Gross":0,"AgentNumber":"String","CommissionRate":0,"Description":"String"}]}