CDB3-322 basicSell-english contract docs can be uploaded/updated (POST, PATCH, PUT) when contract status is already 'active'
Summary:
STR:
- Go to /api/procedures/ endpoint
- Create procedure with next body:
{
"auctionPeriod": {
"startDate": "2021-01-27T10:36:00+00:00"
},
"sellingMethod": "basicSell-english-initial-auction",
"sellingEntity": {
"identifier": {
"scheme": "UA-IPN",
"legalName": {
"uk_UA": "string",
"en_US": "string"
},
"id": "1234563378"
},
"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"
},
"lotId": "sd",
"title": {
"uk_UA": "<script>document.body.style.backgroundColor='#f3f3f3'; alert('test');</script>",
"en_US": "string"
},
"description": {
"uk_UA": "string",
"en_US": "string"
},
"bankAccount": [
{
"bankName": {
"uk_UA": "string",
"en_US": "string"
},
"description": {
"uk_UA": "string",
"en_US": "string"
},
"accountIdentifications": [
{"scheme": "UA-IBAN",
"id": "As223323232378678905467894323"
}]
}
],
"x_documentRequirements": {
"uk_UA": "string",
"en_US": "string"
},
"x_additionalInformation": {
"uk_UA": "string",
"en_US": "string"
},
"value": {
"currency": "UAH",
"amount": 3,
"valueAddedTaxIncluded": true
},
"guarantee": {
"currency": "UAH",
"amount": 2,
"valueAddedTaxIncluded": true
},
"tenderAttempts": 2,
"accessDetails": {
"uk_UA": "ssss"
},
"minNumberOfQualifiedBids": 2,
"previousAuctionId": "UA-PS-1122-33-44-000000-0",
"items": [
{
"description": {
"uk_UA": "<script>document.body.style.backgroundColor='#f3f3f3'; alert('test');</script>",
"en_US": "string"
},
"classification": {
"scheme": "CAV",
"id": "04000000-8"
},
"unit": {
"code": "H87"
},
"quantity": 11.1126,
"additionalClassifications": [
{
"scheme": "CPVS",
"id": "QB49-3"
}
],
"itemProps": {
"totalObjectArea": 34
}
},
{
"description": {
"uk_UA": "<script>document.body.style.backgroundColor='#f3f3f3'; alert('test');</script>",
"en_US": "string"
},
"classification": {
"scheme": "CAV",
"id": "04000000-8"
},
"unit": {
"code": "H87"
},
"quantity": 11.1126,
"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"
},
"postalCode": "string",
"countryName": {
"uk_UA": "Україна"
}
},
"additionalClassifications": [
{
"scheme": "CPVS",
"id": "QB49-3"
}
],
"location": {
"latitude": "string",
"longitude": "string",
"elevation": "string"
},
"itemProps": {
}
}
],
"minimalStep": {
"currency": "UAH",
"amount": 0.1
},
"bids": [
{
"id": "6c2c85665a8f44b18b9f48ddbd629b5b",
"ownerToken": "4156562f-2ce1-4fa5-b25f-48e2730e1b15",
"bidders": [
{
"identifier": {
"id": "12312312",
"scheme": "UA-EDR",
"legalName": {
"uk_UA": "ЕДРПОУ",
"en_US": "EDRPOU"
}
},
"address": {
"streetAddress": {
"uk_UA": "Хрещатик, 45a",
"en_US": "Khreschatyk, 45a"
},
"locality": {
"uk_UA": "Київ",
"en_US": "Kyiv"
},
"region": {
"uk_UA": "Київ",
"en_US": "Kyiv"
},
"postalCode": "01002",
"countryName": {
"uk_UA": "Україна",
"en_US": "Ukraine"
}
},
"contactPoint": {
"name": {
"uk_UA": "Адміністратор1",
"en_US": "Admin1"
},
"telephone": "+380996872350",
"faxNumber": "+380996872350",
"email": "admin@example.com"
}
}
],
"status": "active",
"value": {
"amount": 3000,
"currency": "UAH"
}
},
{
"id": "7c2c85665a8f44b18b9f48ddbd629b5b",
"ownerToken": "7156562f-2ce1-4fa5-b25f-48e2730e1b15",
"bidders": [
{
"identifier": {
"id": "12312312",
"scheme": "UA-EDR",
"legalName": {
"uk_UA": "ЕДРПОУ",
"en_US": "EDRPOU"
}
},
"address": {
"streetAddress": {
"uk_UA": "Хрещатик, 45a",
"en_US": "Khreschatyk, 45a"
},
"locality": {
"uk_UA": "Київ",
"en_US": "Kyiv"
},
"region": {
"uk_UA": "Київ",
"en_US": "Kyiv"
},
"postalCode": "01002",
"countryName": {
"uk_UA": "Україна",
"en_US": "Ukraine"
}
},
"contactPoint": {
"name": {
"uk_UA": "Адміністратор2",
"en_US": "Admin2"
},
"telephone": "+380996872350",
"faxNumber": "+380996872350",
"email": "admin@example.com"
}
}
],
"status": "active",
"value": {
"amount": 4000,
"currency": "UAH"
}
}
]
}
- Change winner's award status to 'active'
- Try to upload doc to contract with next body: (upload 'contractSigned' docType)
{
"token": "",
"title": {
"uk_UA": "Назва",
"en_US": "Title"
},
"description": {
"uk_UA": "Опис",
"en_US": "Description"
},
"documentOf": "contract",
"documentType": "auctionProtocol",
"index": 33,
"format": "string",
"language": 0
}
- Patch contract with next body:
{
"contractNumber": "Required field",
"description": {"uk_UA": "Required field"},
"dateSigned": "2020-11-20T16:30:00+00:00",
"title": {"uk_UA": "Required field"},
"contractTime": {
"dateFrom": "2020-11-20T16:30:00+00:00",
"dateTill": "2020-11-20T16:30:00+00:00"
},
"contractTotalValue": {
"currency": "UAH",
"amount": 34
}
}
- Change contract status to 'active'
- Try to use PATCH/PUT/POST requests for this contract
Actual result: all req types can be used
Expected result: https://prnt.sc/xphh9r