Refactor Tender Entity and TED Parser for Clarity and Consistency

- Updated the Tender entity to remove redundant comments on Unix timestamp fields, enhancing code readability.
- Renamed the AwardedEntity type to Awarded for improved clarity and consistency in naming conventions.
- Removed the transformPriorInformationNoticeToContractNotice method from TEDParser, streamlining the parser's functionality and reducing legacy code.
This commit is contained in:
n.nakhostin
2025-09-28 11:59:24 +03:30
parent f57e53bd9b
commit 96d3b4fb9c
2 changed files with 8 additions and 13 deletions
-5
View File
@@ -387,11 +387,6 @@ func (p *TEDParser) transformToContractNotice(xmlData []byte, docType string) []
return []byte(xmlStr)
}
// transformPriorInformationNoticeToContractNotice transforms a PriorInformationNotice XML to ContractNotice format
func (p *TEDParser) transformPriorInformationNoticeToContractNotice(xmlData []byte) []byte {
return p.transformToContractNotice(xmlData, "PriorInformationNotice")
}
// Legacy methods for backward compatibility
// ParseXMLAsContractNotice parses XML specifically as ContractNotice (legacy method)
func (p *TEDParser) ParseXMLAsContractNotice(xmlData []byte) (*ContractNotice, error) {