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

export class DealExpectedLoss
{
    public sourceDealId: number;
    public perspectiveId: number;
    public metaRiskId: number;
    public elAgg: number;
    public elOcc: number;
    public pAtt: number;
    public pExh: number;

    public constructor(init?: Partial<DealExpectedLoss>) { (Object as any).assign(this, init); }
}

export class GetDealExpectedLossResponse
{
    public dealExpectedLosses: DealExpectedLoss[];
    public responseStatus: ResponseStatus;

    public constructor(init?: Partial<GetDealExpectedLossResponse>) { (Object as any).assign(this, init); }
}

export class GetDealExpectedLossRequest implements IPost
{
    /** @description 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 sourceDealSystem: string;

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

    /** @description The metarisks to query for */
    // @ApiMember(DataType="array", Description="The metarisks to query for", Format="int32", IsRequired=true)
    public metaRiskIds: number[] = [];

    /** @description The perspectives to query for */
    // @ApiMember(DataType="array", Description="The perspectives to query for", Format="int32")
    public perspectiveIds: number[];

    /** @description 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 perspectiveTypeIds: number[];

    /** @description The source deal ids to query for */
    // @ApiMember(DataType="array", Description="The source deal ids to query for", Format="int64", IsRequired=true)
    public sourceDealIds: number[] = [];

    public constructor(init?: Partial<GetDealExpectedLossRequest>) { (Object as any).assign(this, init); }
}

TypeScript GetDealExpectedLossRequest DTOs

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

HTTP + JSV

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/jsv
Content-Type: text/jsv
Content-Length: length

{
	sourceDealSystem: String,
	asOf: 0001-01-01,
	metaRiskIds: 
	[
		0
	],
	perspectiveIds: 
	[
		0
	],
	perspectiveTypeIds: 
	[
		0
	],
	sourceDealIds: 
	[
		0
	]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	dealExpectedLosses: 
	[
		{
			sourceDealId: 0,
			perspectiveId: 0,
			metaRiskId: 0,
			elAgg: 0,
			elOcc: 0,
			pAtt: 0,
			pExh: 0
		}
	],
	responseStatus: 
	{
		errorCode: String,
		message: String,
		stackTrace: String,
		errors: 
		[
			{
				errorCode: String,
				fieldName: String,
				message: String,
				meta: 
				{
					String: String
				}
			}
		],
		meta: 
		{
			String: String
		}
	}
}