Allow to specify customer ID

This commit is contained in:
jstaerk
2020-11-12 06:48:55 +01:00
parent e1881a3891
commit 599320462d

View File

@@ -1,8 +1,6 @@
package org.mustangproject; package org.mustangproject;
import org.mustangproject.ZUGFeRD.IZUGFeRDExportableContact; import org.mustangproject.ZUGFeRD.*;
import org.mustangproject.ZUGFeRD.IZUGFeRDExportableTradeParty;
import org.mustangproject.ZUGFeRD.IZUGFeRDTradeSettlement;
import org.w3c.dom.Node; import org.w3c.dom.Node;
import org.w3c.dom.NodeList; import org.w3c.dom.NodeList;
@@ -12,6 +10,7 @@ public class TradeParty implements IZUGFeRDExportableTradeParty {
protected String name, zip, street, location, country; protected String name, zip, street, location, country;
protected String taxID = null, vatID = null; protected String taxID = null, vatID = null;
protected String ID = null;
protected String additionalAddress = null; protected String additionalAddress = null;
protected ArrayList<BankDetails> bankDetails = new ArrayList<BankDetails>(); protected ArrayList<BankDetails> bankDetails = new ArrayList<BankDetails>();
protected Contact contact = null; protected Contact contact = null;
@@ -88,6 +87,16 @@ public class TradeParty implements IZUGFeRDExportableTradeParty {
} }
@Override
public String getID() {
return ID;
}
public TradeParty setID(String ID) {
this.ID = ID;
return this;
}
public TradeParty setContact(Contact c) { public TradeParty setContact(Contact c) {
this.contact = c; this.contact = c;
return this; return this;
@@ -202,4 +211,5 @@ public class TradeParty implements IZUGFeRDExportableTradeParty {
return this; return this;
} }
} }