Создать объект страховки
POST
в поле type передается тип страховки, один из [CivilLiabilityInsurance, ExtAutoInsurance, LifeInsurance]. Поля у разных типов отличаются, описание для каждого типа можно найти в соответствующей модели [CreateCivilLiabilityInsuranceDTO, CreateExtAutoInsuranceDTO, CreateLifeInsuranceDTO];Id заявки и программы страхования - обязательны
Request Body
application/json
amount
number
Format
"double"code
string
contractId
integer
Format
"int64"cost
number
Format
"double"creationDate
string
Format
"date-time"expirationDate
string
Format
"date-time"includeInLoanAmount
boolean
insuranceProgramId
integer
Required
Format
"int64"loanApplicationId
integer
Required
Format
"int64"premium
number
Format
"double"signDate
object
date
integer
Format
"int32"hours
integer
Format
"int32"minutes
integer
Format
"int32"month
integer
Format
"int32"nanos
integer
Format
"int32"seconds
integer
Format
"int32"time
integer
Format
"int64"year
integer
Format
"int32"signed
boolean
smsCode
string
Responses
OK
*/*
DefaultResponseOflong
object
data
integer
The identifier of the created item of the "Invoices" lookup
Format
"int64"status
string
If the element is successfully added to the directory, the status "ok" is returned. Otherwise, an error is returned
Valid values
"error""ok"timestamp
integer
Returns the date + time (kernel) in unix timestamp format in milliseconds
Format
"int64"