Interface IZUGFeRDExportableProduct

  • All Known Implementing Classes:
    Product

    public interface IZUGFeRDExportableProduct
    Mustangproject's ZUGFeRD implementation Necessary interface for ZUGFeRD exporter Licensed under the APLv2
    Version:
    1.2.0 dated 2014-05-10
    Author:
    jstaerk
    • Method Detail

      • getUnit

        java.lang.String getUnit()
        Unit code of the product Most common ones are C62 one (piece) DAY day HAR hectare HUR hour KGM kilogram KTM kilometre KWH kilowatt hour LS lump sum LTR litre MIN minute MMK square millimetre MMT millimetre MTK square metre MTQ cubic metre MTR metre NAR number of articles NPR number of pairs P1 percent SET set TNE tonne (metric ton) WEE week
        Returns:
        a UN/ECE rec 20 unit code see https://www.unece.org/fileadmin/DAM/cefact/recommendations/rec20/rec20_rev3_Annex2e.pdf
      • getName

        java.lang.String getName()
        Short name of the product
        Returns:
        Short name of the product
      • getDescription

        java.lang.String getDescription()
        long description of the product
        Returns:
        long description of the product
      • getSellerAssignedID

        default java.lang.String getSellerAssignedID()
        Get the ID that had been assigned by the seller to identify the product
        Returns:
        seller assigned product ID
      • getBuyerAssignedID

        default java.lang.String getBuyerAssignedID()
        Get the ID that had been assigned by the buyer to identify the product
        Returns:
        buyer assigned product ID
      • getVATPercent

        java.math.BigDecimal getVATPercent()
        VAT percent of the product (e.g. 19, or 5.1 if you like)
        Returns:
        VAT percent of the product
      • isIntraCommunitySupply

        default boolean isIntraCommunitySupply()
      • isReverseCharge

        default boolean isReverseCharge()
      • getTaxCategoryCode

        default java.lang.String getTaxCategoryCode()
      • getGlobalID

        default java.lang.String getGlobalID()
        customer global identification assigned by the seller
        Returns:
        customer identification
      • getGlobalIDScheme

        default java.lang.String getGlobalIDScheme()
        customer global identification scheme
        Returns:
        customer identification
      • getTaxExemptionReason

        default java.lang.String getTaxExemptionReason()
      • getCountryOfOrigin

        default java.lang.String getCountryOfOrigin()
      • getAttributes

        default java.util.HashMap<java.lang.String,​java.lang.String> getAttributes()
      • getAllowances

        default IZUGFeRDAllowanceCharge[] getAllowances()
        product level discounts (AppliedTradeAllowanceCharge, will change net price)
        Returns:
        array of the discounts on a single product
      • getCharges

        default IZUGFeRDAllowanceCharge[] getCharges()
        product level charges (AppliedTradeAllowanceCharge, will change net price)
        Returns:
        array of the additional charges on the product
      • getClassifications

        default IDesignatedProductClassification[] getClassifications()
        Detailed information about the product
        Returns:
        an array containing the product classifications or null if not set