Skip to content

Commit

Permalink
Merge pull request #26 from iamport/feature/add-new-again-api-params
Browse files Browse the repository at this point in the history
again api 누락된 파라미터 추가
  • Loading branch information
anymate98 authored Jun 15, 2023
2 parents b95eb21 + b28d1d9 commit ee8f5eb
Show file tree
Hide file tree
Showing 3 changed files with 109 additions and 3 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.22</version>
<version>0.2.23</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.17</version>
<version>0.2.23</version>
<packaging>jar</packaging>

<name>IamportRestClient</name>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.siot.IamportRestClient.request;

import java.math.BigDecimal;
import java.util.List;

import com.google.gson.annotations.SerializedName;

Expand All @@ -16,9 +15,15 @@ public class AgainPaymentData {
@SerializedName("amount")
private BigDecimal amount;

@SerializedName("tax_free")
private BigDecimal tax_free;

@SerializedName("vat")
private BigDecimal vat;

@SerializedName("vat_amount")
private BigDecimal vat_amount;

@SerializedName("currency")
private String currency;

Expand Down Expand Up @@ -49,12 +54,41 @@ public class AgainPaymentData {
@SerializedName("extra")
private ExtraNaverUseCfmEntry extra;

@SerializedName("interest_free_by_merchant")
private boolean interest_free_by_merchant;

@SerializedName("use_card_point")
private boolean use_card_point;

@SerializedName("custom_data")
private String custom_data;

@SerializedName("notice_url")
private String notice_url;

@SerializedName("product_type")
private String product_type;

@SerializedName("product_count")
private int product_count;

@SerializedName("bypass")
private String bypass;

public AgainPaymentData(String customer_uid, String merchant_uid, BigDecimal amount) {
this.customer_uid = customer_uid;
this.merchant_uid = merchant_uid;
this.amount = amount;
}

public BigDecimal getTaxFree() {
return tax_free;
}

public void setTaxFree(BigDecimal tax_free) {
this.tax_free = tax_free;
}

public BigDecimal getVat() {
return vat;
}
Expand All @@ -63,6 +97,14 @@ public void setVat(BigDecimal vat) {
this.vat = vat;
}

public BigDecimal getVatAmount() {
return vat_amount;
}

public void setVatAmount(BigDecimal vat_amount) {
this.vat_amount = vat_amount;
}

public String getName() {
return name;
}
Expand Down Expand Up @@ -131,7 +173,71 @@ public void setBrowser_ip(String browser_ip) {
this.browser_ip = browser_ip;
}

public String getBrowser_ip() {
return browser_ip;
}

public void setCurrency(String currency) {
this.currency = currency;
}

public String getCurrency() {
return currency;
}

public void setInterestFreeByMerchant(boolean interest_free_by_merchant) {
this.interest_free_by_merchant = interest_free_by_merchant;
}

public boolean getInterestFreeByMerchant() {
return interest_free_by_merchant;
}

public void setUseCardPoint(boolean use_card_point) {
this.use_card_point = use_card_point;
}

public boolean getUseCardPoint() {
return use_card_point;
}

public void setCustomData(String custom_data) {
this.custom_data = custom_data;
}

public String getCustomData() {
return custom_data;
}

public void setNoticeUrl(String notice_url) {
this.notice_url = notice_url;
}

public String getNoticeUrl() {
return notice_url;
}

public void setProductType(String product_type) {
this.product_type = product_type;
}

public String getProductType() {
return product_type;
}

public void setProductCount(int product_count) {
this.product_count = product_count;
}

public int getProductCount() {
return product_count;
}

public void setBypass(String bypass) {
this.bypass = bypass;
}

public String getBypass() {
return bypass;
}
}

0 comments on commit ee8f5eb

Please sign in to comment.