diff --git a/secom-core-jakarta/src/main/java/org/grad/secom/core/models/AccessResponseObject.java b/secom-core-jakarta/src/main/java/org/grad/secom/core/models/AccessResponseObject.java index 04bbfbe5..302e328c 100644 --- a/secom-core-jakarta/src/main/java/org/grad/secom/core/models/AccessResponseObject.java +++ b/secom-core-jakarta/src/main/java/org/grad/secom/core/models/AccessResponseObject.java @@ -26,6 +26,8 @@ public class AccessResponseObject { // Class Variables private String responseText; + private String transactionIdentifier; + /** * Gets response text. * @@ -43,4 +45,23 @@ public String getResponseText() { public void setResponseText(String responseText) { this.responseText = responseText; } + + + /** + * Gets transaction identifier. + * + * @return the transactionIdentifier + */ + public String getTransactionIdentifier() { + return transactionIdentifier; + } + + /** + * Sets transaction identifier. + * + * @param transactionIdentifier the transactionIdentifier to set + */ + public void setTransactionIdentifier(String transactionIdentifier) { + this.transactionIdentifier = transactionIdentifier; + } } diff --git a/secom-core-jakarta/src/test/java/org/grad/secom/core/models/AccessResponseObjectTest.java b/secom-core-jakarta/src/test/java/org/grad/secom/core/models/AccessResponseObjectTest.java index c4636ce1..31cebb71 100644 --- a/secom-core-jakarta/src/test/java/org/grad/secom/core/models/AccessResponseObjectTest.java +++ b/secom-core-jakarta/src/test/java/org/grad/secom/core/models/AccessResponseObjectTest.java @@ -43,6 +43,7 @@ void setup() { // Generate a new object this.obj = new AccessResponseObject(); this.obj.setResponseText("Test"); + this.obj.setTransactionIdentifier("Ti"); } /** @@ -57,6 +58,7 @@ void testJson() throws JsonProcessingException { // Make sure it looks OK assertNotNull(result); assertEquals(this.obj.getResponseText(), result.getResponseText()); + assertEquals(this.obj.getTransactionIdentifier(), result.getTransactionIdentifier()); } } \ No newline at end of file diff --git a/secom-core/src/main/java/org/grad/secom/core/models/AccessResponseObject.java b/secom-core/src/main/java/org/grad/secom/core/models/AccessResponseObject.java index 04bbfbe5..e54ad981 100644 --- a/secom-core/src/main/java/org/grad/secom/core/models/AccessResponseObject.java +++ b/secom-core/src/main/java/org/grad/secom/core/models/AccessResponseObject.java @@ -26,6 +26,8 @@ public class AccessResponseObject { // Class Variables private String responseText; + private String transactionIdentifier; + /** * Gets response text. * @@ -43,4 +45,22 @@ public String getResponseText() { public void setResponseText(String responseText) { this.responseText = responseText; } + + /** + * Gets transaction identifier. + * + * @return the transactionIdentifier + */ + public String getTransactionIdentifier() { + return transactionIdentifier; + } + + /** + * Sets transaction identifier. + * + * @param transactionIdentifier the transactionIdentifier to set + */ + public void setTransactionIdentifier(String transactionIdentifier) { + this.transactionIdentifier = transactionIdentifier; + } } diff --git a/secom-core/src/test/java/org/grad/secom/core/models/AccessResponseObjectTest.java b/secom-core/src/test/java/org/grad/secom/core/models/AccessResponseObjectTest.java index c4636ce1..31cebb71 100644 --- a/secom-core/src/test/java/org/grad/secom/core/models/AccessResponseObjectTest.java +++ b/secom-core/src/test/java/org/grad/secom/core/models/AccessResponseObjectTest.java @@ -43,6 +43,7 @@ void setup() { // Generate a new object this.obj = new AccessResponseObject(); this.obj.setResponseText("Test"); + this.obj.setTransactionIdentifier("Ti"); } /** @@ -57,6 +58,7 @@ void testJson() throws JsonProcessingException { // Make sure it looks OK assertNotNull(result); assertEquals(this.obj.getResponseText(), result.getResponseText()); + assertEquals(this.obj.getTransactionIdentifier(), result.getTransactionIdentifier()); } } \ No newline at end of file