{"openapi":"3.0.1","info":{"title":"1388.alpp-onbr-s-rest-1","description":"Взаимодействия с фронтальным приложением в рамках процесса расчета предложения калькулятора и сохранения рассчитанных данных в заявке","version":"1.0.0","contact":{"url":"https://wiki.corp.dev.vtb/pages/viewpage.action?pageId=731960925","email":"letunovskaya@vtb.ru","name":"Летуновская Анна Сердаровна"}},"servers":[{"url":"http://localhost:8091/all/calc/v1","description":"localhost"},{"url":"https://alpp-onbr-bff-fr.ds1-genr01-alpp-dso1.apps.ds1-genr01.corp.dev.vtb/all/calc/v1","description":"DSO"},{"url":"https://alpp-onbr-bff-fr.ss5-genr02-alpp-ift1.apps.ss5-genr02.test.vtb.ru/all/calc/v1","description":"K3"},{"url":"https://alpp-onbr-bff-fr.rs1-genr01-alpp-rr01.apps.rs1-genr01.test.vtb.ru/all/calc/v1","description":"K4"},{"url":"https://alpp-onbr-bff-fr.alpp.region.vtb.ru/all/calc/v1","description":"PROD"}],"tags":[{"name":"route-rest-controller","description":"Route Rest Controller"}],"security":[{"EpaAuth":[]}],"paths":{"/loan_conditions":{"post":{"tags":["route-rest-controller"],"summary":"Контрольный пересчет по заданным параметрам и сохранение значений","operationId":"savePreCalculationV2UsingPOST","description":"Контрольный пересчет по заданным параметрам и сохранение значений","parameters":[{"name":"X-Mdm-Id","in":"header","description":"X-Mdm-Id","required":true,"schema":{"type":"string","maxLength":255}},{"name":"appId","in":"query","description":"appId","required":true,"schema":{"type":"string","maxLength":255}}],"requestBody":{"description":"conditionInfoTOv3","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConditionInfoTOv3"}}},"required":true},"responses":{"200":{"description":"OK","content":{}}},"x-codegen-request-body-name":"conditionInfoTOv3"}},"/calculation/deal_by_parameters":{"post":{"tags":["route-rest-controller"],"summary":"Расчет кредита по заданной стратегии","operationId":"getCalculationByDealByParametersUsingPOST","description":"Расчет кредита по заданной стратегии","parameters":[{"name":"X-Mdm-Id","in":"header","description":"X-Mdm-Id","required":true,"schema":{"type":"string","maxLength":255}},{"name":"appId","in":"query","description":"appId","required":true,"schema":{"type":"string","maxLength":255}}],"requestBody":{"description":"requestTO","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestTOv2"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalculationResponseTOv3"}}}}},"x-codegen-request-body-name":"requestTO"}},"/default_loan_properties":{"get":{"tags":["route-rest-controller"],"summary":"Получение значений по умолчанию","operationId":"getDefaultLoanPropertiesUsingGET","description":"Получение значений по умолчанию","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DefaultPropertiesResponseTO"}}}}}}},"/apps/{appId}":{"get":{"tags":["route-rest-controller"],"summary":"Получение информации по заявке","operationId":"getAppsUsingGET","description":"Получение информации по заявке","parameters":[{"name":"appId","in":"path","description":"Идентификатор заявки","required":true,"schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationTO"}}}}}}},"/products":{"get":{"tags":["route-rest-controller"],"summary":"Получение продуктов","operationId":"getProductsUsingGET","description":"Получение продуктов","parameters":[{"name":"productGroupCode","in":"query","description":"Код продуктовой группы","required":false,"schema":{"type":"string","maxLength":32}},{"name":"actualDate","in":"query","description":"Дата актуальности","required":false,"schema":{"type":"string","format":"date","maxLength":255,"pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}$"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductTO"}}}}}}},"/programs":{"get":{"tags":["route-rest-controller"],"summary":"Получение программ","operationId":"getProgramsUsingGET","description":"Получение программ","parameters":[{"name":"productCode","in":"query","description":"Код продуктa","required":false,"schema":{"type":"string","maxLength":255}},{"name":"actualDate","in":"query","description":"Дата актуальности","required":false,"schema":{"type":"string","format":"date","maxLength":255,"pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}$"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProgramTO"}}}}}}},"/session":{"get":{"tags":["route-rest-controller"],"operationId":"getValueFromKey","summary":"Получение параметра сессии","description":"Получение параметра сессии","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionDataResponseTO"}}}}},"deprecated":false}},"/calculation/refinance_loan/deal":{"post":{"tags":["route-rest-controller"],"summary":"Расчет кредита для рефинансирования","operationId":"getCalculationRefinUsingPOST","description":"Расчет кредита для рефинансирования","parameters":[{"name":"X-Mdm-Id","in":"header","description":"X-Mdm-Id","required":false,"schema":{"type":"string","maxLength":255}},{"name":"appId","in":"query","description":"appId","required":true,"schema":{"type":"string","maxLength":255}}],"requestBody":{"description":"requestTO","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefinRequestTO"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalcBffRefinResponseTO"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseTO"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseTO"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseTO"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseTO"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseTO"}}}}},"deprecated":false,"x-codegen-request-body-name":"requestTO"}},"/refinance_loan/loan_conditions":{"post":{"tags":["route-rest-controller"],"summary":"Контрольный пересчет по заданным параметрам и сохранение по рефинансированию","operationId":"savePreCalcRefinV1UsingPOST","description":"Контрольный пересчет по заданным параметрам и сохранение значений по рефинансированию","parameters":[{"name":"X-Mdm-Id","in":"header","description":"X-Mdm-Id","required":false,"schema":{"type":"string","maxLength":255}},{"name":"appId","in":"query","description":"appId","required":true,"schema":{"type":"string","maxLength":255}}],"requestBody":{"description":"conditionInfoTOv3","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConditionInfoRefinTO"}}},"required":true},"responses":{"204":{"description":"OK","content":{}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseTO"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseTO"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseTO"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseTO"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseTO"}}}}}}},"/refinance_loan/apps/{appId}":{"get":{"tags":["route-rest-controller"],"summary":"Получение информации по заявке по рефинансированию","operationId":"getRefinAppsUsingGET","description":"Получение информации по заявке по рефинансированию","parameters":[{"name":"appId","in":"path","description":"Идентификатор заявки","required":true,"schema":{"type":"string","maxLength":255}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppRefinTO"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseTO"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseTO"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseTO"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseTO"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseTO"}}}}}}},"/applications/{applicationId}/clientRefuse":{"put":{"tags":["route-rest-controller"],"summary":"Отказ клиента и сохранение причины отказа","operationId":"putClientRefuse","description":"Отказ клиента и сохранение причины отказа","parameters":[{"name":"applicationId","in":"path","description":"Идентификатор заявки","required":true,"schema":{"type":"string","maxLength":255}}],"requestBody":{"description":"ClientRefusalTO","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientRefusalTO"}}}},"responses":{"204":{"description":"OK","content":{}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseTO"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseTO"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseTO"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseTO"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseTO"}}}}}}},"/calculation/application":{"post":{"tags":["route-rest-controller"],"summary":"Расчет кредита по заявке","operationId":"getCalculationByapplicationUsingPOST","description":"Расчет кредита по заявке","requestBody":{"description":"requestTO","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequestTOv2"}}},"required":true},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CalculationResponseTOv2"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseTO"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseTO"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseTO"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseTO"}}}},"503":{"description":"Service Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponseTO"}}}}},"x-codegen-request-body-name":"requestTO"}}},"components":{"securitySchemes":{"EpaAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"AdditionalPropertiesTO":{"title":"AdditionalPropertiesTO","type":"object","description":"Дополнительные реквизиты","properties":{"collateralRate":{"type":"number","description":"Ставка с залогом","minimum":0,"maximum":100},"noCollateralRate":{"type":"number","description":"Ставка без залога","minimum":0,"maximum":100}},"additionalProperties":false},"CarTO":{"title":"CarTO","type":"object","description":"Данные выбранного автомобиля","properties":{"description":{"type":"string","maxLength":255,"description":"Описание модели ТС"},"vehicleBrand":{"$ref":"#/components/schemas/CarBrandTO"},"vehicleModelCode":{"type":"string","maxLength":32,"description":"Код модели ТС"},"vehicleModelId":{"type":"integer","format":"int64","minimum":0,"maximum":9223372036854775807,"description":"Идентификатор сущности"},"direct":{"type":"boolean","description":"Признак участия ТС в акции"}},"additionalProperties":false},"CarBrandTO":{"title":"CarBrandTO","type":"object","description":"Описание марки ТС","properties":{"description":{"type":"string","maxLength":255,"description":"Описание"},"vehicleBrandCode":{"type":"string","maxLength":32,"description":"Код марки ТС"},"vehicleBrandId":{"type":"integer","format":"int64","minimum":0,"maximum":9223372036854775807,"description":"Идентификатор марки ТС"},"direct":{"type":"boolean","description":"Признак участия марки ТС в акции"}},"additionalProperties":false},"ConditionInfoTOv3":{"title":"ConditionInfoTOv3","type":"object","description":"Информация об условиях заявки","properties":{"requestTOv2":{"$ref":"#/components/schemas/RequestTOv2"},"calculationStrategy":{"type":"string","maxLength":32,"description":"Указатель стратегии расчета"},"carTO":{"$ref":"#/components/schemas/CarTO"}},"additionalProperties":false},"DefaultPropertiesResponseTO":{"title":"DefaultPropertiesResponseTO","description":"Реквизиты по умолчанию","type":"object","properties":{"additionalProperties":{"$ref":"#/components/schemas/AdditionalPropertiesTO"},"defaultProposalProps":{"type":"array","minItems":0,"maxItems":999999,"description":"Реквизиты по умолчанию","items":{"$ref":"#/components/schemas/DefaultProposalPropsTO"}}},"additionalProperties":false},"ApplicationTO":{"title":"ApplicationTO","type":"object","description":"Данные по заявке","properties":{"applicationId":{"type":"string","maxLength":255,"description":"Идентификатор заявки"},"mdmId":{"type":"string","maxLength":255,"description":"Идентификатор заявки"},"appCreationDate":{"type":"string","format":"date","maxLength":255,"pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}$","description":"Дата создания заявки"},"loanClass":{"type":"string","maxLength":255,"description":"Класс кредита"},"productCode":{"type":"string","maxLength":32,"description":"Код продукта"},"productKindCode":{"type":"string","maxLength":255,"description":"Код типа продукта"},"productGroup":{"type":"string","maxLength":255,"description":"Продуктовая группа"},"liabilityType":{"type":"string","maxLength":255,"description":"Тип обязательства"},"creditParams":{"$ref":"#/components/schemas/CreditParamsTO"},"insurances":{"type":"array","minItems":0,"maxItems":1000,"description":"Информация по страховкам","items":{"$ref":"#/components/schemas/InsurancesTO"}}},"additionalProperties":false},"CreditParamsTO":{"title":"CreditParamsTO","type":"object","description":"Параметры кредита","properties":{"downPayment":{"type":"number","description":"Первоначальный взнос","minimum":0,"maximum":99999999},"loanTerm":{"type":"number","description":"Срок кредита","minimum":0,"maximum":1000},"vehicleCondition":{"type":"string","maxLength":255,"enum":["NEW","USED"],"description":"Состояние автомобиля"},"vehicleCost":{"type":"number","description":"Стоимость автомобиля","minimum":0,"maximum":99999999}},"additionalProperties":false},"InsurancesTO":{"title":"InsurancesTO","type":"object","description":"Информация по страховкам","properties":{"typeCode":{"type":"string","description":"Тип страховки","maxLength":255},"includeToLoan":{"type":"boolean","description":"Признак включения в тело кредита"},"program":{"type":"string","description":"Страховая программа","maxLength":255},"amount":{"type":"number","description":"Сумма страхования","minimum":0,"maximum":99999999},"premium":{"type":"number","minimum":0,"maximum":99999999,"description":"Страховая премия"},"period":{"type":"number","description":"Срок страхования","minimum":0,"maximum":99999999},"policyFrom":{"type":"string","format":"date","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}$","description":"Дата начала действия","maxLength":255},"policyTo":{"type":"string","format":"date","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}$","description":"Дата начала действия","maxLength":255},"company":{"type":"string","description":"Страховая компания","maxLength":255}},"additionalProperties":false},"RequestTOv2":{"title":"RequestTOv2","type":"object","properties":{"channelCode":{"$ref":"#/components/schemas/ChannelCodes"},"direct":{"type":"boolean","description":"Партнёрские предложения"},"collateral":{"type":"boolean","description":"Наличие залога"},"downPayment":{"type":"number","description":"Размер первоначального взноса","minimum":0,"maximum":99999999},"handAmount":{"type":"number","description":"Сумма кредита","minimum":0,"maximum":99999999},"loanTerm":{"type":"integer","description":"Срок кредитования","format":"int32","minimum":-2147483648,"maximum":2147483647},"services":{"uniqueItems":true,"type":"array","minItems":0,"maxItems":1000,"description":"Приобретаемые сервисы","items":{"$ref":"#/components/schemas/ServiceTypes"}},"vehicleCondition":{"$ref":"#/components/schemas/VehicleConditions"},"vehicleCost":{"type":"number","description":"Стоимость автомобиля","minimum":0,"maximum":99999999},"programCode":{"type":"string","maxLength":32,"description":"Код программы"}},"description":"Параметры кредита v.2","additionalProperties":false},"ChannelCodes":{"type":"string","description":"Код канала заявки","enum":["ONLINE","SITE","OFFLINE"]},"CalculationResponseTOv2":{"title":"CalculationResponseTOv2","type":"object","properties":{"loanCalculation":{"$ref":"#/components/schemas/LoanCalculationTOv3"},"calculatorParams":{"$ref":"#/components/schemas/CalculatorParamsTOv2"},"correctionCodes":{"uniqueItems":true,"type":"array","minItems":0,"maxItems":1000,"description":"Коды корректировок при расчетах","items":{"$ref":"#/components/schemas/CorrectionCodes"}}},"description":"Ответ по расчету кредита v.2","additionalProperties":false},"CalculationResponseTOv3":{"title":"CalculationResponseTOv3","type":"object","properties":{"loanCalculation":{"$ref":"#/components/schemas/LoanCalculationTOv3"},"calculatorParams":{"$ref":"#/components/schemas/CalculatorParamsTOv2"},"correctionCodes":{"uniqueItems":true,"type":"array","minItems":0,"maxItems":1000,"description":"Коды корректировок при расчетах","items":{"$ref":"#/components/schemas/CorrectionCodes"}},"applicationDetails":{"$ref":"#/components/schemas/ApplicationDetailsTO"}},"description":"Ответ по расчету кредита v.3","additionalProperties":false},"LoanCalculationTOv3":{"title":"LoanCalculationTOv3","type":"object","properties":{"rate":{"type":"number","minimum":0,"maximum":100,"description":"Итоговая ставка предложения"},"preferentialPayment":{"type":"number","minimum":0,"maximum":99999999,"description":"Льготный платеж"},"monthlyPayment":{"type":"number","minimum":0,"maximum":99999999,"description":"Размер ежемесячного платежа"},"loanAmount":{"type":"number","minimum":0,"maximum":99999999,"description":"Сумма кредита"},"overpayment":{"type":"number","minimum":0,"maximum":99999999,"description":"Размер переплаты"},"vehicleCondition":{"$ref":"#/components/schemas/VehicleConditions"},"vehicleCost":{"type":"number","description":"Стоимость автомобиля","minimum":0,"maximum":99999999},"downPayment":{"type":"number","description":"Первоначальный взнос","minimum":0,"maximum":99999999},"handAmount":{"type":"number","description":"Cумма на руки","minimum":0,"maximum":99999999},"loanTerm":{"type":"integer","description":"Срок кредитования","format":"int32","minimum":0,"maximum":1000},"loanVehicleCost":{"type":"number","description":"Сумма на автомобиль","minimum":0,"maximum":99999999},"services":{"uniqueItems":true,"type":"array","minItems":0,"maxItems":1000,"description":"Примененные сервисы","items":{"$ref":"#/components/schemas/ServiceTypes"}},"insurances":{"type":"array","minItems":0,"maxItems":1000,"description":"Приобретаемые страховки","items":{"$ref":"#/components/schemas/InsuranceTOv1"}},"proposal":{"$ref":"#/components/schemas/ProposalShortTOv2"},"noInsuranceRate":{"type":"number","description":"Ставка без учета дисконтов за страховые услуги"}},"description":"Результаты расчета кредита v.3","additionalProperties":false},"VehicleConditions":{"type":"string","enum":["NEW","USED"],"description":"Состояние автомобиля"},"ServiceTypes":{"type":"string","enum":["LIFE_INSURANCE","VTB_CASKO","CAR_DRIVER_CARD","ONLINE_CHANNEL"],"description":"Сервисные услуги"},"InsuranceTOv1":{"title":"InsuranceTOv1","type":"object","properties":{"amount":{"type":"number","minimum":0,"maximum":99999999,"description":"Застрахованная сумма"},"description":{"type":"string","maxLength":255,"description":"Наименование страховки"},"includeToLoan":{"type":"boolean","description":"Приобретение за счет кредитных средств"},"insuranceProgram":{"$ref":"#/components/schemas/InsuranceProgramTO"},"monthlyPayment":{"type":"number","minimum":0,"maximum":99999999,"description":"Ежемесячный платеж при приобретении за счет кредитных средств"},"period":{"type":"integer","description":"Период страхования","minimum":-2147483648,"maximum":2147483647,"format":"int32"},"premium":{"type":"number","minimum":0,"maximum":99999999,"description":"Стоимость страховки"},"serviceTypeCode":{"$ref":"#/components/schemas/ServiceTypes"},"serviceTypeId":{"type":"integer","description":"Уникальный идентификатор страховки","minimum":-9223372036854775808,"maximum":9223372036854775807,"format":"int64"},"serviceTypeName":{"type":"string","maxLength":255,"description":"Код страховки в СФР"}},"description":"Результаты расчета страховки v.1","additionalProperties":false},"InsuranceProgramTO":{"title":"InsuranceProgramTO","type":"object","description":"Страховые программы","properties":{"insuranceCompany":{"$ref":"#/components/schemas/InsuranceCompanyTO"},"insuranceProgramCost":{"type":"number","minimum":0,"maximum":99999999,"description":"Стоимость программы страхования"},"insuranceProgramId":{"type":"integer","format":"int64","minimum":-9223372036854775808,"maximum":9223372036854775807,"description":"Идентификатор программы"},"insuranceProgramTax":{"type":"number","minimum":0,"maximum":100,"description":"Ставка по программе"},"name":{"type":"string","maxLength":255,"description":"Наименование по программе"}},"additionalProperties":false},"InsuranceCompanyTO":{"title":"InsuranceCompanyTO","type":"object","description":"Страховые компании","properties":{"insuranceCompanyId":{"type":"integer","format":"int64","minimum":-9223372036854775808,"maximum":9223372036854775807,"description":"Идентификатор компании"},"name":{"type":"string","maxLength":255,"description":"Наименование компании"}},"additionalProperties":false},"ProposalShortTOv2":{"title":"ProposalShortTOv2","type":"object","properties":{"collateralInsurance":{"type":"boolean","description":"Признак наличия КАСКО"},"maxDownPayment":{"type":"number","minimum":0,"maximum":99999999,"description":"Макс.перв.взнос"},"maxHandAmount":{"type":"number","minimum":0,"maximum":99999999,"description":"Макс. сумма на руки"},"maxLoanAmount":{"type":"number","minimum":0,"maximum":99999999,"description":"Макс.сумма кредита"},"maxLoanTerm":{"type":"integer","description":"Макс.срок кредита","minimum":0,"maximum":99999999,"format":"int32"},"maxVehicleCost":{"type":"number","minimum":0,"maximum":99999999,"description":"Макс.стоимость авто"},"minDownPayment":{"type":"number","minimum":0,"maximum":99999999,"description":"Мин.перв.взнос"},"minHandAmount":{"type":"number","minimum":0,"maximum":99999999,"description":"Мин. сумма на руки"},"minLoanAmount":{"type":"number","minimum":0,"maximum":99999999,"description":"Мин.сумма кредита"},"minLoanTerm":{"type":"integer","minimum":0,"maximum":99999999,"description":"Мин.срок кредита","format":"int32"},"minVehicleCost":{"type":"number","minimum":0,"maximum":99999999,"description":"Мин.стоимость авто"},"program":{"$ref":"#/components/schemas/ProgramTO"},"proposalId":{"type":"integer","minimum":-9223372036854775808,"maximum":9223372036854775807,"description":"Id предложения, по которому расчет","format":"int64"},"rate":{"type":"number","minimum":0,"maximum":100,"description":"Базовая ставка предложения"}},"description":"Кредитное предложение v.2","additionalProperties":false},"ProgramTO":{"title":"ProgramTO","type":"object","description":"Параметры программы","properties":{"description":{"type":"string","maxLength":255,"description":"Описание программы"},"programCode":{"type":"string","maxLength":32,"description":"Код программы"},"programId":{"type":"integer","format":"int64","minimum":-9223372036854775808,"maximum":9223372036854775807,"description":"Идентификатор программы"},"productId":{"type":"integer","format":"int64","minimum":-9223372036854775808,"maximum":9223372036854775807,"description":"Идентификатор продукта"},"collateralRequired":{"type":"boolean","description":"Обязательность залога"},"programType":{"type":"string","maxLength":255,"description":"Тип программы"},"proposalParamProgram":{"$ref":"#/components/schemas/ProposalParamProgramTO"}},"additionalProperties":false},"ProposalParamProgramTO":{"title":"ProposalParamProgramTO","type":"object","description":"Параметры предложений по программе","properties":{"minLoanTerm":{"type":"integer","format":"int32","minimum":0,"maximum":99999999,"description":"Минимальный срок кредита"},"maxLoanTerm":{"type":"integer","format":"int32","minimum":0,"maximum":99999999,"description":"Максимальный срок кредита"},"minLoanAmount":{"type":"number","minimum":0,"maximum":99999999,"description":"Минимальная сумма кредита"},"maxLoanAmount":{"type":"number","minimum":0,"maximum":99999999,"description":"Максимальная сумма кредита"},"minDownPayment":{"type":"number","minimum":0,"maximum":99999999,"description":"Минимальный ПВ"}},"additionalProperties":false},"CalculatorParamsTOv2":{"title":"CalculatorParamsTOv2","type":"object","properties":{"maxAccessibleDownPayment":{"type":"number","minimum":0,"maximum":99999999,"description":"Максимальный размер первоначального взноса в соответствии с суммой кредита"},"maxDownPayment":{"type":"number","minimum":0,"maximum":99999999,"description":"Максимальный размер первоначального взноса от стоимости авто"},"maxHandAmount":{"type":"number","minimum":0,"maximum":99999999,"description":"Макс. сумма на руки"},"maxLoanTerm":{"type":"number","minimum":0,"maximum":99999999,"description":"Максимальный срок кредита"},"maxVehicleCost":{"type":"number","minimum":0,"maximum":99999999,"description":"Максимальная стоимость авто"},"minAccessibleDownPayment":{"type":"number","minimum":0,"maximum":99999999,"description":"Минимальный размер первоначального взноса в соответствии с суммой кредита"},"minDownPayment":{"type":"number","minimum":0,"maximum":99999999,"description":"Минимальный размер первоначального взноса от стоимости авто"},"minHandAmount":{"type":"number","minimum":0,"maximum":99999999,"description":"Мин. сумма на руки"},"minLoanTerm":{"type":"number","minimum":0,"maximum":99999999,"description":"Минимальный срок кредита"},"minVehicleCost":{"type":"number","minimum":0,"maximum":99999999,"description":"Минимальная стоимость авто"},"services":{"type":"array","minItems":0,"maxItems":1000,"description":"Список доступных сервисов в рамках подобранной программы","items":{"$ref":"#/components/schemas/DiscountTOv1"}},"maxLoanAmountUninsuredCar":{"type":"number","minimum":0,"maximum":99999999,"description":"Максимальная сумма кредита без страховки авто"}},"description":"Настройки калькулятора v.2","additionalProperties":false},"DiscountTOv1":{"title":"DiscountTOv1","type":"object","properties":{"description":{"type":"string","maxLength":255,"description":"Наименование сервиса"},"isInsurance":{"type":"boolean","description":"Является ли страховкой"},"isManual":{"type":"boolean","description":"Доступен на выбор клиенту"},"serviceTypeCode":{"$ref":"#/components/schemas/ServiceTypes"},"serviceTypeId":{"type":"integer","minimum":-9223372036854775808,"maximum":9223372036854775807,"format":"int64","description":"Уникальный идентификатор сервиса"},"serviceTypeName":{"type":"string","maxLength":255,"description":"Код сервиса СФР"},"value":{"type":"number","minimum":0,"maximum":99999999,"description":"Размер предоставляемой скидки в рамках подобранного предложения"}},"description":"Дисконт v.1","additionalProperties":false},"CorrectionCodes":{"type":"string","description":"Код автоматической корректировки данных","enum":["DOWN_PAYMENT_CHANGED","DOWN_PAYMENT_EXCEEDED","HAND_AMOUNT_CHANGED","MAX_TERM_CHANGED","VEHICLE_COST_CHANGED","VEHICLE_CONDITION_CHANGED","NEGATIVE_CARINS_AMOUNT","NEGATIVE_LIFEINS_AMOUNT","REMAINING_DEBT_CHANGED"]},"ApplicationDetailsTO":{"title":"ApplicationDetailsTO","type":"object","properties":{"appId":{"type":"string","description":"Идентификатор заявки","maxLength":255},"appCreationDate":{"type":"string","format":"date","maxLength":255,"pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}$","description":"Дата создания заявки"},"requestedParams":{"$ref":"#/components/schemas/RequestedParamsTO"},"decision":{"$ref":"#/components/schemas/DecisionTO"},"requestedInsurance":{"type":"array","minItems":0,"maxItems":100,"description":"Запрошенные страховые услуги","items":{"$ref":"#/components/schemas/RequestedInsuranceTO"}}},"description":"Детали по заявке","additionalProperties":false},"RequestedParamsTO":{"title":"requestedParamsTO","type":"object","description":"Запрашиваемые параметры","properties":{"vehicleCost":{"type":"number","minimum":0,"maximum":99999999,"description":"Стоимость автомобиля"},"term":{"type":"number","minimum":0,"maximum":99999999,"description":"Срок кредита"},"downPayment":{"type":"number","minimum":0,"maximum":99999999,"description":"Первоначальный взнос"},"vehicleCondition":{"$ref":"#/components/schemas/VehicleConditions"}},"additionalProperties":false},"DecisionTO":{"title":"decisionTO","type":"object","description":"Решение РКК","properties":{"decisionDate":{"type":"string","format":"date","maxLength":255,"pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}$","description":"Дата решения"},"decisionEndDate":{"type":"string","format":"date","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}$","maxLength":255,"description":"Дата окончания действия решения"},"subStatusCode":{"type":"string","maxLength":255,"pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}$","description":"Категория решения"},"maximumLoanAmount":{"type":"number","minimum":0,"maximum":99999999,"description":"Рассчитанная максимальная сумма кредита"},"maxMonthlyPayment":{"type":"number","minimum":0,"maximum":99999999,"description":"Максимальный ежемесячный платеж"},"offers":{"type":"array","minItems":0,"maxItems":999999,"description":"Матрица предложений","items":{"$ref":"#/components/schemas/OffersTO"}}},"additionalProperties":false},"OffersTO":{"title":"offersTO","type":"object","description":"Матрица предложений","properties":{"offerId":{"type":"string","maxLength":255,"description":"ID предложения"},"offerType":{"type":"string","maxLength":255,"description":"Тип решения"},"offerDate":{"type":"string","format":"date","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}$","maxLength":255,"description":"Дата решения"},"decisionCode":{"type":"string","maxLength":255,"description":"Код решения"},"decisionCategory":{"type":"string","maxLength":255,"description":"Категория решения"},"decisionDetailsBeginOfAmtRange":{"type":"number","minimum":0,"maximum":99999999,"description":"Начало интервала суммы для ставки"},"decisionDetailsEndOfAmtRange":{"type":"number","minimum":0,"maximum":99999999,"description":"Окончание интервала суммы для ставки"},"decisionDetailsRateOfRange":{"type":"number","minimum":0,"maximum":100,"description":"Ставка"},"decisionDetailsTermOfRange":{"type":"number","minimum":0,"maximum":100,"description":"Альтернативный срок"},"salaryCategoryFlag":{"type":"boolean","description":"Признак ЗП клиента"},"monthlyPayment":{"type":"number","minimum":0,"maximum":99999999,"description":"Рассчитанный ежемесячный платеж по кредиту"},"vehicleCondition":{"$ref":"#/components/schemas/VehicleConditions"},"minInitialFeeAmt":{"type":"number","minimum":0,"maximum":99999999,"description":"Минимальный размер первоначального взноса"}},"additionalProperties":false},"RequestedInsuranceTO":{"title":"requestedInsuranceTO","description":"Запрошенные страховые услуги","type":"object","properties":{"name":{"type":"string","maxLength":255,"description":"Каноническое имя страховки"},"term":{"type":"number","minimum":0,"maximum":99999999,"description":"Срок страхования"},"amount":{"type":"number","minimum":0,"maximum":99999999,"description":"Сумма страхования"},"premium":{"type":"number","minimum":0,"maximum":99999999,"description":"Страховая премия"},"monthlyPayment":{"type":"number","minimum":0,"maximum":99999999,"description":"Ежемесячный платеж"},"companyName":{"type":"string","maxLength":255,"description":"Наименование страховой компании"},"programName":{"type":"string","maxLength":255,"description":"Наименование программы"}},"additionalProperties":false},"ProductTO":{"title":"ProductTO","type":"object","description":"Продукты","properties":{"productId":{"type":"integer","format":"int64","minimum":-9223372036854775808,"maximum":9223372036854775807,"description":"Идентификатор продукта"},"productCode":{"type":"string","maxLength":32,"description":"Код продукта"},"productName":{"type":"string","maxLength":255,"description":"Наименование продукта"},"productGroupId":{"type":"integer","format":"int64","minimum":-9223372036854775808,"maximum":9223372036854775807,"description":"Идентификатор продуктовой группы"},"productKindCode":{"type":"string","maxLength":255,"description":"Код типа продукта"},"loanClass":{"type":"string","maxLength":255,"description":"Класс кредита"}},"additionalProperties":false},"DefaultProposalPropsTO":{"title":"DefaultProposalPropsTO","type":"object","description":"Предложения по умолчанию","properties":{"collateral":{"type":"boolean","description":"Признак наличия залога"},"defDownPayment":{"type":"number","minimum":0,"maximum":99999999,"description":"Первоначальный взнос по умолчанию"},"defHandAmount":{"type":"number","minimum":0,"maximum":99999999,"description":"Сумма на руки по умолчанию"},"defLoanTerm":{"type":"integer","format":"int32","minimum":0,"maximum":99999999,"description":"Срок кредита по умолчанию"},"defMaxDownPayment":{"type":"number","minimum":0,"maximum":99999999,"description":"Максимальный размер первоначального взноса по умолчанию"},"defMaxHandAmount":{"type":"number","minimum":0,"maximum":99999999,"description":"Максимальная сумма на руки по умолчанию"},"defMaxLoanTerm":{"type":"integer","format":"int32","minimum":0,"maximum":99999999,"description":"Максимальный срок кредита по умолчанию"},"defMaxVehicleCost":{"type":"number","minimum":0,"maximum":99999999,"description":"Максимальная стоимость авто по умолчанию"},"defMinDownPayment":{"type":"number","minimum":0,"maximum":99999999,"description":"Минимальный первоначальный взнос по умолчанию"},"defMinHandAmount":{"type":"number","minimum":0,"maximum":99999999,"description":"Минимальная сумма на руки по умолчанию"},"defMinLoanTerm":{"type":"integer","format":"int32","minimum":0,"maximum":99999999,"description":"Минимальный срок кредита по умолчанию"},"defMinVehicleCost":{"type":"number","minimum":0,"maximum":99999999,"description":"Минимальная стоимость авто по умолчанию"},"defPropCode":{"$ref":"#/components/schemas/CollateralCodes"},"defPropPropsId":{"type":"integer","format":"int64","minimum":-9223372036854775808,"maximum":9223372036854775807,"description":"Идентификатор предложения"},"defVehicleCost":{"type":"number","minimum":0,"maximum":99999999,"description":"Стоимость авто по умолчанию"},"serviceTypes":{"uniqueItems":true,"description":"Типы услуг","type":"array","minItems":0,"maxItems":1000,"items":{"$ref":"#/components/schemas/ServiceTypes"}},"vehicleType":{"$ref":"#/components/schemas/VehicleConditions"}},"additionalProperties":false},"CollateralCodes":{"type":"string","description":"Код наличия залога","enum":["NEW_COLLATERAL","USED_COLLATERAL","NO_COLLATERAL_HIGH","NO_COLLATERAL_LOW"]},"SessionDataResponseTO":{"title":"SessionDataResponseTO","type":"object","description":"Контекст сессии","properties":{"appId":{"type":"string","maxLength":255,"description":"Идентификатор заявки"}},"additionalProperties":false},"ErrorResponseTO":{"title":"ErrorResponseTO","type":"object","description":"Ошибки","properties":{"type":{"type":"string","description":"Тип ошибки","maxLength":255},"message":{"type":"string","description":"Сообщение об ошибке","maxLength":255},"messageTitle":{"type":"string","description":"Заголовок сообщения об ошибке","maxLength":255}},"additionalProperties":false},"RefinRequestTO":{"title":"RefinRequestTO","type":"object","description":"Запрос расчета параметров кредита по рефинансируемому кредиту","properties":{"channelCode":{"$ref":"#/components/schemas/ChannelCodes"},"loanTerm":{"type":"integer","description":"Срок кредитования","format":"int32","minimum":0,"maximum":99999999},"remainingDebt":{"type":"number","minimum":0,"maximum":99999999,"description":"Оставшийся долг по рефинансируемому кредиту"},"onePaymentPerMonth":{"type":"number","minimum":0,"maximum":99999999,"description":"Текущий платеж в месяц по рефинансируемому кредиту"},"extraMoney":{"type":"number","minimum":0,"maximum":99999999,"description":"Дополнительные деньги на любые цели"},"services":{"uniqueItems":true,"type":"array","minItems":0,"maxItems":1000,"description":"Приобретаемые сервисы","items":{"$ref":"#/components/schemas/ServiceTypes"}},"programCode":{"type":"string","maxLength":32,"description":"Код программы"}},"required":["channelCode"],"additionalProperties":false},"CalcBffRefinResponseTO":{"title":"CalcBffRefinResponseTO","type":"object","description":"Результаты расчета параметров кредита по рефинансируемому кредиту","properties":{"loanCalculation":{"$ref":"#/components/schemas/LoanCalcRefinTO"},"calculatorParams":{"$ref":"#/components/schemas/CalcRefinParamsTO"},"applicationDetails":{"$ref":"#/components/schemas/AppRefinDetailsTO"},"correctionCodes":{"uniqueItems":true,"type":"array","minItems":0,"maxItems":1000,"items":{"$ref":"#/components/schemas/CorrectionCodes"}}},"required":["loanCalculation","calculatorParams","applicationDetails"],"additionalProperties":false},"LoanCalcRefinTO":{"title":"LoanCalcRefinTO","type":"object","properties":{"rate":{"type":"number","minimum":0,"maximum":99999999,"description":"Итоговая ставка предложения"},"monthlyPayment":{"type":"number","minimum":0,"maximum":99999999,"description":"Размер ежемесячного платежа"},"loanAmount":{"type":"number","minimum":0,"maximum":99999999,"description":"Сумма кредита"},"loanTerm":{"type":"integer","minimum":0,"maximum":99999999,"description":"Срок кредитования","format":"int32"},"proposal":{"$ref":"#/components/schemas/ProposalRefinTO"},"preferentialPayment":{"type":"number","minimum":0,"maximum":99999999,"description":"Льготный платеж"},"overpayment":{"type":"number","minimum":0,"maximum":99999999,"description":"Размер переплаты"},"remainingDebt":{"type":"number","minimum":0,"maximum":99999999,"description":"Оставшийся долг по рефинансируемому кредиту"},"onePaymentPerMonth":{"type":"number","minimum":0,"maximum":99999999,"description":"Текущий платеж в месяц по рефинансируемому кредиту"},"extraMoney":{"type":"number","minimum":0,"maximum":99999999,"description":"Дополнительные деньги на любые цели"},"difCarInsMonthlyPayment":{"type":"number","minimum":0,"maximum":99999999,"description":"Разница ежемесячного платежа без КАСКО"},"difLifeInsMonthlyPayment":{"type":"number","minimum":0,"maximum":99999999,"description":"Разница ежемесячного платежа без страхования жизни"},"insurances":{"type":"array","minItems":0,"maxItems":1000,"description":"Приобретаемые страховки","items":{"$ref":"#/components/schemas/InsuranceTOv1"}},"noInsuranceRate":{"type":"number","minimum":0,"maximum":99999999,"description":"Итоговая ставка предложения"}},"description":"Результаты расчета по рефинансируемому кредиту","required":["rate","monthlyPayment","loanAmount","loanTerm","proposal","preferentialPayment","overpayment","remainingDebt","onePaymentPerMonth","extraMoney"],"additionalProperties":false},"ProposalRefinTO":{"title":"ProposalRefinTO","type":"object","properties":{"maxLoanAmount":{"type":"number","minimum":0,"maximum":99999999,"description":"Макс.сумма кредита"},"maxLoanTerm":{"type":"integer","minimum":0,"maximum":99999999,"description":"Макс.срок кредита","format":"int32"},"minLoanAmount":{"type":"number","minimum":0,"maximum":99999999,"description":"Мин.сумма кредита"},"minLoanTerm":{"type":"integer","minimum":0,"maximum":99999999,"description":"Мин.срок кредита","format":"int32"},"proposalId":{"type":"integer","description":"Id предложения, по которому расчет","format":"int64","minimum":-9223372036854775808,"maximum":9223372036854775807},"rate":{"type":"number","minimum":0,"maximum":99999999,"description":"Базовая ставка предложения"}},"description":"Кредитное предложение для рефинансируемого кредита","required":["maxLoanAmount","maxLoanTerm","minLoanAmount","minLoanTerm","proposalId"],"additionalProperties":false},"CalcRefinParamsTO":{"title":"CalcRefinParamsTO","type":"object","properties":{"maxLoanTerm":{"type":"integer","format":"int32","minimum":0,"maximum":99999999,"description":"Максимальный срок кредита"},"minLoanTerm":{"type":"integer","format":"int32","minimum":0,"maximum":99999999,"description":"Минимальный срок кредита"},"maxLoanAmount":{"type":"number","minimum":0,"maximum":99999999,"description":"Максимальная сумма рефинансирования"},"services":{"type":"array","minItems":0,"maxItems":1000,"description":"Список доступных сервисов в рамках подобранной программы","items":{"$ref":"#/components/schemas/DiscountTOv2"}},"maxExtraMoney":{"type":"number","minimum":0,"maximum":99999999,"description":"Максимум для дополнительных денег на любые цели"},"minRemainingDebt":{"type":"number","minimum":0,"maximum":99999999,"description":"Минимальная сумма Оставшегося основного долга по рефинансируемому кредиту"},"maxRemainingDebt":{"type":"number","minimum":0,"maximum":99999999,"description":"Максимальная сумма Оставшегося основного долга по рефинансируемому кредиту"}},"description":"Настройки калькулятора для рефинансирования","additionalProperties":false,"required":["maxLoanTerm","minLoanTerm","maxLoanAmount","maxExtraMoney","minRemainingDebt","maxRemainingDebt"]},"AppRefinDetailsTO":{"title":"AppRefinDetailsTO","type":"object","properties":{"appId":{"type":"string","description":"Идентификатор заявки","maxLength":255},"overSixMonths":{"type":"boolean","description":"Признак - срок кредита меньше 6 месяцев"},"decision":{"$ref":"#/components/schemas/DecisionRefinTO"}},"description":"Детали по заявке рефинансирования","required":["decision","appId","overSixMonths"],"additionalProperties":false},"DecisionRefinTO":{"title":"DecisionRefinTO","type":"object","description":"Решение РКК","properties":{"decisionDate":{"type":"string","format":"date","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}$","description":"Дата решения"},"decisionEndDate":{"type":"string","format":"date","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}$","description":"Дата окончания действия решения"},"maximumLoanAmount":{"type":"number","minimum":0,"maximum":99999999,"description":"Рассчитанная максимальная сумма кредита"},"maxMonthlyPayment":{"type":"number","minimum":0,"maximum":99999999,"description":"Максимальный ежемесячный платеж"}},"required":["decisionDate","maximumLoanAmount","maxMonthlyPayment"],"additionalProperties":false},"DiscountTOv2":{"title":"DiscountTOv2","type":"object","properties":{"serviceTypeCode":{"$ref":"#/components/schemas/ServiceTypes"},"value":{"type":"number","minimum":0,"maximum":99999999,"description":"Размер предоставляемой скидки в рамках подобранного предложения"}},"description":"Дисконт","additionalProperties":false,"required":["serviceTypeCode","value"]},"ConditionInfoRefinTO":{"title":"ConditionInfoRefinTO","type":"object","description":"Запрос сохранения условий","properties":{"refinRequestTO":{"$ref":"#/components/schemas/RefinRequestTO"},"calculationStrategy":{"type":"string","maxLength":255,"enum":["DEAL"],"description":"Указатель стратегии расчета"}},"additionalProperties":false},"AppRefinTO":{"title":"AppRefinTO","type":"object","description":"Данные по заявке по рефинансированию","properties":{"appId":{"type":"string","description":"Идентификатор заявки","maxLength":255},"decisionDate":{"type":"string","format":"date","pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}$","description":"Дата решения"},"mdmId":{"type":"string","maxLength":255,"description":"Идентификатор клиента MDM"},"productCode":{"type":"string","maxLength":255,"description":"Код продукта"},"productKindCode":{"type":"string","maxLength":255,"description":"Код типа продукта"},"programCode":{"type":"string","maxLength":255,"description":"Код программы"},"creditRefinParams":{"$ref":"#/components/schemas/CreditRefinParamsTO"},"insurances":{"type":"array","minItems":0,"maxItems":1000,"items":{"$ref":"#/components/schemas/RequestedInsuranceTO"}}},"additionalProperties":false},"CreditRefinParamsTO":{"title":"CreditRefinParamsTO","type":"object","description":"Запрашиваемые параметры по рефинансированию","properties":{"extraMoney":{"type":"number","minimum":0,"maximum":99999999,"description":"Дополнительные деньги на любые цели"},"onePaymentPerMonth":{"type":"number","minimum":0,"maximum":99999999,"description":"Текущий платеж в месяц по рефинансируемому кредиту"},"overSixMonths":{"type":"boolean","description":"Признак срок кредита меньше 6 месяцев"},"remainingDebt":{"type":"number","minimum":0,"maximum":99999999,"description":"Оставшийся долг по рефинансируемому кредиту"},"loanTerm":{"type":"integer","format":"int32","minimum":0,"maximum":99999999,"description":"Срок рефинансирования"}},"additionalProperties":false},"ClientRefusalTO":{"title":"ClientRefusalTO","type":"object","description":"Причина отказа","properties":{"clientRefusalCode":{"type":"string","description":"Причина отказа","maxLength":255}},"additionalProperties":false}}}}