| POST | /api/riskstore/eventset/deal-expected-loss | Get the deals expected losses by metarisk |
|---|
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
open class GetDealExpectedLossRequest : 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)
open var sourceDealSystem:String? = null
/**
* The as of date to query
*/
@ApiMember(DataType="string", Description="The as of date to query", Format="date-time")
open var asOf:Date? = null
/**
* The metarisks to query for
*/
@ApiMember(DataType="array", Description="The metarisks to query for", Format="int32", IsRequired=true)
open var metaRiskIds:ArrayList<Int> = ArrayList<Int>()
/**
* The perspectives to query for
*/
@ApiMember(DataType="array", Description="The perspectives to query for", Format="int32")
open var perspectiveIds:ArrayList<Int>? = 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")
open var perspectiveTypeIds:ArrayList<Int>? = null
/**
* The source deal ids to query for
*/
@ApiMember(DataType="array", Description="The source deal ids to query for", Format="int64", IsRequired=true)
open var sourceDealIds:ArrayList<Long> = ArrayList<Long>()
}
open class GetDealExpectedLossResponse
{
open var dealExpectedLosses:ArrayList<DealExpectedLoss>? = null
open var responseStatus:ResponseStatus? = null
}
open class DealExpectedLoss
{
open var sourceDealId:Long? = null
open var perspectiveId:Int? = null
open var metaRiskId:Int? = null
open var elAgg:BigDecimal? = null
open var elOcc:BigDecimal? = null
open var pAtt:BigDecimal? = null
open var pExh:BigDecimal? = null
}
Kotlin GetDealExpectedLossRequest 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.
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
}
}
}