updated javadoc
This commit is contained in:
@@ -31,36 +31,37 @@ public interface IZUGFeRDExportableContact {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* First and last name of the recipient
|
* First and last name of the recipient
|
||||||
* @return
|
* @return First and last name of the recipient
|
||||||
*/
|
*/
|
||||||
String getName();
|
String getName();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Postal code of the recipient
|
* Postal code of the recipient
|
||||||
* @return
|
* @return Postal code of the recipient
|
||||||
*/
|
*/
|
||||||
String getZIP();
|
String getZIP();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* VAT ID (Umsatzsteueridentifikationsnummer) of the contact
|
* VAT ID (Umsatzsteueridentifikationsnummer) of the contact
|
||||||
* @return
|
* @return VAT ID (Umsatzsteueridentifikationsnummer) of the contact
|
||||||
*/
|
*/
|
||||||
String getVATID();
|
String getVATID();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* two-letter country code of the contact
|
* two-letter country code of the contact
|
||||||
* @return
|
* @return two-letter iso country code of the contact
|
||||||
*/
|
*/
|
||||||
String getCountry();
|
String getCountry();
|
||||||
|
|
||||||
/***
|
/***
|
||||||
* Returns the city of the contact
|
* Returns the city of the contact
|
||||||
* @return
|
* @return Returns the city of the recipient
|
||||||
*/
|
*/
|
||||||
String getLocation();
|
String getLocation();
|
||||||
|
|
||||||
/***
|
/***
|
||||||
* Returns the street address (street+number) of the contact
|
* Returns the street address (street+number) of the contact
|
||||||
|
* @return street address (street+number) of the contact
|
||||||
*/
|
*/
|
||||||
String getStreet();
|
String getStreet();
|
||||||
|
|
||||||
|
|||||||
@@ -37,13 +37,13 @@ public interface IZUGFeRDExportableItem {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* The price of one item excl. taxes
|
* The price of one item excl. taxes
|
||||||
* @return
|
* @return The price of one item excl. taxes
|
||||||
*/
|
*/
|
||||||
BigDecimal getPrice();
|
BigDecimal getPrice();
|
||||||
|
|
||||||
/***
|
/***
|
||||||
* how many
|
* how many
|
||||||
* @return
|
* @return the quantity of the item
|
||||||
*/
|
*/
|
||||||
BigDecimal getQuantity();
|
BigDecimal getQuantity();
|
||||||
|
|
||||||
|
|||||||
@@ -54,25 +54,25 @@ public interface IZUGFeRDExportableProduct {
|
|||||||
TNE tonne (metric ton)
|
TNE tonne (metric ton)
|
||||||
WEE week
|
WEE week
|
||||||
|
|
||||||
* @return
|
* @return a UN/ECE rec 20 unit code see https://www.unece.org/fileadmin/DAM/cefact/recommendations/rec20/rec20_rev3_Annex2e.pdf
|
||||||
*/
|
*/
|
||||||
String getUnit();
|
String getUnit();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Short name of the product
|
* Short name of the product
|
||||||
* @return
|
* @return Short name of the product
|
||||||
*/
|
*/
|
||||||
String getName();
|
String getName();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* long description of the product
|
* long description of the product
|
||||||
* @return
|
* @return long description of the product
|
||||||
*/
|
*/
|
||||||
String getDescription();
|
String getDescription();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* VAT percent of the product (e.g. 19, or 5.1 if you like)
|
* VAT percent of the product (e.g. 19, or 5.1 if you like)
|
||||||
* @return
|
* @return VAT percent of the product
|
||||||
*/
|
*/
|
||||||
BigDecimal getVATPercent();
|
BigDecimal getVATPercent();
|
||||||
|
|
||||||
|
|||||||
@@ -34,19 +34,20 @@ public interface IZUGFeRDExportableTransaction {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Number, typically invoice number of the invoice
|
* Number, typically invoice number of the invoice
|
||||||
* @return
|
* @return invoice number
|
||||||
*/
|
*/
|
||||||
String getNumber();
|
String getNumber();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* the date when the invoice was created
|
* the date when the invoice was created
|
||||||
* @return
|
* @return when the invoice was created
|
||||||
*/
|
*/
|
||||||
Date getIssueDate();
|
Date getIssueDate();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* this should be the full sender institution name, details, manager and tax registration like.
|
* this should be the full sender institution name, details, manager and tax registration.
|
||||||
* It is one of the few functions which may return null.
|
* It is one of the few functions which may return null.
|
||||||
|
* e.g.
|
||||||
*
|
*
|
||||||
Lieferant GmbH
|
Lieferant GmbH
|
||||||
Lieferantenstraße 20
|
Lieferantenstraße 20
|
||||||
@@ -54,13 +55,13 @@ public interface IZUGFeRDExportableTransaction {
|
|||||||
Deutschland
|
Deutschland
|
||||||
Geschäftsführer: Hans Muster
|
Geschäftsführer: Hans Muster
|
||||||
Handelsregisternummer: H A 123
|
Handelsregisternummer: H A 123
|
||||||
* @return
|
* @return null or full sender institution name, details, manager and tax registration
|
||||||
*/
|
*/
|
||||||
String getOwnOrganisationFullPlaintextInfo();
|
String getOwnOrganisationFullPlaintextInfo();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* when the invoice is to be paid
|
* when the invoice is to be paid
|
||||||
* @return
|
* @return when the invoice is to be paid
|
||||||
*/
|
*/
|
||||||
Date getDueDate();
|
Date getDueDate();
|
||||||
|
|
||||||
@@ -72,91 +73,92 @@ public interface IZUGFeRDExportableTransaction {
|
|||||||
|
|
||||||
/***
|
/***
|
||||||
* the recipient
|
* the recipient
|
||||||
* @return
|
* @return the recipient of the invoice
|
||||||
*/
|
*/
|
||||||
IZUGFeRDExportableContact getRecipient();
|
IZUGFeRDExportableContact getRecipient();
|
||||||
|
|
||||||
/***
|
/***
|
||||||
* BIC of the sender
|
* BIC of the sender
|
||||||
* @return
|
* @return the BIC code of the recipient sender's bank
|
||||||
*/
|
*/
|
||||||
String getOwnBIC();
|
String getOwnBIC();
|
||||||
|
|
||||||
/***
|
/***
|
||||||
* Bank name of the sender
|
* Bank name of the sender
|
||||||
* @return
|
* @return the name of the sender's bank
|
||||||
*/
|
*/
|
||||||
String getOwnBankName();
|
String getOwnBankName();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* IBAN of the sender
|
* IBAN of the sender
|
||||||
* @return
|
* @return the IBAN of the invoice sender's bank account
|
||||||
*/
|
*/
|
||||||
String getOwnIBAN();
|
String getOwnIBAN();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tax ID (not VAT ID) of the sender
|
* Tax ID (not VAT ID) of the sender
|
||||||
|
* @return Tax ID (not VAT ID) of the sender
|
||||||
*/
|
*/
|
||||||
String getOwnTaxID();
|
String getOwnTaxID();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* VAT ID (Umsatzsteueridentifikationsnummer) of the sender
|
* VAT ID (Umsatzsteueridentifikationsnummer) of the sender
|
||||||
* @return
|
* @return VAT ID (Umsatzsteueridentifikationsnummer) of the sender
|
||||||
*/
|
*/
|
||||||
String getOwnVATID();
|
String getOwnVATID();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* own name
|
* own name
|
||||||
* @return
|
* @return the sender's organisation name
|
||||||
*/
|
*/
|
||||||
String getOwnOrganisationName();
|
String getOwnOrganisationName();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* own street address
|
* own street address
|
||||||
* @return
|
* @return sender street address
|
||||||
*/
|
*/
|
||||||
String getOwnStreet();
|
String getOwnStreet();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* own street postal code
|
* own street postal code
|
||||||
* @return
|
* @return sender postal code
|
||||||
*/
|
*/
|
||||||
String getOwnZIP();
|
String getOwnZIP();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* own city
|
* own city
|
||||||
* @return
|
* @return the invoice sender's city
|
||||||
*/
|
*/
|
||||||
String getOwnLocation();
|
String getOwnLocation();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* own two digit country code
|
* own two digit country code
|
||||||
* @return
|
* @return the invoice senders two character country iso code
|
||||||
*/
|
*/
|
||||||
String getOwnCountry();
|
String getOwnCountry();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* get delivery date
|
* get delivery date
|
||||||
* @return
|
* @return the day the goods have been delivered
|
||||||
*/
|
*/
|
||||||
Date getDeliveryDate();
|
Date getDeliveryDate();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* get main invoice currency used on the invoice
|
* get main invoice currency used on the invoice
|
||||||
* @return
|
* @return three character currency of this invoice
|
||||||
*/
|
*/
|
||||||
String getCurrency();
|
String getCurrency();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* get payment information text. e.g. Bank transfer
|
* get payment information text. e.g. Bank transfer
|
||||||
* @return
|
* @return payment information text
|
||||||
*/
|
*/
|
||||||
String getOwnPaymentInfoText();
|
String getOwnPaymentInfoText();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* get payment term descriptional text
|
* get payment term descriptional text
|
||||||
* e.g. Bis zum 22.10.2015 ohne Abzug
|
* e.g. Bis zum 22.10.2015 ohne Abzug
|
||||||
* @return
|
* @return get payment terms
|
||||||
*/
|
*/
|
||||||
String getPaymentTermDescription();
|
String getPaymentTermDescription();
|
||||||
|
|
||||||
@@ -164,7 +166,7 @@ public interface IZUGFeRDExportableTransaction {
|
|||||||
* get reference document number
|
* get reference document number
|
||||||
* typically used for Invoice Corrections
|
* typically used for Invoice Corrections
|
||||||
* Will be added as IncludedNote in comfort profile
|
* Will be added as IncludedNote in comfort profile
|
||||||
* @return
|
* @return the ID of the document this document refers to
|
||||||
*/
|
*/
|
||||||
String getReferenceNumber();
|
String getReferenceNumber();
|
||||||
|
|
||||||
|
|||||||
@@ -154,7 +154,7 @@ public class ZUGFeRD2PullProvider implements IXMLProvider {
|
|||||||
* empty for no taxes, or e.g. 19=>190 and 7=>14 if 1000 Eur were applicable
|
* empty for no taxes, or e.g. 19=>190 and 7=>14 if 1000 Eur were applicable
|
||||||
* to 19% VAT (=>190 EUR VAT) and 200 EUR were applicable to 7% (=>14 EUR VAT)
|
* to 19% VAT (=>190 EUR VAT) and 200 EUR were applicable to 7% (=>14 EUR VAT)
|
||||||
* 190 Eur
|
* 190 Eur
|
||||||
* @return
|
* @return which taxes have been used with which amounts in this invoice
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private HashMap<BigDecimal, VATAmount> getVATPercentAmountMap() {
|
private HashMap<BigDecimal, VATAmount> getVATPercentAmountMap() {
|
||||||
|
|||||||
@@ -480,7 +480,7 @@ public class ZUGFeRDExporter implements Closeable {
|
|||||||
/****
|
/****
|
||||||
* Returns the PDFBox PDF Document
|
* Returns the PDFBox PDF Document
|
||||||
*
|
*
|
||||||
* @return PDDocument
|
* @return PDDocument the PDFBox PDF
|
||||||
*/
|
*/
|
||||||
public PDDocument getDoc() {
|
public PDDocument getDoc() {
|
||||||
return doc;
|
return doc;
|
||||||
|
|||||||
@@ -884,7 +884,7 @@ class ZUGFeRDTransactionModelConverter {
|
|||||||
* 19% VAT (=>190 EUR VAT) and 200 EUR were applicable to 7% (=>14 EUR VAT)
|
* 19% VAT (=>190 EUR VAT) and 200 EUR were applicable to 7% (=>14 EUR VAT)
|
||||||
* 190 Eur
|
* 190 Eur
|
||||||
*
|
*
|
||||||
* @return HashMap<BigDecimal, VATAmount>
|
* @return HashMap<BigDecimal, VATAmount> which taxes have been used with which amounts
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private HashMap<BigDecimal, VATAmount> getVATPercentAmountMap() {
|
private HashMap<BigDecimal, VATAmount> getVATPercentAmountMap() {
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ public class StatRun {
|
|||||||
|
|
||||||
/***
|
/***
|
||||||
* returns final statistics
|
* returns final statistics
|
||||||
* @return
|
* @return english string with linefeeds detailling number of files, directories, number of pdfs and of zugferd files
|
||||||
*/
|
*/
|
||||||
public String getSummaryLine() {
|
public String getSummaryLine() {
|
||||||
|
|
||||||
@@ -77,7 +77,7 @@ public class StatRun {
|
|||||||
}
|
}
|
||||||
/***
|
/***
|
||||||
* show that something is happening
|
* show that something is happening
|
||||||
* @return String
|
* @return String, usually a dot
|
||||||
*/
|
*/
|
||||||
public String getOutputLine() {
|
public String getOutputLine() {
|
||||||
return ".";
|
return ".";
|
||||||
|
|||||||
@@ -72,14 +72,14 @@ public class Toecount {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/***
|
/***
|
||||||
* Asks the user for a String (offering a defaultValue) conforming to a Regex
|
* Asks the user (repeatedly, if neccessary) on the command line for a String (offering a defaultValue) conforming to a Regex
|
||||||
* pattern
|
* pattern
|
||||||
*
|
*
|
||||||
* @param prompt
|
* @param prompt the question to be asked to the user
|
||||||
* @param defaultValue
|
* @param defaultValue the default return value if user hits enter
|
||||||
* @param pattern
|
* @param pattern a regex of acceptable values
|
||||||
* @return
|
* @return the user answer conforming to pattern
|
||||||
* @throws Exception
|
* @throws Exception if pattern not compielable or IOexception on input
|
||||||
*/
|
*/
|
||||||
protected static String getStringFromUser(String prompt, String defaultValue, String pattern) throws Exception {
|
protected static String getStringFromUser(String prompt, String defaultValue, String pattern) throws Exception {
|
||||||
String input = "";
|
String input = "";
|
||||||
@@ -117,8 +117,8 @@ public class Toecount {
|
|||||||
|
|
||||||
/***
|
/***
|
||||||
* Prompts the user for a input or output filename
|
* Prompts the user for a input or output filename
|
||||||
* @param prompt
|
* @param the text the user is asked
|
||||||
* @param defaultFilename
|
* @param a default Filename
|
||||||
* @param expectedExtension will warn if filename does not match expected file extension
|
* @param expectedExtension will warn if filename does not match expected file extension
|
||||||
* @param ensureFileExists will warn if file does NOT exist (for input files)
|
* @param ensureFileExists will warn if file does NOT exist (for input files)
|
||||||
* @param ensureFileNotExists will warn if file DOES exist (for output files)
|
* @param ensureFileNotExists will warn if file DOES exist (for output files)
|
||||||
|
|||||||
Reference in New Issue
Block a user