From 8c1ab03438d8c8f506146a52d0158f71d6a09391 Mon Sep 17 00:00:00 2001 From: Brian Date: Tue, 6 Dec 2022 07:18:48 -0500 Subject: [PATCH 1/2] DX-3052 --- .../sdk/model/ImportTnCheckerPayload.java | 23 +++++++++++++++++++ .../iris/sdk/ImportTnCheckerTests.java | 2 ++ 2 files changed, 25 insertions(+) diff --git a/src/main/java/com/bandwidth/iris/sdk/model/ImportTnCheckerPayload.java b/src/main/java/com/bandwidth/iris/sdk/model/ImportTnCheckerPayload.java index ccaa2e8..4875cb3 100644 --- a/src/main/java/com/bandwidth/iris/sdk/model/ImportTnCheckerPayload.java +++ b/src/main/java/com/bandwidth/iris/sdk/model/ImportTnCheckerPayload.java @@ -8,9 +8,16 @@ @XmlAccessorType(XmlAccessType.FIELD) public class ImportTnCheckerPayload extends BaseModel { + @XmlElement( name = "SiteId") + private int siteId; + + @XmlElement( name = "SipPeer") + private int sipPeer; + @XmlElementWrapper(name = "TelephoneNumbers") @XmlElement(name = "TelephoneNumber") private List telephoneNumberList; + @XmlElementWrapper(name = "ImportTnErrors") @XmlElement(name ="ImportTnError") private List importTnErrorList; @@ -30,4 +37,20 @@ public List getImportTnErrorList() { public void setImportTnErrorList(List importTnErrorList) { this.importTnErrorList = importTnErrorList; } + + public int getSiteId() { + return siteId; + } + + public void setSiteId(int siteId) { + this.siteId = siteId; + } + + public int getSipPeer() { + return sipPeer; + } + + public void setSipPeer(int sipPeer) { + this.sipPeer = sipPeer; + } } diff --git a/src/test/java/com/bandwidth/iris/sdk/ImportTnCheckerTests.java b/src/test/java/com/bandwidth/iris/sdk/ImportTnCheckerTests.java index 91a2054..15c3ea8 100644 --- a/src/test/java/com/bandwidth/iris/sdk/ImportTnCheckerTests.java +++ b/src/test/java/com/bandwidth/iris/sdk/ImportTnCheckerTests.java @@ -30,6 +30,8 @@ public void TestCheck() throws Exception { ImportTnCheckerPayload payload = new ImportTnCheckerPayload(); payload.setTelephoneNumberList(numbers); + payload.setSipPeer(500025); + payload.setSiteId(486); ImportTnCheckerResponse response = ImportTnChecker.Check(getDefaultClient(), payload ); ImportTnCheckerPayload resPayload = response.getImportTnCheckerPayload(); From 5c0522bd275a58f9238d0fb26c19efa6d79076c0 Mon Sep 17 00:00:00 2001 From: Brian Date: Tue, 6 Dec 2022 10:42:52 -0500 Subject: [PATCH 2/2] Update src/main/java/com/bandwidth/iris/sdk/model/ImportTnCheckerPayload.java Co-authored-by: Cameron Koegel <53310569+ckoegel@users.noreply.github.com> --- .../com/bandwidth/iris/sdk/model/ImportTnCheckerPayload.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/bandwidth/iris/sdk/model/ImportTnCheckerPayload.java b/src/main/java/com/bandwidth/iris/sdk/model/ImportTnCheckerPayload.java index 4875cb3..464e7ab 100644 --- a/src/main/java/com/bandwidth/iris/sdk/model/ImportTnCheckerPayload.java +++ b/src/main/java/com/bandwidth/iris/sdk/model/ImportTnCheckerPayload.java @@ -11,7 +11,7 @@ public class ImportTnCheckerPayload extends BaseModel { @XmlElement( name = "SiteId") private int siteId; - @XmlElement( name = "SipPeer") + @XmlElement( name = "SipPeerId") private int sipPeer; @XmlElementWrapper(name = "TelephoneNumbers")