Trendsic Platform Service

<back to all web services

CoverageOfferPassRequest

The following routes are available for this service:
POST/v1/coverage/offer/{Token}/pass
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class CoverageOfferPassRequest
    {
        public String Token = null;
        public Boolean Undo = null;
        
        public String getToken() { return Token; }
        public CoverageOfferPassRequest setToken(String value) { this.Token = value; return this; }
        public Boolean isUndo() { return Undo; }
        public CoverageOfferPassRequest setUndo(Boolean value) { this.Undo = value; return this; }
    }

    public static class CoverageOfferViewResponse
    {
        public String State = null;
        public String WorkerFirst = null;
        public String Primary = null;
        public String Kind = null;
        public String Role = null;
        public String Pay = null;
        public String Site = null;
        public String Address = null;
        public String GapDate = null;
        public String GapTime = null;
        public String CalMon = null;
        public String CalDay = null;
        public String ReportTo = null;
        public ArrayList<CoverageOfferEligChip> Elig = new ArrayList<CoverageOfferEligChip>();
        public String AssignmentMode = null;
        public String Ticket = null;
        public String Expires = null;
        public CoverageExplanation BlockExpl = null;
        public ResponseStatus ResponseStatus = null;
        
        public String getState() { return State; }
        public CoverageOfferViewResponse setState(String value) { this.State = value; return this; }
        public String getWorkerFirst() { return WorkerFirst; }
        public CoverageOfferViewResponse setWorkerFirst(String value) { this.WorkerFirst = value; return this; }
        public String getPrimary() { return Primary; }
        public CoverageOfferViewResponse setPrimary(String value) { this.Primary = value; return this; }
        public String getKind() { return Kind; }
        public CoverageOfferViewResponse setKind(String value) { this.Kind = value; return this; }
        public String getRole() { return Role; }
        public CoverageOfferViewResponse setRole(String value) { this.Role = value; return this; }
        public String getPay() { return Pay; }
        public CoverageOfferViewResponse setPay(String value) { this.Pay = value; return this; }
        public String getSite() { return Site; }
        public CoverageOfferViewResponse setSite(String value) { this.Site = value; return this; }
        public String getAddress() { return Address; }
        public CoverageOfferViewResponse setAddress(String value) { this.Address = value; return this; }
        public String getGapDate() { return GapDate; }
        public CoverageOfferViewResponse setGapDate(String value) { this.GapDate = value; return this; }
        public String getGapTime() { return GapTime; }
        public CoverageOfferViewResponse setGapTime(String value) { this.GapTime = value; return this; }
        public String getCalMon() { return CalMon; }
        public CoverageOfferViewResponse setCalMon(String value) { this.CalMon = value; return this; }
        public String getCalDay() { return CalDay; }
        public CoverageOfferViewResponse setCalDay(String value) { this.CalDay = value; return this; }
        public String getReportTo() { return ReportTo; }
        public CoverageOfferViewResponse setReportTo(String value) { this.ReportTo = value; return this; }
        public ArrayList<CoverageOfferEligChip> getElig() { return Elig; }
        public CoverageOfferViewResponse setElig(ArrayList<CoverageOfferEligChip> value) { this.Elig = value; return this; }
        public String getAssignmentMode() { return AssignmentMode; }
        public CoverageOfferViewResponse setAssignmentMode(String value) { this.AssignmentMode = value; return this; }
        public String getTicket() { return Ticket; }
        public CoverageOfferViewResponse setTicket(String value) { this.Ticket = value; return this; }
        public String getExpires() { return Expires; }
        public CoverageOfferViewResponse setExpires(String value) { this.Expires = value; return this; }
        public CoverageExplanation getBlockExpl() { return BlockExpl; }
        public CoverageOfferViewResponse setBlockExpl(CoverageExplanation value) { this.BlockExpl = value; return this; }
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public CoverageOfferViewResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
    }

    public static class CoverageOfferEligChip
    {
        public String Label = null;
        public String Detail = null;
        public String State = null;
        
        public String getLabel() { return Label; }
        public CoverageOfferEligChip setLabel(String value) { this.Label = value; return this; }
        public String getDetail() { return Detail; }
        public CoverageOfferEligChip setDetail(String value) { this.Detail = value; return this; }
        public String getState() { return State; }
        public CoverageOfferEligChip setState(String value) { this.State = 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 CoverageOfferPassRequest DTOs

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

HTTP + CSV

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

POST /v1/coverage/offer/{Token}/pass HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"Token":"String","Undo":false}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"State":"String","WorkerFirst":"String","Primary":"String","Kind":"String","Role":"String","Pay":"String","Site":"String","Address":"String","GapDate":"String","GapTime":"String","CalMon":"String","CalDay":"String","ReportTo":"String","Elig":[{"Label":"String","Detail":"String","State":"String"}],"AssignmentMode":"String","Ticket":"String","Expires":"String","BlockExpl":{"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"},"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}