public class ZUGFeRD2PullProvider extends java.lang.Object implements IXMLProvider
| Modifier and Type | Field and Description |
|---|---|
protected TransactionCalculator |
calc |
protected Profile |
profile |
protected IExportableTransaction |
trans |
protected byte[] |
zugferdData |
| Constructor and Description |
|---|
ZUGFeRD2PullProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
currencyFormat(java.math.BigDecimal value) |
void |
generateXML(IExportableTransaction trans) |
protected java.lang.String |
getAllowanceChargeStr(IZUGFeRDAllowanceCharge allowance,
IAbsoluteValueProvider item)
returns the XML for a charge or allowance on item level
|
protected java.lang.String |
getItemTotalAllowanceChargeStr(IZUGFeRDAllowanceCharge allowance,
IAbsoluteValueProvider item)
returns the XML for a charge or allowance on item total level
|
Profile |
getProfile() |
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)
|
byte[] |
getXML() |
protected java.lang.String |
priceFormat(java.math.BigDecimal value) |
protected java.lang.String |
quantityFormat(java.math.BigDecimal value) |
void |
setProfile(Profile p) |
void |
setTest()
enables the flag to indicate a test invoice in the XML structure
|
protected java.lang.String |
vatFormat(java.math.BigDecimal value) |
protected byte[] zugferdData
protected IExportableTransaction trans
protected TransactionCalculator calc
protected Profile profile
public void setTest()
setTest in interface IXMLProviderprotected java.lang.String vatFormat(java.math.BigDecimal value)
protected java.lang.String currencyFormat(java.math.BigDecimal value)
protected java.lang.String priceFormat(java.math.BigDecimal value)
protected java.lang.String quantityFormat(java.math.BigDecimal value)
public byte[] getXML()
getXML in interface IXMLProviderpublic Profile getProfile()
getProfile in interface IXMLProviderprotected java.lang.String getTradePartyAsXML(IZUGFeRDExportableTradeParty party, boolean isSender, boolean isShipToTradeParty)
party - any sender, recipient, seller or legal party involvedisSender - some attributes are allowed only for senders in certain profilesisShipToTradeParty - some attributes are allowed only for senders or recipientsprotected java.lang.String getAllowanceChargeStr(IZUGFeRDAllowanceCharge allowance, IAbsoluteValueProvider item)
allowance - the allowance or charge on this itemitem - the itemprotected java.lang.String getItemTotalAllowanceChargeStr(IZUGFeRDAllowanceCharge allowance, IAbsoluteValueProvider item)
allowance - the allowance or chargeitem - the linepublic void generateXML(IExportableTransaction trans)
generateXML in interface IXMLProviderpublic void setProfile(Profile p)
setProfile in interface IXMLProviderCopyright © 2023. All rights reserved.