| 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 .jsv suffix or ?format=jsv
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: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Banner: String,
ScopeLine: String,
Items:
[
{
JobID: 0,
JobName: String,
CrewCount: 0,
Note: String,
Tone: String,
MustFill: False,
PrevailingWage: False
}
],
Conseq:
[
{
Icon: String,
Text: String,
RuleId: String,
Expl:
{
PlainSentence: String,
RuleId: String,
RuleName: String,
Demand: String,
Source:
{
PolicyName: String,
CascadeLevel: String
},
Kind: String,
WhyItExists: String,
WhatWouldChangeIt: String,
Override:
{
Who: String,
Consequence: String
},
Drill: String
}
}
],
CustomerCount: 0,
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}