CDB3-653 LLP add validation for currentTenant.currentContractTime.(dateFrom/dateTill) fields according to schema
Summary: need add validation according to doc
STR:
- Go to /api/procedures/ endpoint
- Create procedure with next body:
{
"auctionPeriod": {
"startDate": "2021-03-15T00:23:00+00:00"
},
"sellingMethod": "legitimatePropertyLease-priorityEnglish-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": 3,
"valueAddedTaxIncluded": false
},
"valueAddedTaxCharged": false,
"calcOnBookValue": 0,
"guarantee": {
"currency": "UAH",
"amount": 2
},
"tenderAttempts": 1,
"accessDetails": {
"uk_UA": "ssss"
},
"minNumberOfQualifiedBids": 1,
"items": [
{
"itemType": "realEstate",
"description": {
"uk_UA": "<script>document.body.style.backgroundColor='#f3f3f3'; alert('test');</script>",
"en_US": "string"
},
"classification": {
"scheme": "CAV",
"id": "04000000-8"
},
"unit": {
"code": "MTK"
},
"location": {
"latitude": "sd",
"longitude": "sd"
},
"address": {
"region": {
"uk_UA": "Автономна Республіка Крим"
},
"countryName": {
"uk_UA": "Україна"
}
},
"reProps": {
"totalObjectArea": 2323.23
},
"registrationDetails": {}
}
],
"minimalStep": {
"currency": "UAH",
"amount": 0.1
},
"registryId": "6048a0aafa3533ebadb0b32d",
"leaseRules": {
"intendedUseRestrictionMethod": "onlyDescribed",
"intendedUseRestrictionDescription": "wewe"
},
"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",
"currentTenant": {
"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": "Україна"
}
},
"currentContractTime": {
"dateFrom": "2021-03-13T01:35:00+00:00",
"dateTill": "2021-03-11T01:35:00+00:00"
}
}
},
"bankAccounts": {
"advancePaymentAccounts": {
"leaseHolderAccounts": {
"bankAccountsUa": []
}
}
},
"registrationFee": {
"currency": "UAH",
"amount": 3000
},
"valuePeriod": "month",
"leaseDuration": "P2Y11M",
"documents": [
{
"title": {
"uk_UA": "Назва",
"en_US": "Title"
},
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HWRkVmvjhEmCOFYeNm0lO7rwxUEc0QXM8AXt1WXhFvBHcGX1sQVL8FlJ7OUCBxfO3S7S-RBvt51S3GU93D702x0xcQDOmb_l1kfFHcMWbBXlTKg-nOgzeOPab_z7DW2VMfAlPh1cXvqid-TKDezTcbiy6yTNrvC8ocpWpqHCwLNXNDW8XIswKlNi_0guegz21SgxaNx_syfQCjh5u2xxTcogd_-XPiqRyTKtg8SVTAXrjF5UOb6EzzEhP9qj8LGvAGLDL6Br7oT3jFsoprNqvpj3ell86AriMGfmLRwBj1UbPqKo1cMNHslRllfNFZBxj6uGS1cv6-TYsuWyeB9qaihki9rNfJUSNryluYSfaN0S-7BXW5-1G1pme4AZRTe6PqYnsEx65_vwpHKaqFADm-UBO-coC1pCQeUJoE127JCNAg1GlWMDa-1v_sl3R-YceZrz0P1OPV1waGrHOidp-VOCGLZ_CZBNwRfUdHmCN2o1pk7AVNe6l8r838dH522vZK0W5KPL3FCIj-QPfRIcG8RwnpuUtorP7xtfUJaXBy_bpxQtxXHsi4KdhUQOiS0ou7GeEMx122XhNa2u5bTKEBzvVaZdj3NUkLZcRCD0_DeO0leqDi5R2W8N5SkJByTBlhFQiZKQbIP4dIiqbPVDIvg54fuksHdTBU"
}
]
}
Actual result: procedure created, as you can see dateFrom > dateTill, but should validated
Expected result: https://prnt.sc/10k203t