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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user