added legalorganisation class

This commit is contained in:
jstaerk
2022-02-16 20:27:50 +01:00
parent ddb71f9ed5
commit 18ef5044b3

View File

@@ -0,0 +1,50 @@
package org.mustangproject;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import org.mustangproject.ZUGFeRD.*;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;
/***
* A organisation, i.e. usually a company
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class LegalOrganisation implements IZUGFeRDLegalOrganisation {
protected String ID = null;
protected String SchemeID = null;
public LegalOrganisation() {
}
public LegalOrganisation(String ID, String scheme) {
this.ID=ID;
this.SchemeID=scheme;
}
@Override
public String getID() {
return ID;
}
@Override
public String getSchemeID() {
return SchemeID;
}
public LegalOrganisation setID(String id) {
this.ID=id;
return this;
}
public LegalOrganisation setSchemeID(String scheme) {
SchemeID=scheme;
return this;
}
}