Trendsic Platform Service

<back to all web services

CoverageSurgePreviewRequest

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

public class dtos
{

    public static class CoverageSurgePreviewRequest
    {
        public Date ScopeDate = null;
        
        public Date getScopeDate() { return ScopeDate; }
        public CoverageSurgePreviewRequest setScopeDate(Date value) { this.ScopeDate = value; return this; }
    }

    public static class CoverageSurgePreviewResponse
    {
        public String Banner = null;
        public String Title = null;
        public String Sub = null;
        public ArrayList<CoverageSurgeGap> Items = new ArrayList<CoverageSurgeGap>();
        public Integer PoolCount = null;
        public ArrayList<CoverageEffect> Conseq = new ArrayList<CoverageEffect>();
        public String GuardLine = null;
        public ResponseStatus ResponseStatus = null;
        
        public String getBanner() { return Banner; }
        public CoverageSurgePreviewResponse setBanner(String value) { this.Banner = value; return this; }
        public String getTitle() { return Title; }
        public CoverageSurgePreviewResponse setTitle(String value) { this.Title = value; return this; }
        public String getSub() { return Sub; }
        public CoverageSurgePreviewResponse setSub(String value) { this.Sub = value; return this; }
        public ArrayList<CoverageSurgeGap> getItems() { return Items; }
        public CoverageSurgePreviewResponse setItems(ArrayList<CoverageSurgeGap> value) { this.Items = value; return this; }
        public Integer getPoolCount() { return PoolCount; }
        public CoverageSurgePreviewResponse setPoolCount(Integer value) { this.PoolCount = value; return this; }
        public ArrayList<CoverageEffect> getConseq() { return Conseq; }
        public CoverageSurgePreviewResponse setConseq(ArrayList<CoverageEffect> value) { this.Conseq = value; return this; }
        public String getGuardLine() { return GuardLine; }
        public CoverageSurgePreviewResponse setGuardLine(String value) { this.GuardLine = value; return this; }
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public CoverageSurgePreviewResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
    }

    public static class CoverageSurgeGap
    {
        public Integer CoverageGapId = null;
        public String Label = null;
        public String Note = null;
        public String Track = null;
        
        public Integer getCoverageGapId() { return CoverageGapId; }
        public CoverageSurgeGap setCoverageGapId(Integer value) { this.CoverageGapId = value; return this; }
        public String getLabel() { return Label; }
        public CoverageSurgeGap setLabel(String value) { this.Label = value; return this; }
        public String getNote() { return Note; }
        public CoverageSurgeGap setNote(String value) { this.Note = value; return this; }
        public String getTrack() { return Track; }
        public CoverageSurgeGap setTrack(String value) { this.Track = value; return this; }
    }

    public static class CoverageEffect
    {
        public String Icon = null;
        public String Text = null;
        public String RuleId = null;
        public CoverageExplanation Expl = null;
        
        public String getIcon() { return Icon; }
        public CoverageEffect setIcon(String value) { this.Icon = value; return this; }
        public String getText() { return Text; }
        public CoverageEffect setText(String value) { this.Text = value; return this; }
        public String getRuleId() { return RuleId; }
        public CoverageEffect setRuleId(String value) { this.RuleId = value; return this; }
        public CoverageExplanation getExpl() { return Expl; }
        public CoverageEffect setExpl(CoverageExplanation value) { this.Expl = value; return this; }
    }

    public static class CoverageExplanation
    {
        public String PlainSentence = null;
        public String RuleId = null;
        public String RuleName = null;
        public String Demand = null;
        public CoverageExplanationSource Source = null;
        public String Kind = null;
        public String WhyItExists = null;
        public String WhatWouldChangeIt = null;
        public CoverageExplanationOverride Override = null;
        public String Drill = null;
        
        public String getPlainSentence() { return PlainSentence; }
        public CoverageExplanation setPlainSentence(String value) { this.PlainSentence = value; return this; }
        public String getRuleId() { return RuleId; }
        public CoverageExplanation setRuleId(String value) { this.RuleId = value; return this; }
        public String getRuleName() { return RuleName; }
        public CoverageExplanation setRuleName(String value) { this.RuleName = value; return this; }
        public String getDemand() { return Demand; }
        public CoverageExplanation setDemand(String value) { this.Demand = value; return this; }
        public CoverageExplanationSource getSource() { return Source; }
        public CoverageExplanation setSource(CoverageExplanationSource value) { this.Source = value; return this; }
        public String getKind() { return Kind; }
        public CoverageExplanation setKind(String value) { this.Kind = value; return this; }
        public String getWhyItExists() { return WhyItExists; }
        public CoverageExplanation setWhyItExists(String value) { this.WhyItExists = value; return this; }
        public String getWhatWouldChangeIt() { return WhatWouldChangeIt; }
        public CoverageExplanation setWhatWouldChangeIt(String value) { this.WhatWouldChangeIt = value; return this; }
        public CoverageExplanationOverride getOverride() { return Override; }
        public CoverageExplanation setOverride(CoverageExplanationOverride value) { this.Override = value; return this; }
        public String getDrill() { return Drill; }
        public CoverageExplanation setDrill(String value) { this.Drill = value; return this; }
    }

    public static class CoverageExplanationSource
    {
        public String PolicyName = null;
        public String CascadeLevel = null;
        
        public String getPolicyName() { return PolicyName; }
        public CoverageExplanationSource setPolicyName(String value) { this.PolicyName = value; return this; }
        public String getCascadeLevel() { return CascadeLevel; }
        public CoverageExplanationSource setCascadeLevel(String value) { this.CascadeLevel = value; return this; }
    }

    public static class CoverageExplanationOverride
    {
        public String Who = null;
        public String Consequence = null;
        
        public String getWho() { return Who; }
        public CoverageExplanationOverride setWho(String value) { this.Who = value; return this; }
        public String getConsequence() { return Consequence; }
        public CoverageExplanationOverride setConsequence(String value) { this.Consequence = value; return this; }
    }

}

Java CoverageSurgePreviewRequest 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/surge/preview HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<CoverageSurgePreviewResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <Banner>String</Banner>
  <Conseq>
    <CoverageEffect>
      <Expl>
        <Demand>String</Demand>
        <Drill>String</Drill>
        <Kind>String</Kind>
        <Override>
          <Consequence>String</Consequence>
          <Who>String</Who>
        </Override>
        <PlainSentence>String</PlainSentence>
        <RuleId>String</RuleId>
        <RuleName>String</RuleName>
        <Source>
          <CascadeLevel>String</CascadeLevel>
          <PolicyName>String</PolicyName>
        </Source>
        <WhatWouldChangeIt>String</WhatWouldChangeIt>
        <WhyItExists>String</WhyItExists>
      </Expl>
      <Icon>String</Icon>
      <RuleId>String</RuleId>
      <Text>String</Text>
    </CoverageEffect>
  </Conseq>
  <GuardLine>String</GuardLine>
  <Items>
    <CoverageSurgeGap>
      <CoverageGapId>0</CoverageGapId>
      <Label>String</Label>
      <Note>String</Note>
      <Track>String</Track>
    </CoverageSurgeGap>
  </Items>
  <PoolCount>0</PoolCount>
  <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>
  <Sub>String</Sub>
  <Title>String</Title>
</CoverageSurgePreviewResponse>