public class Invoice extends java.lang.Object implements IExportableTransaction
| Modifier and Type | Field and Description |
|---|---|
protected java.util.ArrayList<IZUGFeRDAllowanceCharge> |
Allowances |
protected java.lang.String |
buyerOrderReferencedDocumentID |
protected java.lang.String |
buyerOrderReferencedDocumentIssueDateTime |
protected java.util.ArrayList<IZUGFeRDAllowanceCharge> |
Charges |
protected java.lang.String |
contractReferencedDocument |
protected java.lang.String |
currency |
protected TradeParty |
deliveryAddress |
protected java.util.Date |
deliveryDate |
protected java.lang.String |
despatchAdviceReferencedDocumentID |
protected java.util.Date |
detailedDeliveryDateStart |
protected java.util.Date |
detailedDeliveryPeriodEnd |
protected java.lang.String |
documentCode |
protected java.lang.String |
documentName |
protected java.util.Date |
dueDate |
protected java.lang.String |
invoiceReferencedDocumentID |
protected java.util.Date |
invoiceReferencedIssueDate |
protected java.util.Date |
issueDate |
protected java.util.ArrayList<IZUGFeRDAllowanceCharge> |
LogisticsServiceCharges |
protected java.util.ArrayList<java.lang.String> |
notes |
protected java.lang.String |
number |
protected java.lang.String |
ownForeignOrganisationID |
protected java.lang.String |
ownOrganisationFullPlaintextInfo |
protected java.lang.String |
ownOrganisationName |
protected java.lang.String |
paymentTermDescription |
protected IZUGFeRDPaymentTerms |
paymentTerms |
protected TradeParty |
recipient |
protected java.lang.String |
referenceNumber |
protected java.lang.String |
sellerOrderReferencedDocumentID |
protected TradeParty |
sender |
protected java.lang.String |
shipToCountry |
protected java.lang.String |
shipToLocation |
protected java.lang.String |
shipToOrganisationID |
protected java.lang.String |
shipToOrganisationName |
protected java.lang.String |
shipToStreet |
protected java.lang.String |
shipToZIP |
protected java.lang.String |
specifiedProcuringProjectID |
protected java.lang.String |
specifiedProcuringProjectName |
protected java.math.BigDecimal |
totalPrepaidAmount |
protected java.lang.String |
vatDueDateTypeCode |
protected java.util.ArrayList<FileAttachment> |
xmlEmbeddedFiles |
protected java.util.ArrayList<IZUGFeRDExportableItem> |
ZFItems |
| Constructor and Description |
|---|
Invoice() |
| Modifier and Type | Method and Description |
|---|---|
Invoice |
addAllowance(IZUGFeRDAllowanceCharge izac)
adds a document level rebate
|
Invoice |
addCharge(IZUGFeRDAllowanceCharge izac)
adds a document level addition to the price
|
Invoice |
addItem(IZUGFeRDExportableItem item)
required
adds invoice "lines" :-)
|
Invoice |
addNote(java.lang.String text)
adds a free text paragraph, which will become a includedNote element
|
Invoice |
embedFileInXML(FileAttachment fa) |
FileAttachment[] |
getAdditionalReferencedDocuments()
get additional referenced documents acccording to BG-24 XRechnung
(Rechnungsbegruendende Unterlagen), i.e.
|
java.lang.String |
getBuyerOrderReferencedDocumentID()
get the ID of the BuyerOrderReferencedDocument, which sits in the
ApplicableSupplyChainTradeAgreement
|
java.lang.String |
getBuyerOrderReferencedDocumentIssueDateTime()
get the issue timestamp of the BuyerOrderReferencedDocument, which sits in
the ApplicableSupplyChainTradeAgreement
|
java.lang.String |
getContractReferencedDocument() |
java.lang.String |
getCurrency()
get main invoice currency used on the invoice
|
TradeParty |
getDeliveryAddress()
delivery address, i.e. ram:ShipToTradeParty (only supported for zf2)
|
java.util.Date |
getDeliveryDate()
get delivery date
|
java.lang.String |
getDespatchAdviceReferencedDocumentID() |
java.util.Date |
getDetailedDeliveryPeriodFrom()
specifies the document level delivery period, will be included in a
BillingSpecifiedPeriod element
|
java.util.Date |
getDetailedDeliveryPeriodTo()
specifies the document level delivery period, will be included in a
BillingSpecifiedPeriod element
|
java.lang.String |
getDocumentCode() |
java.lang.String |
getDocumentName()
appears in /rsm:CrossIndustryDocument/rsm:HeaderExchangedDocument/ram:Name
|
java.util.Date |
getDueDate()
when the invoice is to be paid
|
java.lang.String |
getInvoiceReferencedDocumentID()
get the ID of the preceding invoice, which is e.g. to be corrected if this is
a correction
|
java.util.Date |
getInvoiceReferencedIssueDate() |
java.util.Date |
getIssueDate()
the date when the invoice was created
|
java.lang.String[] |
getNotes()
additional text description
|
java.lang.String |
getNumber()
Number, typically invoice number of the invoice
|
java.lang.String |
getOwnCountry()
own two digit country code
|
java.lang.String |
getOwnForeignOrganisationID()
supplier identification assigned by the costumer
|
java.lang.String |
getOwnLocation()
own city
|
java.lang.String |
getOwnOrganisationFullPlaintextInfo()
this should be the full sender institution name, details, manager and tax
registration.
|
java.lang.String |
getOwnOrganisationName()
own name
|
java.lang.String |
getOwnStreet()
own street address
|
java.lang.String |
getOwnTaxID()
Tax ID (not VAT ID) of the sender
|
java.lang.String |
getOwnVATID()
VAT ID (Umsatzsteueridentifikationsnummer) of the sender
|
java.lang.String |
getOwnZIP()
own street postal code
|
java.lang.String |
getPaymentTermDescription()
get payment term descriptional text e.g.
|
IZUGFeRDPaymentTerms |
getPaymentTerms()
get payment terms. if set, getPaymentTermDescription() and getDueDate() are
ignored
|
IZUGFeRDExportableTradeParty |
getRecipient()
the recipient
|
java.lang.String |
getReferenceNumber()
get reference document number typically used for Invoice Corrections Will be
added as IncludedNote in comfort profile
|
java.lang.String |
getSellerOrderReferencedDocumentID()
get the ID of the SellerOrderReferencedDocument, which sits in the
ApplicableSupplyChainTradeAgreement/ApplicableHeaderTradeAgreement
|
IZUGFeRDExportableTradeParty |
getSender()
the sender of the invoice
|
java.lang.String |
getShipToCountry()
consignee two digit country code (country code of the organisation the goods
are shipped to)
|
java.lang.String |
getShipToLocation()
consignee city (city of the organisation the goods are shipped to)
|
java.lang.String |
getShipToOrganisationID()
consignee identification (identification of the organisation the goods are
shipped to [assigned by the costumer])
|
java.lang.String |
getShipToOrganisationName()
consignee name (name of the organisation the goods are shipped to)
|
java.lang.String |
getShipToStreet()
consignee street address (street of the organisation the goods are shipped
to)
|
java.lang.String |
getShipToZIP()
consignee street postal code (postal code of the organisation the goods are
shipped to)
|
java.lang.String |
getSpecifiedProcuringProjectID() |
java.lang.String |
getSpecifiedProcuringProjectName() |
java.math.BigDecimal |
getTotalPrepaidAmount()
get the TotalPrepaidAmount located in
SpecifiedTradeSettlementMonetarySummation (v1) or
SpecifiedTradeSettlementHeaderMonetarySummation (v2)
|
IZUGFeRDTradeSettlement[] |
getTradeSettlement()
the payment information for any payment means
|
java.lang.String |
getVATDueDateTypeCode() |
IZUGFeRDAllowanceCharge[] |
getZFAllowances() |
IZUGFeRDAllowanceCharge[] |
getZFCharges() |
IZUGFeRDExportableItem[] |
getZFItems() |
IZUGFeRDAllowanceCharge[] |
getZFLogisticsServiceCharges() |
boolean |
isValid()
checks if all required items are set in order to be able to export it
|
Invoice |
setBuyerOrderReferencedDocumentID(java.lang.String buyerOrderReferencedDocumentID)
usually the order number
|
Invoice |
setBuyerOrderReferencedDocumentIssueDateTime(java.lang.String buyerOrderReferencedDocumentIssueDateTime)
when the order (or whatever reference in BuyerOrderReferencedDocumentID) was issued (@todo switch to date?)
|
Invoice |
setContractReferencedDocument(java.lang.String s)
adds the ID of a contract referenced in the invoice
|
Invoice |
setCorrection(java.lang.String number)
switch type to invoice correction and refer to document number.
|
Invoice |
setCreditNote() |
Invoice |
setCurrency(java.lang.String currency) |
Invoice |
setDeliveryAddress(TradeParty deliveryAddress)
if the delivery address is not the recipient address, it can be specified here
|
Invoice |
setDeliveryDate(java.util.Date deliveryDate) |
Invoice |
setDespatchAdviceReferencedDocumentID(java.lang.String despatchAdviceReferencedDocumentID) |
Invoice |
setDetailedDeliveryPeriod(java.util.Date start,
java.util.Date end)
sets a document level delivery period,
which is optional additional to the mandatory deliverydate
and which will become a BillingSpecifiedPeriod-Element
|
Invoice |
setDocumentCode(java.lang.String documentCode) |
Invoice |
setDocumentName(java.lang.String documentName) |
Invoice |
setDueDate(java.util.Date dueDate) |
Invoice |
setInvoiceReferencedDocumentID(java.lang.String invoiceReferencedDocumentID)
usually in case of a correction the original invoice number
|
Invoice |
setInvoiceReferencedIssueDate(java.util.Date issueDate) |
Invoice |
setIssueDate(java.util.Date issueDate) |
Invoice |
setNumber(java.lang.String number) |
Invoice |
setOwnContact(Contact ownContact)
Deprecated.
use setSender
|
Invoice |
setOwnForeignOrganisationID(java.lang.String ownForeignOrganisationID)
Deprecated.
|
Invoice |
setOwnOrganisationFullPlaintextInfo(java.lang.String ownOrganisationFullPlaintextInfo) |
Invoice |
setOwnOrganisationName(java.lang.String ownOrganisationName)
Deprecated.
|
Invoice |
setOwnTaxID(java.lang.String ownTaxID)
Deprecated.
|
Invoice |
setOwnVATID(java.lang.String ownVATID)
Deprecated.
|
Invoice |
setPaymentTermDescription(java.lang.String paymentTermDescription) |
Invoice |
setPaymentTerms(IZUGFeRDPaymentTerms paymentTerms) |
Invoice |
setRecipient(TradeParty recipient)
required.
|
Invoice |
setReferenceNumber(java.lang.String referenceNumber) |
Invoice |
setSellerOrderReferencedDocumentID(java.lang.String sellerOrderReferencedDocumentID) |
Invoice |
setSender(TradeParty sender)
required.
|
Invoice |
setShipToCountry(java.lang.String shipToCountry) |
Invoice |
setShipToLocation(java.lang.String shipToLocation) |
Invoice |
setShipToOrganisationID(java.lang.String shipToOrganisationID) |
Invoice |
setShipToOrganisationName(java.lang.String shipToOrganisationName) |
Invoice |
setShipToStreet(java.lang.String shipToStreet) |
Invoice |
setShipToZIP(java.lang.String shipToZIP) |
Invoice |
setSpecifiedProcuringProjectID(java.lang.String specifiedProcuringProjectID) |
Invoice |
setSpecifiedProcuringProjectName(java.lang.String specifiedProcuringProjectName) |
Invoice |
setTotalPrepaidAmount(java.math.BigDecimal prepaid)
allow to set a amount which has already been paid
|
Invoice |
setVATDueDateTypeCode(java.lang.String vatDueDateTypeCode)
Decide when the VAT should be collected.
|
void |
setZFItems(java.util.ArrayList<IZUGFeRDExportableItem> ims) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSubjectNote, getTradeSettlementPayment, rebateAgreementExistsprotected java.lang.String documentName
protected java.lang.String documentCode
protected java.lang.String number
protected java.lang.String ownOrganisationFullPlaintextInfo
protected java.lang.String referenceNumber
protected java.lang.String shipToOrganisationID
protected java.lang.String shipToOrganisationName
protected java.lang.String shipToStreet
protected java.lang.String shipToZIP
protected java.lang.String shipToLocation
protected java.lang.String shipToCountry
protected java.lang.String buyerOrderReferencedDocumentID
protected java.lang.String invoiceReferencedDocumentID
protected java.lang.String buyerOrderReferencedDocumentIssueDateTime
protected java.lang.String ownForeignOrganisationID
protected java.lang.String ownOrganisationName
protected java.lang.String currency
protected java.lang.String paymentTermDescription
protected java.util.Date issueDate
protected java.util.Date dueDate
protected java.util.Date deliveryDate
protected TradeParty sender
protected TradeParty recipient
protected TradeParty deliveryAddress
protected java.util.ArrayList<IZUGFeRDExportableItem> ZFItems
protected java.util.ArrayList<java.lang.String> notes
protected java.lang.String sellerOrderReferencedDocumentID
protected java.lang.String contractReferencedDocument
protected java.util.ArrayList<FileAttachment> xmlEmbeddedFiles
protected java.math.BigDecimal totalPrepaidAmount
protected java.util.Date detailedDeliveryDateStart
protected java.util.Date detailedDeliveryPeriodEnd
protected java.util.ArrayList<IZUGFeRDAllowanceCharge> Allowances
protected java.util.ArrayList<IZUGFeRDAllowanceCharge> Charges
protected java.util.ArrayList<IZUGFeRDAllowanceCharge> LogisticsServiceCharges
protected IZUGFeRDPaymentTerms paymentTerms
protected java.util.Date invoiceReferencedIssueDate
protected java.lang.String specifiedProcuringProjectID
protected java.lang.String specifiedProcuringProjectName
protected java.lang.String despatchAdviceReferencedDocumentID
protected java.lang.String vatDueDateTypeCode
public java.lang.String getDocumentName()
IExportableTransactiongetDocumentName in interface IExportableTransactionpublic java.lang.String getContractReferencedDocument()
getContractReferencedDocument in interface IExportableTransactionpublic Invoice setDocumentName(java.lang.String documentName)
public java.lang.String getDocumentCode()
getDocumentCode in interface IExportableTransactionpublic Invoice setDocumentCode(java.lang.String documentCode)
public Invoice embedFileInXML(FileAttachment fa)
public FileAttachment[] getAdditionalReferencedDocuments()
IExportableTransactiongetAdditionalReferencedDocuments in interface IExportableTransactionpublic java.lang.String getNumber()
IExportableTransactiongetNumber in interface IExportableTransactionpublic Invoice setNumber(java.lang.String number)
public Invoice setCorrection(java.lang.String number)
number - the invoice number to be correctedpublic Invoice setCreditNote()
public java.lang.String getOwnOrganisationFullPlaintextInfo()
IExportableTransactionLieferant GmbH Lieferantenstraße 20 80333 München Deutschland Geschäftsführer: Hans Muster Handelsregisternummer: H A 123
getOwnOrganisationFullPlaintextInfo in interface IExportableTransactionpublic Invoice setOwnOrganisationFullPlaintextInfo(java.lang.String ownOrganisationFullPlaintextInfo)
public java.lang.String getReferenceNumber()
IExportableTransactiongetReferenceNumber in interface IExportableTransactionpublic Invoice setReferenceNumber(java.lang.String referenceNumber)
public java.lang.String getShipToOrganisationID()
IExportableTransactiongetShipToOrganisationID in interface IExportableTransactionpublic Invoice setShipToOrganisationID(java.lang.String shipToOrganisationID)
public java.lang.String getShipToOrganisationName()
IExportableTransactiongetShipToOrganisationName in interface IExportableTransactionpublic Invoice setShipToOrganisationName(java.lang.String shipToOrganisationName)
public java.lang.String getShipToStreet()
IExportableTransactiongetShipToStreet in interface IExportableTransactionpublic Invoice setShipToStreet(java.lang.String shipToStreet)
public java.lang.String getShipToZIP()
IExportableTransactiongetShipToZIP in interface IExportableTransactionpublic Invoice setShipToZIP(java.lang.String shipToZIP)
public java.lang.String getShipToLocation()
IExportableTransactiongetShipToLocation in interface IExportableTransactionpublic Invoice setShipToLocation(java.lang.String shipToLocation)
public java.lang.String getShipToCountry()
IExportableTransactiongetShipToCountry in interface IExportableTransactionpublic Invoice setShipToCountry(java.lang.String shipToCountry)
public java.lang.String getBuyerOrderReferencedDocumentID()
IExportableTransactiongetBuyerOrderReferencedDocumentID in interface IExportableTransactionpublic java.lang.String getSellerOrderReferencedDocumentID()
IExportableTransactiongetSellerOrderReferencedDocumentID in interface IExportableTransactionpublic Invoice setSellerOrderReferencedDocumentID(java.lang.String sellerOrderReferencedDocumentID)
public Invoice setBuyerOrderReferencedDocumentID(java.lang.String buyerOrderReferencedDocumentID)
buyerOrderReferencedDocumentID - string with numberpublic Invoice setInvoiceReferencedDocumentID(java.lang.String invoiceReferencedDocumentID)
invoiceReferencedDocumentID - string with numberpublic java.lang.String getInvoiceReferencedDocumentID()
IExportableTransactiongetInvoiceReferencedDocumentID in interface IExportableTransactionpublic java.util.Date getInvoiceReferencedIssueDate()
getInvoiceReferencedIssueDate in interface IExportableTransactionpublic Invoice setInvoiceReferencedIssueDate(java.util.Date issueDate)
public java.lang.String getBuyerOrderReferencedDocumentIssueDateTime()
IExportableTransactiongetBuyerOrderReferencedDocumentIssueDateTime in interface IExportableTransactionpublic Invoice setTotalPrepaidAmount(java.math.BigDecimal prepaid)
prepaid - null is possible to omitpublic java.math.BigDecimal getTotalPrepaidAmount()
IExportableTransactiongetTotalPrepaidAmount in interface IExportableTransactionpublic Invoice setBuyerOrderReferencedDocumentIssueDateTime(java.lang.String buyerOrderReferencedDocumentIssueDateTime)
buyerOrderReferencedDocumentIssueDateTime - IssueDateTime in format CCYY-MM-DDTHH:MM:SSpublic java.lang.String getOwnTaxID()
IExportableTransactiongetOwnTaxID in interface IExportableTransaction@Deprecated public Invoice setOwnTaxID(java.lang.String ownTaxID)
public java.lang.String getOwnVATID()
IExportableTransactiongetOwnVATID in interface IExportableTransaction@Deprecated public Invoice setOwnVATID(java.lang.String ownVATID)
public java.lang.String getOwnForeignOrganisationID()
IExportableTransactiongetOwnForeignOrganisationID in interface IExportableTransaction@Deprecated public Invoice setOwnForeignOrganisationID(java.lang.String ownForeignOrganisationID)
public java.lang.String getOwnOrganisationName()
IExportableTransactiongetOwnOrganisationName in interface IExportableTransaction@Deprecated public Invoice setOwnOrganisationName(java.lang.String ownOrganisationName)
public java.lang.String getOwnStreet()
IExportableTransactiongetOwnStreet in interface IExportableTransactionpublic java.lang.String getOwnZIP()
IExportableTransactiongetOwnZIP in interface IExportableTransactionpublic java.lang.String getOwnLocation()
IExportableTransactiongetOwnLocation in interface IExportableTransactionpublic java.lang.String getOwnCountry()
IExportableTransactiongetOwnCountry in interface IExportableTransactionpublic java.lang.String[] getNotes()
IExportableTransactiongetNotes in interface IExportableTransactionpublic java.lang.String getCurrency()
IExportableTransactiongetCurrency in interface IExportableTransactionpublic Invoice setCurrency(java.lang.String currency)
public java.lang.String getPaymentTermDescription()
IExportableTransactiongetPaymentTermDescription in interface IExportableTransactionpublic Invoice setPaymentTermDescription(java.lang.String paymentTermDescription)
public java.util.Date getIssueDate()
IExportableTransactiongetIssueDate in interface IExportableTransactionpublic Invoice setIssueDate(java.util.Date issueDate)
public java.util.Date getDueDate()
IExportableTransactiongetDueDate in interface IExportableTransactionpublic Invoice setDueDate(java.util.Date dueDate)
public java.util.Date getDeliveryDate()
IExportableTransactiongetDeliveryDate in interface IExportableTransactionpublic Invoice setDeliveryDate(java.util.Date deliveryDate)
public IZUGFeRDExportableTradeParty getSender()
IExportableTransactiongetSender in interface IExportableTransaction@Deprecated public Invoice setOwnContact(Contact ownContact)
ownContact - the sender contactContactpublic IZUGFeRDExportableTradeParty getRecipient()
IExportableTransactiongetRecipient in interface IExportableTransactionpublic Invoice setRecipient(TradeParty recipient)
recipient - the invoicee organisationpublic Invoice setSender(TradeParty sender)
sender - the invoicerpublic IZUGFeRDAllowanceCharge[] getZFAllowances()
getZFAllowances in interface IExportableTransactionpublic IZUGFeRDAllowanceCharge[] getZFCharges()
getZFCharges in interface IExportableTransactionpublic IZUGFeRDAllowanceCharge[] getZFLogisticsServiceCharges()
getZFLogisticsServiceCharges in interface IExportableTransactionpublic IZUGFeRDTradeSettlement[] getTradeSettlement()
IExportableTransactiongetTradeSettlement in interface IExportableTransactionpublic IZUGFeRDPaymentTerms getPaymentTerms()
IExportableTransactiongetPaymentTerms in interface IExportableTransactionpublic Invoice setPaymentTerms(IZUGFeRDPaymentTerms paymentTerms)
public TradeParty getDeliveryAddress()
IExportableTransactiongetDeliveryAddress in interface IExportableTransactionpublic Invoice setDeliveryAddress(TradeParty deliveryAddress)
deliveryAddress - the goods receiving organisationpublic IZUGFeRDExportableItem[] getZFItems()
getZFItems in interface IExportableTransactionpublic void setZFItems(java.util.ArrayList<IZUGFeRDExportableItem> ims)
public Invoice addItem(IZUGFeRDExportableItem item)
item - the invoice lineItempublic boolean isValid()
public Invoice addCharge(IZUGFeRDAllowanceCharge izac)
izac - the charge to be appliedChargepublic Invoice addAllowance(IZUGFeRDAllowanceCharge izac)
izac - the allowance to be appliedAllowancepublic Invoice setContractReferencedDocument(java.lang.String s)
s - the contract numberpublic Invoice setDetailedDeliveryPeriod(java.util.Date start, java.util.Date end)
start - the date of first deliveryend - the date of last deliverypublic java.util.Date getDetailedDeliveryPeriodFrom()
IExportableTransactiongetDetailedDeliveryPeriodFrom in interface IExportableTransactionpublic java.util.Date getDetailedDeliveryPeriodTo()
IExportableTransactiongetDetailedDeliveryPeriodTo in interface IExportableTransactionpublic Invoice addNote(java.lang.String text)
text - freeform UTF8 plain textpublic java.lang.String getSpecifiedProcuringProjectID()
getSpecifiedProcuringProjectID in interface IExportableTransactionpublic Invoice setSpecifiedProcuringProjectID(java.lang.String specifiedProcuringProjectID)
public java.lang.String getDespatchAdviceReferencedDocumentID()
getDespatchAdviceReferencedDocumentID in interface IExportableTransactionpublic Invoice setDespatchAdviceReferencedDocumentID(java.lang.String despatchAdviceReferencedDocumentID)
public java.lang.String getSpecifiedProcuringProjectName()
getSpecifiedProcuringProjectName in interface IExportableTransactionpublic Invoice setSpecifiedProcuringProjectName(java.lang.String specifiedProcuringProjectName)
public java.lang.String getVATDueDateTypeCode()
getVATDueDateTypeCode in interface IExportableTransactionpublic Invoice setVATDueDateTypeCode(java.lang.String vatDueDateTypeCode)
vatDueDateTypeCode - use EventTimeCodeTypeConstantsCopyright © 2023. All rights reserved.