This endpoint is responsible for getting collateral valuation details based on collateral Id and application number

------------------------
CFPM End Point Details:
------------------------

GET:
http://ip:port/collateralsummary/collateral-summary-services/v1/collateralSummary/{collateralId}?applicationNumber={appNo}


Header:
Content-Type: application/json
userId: OBREMO
appId: CLLTRL
externalSystem: OFLO
branchCode: 000
authToken: token
entityId: DEFAULTENTITY

Response:
{
   "CollateralResponse":{
      "links":[
         
      ],
      "recordId":null,
      "collateralId":"COL201540044",
      "applicationNumber":"APP00001",
      "collateralDescrptn":"sadasd",
      "collateralCategory":"DPST",
      "collateralBranch":"004",
      "collateralCurrency":"INR",
      "collateralType":"DPST",
      "exposureType":"I",
      "bankHaircut":0.14,
      "categoryHaircut":0.08,
      "ownerEstimatedValue":45000,
      "marketValue":1.22387012E7,
      "bankValue":1.22313521E7,
      "ownerEstimatedCurrency":null,
      "marketCurrency":"USD",
      "bankCurrency":"USD",
      "startDate":1590897600000,
      "endDate":1592539200000,
      "reviewDate":null,
      "valuationDate":1593403200000,
      "valuationAgency":null,
      "valuationFrequency":null,
      "valuationMethod":null,
      "requestType":null,
      "valuationHistory":null,
      "isRevaluationReqd":false,
      "isSubmissionAndAwaitingReq":false,
      "revaluationAgency":null,
      "revaluationMethod":null,
      "revaluationDate":null,
      "seniorityOfClaim":"First",
      "ownershipType":"S",
      "holdDate":null,
      "releaseDate":null,
      "isAvblFrPossesion":false,
      "isRepossessRequired":false,
      "collateralValue":1.22313521E7,
      "chargeType":"H",
      "applicableBusiness":"LEND,TRDE",
      "isShareableCollateral":false,
      "revisionDate":null,
      "purposeOfCollateral":"Enhancement Of Limit",
      "customerValuationSource":null,
      "customerValuationDate":null,
      "createdBy":null,
      "createdDate":null,
      "updatedBy":null,
      "updatedDate":null,
      "externalCheckAgencyId":null,
      "externalValuationAgencyId":null,
      "fieldInvestigationAgencyId":null,
      "legalOpinionAgencyId":null,
      "externalCheckReq":false,
      "fieldInvestigationReq":false,
      "externalValuationReq":false,
      "internalValuationReq":false,
      "legalOpinionReq":false,
      "internalLegalOpinionReq":false,
      "collateralSubmissionReq":false,
      "awaitForConfirmation":false,
      "documentSafeKeepingReq":false,
      "isNewProspect":false,
      "collateralPurpose":"Enhancement Of Limit",
      "customerExpectation":null,
      "primaryCustomerId":"0001000",
      "primaryCustomerName":null,
      "primaryOwnershipPercentage":null,
      "primaryCustomerDetails":null,
      "recommendations":null,
      "versionNo":2,
      "isFreeHoldCollateral":false,
      "isInsuranceAvailable":false,
      "insuranceTillDate":null,
      "impactOnCollateral":null,
      "reviewReason":null,
      "customerDecision":false,
      "customerRecommendation":null,
      "recordStat":"O",
      "remarks":null,
      "riskEvaluationReq":false,
      "reviewerRecommendation":null,
      "approverRecommendation":null,
      "isInternalLegalOpinionReq":false,
      "approvedCollateralValue":null,
      "heldCollateralValue":null,
      "ltvPercentage":null,
      "collateralStatus":null,
      "documentStatus":null,
      "deleteStat":null,
      "softDeleteFlag":null,
      "externalReferenceId":null,
      "liabilityNo":null,
      "collateralFund":null,
      "collateralBond":null,
      "collateralStock":null,
      "collateralOwnership":null,
      "collateralProperty":null,
      "collateralInventory":null,
      "collateralGuarantee":null,
      "collateralAgencies":null,
      "collateralVehicle":null,
      "collateralDeposits":{
         "links":[
            
         ],
         "recordId":null,
         "applicationNumber":null,
         "parentId":"a79d2b17-ce87-4724-b959-8dda5ee09661",
         "collateralId":"COL201540044",
         "versionNo":1,
         "recordStat":"O",
         "deleteReleaseFlag":null,
         "depositsList":[
            {
               "id":"d09c9665-b1f1-48c4-b3a7-d49f53a2127f",
               "parentId":"c451c182-753b-45a6-9d42-bbc4a96511e1",
               "depositAccountNumbr":"asdasd1122",
               "depositBankName":"hdgc",
               "depositBranchName":"qw",
               "depositBrnchAddrss1":"asd",
               "depositBrnchAddrss2":"asd",
               "depositBrnchAddrss3":"asd",
               "depositBrnchAddrss4":"asd",
               "depositBrnchAddrss5":"sad",
               "depositBranchCity":"asd",
               "depositBranchState":"asd",
               "depositBranchCntry":"IN",
               "depositCurrency":"INR",
               "depositAmount":34000,
               "rateOfInterest":12,
               "interestType":"Qua",
               "maturityAmount":65000,
               "maturityDate":1593403200000,
               "isAutoRenewal":null,
               "nextRenewalDate":null,
               "lienReferenceNumber":"qwd",
               "lienDate":1592107200000,
               "lienAmount":1231,
               "lienStatus":"RLR",
               "depositStatus":"PROP",
               "depositBalance":54000,
               "depositZipCode":"123",
               "accountType":"TD",
               "requestType":null,
               "amtInCollateralCcy":null,
               "issuerName":null,
               "dateOfDeposit":null,
               "depositCategory":null,
               "interestPayment":null,
               "externalPricingModel":null,
               "collateralTypeId":null,
               "modifyFlag":null,
               "deleteStat":null,
               "softDeleteFlag":null,
               "collateralInsuranceMaster":null,
               "collateralParallelModel":null
            }
         ]
      },
      "collateralPreference":null,
      "collateralSeniority":{
         "links":[
            
         ],
         "recordId":null,
         "parentId":"a79d2b17-ce87-4724-b959-8dda5ee09661",
         "collateralId":"COL201540044",
         "versionNo":1,
         "recordStat":"O",
         "seniorityList":[
            
         ]
      },
      "collateralShip":null,
      "collateralAircraft":null,
      "machineryMaster":null,
      "preciousMetalMaster":null,
      "collateralInsurance":null,
      "cashCollateral":null,
      "accountReceivables":null,
      "transactionHeader":null,
      "perishablesMasterModel":null,
      "cropMasterModel":null,
      "cpaperMasterModel":null,
      "commodityMasterModel":null,
      "pdcMasterModel":null,
      "billOfExchangeMasterModel":null,
      "promissoryNoteMasterModel":null,
      "accountContractsMasterModel":null,
      "miscCollateralMaster":null
   },
   "FieldInvestigationResponse":{
      "FieldInvestigationList":[
         
      ],
      "transactionHeader":null
   },
   "DocumentSafekeepingResponse":{
      "DocumentSafekeepingMasterList":[
         
      ],
      "transactionHeader":null
   },
   "ExternalCheckResponse":{
      "links":[
         
      ],
      "recordId":null,
      "parentId":null,
      "collateralId":null,
      "recordStat":null,
      "versionNo":null,
      "externalCheckList":null,
      "replicationFlag":null,
      "applicationNumber":null
   },
   "RiskEvaluationResponse":{
      "RiskEvaluationList":[
         
      ]
   },
   "LegalResponse":{
      "LegalList":[
         {
            "links":[
               
            ],
            "recordId":"7bbad68f-adee-46ce-829b-f3a4c642e5d4",
            "parentId":null,
            "entityRefNo":"COL201540044",
            "entityRefType":null,
            "versionNo":1,
            "createdBy":null,
            "createdDate":null,
            "updatedBy":null,
            "updatedDate":null,
            "recordStat":"O",
            "legalOpinionType":"External",
            "replicationFlag":null,
            "applicationNumber":"APP00001",
            "legalOpinion":[
               {
                  "id":"a191cbdc-3ad5-43bc-b5b0-5072eca8e0ee",
                  "legalFirmId":"LO01",
                  "agencyName":null,
                  "legalFirmOpinion":"Proceed",
                  "internalOpinion":null,
                  "internalOpinionDate":null,
                  "initialRecommendation":null,
                  "externalOpinionDate":1560052800000,
                  "creditRemarks":"Credit details are verified",
                  "finalRecommendation":"Everything is Fine",
                  "disclaimer":null,
                  "outcome":"Proceed",
                  "legalOpinionType":"External",
                  "parentId":"7bbad68f-adee-46ce-829b-f3a4c642e5d4",
                  "softDeleteFlag":null,
                  "deleteStat":null
               }
            ]
         },
         {
            "links":[
               
            ],
            "recordId":"2f0bb678-2594-4a5c-8b10-c643c6f458dd",
            "parentId":null,
            "entityRefNo":"COL201540044",
            "entityRefType":"Collateral",
            "versionNo":1,
            "createdBy":null,
            "createdDate":null,
            "updatedBy":null,
            "updatedDate":null,
            "recordStat":"O",
            "legalOpinionType":"Internal",
            "replicationFlag":null,
            "applicationNumber":"APP00001",
            "legalOpinion":[
               {
                  "id":"e0b9b979-c759-487a-a364-68df59402668",
                  "legalFirmId":"LON001",
                  "agencyName":null,
                  "legalFirmOpinion":null,
                  "internalOpinion":"Proceed",
                  "internalOpinionDate":1562472000000,
                  "initialRecommendation":null,
                  "externalOpinionDate":null,
                  "creditRemarks":"string",
                  "finalRecommendation":null,
                  "disclaimer":null,
                  "outcome":null,
                  "legalOpinionType":"Internal",
                  "parentId":"2f0bb678-2594-4a5c-8b10-c643c6f458dd",
                  "softDeleteFlag":null,
                  "deleteStat":null
               }
            ]
         }
      ]
   },
   "FinalValuationResponse":{
      "links":[
         
      ],
      "recordId":null,
      "parentId":null,
      "collateralId":null,
      "versionNo":null,
      "recordStat":null,
      "createdBy":null,
      "createdDate":null,
      "updatedBy":null,
      "updatedDate":null,
      "finalValuationList":null,
      "applicationNumber":null
   },
   "ExternalValuationResponse":{
      "links":[
         
      ],
      "recordId":"3b7fbc4a-959c-4ae3-a499-76cb87042323",
      "parentId":null,
      "collateralId":"COL201540044",
      "versionNo":26,
      "recordStat":"O",
      "createdBy":null,
      "createdDate":null,
      "updatedBy":null,
      "updatedDate":null,
      "replicationFlag":null,
      "externalValuationList":[
         {
            "id":"f5134d4d-3b5d-45ea-b480-d0bc5dac7912",
            "parentId":"3b7fbc4a-959c-4ae3-a499-76cb87042323",
            "agencyId":"EV03",
            "agencyName":null,
            "agencyValAmt":12203489,
            "agencyValDate":1593489600000,
            "valuerRemarks":"Proceed",
            "creditRemarks":null,
            "valuationExpiryDate":1602302400000,
            "agencyValCur":"USD",
            "softDeleteFlag":null,
            "deleteStat":null,
            "valuationType":null,
            "valuationFrequency":null
         }
      ],
      "applicationNumber":"APP00001"
   },
   "InternalValuationResponse":{
      "links":[
         
      ],
      "recordId":"7a876bdb-4292-451c-9fb8-6825c7843cea",
      "parentId":null,
      "collateralId":"COL201540044",
      "agencyValAmt":12248500,
      "agencyValDate":1593489600000,
      "valuerRemarks":"EverythingisFine.",
      "creditRemarks":null,
      "versionNo":23,
      "createdDate":null,
      "createdBy":null,
      "valuationTeam":"BostonAccruals",
      "updatedDate":null,
      "updatedBy":null,
      "recordStat":"O",
      "valuationExpiryDate":1602820800000,
      "bankHaircut":0.14,
      "categoryHaircut":0.08,
      "agencyValCur":"USD",
      "applicationNumber":"APP00001",
      "softDeleteFlag":null,
      "deleteStat":null,
      "replicationFlag":null
   },
   "DocumentRetrievalResponse":{
      "links":[
         
      ],
      "recordId":"6322c0af-374c-49c6-8059-51238ab044b1",
      "collateralId":"COL201540044",
      "versionNo":1,
      "recordStat":"O",
      "createdBy":null,
      "createdDate":null,
      "updatedBy":null,
      "updatedDate":null,
      "collateralDocumentRetreivalList":[
         
      ]
   }
}

------------------------
OBRH END Point Details:
------------------------

POST:
http://localhost:port/cmc-obrh-services/route/dispatch

Header:
Content-Type: application/json
userId: CHANDAN
appId: CMNCORE
branchCode: 000
entityId: DEFAULTENTITY
SERVICE-CONSUMER: RPM_ORIGINATION
SERVICE-CONSUMER-SERVICE: Get_Valuation_Details

Request Body:

{
   "collateralCode":"COL211252144",
   "applicationNumber":"APP211262052"
}


