Documentation
¶
Index ¶
- Constants
- type Agreement
- type Amount
- type AmountWithCurrency
- type BillingPeriod
- type CIISerializer
- type CategoryTradeTax
- type CrossIndustryInvoice
- type DateType
- type DefinedTradeContact
- type Delivery
- type Email
- type ExchangedDocument
- type ExchangedDocumentContext
- type IDType
- type IDWithScheme
- type Indicator
- type LineAgreement
- type LineDelivery
- type LineDocument
- type LineItem
- type LineMonetarySummation
- type LineSettlement
- type MonetarySummation
- type Note
- type Occurrence
- type PayeeAccount
- type PaymentMeans
- type PaymentTerms
- type Phone
- type Price
- type Quantity
- type Settlement
- type SupplyChainTradeTransaction
- type TaxID
- type TaxRegistration
- type TradeAddress
- type TradeAllowanceCharge
- type TradeID
- type TradeParty
- type TradeProduct
- type TradeTax
- type UniversalCommunication
Constants ¶
View Source
const ( Rsmns = "urn:un:unece:uncefact:data:standard:CrossIndustryInvoice:100" Ramns = "urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100" Udtns = "urn:un:unece:uncefact:data:standard:UnqualifiedDataType:100" // Peppol & XRechnung: Der Business Process BusinessProcessType = "urn:fdc:peppol.eu:2017:poacc:billing:01:1.0" // Profil ID: XRechnung 3.0 ProfileXRechnung3 = "urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0" // Profil ID: ZUGFeRD 2.3 / Factur-X (Profil EN 16931) ProfileZugferdComfort = "urn:cen.eu:en16931:2017#compliant#urn:factur-x.eu:1p0:en16931" TypeCodeCommercialInvoice = "380" DateFormatYYYYMMDD = "102" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agreement ¶
type Agreement struct {
BuyerReference string `xml:"ram:BuyerReference,omitempty"`
Seller TradeParty `xml:"ram:SellerTradeParty"`
Buyer TradeParty `xml:"ram:BuyerTradeParty"`
}
type AmountWithCurrency ¶
type BillingPeriod ¶
type CIISerializer ¶
type CIISerializer struct{}
func NewSerializer ¶
func NewSerializer() *CIISerializer
type CategoryTradeTax ¶ added in v0.2.0
type CrossIndustryInvoice ¶
type CrossIndustryInvoice struct {
XMLName xml.Name `xml:"rsm:CrossIndustryInvoice"`
Rsm string `xml:"xmlns:rsm,attr"`
Ram string `xml:"xmlns:ram,attr"`
Udt string `xml:"xmlns:udt,attr"`
Context ExchangedDocumentContext `xml:"rsm:ExchangedDocumentContext"`
Header ExchangedDocument `xml:"rsm:ExchangedDocument"`
Transaction SupplyChainTradeTransaction `xml:"rsm:SupplyChainTradeTransaction"`
}
type DefinedTradeContact ¶
type Delivery ¶
type Delivery struct {
ShipTo *TradeParty `xml:"ram:ShipToTradeParty,omitempty"`
Occurrence *Occurrence `xml:"ram:ActualDeliverySupplyChainEvent,omitempty"`
}
type ExchangedDocument ¶
type IDWithScheme ¶
type LineAgreement ¶
type LineAgreement struct {
NetPrice Price `xml:"ram:NetPriceProductTradePrice"`
}
type LineDelivery ¶
type LineDelivery struct {
BilledQuantity Quantity `xml:"ram:BilledQuantity"`
}
type LineDocument ¶
type LineDocument struct {
LineID string `xml:"ram:LineID"`
}
type LineItem ¶
type LineItem struct {
DocumentLineDocument LineDocument `xml:"ram:AssociatedDocumentLineDocument"`
Product TradeProduct `xml:"ram:SpecifiedTradeProduct"`
Agreement LineAgreement `xml:"ram:SpecifiedLineTradeAgreement"`
Delivery LineDelivery `xml:"ram:SpecifiedLineTradeDelivery"`
Settlement LineSettlement `xml:"ram:SpecifiedLineTradeSettlement"`
}
type LineMonetarySummation ¶
type LineMonetarySummation struct {
LineTotalAmount Amount `xml:"ram:LineTotalAmount"`
}
type LineSettlement ¶
type LineSettlement struct {
Tax TradeTax `xml:"ram:ApplicableTradeTax"`
Summation LineMonetarySummation `xml:"ram:SpecifiedTradeSettlementLineMonetarySummation"`
}
type MonetarySummation ¶
type MonetarySummation struct {
LineTotalAmount Amount `xml:"ram:LineTotalAmount"`
ChargeTotalAmount Amount `xml:"ram:ChargeTotalAmount"`
AllowanceTotalAmount Amount `xml:"ram:AllowanceTotalAmount"`
TaxBasisTotalAmount Amount `xml:"ram:TaxBasisTotalAmount"`
TaxTotalAmount AmountWithCurrency `xml:"ram:TaxTotalAmount"`
GrandTotalAmount Amount `xml:"ram:GrandTotalAmount"`
DuePayableAmount Amount `xml:"ram:DuePayableAmount"`
}
type Occurrence ¶
type Occurrence struct {
OccurrenceDate DateType `xml:"ram:OccurrenceDateTime>udt:DateTimeString"`
}
type PayeeAccount ¶
type PayeeAccount struct {
IBANID string `xml:"ram:IBANID"`
}
type PaymentMeans ¶
type PaymentMeans struct {
TypeCode string `xml:"ram:TypeCode"`
PayeeAccount *PayeeAccount `xml:"ram:PayeePartyCreditorFinancialAccount,omitempty"`
}
type PaymentTerms ¶
type PaymentTerms struct {
DueDate *DateType `xml:"ram:DueDateDateTime>udt:DateTimeString,omitempty"`
}
type Settlement ¶
type Settlement struct {
InvoiceCurrency string `xml:"ram:InvoiceCurrencyCode"`
PaymentMeans []*PaymentMeans `xml:"ram:SpecifiedTradeSettlementPaymentMeans,omitempty"`
ApplicableTradeTaxes []TradeTax `xml:"ram:ApplicableTradeTax"`
BillingPeriod *BillingPeriod `xml:"ram:BillingSpecifiedPeriod,omitempty"`
AllowanceCharges []TradeAllowanceCharge `xml:"ram:SpecifiedTradeAllowanceCharge,omitempty"`
PaymentTerms *PaymentTerms `xml:"ram:SpecifiedTradePaymentTerms,omitempty"`
MonetarySummation MonetarySummation `xml:"ram:SpecifiedTradeSettlementHeaderMonetarySummation"`
}
type SupplyChainTradeTransaction ¶
type SupplyChainTradeTransaction struct {
IncludedLineItems []LineItem `xml:"ram:IncludedSupplyChainTradeLineItem"`
Agreement Agreement `xml:"ram:ApplicableHeaderTradeAgreement"`
Delivery Delivery `xml:"ram:ApplicableHeaderTradeDelivery,omitempty"`
Settlement Settlement `xml:"ram:ApplicableHeaderTradeSettlement"`
}
type TaxRegistration ¶
type TaxRegistration struct {
ID TaxID `xml:"ram:ID"`
}
type TradeAddress ¶
type TradeAllowanceCharge ¶ added in v0.2.0
type TradeAllowanceCharge struct {
ChargeIndicator Indicator `xml:"ram:ChargeIndicator"`
ActualAmount string `xml:"ram:ActualAmount"`
Reason string `xml:"ram:Reason,omitempty"`
CategoryTax CategoryTradeTax `xml:"ram:CategoryTradeTax"`
}
type TradeParty ¶
type TradeParty struct {
ID []TradeID `xml:"ram:ID,omitempty"`
GlobalID *TradeID `xml:"ram:GlobalID,omitempty"`
Name string `xml:"ram:Name"`
Contact *DefinedTradeContact `xml:"ram:DefinedTradeContact,omitempty"`
PostalAddress TradeAddress `xml:"ram:PostalTradeAddress"`
ElectronicURI *UniversalCommunication `xml:"ram:URIUniversalCommunication,omitempty"`
TaxRegistration *TaxRegistration `xml:"ram:SpecifiedTaxRegistration,omitempty"`
}
type TradeProduct ¶
type TradeProduct struct {
Name string `xml:"ram:Name"`
}
type TradeTax ¶
type TradeTax struct {
CalculatedAmount *Amount `xml:"ram:CalculatedAmount,omitempty"`
TypeCode string `xml:"ram:TypeCode"`
ExemptionReason string `xml:"ram:ExemptionReason,omitempty"`
BasisAmount *Amount `xml:"ram:BasisAmount,omitempty"`
CategoryCode string `xml:"ram:CategoryCode"`
ExemptionReasonCode string `xml:"ram:ExemptionReasonCode,omitempty"`
RateApplicablePercent string `xml:"ram:RateApplicablePercent"`
}
type UniversalCommunication ¶
type UniversalCommunication struct {
URIID *IDWithScheme `xml:"ram:URIID,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.