Skip to content

Commit

Permalink
Merge pull request #5 from iamport/feature/certification-adding-origi…
Browse files Browse the repository at this point in the history
…n-to-response

feat: Certification Get API Response에 origin  추가
  • Loading branch information
smc0210 authored Jan 26, 2021
2 parents 3a615b3 + 563acd6 commit ca70ec7
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pom.xml에 아래의 내용을 추가해주세요.
<dependency>
<groupId>com.github.iamport</groupId>
<artifactId>iamport-rest-client-java</artifactId>
<version>0.2.13</version>
<version>0.2.14</version>
</dependency>
</dependencies>
```
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<groupId>com.github.iamport</groupId>
<artifactId>iamport-rest-client</artifactId>
<version>0.2.13</version>
<version>0.2.14</version>
<packaging>jar</packaging>

<name>IamportRestClient</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -92,5 +95,8 @@ public String getUniqueKey() {
public String getUniqueInSite() {
return unique_in_site;
}


public String getOrigin() {
return origin;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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> 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());

Expand Down

0 comments on commit ca70ec7

Please sign in to comment.