Trendsic Platform Service

<back to all web services

CoveragePoliciesRequest

Requires Authentication
The following routes are available for this service:
GET/v1/coverage/policies
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class CoveragePoliciesRequest
    {
        
    }

    public static class CoveragePoliciesResponse
    {
        public ArrayList<CoveragePolicy> Policies = new ArrayList<CoveragePolicy>();
        public ResponseStatus ResponseStatus = null;
        
        public ArrayList<CoveragePolicy> getPolicies() { return Policies; }
        public CoveragePoliciesResponse setPolicies(ArrayList<CoveragePolicy> value) { this.Policies = value; return this; }
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public CoveragePoliciesResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
    }

    public static class CoveragePolicy
    {
        public Integer CoveragePolicyId = null;
        public UUID CoveragePolicyUID = null;
        public String Name = null;
        public String ScopeLevel = null;
        public UUID BranchId = null;
        public String BranchName = null;
        public String WorkTypeKey = null;
        public Integer JobID = null;
        public String JobName = null;
        public Integer CurrentVersion = null;
        public Boolean IsActive = null;
        public Date CreatedAt = null;
        public Date UpdatedAt = null;
        
        public Integer getCoveragePolicyId() { return CoveragePolicyId; }
        public CoveragePolicy setCoveragePolicyId(Integer value) { this.CoveragePolicyId = value; return this; }
        public UUID getCoveragePolicyUID() { return CoveragePolicyUID; }
        public CoveragePolicy setCoveragePolicyUID(UUID value) { this.CoveragePolicyUID = value; return this; }
        public String getName() { return Name; }
        public CoveragePolicy setName(String value) { this.Name = value; return this; }
        public String getScopeLevel() { return ScopeLevel; }
        public CoveragePolicy setScopeLevel(String value) { this.ScopeLevel = value; return this; }
        public UUID getBranchId() { return BranchId; }
        public CoveragePolicy setBranchId(UUID value) { this.BranchId = value; return this; }
        public String getBranchName() { return BranchName; }
        public CoveragePolicy setBranchName(String value) { this.BranchName = value; return this; }
        public String getWorkTypeKey() { return WorkTypeKey; }
        public CoveragePolicy setWorkTypeKey(String value) { this.WorkTypeKey = value; return this; }
        public Integer getJobID() { return JobID; }
        public CoveragePolicy setJobID(Integer value) { this.JobID = value; return this; }
        public String getJobName() { return JobName; }
        public CoveragePolicy setJobName(String value) { this.JobName = value; return this; }
        public Integer getCurrentVersion() { return CurrentVersion; }
        public CoveragePolicy setCurrentVersion(Integer value) { this.CurrentVersion = value; return this; }
        public Boolean getIsActive() { return IsActive; }
        public CoveragePolicy setIsActive(Boolean value) { this.IsActive = value; return this; }
        public Date getCreatedAt() { return CreatedAt; }
        public CoveragePolicy setCreatedAt(Date value) { this.CreatedAt = value; return this; }
        public Date getUpdatedAt() { return UpdatedAt; }
        public CoveragePolicy setUpdatedAt(Date value) { this.UpdatedAt = value; return this; }
    }

}

Java CoveragePoliciesRequest DTOs

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

HTTP + XML

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

GET /v1/coverage/policies HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<CoveragePoliciesResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <Policies>
    <CoveragePolicy>
      <BranchId>00000000-0000-0000-0000-000000000000</BranchId>
      <BranchName>String</BranchName>
      <CoveragePolicyId>0</CoveragePolicyId>
      <CoveragePolicyUID>00000000-0000-0000-0000-000000000000</CoveragePolicyUID>
      <CreatedAt>0001-01-01T00:00:00</CreatedAt>
      <CurrentVersion>0</CurrentVersion>
      <IsActive>false</IsActive>
      <JobID>0</JobID>
      <JobName>String</JobName>
      <Name>String</Name>
      <ScopeLevel>String</ScopeLevel>
      <UpdatedAt>0001-01-01T00:00:00</UpdatedAt>
      <WorkTypeKey>String</WorkTypeKey>
    </CoveragePolicy>
  </Policies>
  <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>
</CoveragePoliciesResponse>