Nephila RiskStore

<back to all web services

GetDealExpectedLossRequest

EventSets
Requires Authentication
The following routes are available for this service:
POST/api/riskstore/eventset/deal-expected-lossGet the deals expected losses by metarisk
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class GetDealExpectedLossRequest implements IPost
    {
        /**
        * The source deal system (IGN) to get the date for
        */
        @ApiMember(DataType="string", Description="The source deal system (IGN) to get the date for", IsRequired=true)
        public String sourceDealSystem = null;

        /**
        * The as of date to query
        */
        @ApiMember(DataType="string", Description="The as of date to query", Format="date-time")
        public Date asOf = null;

        /**
        * The metarisks to query for
        */
        @ApiMember(DataType="array", Description="The metarisks to query for", Format="int32", IsRequired=true)
        public ArrayList<Integer> metaRiskIds = new ArrayList<Integer>();

        /**
        * The perspectives to query for
        */
        @ApiMember(DataType="array", Description="The perspectives to query for", Format="int32")
        public ArrayList<Integer> perspectiveIds = null;

        /**
        * The perspectives types to query for (0 - Vendor, 10 - Nephila 1.0, 16 - Nephila 2.0 etc...)
        */
        @ApiMember(DataType="array", Description="The perspectives types to query for (0 - Vendor, 10 - Nephila 1.0, 16 - Nephila 2.0 etc...)", Format="int32")
        public ArrayList<Integer> perspectiveTypeIds = null;

        /**
        * The source deal ids to query for
        */
        @ApiMember(DataType="array", Description="The source deal ids to query for", Format="int64", IsRequired=true)
        public ArrayList<Long> sourceDealIds = new ArrayList<Long>();
        
        public String getSourceDealSystem() { return sourceDealSystem; }
        public GetDealExpectedLossRequest setSourceDealSystem(String value) { this.sourceDealSystem = value; return this; }
        public Date getAsOf() { return asOf; }
        public GetDealExpectedLossRequest setAsOf(Date value) { this.asOf = value; return this; }
        public ArrayList<Integer> getMetaRiskIds() { return metaRiskIds; }
        public GetDealExpectedLossRequest setMetaRiskIds(ArrayList<Integer> value) { this.metaRiskIds = value; return this; }
        public ArrayList<Integer> getPerspectiveIds() { return perspectiveIds; }
        public GetDealExpectedLossRequest setPerspectiveIds(ArrayList<Integer> value) { this.perspectiveIds = value; return this; }
        public ArrayList<Integer> getPerspectiveTypeIds() { return perspectiveTypeIds; }
        public GetDealExpectedLossRequest setPerspectiveTypeIds(ArrayList<Integer> value) { this.perspectiveTypeIds = value; return this; }
        public ArrayList<Long> getSourceDealIds() { return sourceDealIds; }
        public GetDealExpectedLossRequest setSourceDealIds(ArrayList<Long> value) { this.sourceDealIds = value; return this; }
    }

    public static class GetDealExpectedLossResponse
    {
        public ArrayList<DealExpectedLoss> dealExpectedLosses = null;
        public ResponseStatus responseStatus = null;
        
        public ArrayList<DealExpectedLoss> getDealExpectedLosses() { return dealExpectedLosses; }
        public GetDealExpectedLossResponse setDealExpectedLosses(ArrayList<DealExpectedLoss> value) { this.dealExpectedLosses = value; return this; }
        public ResponseStatus getResponseStatus() { return responseStatus; }
        public GetDealExpectedLossResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
    }

    public static class DealExpectedLoss
    {
        public Long sourceDealId = null;
        public Integer perspectiveId = null;
        public Integer metaRiskId = null;
        public BigDecimal elAgg = null;
        public BigDecimal elOcc = null;
        public BigDecimal pAtt = null;
        public BigDecimal pExh = null;
        
        public Long getSourceDealId() { return sourceDealId; }
        public DealExpectedLoss setSourceDealId(Long value) { this.sourceDealId = value; return this; }
        public Integer getPerspectiveId() { return perspectiveId; }
        public DealExpectedLoss setPerspectiveId(Integer value) { this.perspectiveId = value; return this; }
        public Integer getMetaRiskId() { return metaRiskId; }
        public DealExpectedLoss setMetaRiskId(Integer value) { this.metaRiskId = value; return this; }
        public BigDecimal getElAgg() { return elAgg; }
        public DealExpectedLoss setElAgg(BigDecimal value) { this.elAgg = value; return this; }
        public BigDecimal getElOcc() { return elOcc; }
        public DealExpectedLoss setElOcc(BigDecimal value) { this.elOcc = value; return this; }
        public BigDecimal getPAtt() { return pAtt; }
        public DealExpectedLoss setPAtt(BigDecimal value) { this.pAtt = value; return this; }
        public BigDecimal getPExh() { return pExh; }
        public DealExpectedLoss setPExh(BigDecimal value) { this.pExh = value; return this; }
    }

}

Java GetDealExpectedLossRequest DTOs

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

HTTP + OTHER

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

POST /api/riskstore/eventset/deal-expected-loss HTTP/1.1 
Host: riskstoreng-dev.nephila.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"sourceDealSystem":"String","asOf":"0001-01-01T00:00:00.0000000Z","metaRiskIds":[0],"perspectiveIds":[0],"perspectiveTypeIds":[0],"sourceDealIds":[0]}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"dealExpectedLosses":[{"sourceDealId":0,"perspectiveId":0,"metaRiskId":0,"elAgg":0,"elOcc":0,"pAtt":0,"pExh":0}],"responseStatus":{"__type":"ServiceStack.ResponseStatus, ServiceStack.Interfaces","errorCode":"String","message":"String","stackTrace":"String","errors":[{"__type":"ServiceStack.ResponseError, ServiceStack.Interfaces","errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}