Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Merge & Download bill issue fix #808

Open
wants to merge 1 commit into
base: UAT
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
183 changes: 92 additions & 91 deletions configs/pdf-service/data-config/consolidatedbill.json
Original file line number Diff line number Diff line change
Expand Up @@ -915,109 +915,110 @@
]
},
{
"externalAPI": [
{
"path": "http://egov-mdms-service:8080/egov-mdms-service/v1/_get",
"queryParam": "moduleName=tenant&masterName=tenants&tenantId=uk&filter=%5B?(@.code=='{$.tenantId}')%5D",
"externalAPI": [
{
"path": "http://egov-mdms-service:8080/egov-mdms-service/v1/_get",
"queryParam": "moduleName=tenant&masterName=tenants&tenantId=uk&filter=%5B?(@.code=='{$.tenantId}')%5D",
"apiRequest": null,
"responseMapping":[
{
"variable":"address",
"value":"$.MdmsRes.tenant.tenants[0].address"
},
{
"variable":"phoneNumber",
"value":"$.MdmsRes.tenant.tenants[0].contactNumber"
},
{
"variable":"website",
"value":"$.MdmsRes.tenant.tenants[0].domainUrl"
},
{
"variable":"email",
"value":"$.MdmsRes.tenant.tenants[0].emailId"
},
{
"variable": "logoImage",
"value":"$.MdmsRes.tenant.tenants[0].logoId",
"type": "image"
},
{
"variable": "logo_header",
"value":"$.MdmsRes.tenant.tenants[0].code",
"localisation":{
"required":true,
"prefix": "TENANT_TENANTS",
"module":"rainmaker-common"
}
}

]
},
{
"path": "http://property-services:8080/property-services/property/_plainsearch",
"queryParam": "tenantId=$.tenantId,propertyIds=$.consumerCode",
"apiRequest": null,
"responseMapping":[
{
"variable":"address",
"value":"$.MdmsRes.tenant.tenants[0].address"
"variable":"oldPropertyId",
"value":"$.Properties[0].oldPropertyId"
},
{
"variable":"phoneNumber",
"value":"$.MdmsRes.tenant.tenants[0].contactNumber"
"variable":"houseNo",
"value":"$.Properties[0].address.doorNo"
},
{
"variable":"website",
"value":"$.MdmsRes.tenant.tenants[0].domainUrl"
"variable":"buildingName",
"value":"$.Properties[0].address.buildingName"
},
{
"variable":"email",
"value":"$.MdmsRes.tenant.tenants[0].emailId"
"variable": "street",
"value":"$.Properties[0].address.street"

},
{
"variable": "logoImage",
"value":"$.MdmsRes.tenant.tenants[0].logoId",
"type": "image"
"variable": "locality",
"value":"$.Properties[0].address.locality.name"
},
{
"variable":"fatherHusbandName",
"value":"$.Properties[0].owners[0].fatherOrHusbandName"
},

{
"variable": "logo_header",
"value":"$.MdmsRes.tenant.tenants[0].code",
"localisation":{
"required":true,
"prefix": "TENANT_TENANTS",
"module":"rainmaker-common"
}
},
{
"path": "http://property-services:8080/property-services/property/_plainsearch",
"queryParam": "tenantId=$.tenantId,propertyIds=$.consumerCode",
"apiRequest": null,
"responseMapping":[
{
"variable":"oldPropertyId",
"value":"$.Properties[0].oldPropertyId"
},
{
"variable":"houseNo",
"value":"$.Properties[0].address.doorNo"
},
{
"variable":"buildingName",
"value":"$.Properties[0].address.buildingName"
},
{
"variable": "street",
"value":"$.Properties[0].address.street"

},
{
"variable": "locality",
"value":"$.Properties[0].address.locality.name"
},
{
"variable":"fatherHusbandName",
"value":"$.Properties[0].owners[0].fatherOrHusbandName"
},

{
"variable": "var_owners",
"value":"$.Properties[0].owners[?(@.active== true && @.status== 'ACTIVE')]",
"type":"array",
"format":{
"type":"string",
"scema":[
{
"variable":"name2",
"value":"name"
},
{
"variable":"fatherOrHusbandName2",
"value":"fatherOrHusbandName"
}]
}
}
]
},
{
"path": "http://property-services:8080/property-services/assessment/_search",
"queryParam": "tenantId=$.tenantId,propertyIds=$.consumerCode",
"apiRequest": null,
"responseMapping":[
{
"variable":"assessmentNumber",
"value":"$.Assessments[0].assessmentNumber"
}
]
}
"variable": "var_owners",
"value":"$.Properties[0].owners[?(@.active== true && @.status== 'ACTIVE')]",
"type":"array",
"format":{
"type":"string",
"scema":[
{
"variable":"name2",
"value":"name"
},
{
"variable":"fatherOrHusbandName2",
"value":"fatherOrHusbandName"
}]
}
}
]
}
]
}
]
}
]
},
{
"path": "http://property-services:8080/property-services/assessment/_search",
"queryParam": "tenantId=$.tenantId,propertyIds=$.consumerCode",
"apiRequest": null,
"responseMapping":[
{
"variable":"assessmentNumber",
"value":"$.Assessments[0].assessmentNumber"
}
]
}
]
}
]
}
]
}
}
}