CDB3-455 CDB3-456 CDB3-653 LLE/LLD/LLP add validation for duplication of leaseRules.intendedUse field values
Summary: plz add validation for that case
STR:
- Go to /api/procedures endpoint
- Create procedure with next body:
{
"auctionPeriod": {
"startDate": "2021-04-23T06:29:00+00:00"
},
"sellingMethod": "legitimatePropertyLease-english-fast",
"lotId": "sd",
"title": {
"uk_UA": "<script>document.body.style.backgroundColor='#f3f3f3'; alert('test');</script>",
"en_US": "string"
},
"description": {
"uk_UA": "string",
"en_US": "string"
},
"x_additionalInformation": {
"uk_UA": "string",
"en_US": "string"
},
"value": {
"currency": "UAH",
"amount": 3100,
"valueAddedTaxIncluded": false
},
"valueAddedTaxCharged": false,
"calcOnBookValue": 0,
"guarantee": {
"currency": "UAH",
"amount": 2
},
"tenderAttempts": 1,
"accessDetails": {
"uk_UA": "ssss"
},
"items": [
{
"itemType": "vehicle",
"vehicleProps": {},
"description": {
"uk_UA": "<script>document.body.style.backgroundColor='#f3f3f3'; alert('test');</script>",
"en_US": "string"
},
"title": {
"uk_UA": "sdsdsssdd"
},
"classification": {
"scheme": "CAV",
"id": "34000000-7"
},
"address": {
"region": {
"uk_UA": "Автономна Республіка Крим"
},
"countryName": {
"uk_UA": "Україна"
}
},
"registrationDetails": {},
"quantity": 2323,
"unit": {
"code": "H87"
}
},
{
"itemType": "jointPropertyComplex",
"description": {
"uk_UA": "<script>document.body.style.backgroundColor='#f3f3f3'; alert('test');</script>",
"en_US": "string"
},
"classification": {
"scheme": "CAV",
"id": "05000000-5"
},
"unit": {
"code": "MTK"
},
"location": {
"latitude": "sd",
"longitude": "sd"
},
"address": {
"region": {
"uk_UA": "Автономна Республіка Крим"
},
"countryName": {
"uk_UA": "Україна"
}
},
"quantity": 232,
"jpcProps": {
"landProps": {
"landArea": 2323
}
},
"registrationDetails": {}
}
],
"minimalStep": {
"currency": "UAH",
"amount": 0.1
},
"registryId": "6082627a313f210d40d2492f",
"leaseRules": {
"intendedUseRestrictionMethod": "exceptDescribed",
"intendedUse": [
"ngo",
"libraryCinemaTheatre",
"libraryCinemaTheatre",
"libraryCinemaTheatre",
"libraryCinemaTheatre"
],
"additionalLeaseConditions": "sdsd",
"subleaseAllowed": 1,
"schedule": {
"daysBy": {
"value": 2,
"by": "week"
},
"hoursBy": {
"value": 8,
"by": "week"
}
}
},
"relatedOrganizations": {
"sellingEntity": {
"identifier": {
"scheme": "UA-EDR",
"legalName": {
"uk_UA": "string",
"en_US": "string"
},
"id": "12345637"
},
"address": {
"addressID": {
"scheme": "koatuu",
"id": "0110136600"
},
"streetAddress": {
"uk_UA": "string",
"en_US": "string"
},
"locality": {
"uk_UA": "string",
"en_US": "string"
},
"region": {
"uk_UA": "Автономна Республіка Крим",
"en_US": "string"
},
"countryName": {
"uk_UA": "Україна"
}
},
"contactPoint": {
"email": "Tadmin@example.com",
"telephone": "+380123456789",
"name": {
"uk_UA": "string",
"en_US": "string"
},
"url": "http://string.com"
},
"representativeInfo": "Довіреність № 123 від 22.02.2012, дійсна до 30.03.2012/Наказ № 142 від 14.12.2019/Статут ТОВ Кульбаба від 24.07.2002"
},
"propertyOwner": {
"identifier": {
"scheme": "UA-EDR",
"legalName": {
"uk_UA": "string",
"en_US": "string"
},
"id": "12346437"
},
"address": {
"addressID": {
"scheme": "koatuu",
"id": "0110136600"
},
"streetAddress": {
"uk_UA": "string",
"en_US": "string"
},
"locality": {
"uk_UA": "string",
"en_US": "string"
},
"region": {
"uk_UA": "Автономна Республіка Крим",
"en_US": "string"
},
"countryName": {
"uk_UA": "Україна"
}
},
"contactPoint": {
"email": "Tadmin@example.com",
"telephone": "+380123456789",
"name": {
"uk_UA": "string",
"en_US": "string"
},
"url": "http://string.com"
},
"representativeInfo": "Довіреність № 123 від 22.02.2012, дійсна до 30.03.2012/Наказ № 142 від 14.12.2019/Статут ТОВ Кульбаба від 24.07.2002"
},
"ownershipType": "state"
},
"bankAccounts": [
{
"accountType": "advancePayment",
"accounts": [{
"accountIdentifications": [{
"scheme": "UA-MFO",
"id": "123456"
}
],
"currency": "UAH"
},
{
"accountIdentifications": [{
"scheme": "UA-IBAN",
"id": "sd123455678901234567890123456"
}],
"currency": "USD"
}]
},
{
"accountType": "lease",
"accounts": [{
"accountIdentifications": [{
"scheme": "UA-IBAN",
"id": "sd123455678901234567890123456"
}],
"currency": "UAH"
},
{
"accountIdentifications": [{
"scheme": "UA-IBAN",
"id": "sd123455678901234567890123456"
}],
"currency": "USD"
}]
},
{
"accountType": "guarantee",
"accounts": [{
"accountIdentifications": [{
"scheme": "UA-EDR",
"id": "12345637"
}],
"currency": "UAH"
},
{
"accountIdentifications": [{
"scheme": "UA-IBAN",
"id": "sd123455678901234567890123456"
}],
"currency": "USD"
}
]
},
{
"accountType": "registrationFee",
"accounts": [{
"accountIdentifications": [{
"scheme": "UA-EDR",
"id": "12345637"
}],
"currency": "UAH"
}]
},
{
"accountType": "improvementCompensation",
"accounts": [{
"accountIdentifications": [{
"scheme": "UA-EDR",
"id": "12345637"
}],
"currency": "UAH"
},
{
"accountIdentifications": [{
"scheme": "UA-IBAN",
"id": "sd123455678901234567890123456"
}],
"currency": "USD"
}]
},
{
"accountType": "other",
"accounts": [{
"accountIdentifications": [{
"scheme": "UA-EDR",
"id": "12345637"
}],
"currency": "UAH"
},
{
"accountIdentifications": [{
"scheme": "UA-IBAN",
"id": "sd123455678901234567890123456"
}],
"currency": "USD"
}]
}],
"registrationFee": {
"currency": "UAH",
"amount": 3000
},
"valuePeriod": "month",
"leaseDuration": "P2Y11M",
"documents": [
{
"title": {
"uk_UA": "Назва",
"en_US": "Title"
},
"documentOf": "cancellation",
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6ImRzIn0.eyJpZCI6IjI5YThhMDg5NjA0NzRiNTFiYzE3ODU3NGM1OWI0ZDJhIiwic2NvcGUiOiJwdWJsaWMiLCJmaWxlbmFtZSI6ImF1Y3Rpb25Qcm90b2NvbC5kb2N4IiwiZG9jdW1lbnRUeXBlIjoiaWxsdXN0cmF0a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ZGiQ_jVI9Vq8qSzFw--A3kzQVmqo9sqoz3N2GtPftqXPJVWh2U_t_JIsGH4BH9Q1LbM0bdvkKlTOEh2B4g1StUv8HeEXYe9DzcUc9BmK5hwHg0DP_Ti9hVs4ZDmHwIInSF_zjZfgHCAH6p5Cw-UcdLQy3NeTpoOo0E-zhQpaOGolFf0qzF-X86MOhhyR1JOlLwAWP6E5N27sWeQxqb0uD4i6QlDH9m5AhIdwdY6LJPIDZ5mrbf2Z7tNLK97wx0aMwxI6SeTlJnL5pShKAs5FOhuJI-70QfwBD3-XcnN7lNaG5_GYOSbgklXJTP_oO0MZOIJzVxtGZRglDodDAJGmFOVp0DnokhyFYT2GlUK0spRR7EigW9wDI7L3OnP59Tejd-EcmQnOa9x0MzlX0o9i1q9jXaMvVGf-JQe3-wXrKDiVotzvvPnYSeRQ_2cCiiZqoJ-pvWvL8wrEInml8mveI6qPUdjHr494FlztWkLwQehKETmedABY7cI6mBQucElfP3bUuXMzGqgnY"
}
]
}
Actual result: as you can see, there are duplicated values in leaseRules.intendedUse field in body
Expected result: this case should be validated