Class ZUGFeRD2PullProvider

    • Constructor Detail

      • ZUGFeRD2PullProvider

        public ZUGFeRD2PullProvider()
    • Method Detail

      • setTest

        public void setTest()
        enables the flag to indicate a test invoice in the XML structure
        Specified by:
        setTest in interface IXMLProvider
      • vatFormat

        protected java.lang.String vatFormat​(java.math.BigDecimal value)
      • currencyFormat

        protected java.lang.String currencyFormat​(java.math.BigDecimal value)
      • priceFormat

        protected java.lang.String priceFormat​(java.math.BigDecimal value)
      • quantityFormat

        protected java.lang.String quantityFormat​(java.math.BigDecimal value)
      • getTradePartyAsXML

        protected java.lang.String getTradePartyAsXML​(IZUGFeRDExportableTradeParty party,
                                                      boolean isSender,
                                                      boolean isShipToTradeParty)
        returns the UN/CEFACT CII XML for companies(tradeparties), which is actually the same for ZF1 (v 2013b) and ZF2 (v 2016b)
        Parameters:
        party - any sender, recipient, seller or legal party involved
        isSender - some attributes are allowed only for senders in certain profiles
        isShipToTradeParty - some attributes are allowed only for senders or recipients
        Returns:
        CII XML
      • getAllowanceChargeStr

        protected java.lang.String getAllowanceChargeStr​(IZUGFeRDAllowanceCharge allowance,
                                                         IAbsoluteValueProvider item)
        returns the XML for a charge or allowance on item level
        Parameters:
        allowance - the allowance or charge on this item
        item - the item
        Returns:
        CII XML
      • getItemTotalAllowanceChargeStr

        protected java.lang.String getItemTotalAllowanceChargeStr​(IZUGFeRDAllowanceCharge allowance,
                                                                  IAbsoluteValueProvider item)
        returns the XML for a charge or allowance on item total level
        Parameters:
        allowance - the allowance or charge
        item - the line
        Returns:
        CII XML