xrechnung

package module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

README

xrechnung-go

golang library to convert electronic invoice german xrechnung

XML to go structure go structure to XML

json to go structure go structure to json

contains the conversion according to xrechnung 2.0 / CISU XRechnung und OASIS UBL 2.1

Documentation

Overview

Package xrechnung - Library for processing electronic invoices - german xrechnung 2.0 **/

Index

Constants

View Source
const (
	//Tasks
	CheckAndConvert = "CheckAndConvert"
)

Variables

View Source
var CCurrency = [279]TCurrencyElement{}/* 279 elements not displayed */

CCurrency the currencies according to DIN ISO 4217 from https://www.iso.org/iso-4217-currency-codes.html

View Source
var CInvoiceCypeCode = [8]TCode{
	{"326", "Partial invoice"},
	{"380", "Commercial invoice"},
	{"384", "Corrected invoice"},
	{"389", "Self-billed invoice"},
	{"381", "Credit note"},
	{"875", "Partial construction invoice"},
	{"876", "Partial final construction invoice"},
	{"877", "Final construction invoice"},
}

CInvoiceCypeCode Catalogue of incoming invoice types

View Source
var CValueAddedTaxPointDateCode = [3]TCode{
	{"3", "Invoice document issue date time"},
	{"35", "Delivery date/time, actual"},
	{"432", "Paid to date"},
}

Functions

func StructureToJson

func StructureToJson(xInvoice Invoice2) (jsonData string, err error)

StructureToJson returns the Json of the xcalculation from the structure

func StructureToXML

func StructureToXML(xInvoice Invoice2) (xmlData string, err error)

StructureToXML returns the XML of the xcalculation from the structure

Types

type AccountingCost

type AccountingCost struct {
	XMLName xml.Name `xml:"AccountingCost,omitempty" json:"AccountingCost,omitempty"`
	Value   string   `xml:",chardata" json:",omitempty"`
}

type AccountingCustomerParty

type AccountingCustomerParty struct {
	XMLName xml.Name `xml:"AccountingCustomerParty,omitempty" json:"AccountingCustomerParty,omitempty"`
	Party   Party    `xml:"urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2 Party,omitempty" json:"Party,omitempty"`
}

type AccountingSupplierParty

type AccountingSupplierParty struct {
	XMLName xml.Name `xml:"AccountingSupplierParty,omitempty" json:"AccountingSupplierParty,omitempty"`
	Party   Party    `xml:"urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2 Party,omitempty" json:"Party,omitempty"`
}

type ActualDeliveryDate

type ActualDeliveryDate struct {
	XMLName xml.Name `xml:"ActualDeliveryDate,omitempty" json:"ActualDeliveryDate,omitempty"`
	Value   string   `xml:",chardata" json:",omitempty"`
}

type AdditionalDocumentReference

type AdditionalDocumentReference struct {
	XMLName      xml.Name     `xml:"AdditionalDocumentReference,omitempty" json:"AdditionalDocumentReference,omitempty"`
	Attachment   Attachment   `` /* 127-byte string literal not displayed */
	DocumentType DocumentType `` /* 127-byte string literal not displayed */
	ID           ID           `xml:"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2 ID,omitempty" json:"ID,omitempty"`
}

type AdditionalStreetName

type AdditionalStreetName struct {
	XMLName xml.Name `xml:"AdditionalStreetName,omitempty" json:"AdditionalStreetName,omitempty"`
	Value   string   `xml:",chardata" json:",omitempty"`
}

type Address

type Address struct {
	XMLName              xml.Name             `xml:"Address,omitempty" json:"Address,omitempty"`
	AdditionalStreetName AdditionalStreetName `` /* 143-byte string literal not displayed */
	BuildingNumber       BuildingNumber       `` /* 131-byte string literal not displayed */
	CityName             CityName             `xml:"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2 CityName,omitempty" json:"CityName,omitempty"`
	CountrySubentity     CountrySubentity     `` /* 135-byte string literal not displayed */
	Country              Country              `xml:"urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2 Country,omitempty" json:"Country,omitempty"`
	PostalZone           PostalZone           `xml:"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2 PostalZone,omitempty" json:"PostalZone,omitempty"`
	StreetName           StreetName           `xml:"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2 StreetName,omitempty" json:"StreetName,omitempty"`
}

type AllowanceCharge

type AllowanceCharge struct {
	XMLName                 xml.Name                `xml:"AllowanceCharge,omitempty" json:"AllowanceCharge,omitempty"`
	AllowanceChargeReason   AllowanceChargeReason   `` /* 145-byte string literal not displayed */
	Amount                  Amount                  `xml:"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2 Amount,omitempty" json:"Amount,omitempty"`
	BaseAmount              BaseAmount              `xml:"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2 BaseAmount,omitempty" json:"BaseAmount,omitempty"`
	ChargeIndicator         ChargeIndicator         `` /* 133-byte string literal not displayed */
	MultiplierFactorNumeric MultiplierFactorNumeric `` /* 149-byte string literal not displayed */
}

type AllowanceChargeReason

type AllowanceChargeReason struct {
	XMLName xml.Name `xml:"AllowanceChargeReason,omitempty" json:"AllowanceChargeReason,omitempty"`
	Value   string   `xml:",chardata" json:",omitempty"`
}

type Amount

type Amount struct {
	XMLName        xml.Name `xml:"Amount,omitempty" json:"Amount,omitempty"`
	AttrcurrencyID string   `xml:"currencyID,attr"  json:",omitempty"`
	Value          string   `xml:",chardata" json:",omitempty"`
}

type Attachment

type Attachment struct {
	XMLName                      xml.Name                     `xml:"Attachment,omitempty" json:"Attachment,omitempty"`
	EmbeddedDocumentBinaryObject EmbeddedDocumentBinaryObject `` /* 159-byte string literal not displayed */
	ExternalReference            ExternalReference            `` /* 141-byte string literal not displayed */
}

type BaseAmount

type BaseAmount struct {
	XMLName        xml.Name `xml:"BaseAmount,omitempty" json:"BaseAmount,omitempty"`
	AttrcurrencyID string   `xml:"currencyID,attr"  json:",omitempty"`
	Value          string   `xml:",chardata" json:",omitempty"`
}

type BuildingNumber

type BuildingNumber struct {
	XMLName xml.Name `xml:"BuildingNumber,omitempty" json:"BuildingNumber,omitempty"`
	Value   string   `xml:",chardata" json:",omitempty"`
}

type BuyerReference

type BuyerReference struct {
	XMLName xml.Name `xml:"BuyerReference,omitempty" json:"BuyerReference,omitempty"`
	Value   string   `xml:",chardata" json:",omitempty"`
}

type ChargeIndicator

type ChargeIndicator struct {
	XMLName xml.Name `xml:"ChargeIndicator,omitempty" json:"ChargeIndicator,omitempty"`
	Value   string   `xml:",chardata" json:",omitempty"`
}

type CityName

type CityName struct {
	XMLName xml.Name `xml:"CityName,omitempty" json:"CityName,omitempty"`
	Value   string   `xml:",chardata" json:",omitempty"`
}

type ClassifiedTaxCategory

type ClassifiedTaxCategory struct {
	XMLName   xml.Name  `xml:"ClassifiedTaxCategory,omitempty" json:"ClassifiedTaxCategory,omitempty"`
	ID        ID        `xml:"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2 ID,omitempty" json:"ID,omitempty"`
	Percent   Percent   `xml:"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2 Percent,omitempty" json:"Percent,omitempty"`
	TaxScheme TaxScheme `xml:"urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2 TaxScheme,omitempty" json:"TaxScheme,omitempty"`
}

type CommodityClassification

type CommodityClassification struct {
	XMLName                xml.Name               `xml:"CommodityClassification,omitempty" json:"CommodityClassification,omitempty"`
	ItemClassificationCode ItemClassificationCode `` /* 147-byte string literal not displayed */
}

type CompanyID

type CompanyID struct {
	XMLName xml.Name `xml:"CompanyID,omitempty" json:"CompanyID,omitempty"`
	Value   string   `xml:",chardata" json:",omitempty"`
}

type CompanyLegalForm

type CompanyLegalForm struct {
	XMLName xml.Name `xml:"CompanyLegalForm,omitempty" json:"CompanyLegalForm,omitempty"`
	Value   string   `xml:",chardata" json:",omitempty"`
}

type Contact

type Contact struct {
	XMLName        xml.Name       `xml:"Contact,omitempty" json:"Contact,omitempty"`
	Name           Name           `xml:"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2 Name,omitempty" json:"Name,omitempty"`
	Telephone      Telephone      `xml:"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2 Telephone,omitempty" json:"Telephone,omitempty"`
	ElectronicMail ElectronicMail `` /* 131-byte string literal not displayed */
	Telefax        Telefax        `xml:"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2 Telefax,omitempty" json:"Telefax,omitempty"`
}

type ContractDocumentReference

type ContractDocumentReference struct {
	XMLName      xml.Name     `xml:"ContractDocumentReference,omitempty" json:"ContractDocumentReference,omitempty"`
	DocumentType DocumentType `` /* 127-byte string literal not displayed */
	ID           ID           `xml:"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2 ID,omitempty" json:"ID,omitempty"`
}

type Country

type Country struct {
	XMLName            xml.Name           `xml:"Country,omitempty" json:"Country,omitempty"`
	IdentificationCode IdentificationCode `` /* 139-byte string literal not displayed */
}

type CountrySubentity

type CountrySubentity struct {
	XMLName xml.Name `xml:"CountrySubentity,omitempty" json:"CountrySubentity,omitempty"`
	Value   string   `xml:",chardata" json:",omitempty"`
}

type CountrySubentityCode

type CountrySubentityCode struct {
	XMLName xml.Name `xml:"CountrySubentityCode,omitempty" json:"CountrySubentityCode,omitempty"`
	Value   string   `xml:",chardata" json:",omitempty"`
}

type CustomizationID

type CustomizationID struct {
	XMLName xml.Name `xml:"CustomizationID,omitempty" json:"CustomizationID,omitempty"`
	Value   string   `xml:",chardata" json:",omitempty"`
}

type Delivery

type Delivery struct {
	XMLName            xml.Name           `xml:"Delivery,omitempty" json:"Delivery,omitempty"`
	ActualDeliveryDate ActualDeliveryDate `` /* 139-byte string literal not displayed */
	DeliveryLocation   DeliveryLocation   `` /* 139-byte string literal not displayed */
}

type DeliveryLocation

type DeliveryLocation struct {
	XMLName xml.Name `xml:"DeliveryLocation,omitempty" json:"DeliveryLocation,omitempty"`
	Address Address  `xml:"urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2 Address,omitempty" json:"Address,omitempty"`
	ID      ID       `xml:"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2 ID,omitempty" json:"ID,omitempty"`
}

type Department

type Department struct {
	XMLName xml.Name `xml:"Department,omitempty" json:"Department,omitempty"`
	Value   string   `xml:",chardata" json:",omitempty"`
}

type Description

type Description struct {
	XMLName xml.Name `xml:"Description,omitempty" json:"Description,omitempty"`
	Value   string   `xml:",chardata" json:",omitempty"`
}

type DocumentCurrencyCode

type DocumentCurrencyCode struct {
	XMLName xml.Name `xml:"DocumentCurrencyCode,omitempty" json:"DocumentCurrencyCode,omitempty"`
	Value   string   `xml:",chardata" json:",omitempty"`
}

type DocumentType

type DocumentType struct {
	XMLName xml.Name `xml:"DocumentType,omitempty" json:"DocumentType,omitempty"`
	Value   string   `xml:",chardata" json:",omitempty"`
}

type ElectronicMail

type ElectronicMail struct {
	XMLName xml.Name `xml:"ElectronicMail,omitempty" json:"ElectronicMail,omitempty"`
	Value   string   `xml:",chardata" json:",omitempty"`
}

type EmbeddedDocumentBinaryObject

type EmbeddedDocumentBinaryObject struct {
	XMLName      xml.Name `xml:"EmbeddedDocumentBinaryObject,omitempty" json:"EmbeddedDocumentBinaryObject,omitempty"`
	AttrmimeCode string   `xml:"mimeCode,attr"  json:",omitempty"`
	Value        string   `xml:",chardata" json:",omitempty"`
}

type EndDate

type EndDate struct {
	XMLName xml.Name `xml:"EndDate,omitempty" json:"EndDate,omitempty"`
	Value   string   `xml:",chardata" json:",omitempty"`
}

type EndpointID

type EndpointID struct {
	XMLName            xml.Name `xml:"EndpointID,omitempty" json:"EndpointID,omitempty"`
	AttrschemeAgencyID string   `xml:"schemeAgencyID,attr"  json:",omitempty"`
	AttrschemeID       string   `xml:"schemeID,attr"  json:",omitempty"`
	Value              string   `xml:",chardata" json:",omitempty"`
}

type ExternalReference

type ExternalReference struct {
	XMLName xml.Name `xml:"ExternalReference,omitempty" json:"ExternalReference,omitempty"`
	URI     URI      `xml:"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2 URI,omitempty" json:"URI,omitempty"`
}

type FamilyName

type FamilyName struct {
	XMLName xml.Name `xml:"FamilyName,omitempty" json:"FamilyName,omitempty"`
	Value   string   `xml:",chardata" json:",omitempty"`
}

type FirstName

type FirstName struct {
	XMLName xml.Name `xml:"FirstName,omitempty" json:"FirstName,omitempty"`
	Value   string   `xml:",chardata" json:",omitempty"`
}

type ID

type ID struct {
	XMLName xml.Name `xml:"ID,omitempty" json:"ID,omitempty"`
	Value   string   `xml:",chardata" json:",omitempty"`
}

type IdentificationCode

type IdentificationCode struct {
	XMLName xml.Name `xml:"IdentificationCode,omitempty" json:"IdentificationCode,omitempty"`
	Value   string   `xml:",chardata" json:",omitempty"`
}

type Invoice2

type Invoice2 struct {
	XMLName                     xml.Name                      `xml:"urn:oasis:names:specification:ubl:schema:xsd:Invoice-2 Invoice,omitempty" json:"Invoice,omitempty"`
	CustomizationID             CustomizationID               `` /* 133-byte string literal not displayed */
	ID                          ID                            `xml:"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2 ID,omitempty" json:"ID,omitempty"`
	IssueDate                   IssueDate                     `xml:"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2 IssueDate,omitempty" json:"IssueDate,omitempty"`
	InvoiceTypeCode             InvoiceTypeCode               `` /* 133-byte string literal not displayed */
	Note                        Note                          `xml:"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2 Note,omitempty" json:"Note,omitempty"`
	DocumentCurrencyCode        DocumentCurrencyCode          `` /* 143-byte string literal not displayed */
	BuyerReference              BuyerReference                `` /* 131-byte string literal not displayed */
	AccountingSupplierParty     AccountingSupplierParty       `` /* 153-byte string literal not displayed */
	AccountingCustomerParty     AccountingCustomerParty       `` /* 153-byte string literal not displayed */
	PaymentMeans                PaymentMeans                  `` /* 131-byte string literal not displayed */
	PaymentTerms                PaymentTerms                  `` /* 131-byte string literal not displayed */
	TaxTotal                    TaxTotal                      `xml:"urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2 TaxTotal,omitempty" json:"TaxTotal,omitempty"`
	LegalMonetaryTotal          LegalMonetaryTotal            `` /* 143-byte string literal not displayed */
	InvoiceLine                 []InvoiceLine                 `` /* 129-byte string literal not displayed */
	AccountingCost              AccountingCost                `` /* 131-byte string literal not displayed */
	AdditionalDocumentReference []AdditionalDocumentReference `` /* 161-byte string literal not displayed */
	AllowanceCharge             []AllowanceCharge             `` /* 137-byte string literal not displayed */
	ContractDocumentReference   ContractDocumentReference     `` /* 157-byte string literal not displayed */
	Delivery                    Delivery                      `xml:"urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2 Delivery,omitempty" json:"Delivery,omitempty"`
	InvoicePeriod               InvoicePeriod                 `` /* 133-byte string literal not displayed */
	OrderReference              OrderReference                `` /* 135-byte string literal not displayed */
	PayeeParty                  PayeeParty                    `` /* 127-byte string literal not displayed */
	TaxCurrencyCode             TaxCurrencyCode               `` /* 133-byte string literal not displayed */
	TaxPointDate                TaxPointDate                  `` /* 127-byte string literal not displayed */
	UBLVersionID                UBLVersionID                  `` /* 127-byte string literal not displayed */
	// contains filtered or unexported fields
}

func JsonToStructure

func JsonToStructure(jsonData string) (xInvoice Invoice2, err error)

JsonToStructure returns the structure of the xcalculation from Json string

func XMLToStructure

func XMLToStructure(xmlData string) (xInvoice Invoice2, err error)

XMLToStructure returns the structure of the xcalculation from XML string

func (Invoice2) XMLConvertStructure

func (me Invoice2) XMLConvertStructure() (HeadFields []InvoiceDataElement, err error)

XMLConvertStructure Converts the XML string data into structural data and checks fields

type InvoiceDataElement

type InvoiceDataElement struct {
	Name        string
	ID          string
	Value       string
	Code        TCode
	DataType    string
	Description string
	Error       error
}

type InvoiceLine

type InvoiceLine struct {
	XMLName             xml.Name            `xml:"InvoiceLine,omitempty" json:"InvoiceLine,omitempty"`
	ID                  ID                  `xml:"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2 ID,omitempty" json:"ID,omitempty"`
	Note                Note                `xml:"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2 Note,omitempty" json:"Note,omitempty"`
	InvoicedQuantity    InvoicedQuantity    `` /* 135-byte string literal not displayed */
	LineExtensionAmount LineExtensionAmount `` /* 141-byte string literal not displayed */
	InvoicePeriod       InvoicePeriod       `` /* 133-byte string literal not displayed */
	OrderLineReference  OrderLineReference  `` /* 143-byte string literal not displayed */
	Item                Item                `xml:"urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2 Item,omitempty" json:"Item,omitempty"`
	Price               Price               `xml:"urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2 Price,omitempty" json:"Price,omitempty"`
}

type InvoicePeriod

type InvoicePeriod struct {
	XMLName   xml.Name  `xml:"InvoicePeriod,omitempty" json:"InvoicePeriod,omitempty"`
	StartDate StartDate `xml:"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2 StartDate,omitempty" json:"StartDate,omitempty"`
	EndDate   EndDate   `xml:"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2 EndDate,omitempty" json:"EndDate,omitempty"`
}

type InvoiceTypeCode

type InvoiceTypeCode struct {
	XMLName xml.Name `xml:"InvoiceTypeCode,omitempty" json:"InvoiceTypeCode,omitempty"`
	Value   string   `xml:",chardata" json:",omitempty"`
}

type InvoicedQuantity

type InvoicedQuantity struct {
	XMLName      xml.Name `xml:"InvoicedQuantity,omitempty" json:"InvoicedQuantity,omitempty"`
	AttrunitCode string   `xml:"unitCode,attr"  json:",omitempty"`
	Value        string   `xml:",chardata" json:",omitempty"`
}

type IssueDate

type IssueDate struct {
	XMLName xml.Name `xml:"IssueDate,omitempty" json:"IssueDate,omitempty"`
	Value   string   `xml:",chardata" json:",omitempty"`
}

type Item

type Item struct {
	XMLName                   xml.Name                  `xml:"Item,omitempty" json:"Item,omitempty"`
	Description               Description               `xml:"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2 Description,omitempty" json:"Description,omitempty"`
	Name                      Name                      `xml:"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2 Name,omitempty" json:"Name,omitempty"`
	SellersItemIdentification SellersItemIdentification `` /* 157-byte string literal not displayed */
	CommodityClassification   CommodityClassification   `` /* 153-byte string literal not displayed */
	ClassifiedTaxCategory     ClassifiedTaxCategory     `` /* 149-byte string literal not displayed */
}

type ItemClassificationCode

type ItemClassificationCode struct {
	XMLName    xml.Name `xml:"ItemClassificationCode,omitempty" json:"ItemClassificationCode,omitempty"`
	AttrlistID string   `xml:"listID,attr"  json:",omitempty"`
	Value      string   `xml:",chardata" json:",omitempty"`
}

type JobTitle

type JobTitle struct {
	XMLName xml.Name `xml:"JobTitle,omitempty" json:"JobTitle,omitempty"`
	Value   string   `xml:",chardata" json:",omitempty"`
}

type LegalMonetaryTotal

type LegalMonetaryTotal struct {
	XMLName             xml.Name            `xml:"LegalMonetaryTotal,omitempty" json:"LegalMonetaryTotal,omitempty"`
	LineExtensionAmount LineExtensionAmount `` /* 141-byte string literal not displayed */
	TaxExclusiveAmount  TaxExclusiveAmount  `` /* 139-byte string literal not displayed */
	TaxInclusiveAmount  TaxInclusiveAmount  `` /* 139-byte string literal not displayed */
	PayableAmount       PayableAmount       `` /* 129-byte string literal not displayed */
}

type LineExtensionAmount

type LineExtensionAmount struct {
	XMLName        xml.Name `xml:"LineExtensionAmount,omitempty" json:"LineExtensionAmount,omitempty"`
	AttrcurrencyID string   `xml:"currencyID,attr"  json:",omitempty"`
	Value          string   `xml:",chardata" json:",omitempty"`
}

type LineID

type LineID struct {
	XMLName xml.Name `xml:"LineID,omitempty" json:"LineID,omitempty"`
	Value   string   `xml:",chardata" json:",omitempty"`
}

type MiddleName

type MiddleName struct {
	XMLName xml.Name `xml:"MiddleName,omitempty" json:"MiddleName,omitempty"`
	Value   string   `xml:",chardata" json:",omitempty"`
}

type MultiplierFactorNumeric

type MultiplierFactorNumeric struct {
	XMLName xml.Name `xml:"MultiplierFactorNumeric,omitempty" json:"MultiplierFactorNumeric,omitempty"`
	Value   string   `xml:",chardata" json:",omitempty"`
}

type Name

type Name struct {
	XMLName xml.Name `xml:"Name,omitempty" json:"Name,omitempty"`
	Value   string   `xml:",chardata" json:",omitempty"`
}

type Note

type Note struct {
	XMLName xml.Name `xml:"Note,omitempty" json:"Note,omitempty"`
	Value   string   `xml:",chardata" json:",omitempty"`
}

type OrderLineReference

type OrderLineReference struct {
	XMLName xml.Name `xml:"OrderLineReference,omitempty" json:"OrderLineReference,omitempty"`
	LineID  LineID   `xml:"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2 LineID,omitempty" json:"LineID,omitempty"`
}

type OrderReference

type OrderReference struct {
	XMLName xml.Name `xml:"OrderReference,omitempty" json:"OrderReference,omitempty"`
	ID      ID       `xml:"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2 ID,omitempty" json:"ID,omitempty"`
}

type Party

type Party struct {
	XMLName             xml.Name            `xml:"Party,omitempty" json:"Party,omitempty"`
	EndpointID          EndpointID          `xml:"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2 EndpointID,omitempty" json:"EndpointID,omitempty"`
	PartyName           PartyName           `xml:"urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2 PartyName,omitempty" json:"PartyName,omitempty"`
	PartyIdentification PartyIdentification `` /* 145-byte string literal not displayed */
	PostalAddress       PostalAddress       `` /* 133-byte string literal not displayed */
	Person              Person              `xml:"urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2 Person,omitempty" json:"Person,omitempty"`
	PartyTaxScheme      PartyTaxScheme      `` /* 135-byte string literal not displayed */
	PartyLegalEntity    PartyLegalEntity    `` /* 139-byte string literal not displayed */
	Contact             Contact             `xml:"urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2 Contact,omitempty" json:"Contact,omitempty"`
}

type PartyIdentification

type PartyIdentification struct {
	XMLName xml.Name `xml:"PartyIdentification,omitempty" json:"PartyIdentification,omitempty"`
	ID      ID       `xml:"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2 ID,omitempty" json:"ID,omitempty"`
}

type PartyLegalEntity

type PartyLegalEntity struct {
	XMLName          xml.Name         `xml:"PartyLegalEntity,omitempty" json:"PartyLegalEntity,omitempty"`
	RegistrationName RegistrationName `` /* 135-byte string literal not displayed */
	CompanyID        CompanyID        `xml:"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2 CompanyID,omitempty" json:"CompanyID,omitempty"`
	CompanyLegalForm CompanyLegalForm `` /* 135-byte string literal not displayed */
}

type PartyName

type PartyName struct {
	XMLName xml.Name `xml:"PartyName,omitempty" json:"PartyName,omitempty"`
	Name    Name     `xml:"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2 Name,omitempty" json:"Name,omitempty"`
}

type PartyTaxScheme

type PartyTaxScheme struct {
	XMLName   xml.Name  `xml:"PartyTaxScheme,omitempty" json:"PartyTaxScheme,omitempty"`
	CompanyID CompanyID `xml:"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2 CompanyID,omitempty" json:"CompanyID,omitempty"`
	TaxScheme TaxScheme `xml:"urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2 TaxScheme,omitempty" json:"TaxScheme,omitempty"`
}

type PayableAmount

type PayableAmount struct {
	XMLName        xml.Name `xml:"PayableAmount,omitempty" json:"PayableAmount,omitempty"`
	AttrcurrencyID string   `xml:"currencyID,attr"  json:",omitempty"`
	Value          string   `xml:",chardata" json:",omitempty"`
}

type PayeeFinancialAccount

type PayeeFinancialAccount struct {
	XMLName xml.Name `xml:"PayeeFinancialAccount,omitempty" json:"PayeeFinancialAccount,omitempty"`
	ID      ID       `xml:"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2 ID,omitempty" json:"ID,omitempty"`
}

type PayeeParty

type PayeeParty struct {
	XMLName             xml.Name            `xml:"PayeeParty,omitempty" json:"PayeeParty,omitempty"`
	PartyIdentification PartyIdentification `` /* 145-byte string literal not displayed */
	PartyLegalEntity    PartyLegalEntity    `` /* 139-byte string literal not displayed */
	PartyName           PartyName           `xml:"urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2 PartyName,omitempty" json:"PartyName,omitempty"`
}

type PaymentMeans

type PaymentMeans struct {
	XMLName               xml.Name              `xml:"PaymentMeans,omitempty" json:"PaymentMeans,omitempty"`
	PaymentMeansCode      PaymentMeansCode      `` /* 135-byte string literal not displayed */
	PayeeFinancialAccount PayeeFinancialAccount `` /* 149-byte string literal not displayed */
}

type PaymentMeansCode

type PaymentMeansCode struct {
	XMLName xml.Name `xml:"PaymentMeansCode,omitempty" json:"PaymentMeansCode,omitempty"`
	Value   string   `xml:",chardata" json:",omitempty"`
}

type PaymentTerms

type PaymentTerms struct {
	XMLName xml.Name `xml:"PaymentTerms,omitempty" json:"PaymentTerms,omitempty"`
	Note    *Note    `xml:"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2 Note,omitempty" json:"Note,omitempty"`
}

type Percent

type Percent struct {
	XMLName xml.Name `xml:"Percent,omitempty" json:"Percent,omitempty"`
	Value   string   `xml:",chardata" json:",omitempty"`
}

type Person

type Person struct {
	XMLName    xml.Name   `xml:"Person,omitempty" json:"Person,omitempty"`
	FamilyName FamilyName `xml:"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2 FamilyName,omitempty" json:"FamilyName,omitempty"`
	FirstName  FirstName  `xml:"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2 FirstName,omitempty" json:"FirstName,omitempty"`
	JobTitle   JobTitle   `xml:"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2 JobTitle,omitempty" json:"JobTitle,omitempty"`
	MiddleName MiddleName `xml:"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2 MiddleName,omitempty" json:"MiddleName,omitempty"`
}

type PostalAddress

type PostalAddress struct {
	XMLName              xml.Name             `xml:"PostalAddress,omitempty" json:"PostalAddress,omitempty"`
	StreetName           StreetName           `xml:"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2 StreetName,omitempty" json:"StreetName,omitempty"`
	CityName             CityName             `xml:"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2 CityName,omitempty" json:"CityName,omitempty"`
	PostalZone           PostalZone           `xml:"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2 PostalZone,omitempty" json:"PostalZone,omitempty"`
	Country              Country              `xml:"urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2 Country,omitempty" json:"Country,omitempty"`
	AdditionalStreetName AdditionalStreetName `` /* 143-byte string literal not displayed */
	BuildingNumber       BuildingNumber       `` /* 131-byte string literal not displayed */
	CountrySubentityCode CountrySubentityCode `` /* 143-byte string literal not displayed */
	CountrySubentity     CountrySubentity     `` /* 135-byte string literal not displayed */
	Department           Department           `xml:"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2 Department,omitempty" json:"Department,omitempty"`
	ID                   ID                   `xml:"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2 ID,omitempty" json:"ID,omitempty"`
	Postbox              Postbox              `xml:"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2 Postbox,omitempty" json:"Postbox,omitempty"`
}

type PostalZone

type PostalZone struct {
	XMLName xml.Name `xml:"PostalZone,omitempty" json:"PostalZone,omitempty"`
	Value   string   `xml:",chardata" json:",omitempty"`
}

type Postbox

type Postbox struct {
	XMLName xml.Name `xml:"Postbox,omitempty" json:"Postbox,omitempty"`
	Value   string   `xml:",chardata" json:",omitempty"`
}

type Price

type Price struct {
	XMLName     xml.Name    `xml:"Price,omitempty" json:"Price,omitempty"`
	PriceAmount PriceAmount `xml:"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2 PriceAmount,omitempty" json:"PriceAmount,omitempty"`
}

type PriceAmount

type PriceAmount struct {
	XMLName        xml.Name `xml:"PriceAmount,omitempty" json:"PriceAmount,omitempty"`
	AttrcurrencyID string   `xml:"currencyID,attr"  json:",omitempty"`
	Value          string   `xml:",chardata" json:",omitempty"`
}

type RegistrationName

type RegistrationName struct {
	XMLName xml.Name `xml:"RegistrationName,omitempty" json:"RegistrationName,omitempty"`
	Value   string   `xml:",chardata" json:",omitempty"`
}

type SellersItemIdentification

type SellersItemIdentification struct {
	XMLName xml.Name `xml:"SellersItemIdentification,omitempty" json:"SellersItemIdentification,omitempty"`
	ID      ID       `xml:"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2 ID,omitempty" json:"ID,omitempty"`
}

type StartDate

type StartDate struct {
	XMLName xml.Name `xml:"StartDate,omitempty" json:"StartDate,omitempty"`
	Value   string   `xml:",chardata" json:",omitempty"`
}

type StreetName

type StreetName struct {
	XMLName xml.Name `xml:"StreetName,omitempty" json:"StreetName,omitempty"`
	Value   string   `xml:",chardata" json:",omitempty"`
}

type TCode

type TCode struct {
	ID   string
	Text string
}

type TCurrencyElement

type TCurrencyElement struct {
	Entity       string
	CurrencyName string
	CurrencyID   string
	CurrencyNum  string
	MinorUnit    string
}

type TaxAmount

type TaxAmount struct {
	XMLName        xml.Name `xml:"TaxAmount,omitempty" json:"TaxAmount,omitempty"`
	AttrcurrencyID string   `xml:"currencyID,attr"  json:",omitempty"`
	Value          string   `xml:",chardata" json:",omitempty"`
}

type TaxCategory

type TaxCategory struct {
	XMLName   xml.Name  `xml:"TaxCategory,omitempty" json:"TaxCategory,omitempty"`
	ID        ID        `xml:"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2 ID,omitempty" json:"ID,omitempty"`
	Percent   Percent   `xml:"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2 Percent,omitempty" json:"Percent,omitempty"`
	TaxScheme TaxScheme `xml:"urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2 TaxScheme,omitempty" json:"TaxScheme,omitempty"`
}

type TaxCurrencyCode

type TaxCurrencyCode struct {
	XMLName xml.Name `xml:"TaxCurrencyCode,omitempty" json:"TaxCurrencyCode,omitempty"`
	Value   string   `xml:",chardata" json:",omitempty"`
}

type TaxExclusiveAmount

type TaxExclusiveAmount struct {
	XMLName        xml.Name `xml:"TaxExclusiveAmount,omitempty" json:"TaxExclusiveAmount,omitempty"`
	AttrcurrencyID string   `xml:"currencyID,attr"  json:",omitempty"`
	Value          string   `xml:",chardata" json:",omitempty"`
}

type TaxInclusiveAmount

type TaxInclusiveAmount struct {
	XMLName        xml.Name `xml:"TaxInclusiveAmount,omitempty" json:"TaxInclusiveAmount,omitempty"`
	AttrcurrencyID string   `xml:"currencyID,attr"  json:",omitempty"`
	Value          string   `xml:",chardata" json:",omitempty"`
}

type TaxPointDate

type TaxPointDate struct {
	XMLName xml.Name `xml:"TaxPointDate,omitempty" json:"TaxPointDate,omitempty"`
	Value   string   `xml:",chardata" json:",omitempty"`
}

type TaxScheme

type TaxScheme struct {
	XMLName xml.Name `xml:"TaxScheme,omitempty" json:"TaxScheme,omitempty"`
	ID      ID       `xml:"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2 ID,omitempty" json:"ID,omitempty"`
}

type TaxSubtotal

type TaxSubtotal struct {
	XMLName       xml.Name      `xml:"TaxSubtotal,omitempty" json:"TaxSubtotal,omitempty"`
	TaxableAmount TaxableAmount `` /* 129-byte string literal not displayed */
	TaxAmount     TaxAmount     `xml:"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2 TaxAmount,omitempty" json:"TaxAmount,omitempty"`
	TaxCategory   TaxCategory   `` /* 129-byte string literal not displayed */
}

type TaxTotal

type TaxTotal struct {
	XMLName     xml.Name    `xml:"TaxTotal,omitempty" json:"TaxTotal,omitempty"`
	TaxAmount   TaxAmount   `xml:"urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2 TaxAmount,omitempty" json:"TaxAmount,omitempty"`
	TaxSubtotal TaxSubtotal `` /* 129-byte string literal not displayed */
}

type TaxableAmount

type TaxableAmount struct {
	XMLName        xml.Name `xml:"TaxableAmount,omitempty" json:"TaxableAmount,omitempty"`
	AttrcurrencyID string   `xml:"currencyID,attr"  json:",omitempty"`
	Value          string   `xml:",chardata" json:",omitempty"`
}

type Telefax

type Telefax struct {
	XMLName xml.Name `xml:"Telefax,omitempty" json:"Telefax,omitempty"`
	Value   string   `xml:",chardata" json:",omitempty"`
}

type Telephone

type Telephone struct {
	XMLName xml.Name `xml:"Telephone,omitempty" json:"Telephone,omitempty"`
	Value   string   `xml:",chardata" json:",omitempty"`
}

type UBLVersionID

type UBLVersionID struct {
	XMLName xml.Name `xml:"UBLVersionID,omitempty" json:"UBLVersionID,omitempty"`
	Value   string   `xml:",chardata" json:",omitempty"`
}

type URI

type URI struct {
	XMLName xml.Name `xml:"URI,omitempty" json:"URI,omitempty"`
	Value   string   `xml:",chardata" json:",omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL