diff --git a/modules/minigl/src/main/java/org/jpos/gl/GLEntry.java b/modules/minigl/src/main/java/org/jpos/gl/GLEntry.java index fae91c66dd..c0de8c9a66 100644 --- a/modules/minigl/src/main/java/org/jpos/gl/GLEntry.java +++ b/modules/minigl/src/main/java/org/jpos/gl/GLEntry.java @@ -258,6 +258,15 @@ public Element toXML (boolean deep) { elem.addContent (amount); return elem; } + + /** + * @param tag to add + * @return this + */ + public GLEntry addTag (String tag) { + getTags().add(tag); + return this; + } public boolean equals(Object other) { if ( !(other instanceof GLEntry) ) return false; GLEntry castOther = (GLEntry) other; diff --git a/modules/minigl/src/main/java/org/jpos/gl/GLTransaction.java b/modules/minigl/src/main/java/org/jpos/gl/GLTransaction.java index e2a141eb10..53c4f7ce39 100644 --- a/modules/minigl/src/main/java/org/jpos/gl/GLTransaction.java +++ b/modules/minigl/src/main/java/org/jpos/gl/GLTransaction.java @@ -136,6 +136,16 @@ public void setTags (Tags tags) { public Tags getTags () { return tags; } + + /** + * @param tag to add + * @return this + */ + public GLTransaction addTag (String tag) { + getTags().add(tag); + return this; + } + /** * Entries. * @param entries transaction entries