| GET | /v1/coverage/weather/preview |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class CoverageWeatherPreviewRequest
{
public Date ScopeDate = null;
public UUID BranchId = null;
public Date getScopeDate() { return ScopeDate; }
public CoverageWeatherPreviewRequest setScopeDate(Date value) { this.ScopeDate = value; return this; }
public UUID getBranchId() { return BranchId; }
public CoverageWeatherPreviewRequest setBranchId(UUID value) { this.BranchId = value; return this; }
}
public static class CoverageWeatherPreviewResponse
{
public String Banner = null;
public String ScopeLine = null;
public ArrayList<CoverageWeatherItem> Items = new ArrayList<CoverageWeatherItem>();
public ArrayList<CoverageEffect> Conseq = new ArrayList<CoverageEffect>();
public Integer CustomerCount = null;
public ResponseStatus ResponseStatus = null;
public String getBanner() { return Banner; }
public CoverageWeatherPreviewResponse setBanner(String value) { this.Banner = value; return this; }
public String getScopeLine() { return ScopeLine; }
public CoverageWeatherPreviewResponse setScopeLine(String value) { this.ScopeLine = value; return this; }
public ArrayList<CoverageWeatherItem> getItems() { return Items; }
public CoverageWeatherPreviewResponse setItems(ArrayList<CoverageWeatherItem> value) { this.Items = value; return this; }
public ArrayList<CoverageEffect> getConseq() { return Conseq; }
public CoverageWeatherPreviewResponse setConseq(ArrayList<CoverageEffect> value) { this.Conseq = value; return this; }
public Integer getCustomerCount() { return CustomerCount; }
public CoverageWeatherPreviewResponse setCustomerCount(Integer value) { this.CustomerCount = value; return this; }
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public CoverageWeatherPreviewResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
}
public static class CoverageWeatherItem
{
public Integer JobID = null;
public String JobName = null;
public Integer CrewCount = null;
public String Note = null;
public String Tone = null;
public Boolean MustFill = null;
public Boolean PrevailingWage = null;
public Integer getJobID() { return JobID; }
public CoverageWeatherItem setJobID(Integer value) { this.JobID = value; return this; }
public String getJobName() { return JobName; }
public CoverageWeatherItem setJobName(String value) { this.JobName = value; return this; }
public Integer getCrewCount() { return CrewCount; }
public CoverageWeatherItem setCrewCount(Integer value) { this.CrewCount = value; return this; }
public String getNote() { return Note; }
public CoverageWeatherItem setNote(String value) { this.Note = value; return this; }
public String getTone() { return Tone; }
public CoverageWeatherItem setTone(String value) { this.Tone = value; return this; }
public Boolean isMustFill() { return MustFill; }
public CoverageWeatherItem setMustFill(Boolean value) { this.MustFill = value; return this; }
public Boolean isPrevailingWage() { return PrevailingWage; }
public CoverageWeatherItem setPrevailingWage(Boolean value) { this.PrevailingWage = 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 CoverageWeatherPreviewRequest 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/coverage/weather/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
<CoverageWeatherPreviewResponse 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>
<CustomerCount>0</CustomerCount>
<Items>
<CoverageWeatherItem>
<CrewCount>0</CrewCount>
<JobID>0</JobID>
<JobName>String</JobName>
<MustFill>false</MustFill>
<Note>String</Note>
<PrevailingWage>false</PrevailingWage>
<Tone>String</Tone>
</CoverageWeatherItem>
</Items>
<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>
<ScopeLine>String</ScopeLine>
</CoverageWeatherPreviewResponse>