Documentation
¶
Index ¶
- func ParseOpenContractToJSON(openContract OpenContract) []byte
- type Address
- type Buyer
- type ContactPoint
- type DeliverLocation
- type Document
- type Identifier
- type MonetaryValue
- type OpenContract
- type Party
- type Period
- type Publisher
- type Release
- type Tender
- type TenderAward
- type TenderItem
- type TenderItemClassification
- type TenderItemLot
- type TenderProcuringEntity
- type TenderUnit
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseOpenContractToJSON ¶
func ParseOpenContractToJSON(openContract OpenContract) []byte
Types ¶
type Buyer ¶
type Buyer struct {
Name string `json:"name"`
ID string `json:"id"`
Identifier Identifier `json:"identifier"`
Address Address `json:"address"`
ContactPoint ContactPoint `json:"contactPoint"`
}
type ContactPoint ¶
type DeliverLocation ¶
type DeliverLocation struct {
Description string `json:"description" extension:"deliveryLocation"`
}
type Document ¶
type Document struct {
ID string `json:"id"`
URL string `json:"url"`
RelatedLots []string `json:"relatedLots"`
DocumentType string `json:"documentType"`
Title string `json:"title"`
Description string `json:"description"`
DatePublished string `json:"datePublished"`
Format string `json:"format"`
Language string `json:"language"`
}
type Identifier ¶
type MonetaryValue ¶
type OpenContract ¶
type OpenContract struct {
Version string `json:"version"`
URI string `json:"uri"`
PublishedDate time.Time `json:"publishedDate"`
Extensions []string `json:"extensions"`
Releases []Release `json:"releases"`
Publisher Publisher `json:"publisher"`
License string `json:"license"`
PublicationPolicy string `json:"publicationPolicy"`
}
func ParseJSONFileToBiddingOffer ¶
func ParseJSONFileToBiddingOffer(filePath string) OpenContract
func ParseJSONToBiddingOffer ¶
func ParseJSONToBiddingOffer(byteArray []byte, strict bool) OpenContract
type Party ¶
type Party struct {
Name string `json:"name"`
ID string `json:"id"`
Identifier Identifier `json:"identifier"`
Address Address `json:"address"`
ContactPoint ContactPoint `json:"contactPoint"`
Roles []string `json:"roles"`
}
type Release ¶
type Release struct {
OCID string `json:"ocid"`
ID string `json:"id"`
Date string `json:"date"`
Tag []string `json:"tag"`
Parties []Party `json:"parties"`
Buyer Buyer `json:"buyer"`
Tender Tender `json:"tender"`
Publisher Publisher `json:"publisher"`
License string `json:"license"`
PublicationPolicy string `json:"publicationPolicy"`
Language string `json:"language"`
InitiationType string `json:"initiationType"`
}
type Tender ¶
type Tender struct {
ID string `json:"id"`
Title string `json:"title"`
Description string `json:"description"`
ProcuringEntity TenderProcuringEntity `json:"procuringEntity"`
Items []TenderItem `json:"items"`
Awards []TenderAward `json:"awards"`
Language string `json:"language"`
ProcurementMethodDetails string `json:"procurementMethodDetails"`
MainProcurementCategory string `json:"mainProcurementCategory"`
NumberOfTenderers int `json:"numberOfTenderers"`
Documents []Document `json:"documents"`
ReleaseOcid string
Status string `json:"status"`
MinValue MonetaryValue `json:"minValue"`
Value MonetaryValue `json:"value"`
ProcurementMethod string `json:"procurementMethod"`
ProcurementMethodRationale string `json:"procurementMethodRationale"`
AwardCriteria string `json:"awardCriteria"`
AwardCriteriaDetails string `json:"awardCriteriaDetails"`
SubmissionMethod []string `json:"submissionMethod"`
SubmissionMethodDetails string `json:"submissionMethodDetails"`
TenderPeriod Period `json:"tenderPeriod"`
EnquiryPeriod Period `json:"enquiryPeriod"`
AwardPeriod Period `json:"awardPeriod"`
ContractPeriod Period `json:"contractPeriod"`
HasEnquiries bool `json:"hasEnquiries"`
Lots []any `json:"lots" extensions:lots` // Lots extension
}
func SynthesizeTenderID ¶
func SynthesizeTenderName ¶
type TenderAward ¶
type TenderItem ¶
type TenderItem struct {
ID string `json:"id"`
Classification TenderItemClassification `json:"classification"`
AdditionalClassifications []TenderItemClassification
Lots []TenderItemLot `json:"lots"`
RelatedLot string `json:"relatedLot"`
DeliveryAddress Address `json:"deliveryAddress"`
Description string `json:"description"`
Quantity float32 `json:"quantity"`
Unit TenderUnit `json:"unit"`
DeliveryLocation DeliverLocation `json:"deliveryLocation"`
}
type TenderItemLot ¶
type TenderProcuringEntity ¶
type TenderUnit ¶
type TenderUnit struct {
Name string `json:"name"`
Id string `json:"id"`
Scheme string `json:"scheme"`
Value MonetaryValue `json:"value"`
}
Click to show internal directories.
Click to hide internal directories.