package eform import "encoding/xml" // ===================================================== // CONTRACTING PARTY // ===================================================== // ContractingParty represents the contracting party type ContractingParty struct { XMLName xml.Name `xml:"ContractingParty"` BuyerProfileURI string `xml:"BuyerProfileURI,omitempty"` ContractingPartyType ContractingPartyType `xml:"ContractingPartyType,omitempty"` ContractingActivity ContractingActivity `xml:"ContractingActivity,omitempty"` Party Party `xml:"Party,omitempty"` } // ContractingPartyType contains party type information type ContractingPartyType struct { XMLName xml.Name `xml:"ContractingPartyType"` PartyTypeCode string `xml:"PartyTypeCode"` } // ContractingActivity represents the contracting activity type ContractingActivity struct { XMLName xml.Name `xml:"ContractingActivity"` ActivityTypeCode string `xml:"ActivityTypeCode"` } // Party represents a party type Party struct { XMLName xml.Name `xml:"Party"` PartyIdentification []PartyIdentification `xml:"PartyIdentification,omitempty"` PartyName []PartyName `xml:"PartyName,omitempty"` PostalAddress PostalAddress `xml:"PostalAddress,omitempty"` PartyLegalEntity PartyLegalEntity `xml:"PartyLegalEntity,omitempty"` Contact Contact `xml:"Contact,omitempty"` WebsiteURI string `xml:"WebsiteURI,omitempty"` } // PartyIdentification represents party identification type PartyIdentification struct { XMLName xml.Name `xml:"PartyIdentification"` ID string `xml:"ID"` } // PartyName represents party name type PartyName struct { XMLName xml.Name `xml:"PartyName"` Name string `xml:"Name"` } // PostalAddress represents postal address type PostalAddress struct { XMLName xml.Name `xml:"PostalAddress"` StreetName string `xml:"StreetName,omitempty"` CityName string `xml:"CityName,omitempty"` PostalZone string `xml:"PostalZone,omitempty"` CountrySubentityCode string `xml:"CountrySubentityCode,omitempty"` Country Country `xml:"Country,omitempty"` } // Country represents country information type Country struct { XMLName xml.Name `xml:"Country"` IdentificationCode string `xml:"IdentificationCode"` } // PartyLegalEntity represents party legal entity type PartyLegalEntity struct { XMLName xml.Name `xml:"PartyLegalEntity"` CompanyID string `xml:"CompanyID"` } // Contact represents contact information type Contact struct { XMLName xml.Name `xml:"Contact"` Name string `xml:"Name,omitempty"` Telephone string `xml:"Telephone,omitempty"` Telefax string `xml:"Telefax,omitempty"` ElectronicMail string `xml:"ElectronicMail,omitempty"` }