diff --git a/README.md b/README.md index a3b92c4..9c4503d 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ pom.xml에 아래의 내용을 추가해주세요. com.github.iamport iamport-rest-client-java - 0.2.13 + 0.2.14 ``` diff --git a/pom.xml b/pom.xml index 42fb955..18cdca9 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ com.github.iamport iamport-rest-client - 0.2.13 + 0.2.14 jar IamportRestClient diff --git a/src/main/java/com/siot/IamportRestClient/response/Certification.java b/src/main/java/com/siot/IamportRestClient/response/Certification.java index 95bd128..79e5f50 100644 --- a/src/main/java/com/siot/IamportRestClient/response/Certification.java +++ b/src/main/java/com/siot/IamportRestClient/response/Certification.java @@ -45,6 +45,9 @@ public class Certification { @SerializedName("unique_in_site") String unique_in_site; + @SerializedName("origin") + String origin; + public String getImpUid() { return imp_uid; } @@ -92,5 +95,8 @@ public String getUniqueKey() { public String getUniqueInSite() { return unique_in_site; } - + + public String getOrigin() { + return origin; + } } diff --git a/src/test/java/com/siot/IamportRestClient/IamportRestTest.java b/src/test/java/com/siot/IamportRestClient/IamportRestTest.java index 53cb1f9..1dbafea 100644 --- a/src/test/java/com/siot/IamportRestClient/IamportRestTest.java +++ b/src/test/java/com/siot/IamportRestClient/IamportRestTest.java @@ -412,13 +412,16 @@ public void testPaycoUpdateOrderStatus() { @Test public void testCertificationByImpUid() { - String test_imp_uid = "imp_339323965143"; +// String test_imp_uid = "imp_339323965143"; + // origin 검증을 위해 is not null인 imp_uid로 변경 + String test_imp_uid = "imp_992536806181"; try { IamportResponse certification_response = client.certificationByImpUid(test_imp_uid); assertNotNull(certification_response.getResponse()); assertEquals(test_imp_uid, certification_response.getResponse().getImpUid()); + assertEquals("http://kicc.iamport.kr/pages/certi", certification_response.getResponse().getOrigin()); } catch (IamportResponseException e) { System.out.println(e.getMessage());