-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat : again, cancel API 사용시 naverpay 옵션 parameter 대응
- Loading branch information
Showing
5 changed files
with
153 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
217 changes: 114 additions & 103 deletions
217
src/main/java/com/siot/IamportRestClient/request/AgainPaymentData.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,112 +1,123 @@ | ||
package com.siot.IamportRestClient.request; | ||
|
||
import java.math.BigDecimal; | ||
import java.util.List; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
|
||
public class AgainPaymentData { | ||
|
||
@SerializedName("customer_uid") | ||
private String customer_uid; | ||
|
||
@SerializedName("merchant_uid") | ||
private String merchant_uid; | ||
|
||
@SerializedName("amount") | ||
private BigDecimal amount; | ||
|
||
@SerializedName("vat") | ||
private BigDecimal vat; | ||
|
||
@SerializedName("name") | ||
private String name; | ||
|
||
@SerializedName("buyer_name") | ||
private String buyer_name; | ||
|
||
@SerializedName("buyer_email") | ||
private String buyer_email; | ||
|
||
@SerializedName("buyer_tel") | ||
private String buyer_tel; | ||
|
||
@SerializedName("buyer_addr") | ||
private String buyer_addr; | ||
|
||
@SerializedName("buyer_postcode") | ||
private String buyer_postcode; | ||
|
||
@SerializedName("card_quota") | ||
private int card_quota; | ||
|
||
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 getVat() { | ||
return vat; | ||
} | ||
|
||
public void setVat(BigDecimal vat) { | ||
this.vat = vat; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
public String getBuyerName() { | ||
return buyer_name; | ||
} | ||
|
||
public void setBuyerName(String buyer_name) { | ||
this.buyer_name = buyer_name; | ||
} | ||
|
||
public String getBuyerEmail() { | ||
return buyer_email; | ||
} | ||
|
||
public void setBuyerEmail(String buyer_email) { | ||
this.buyer_email = buyer_email; | ||
} | ||
|
||
public String getBuyerTel() { | ||
return buyer_tel; | ||
} | ||
|
||
public void setBuyerTel(String buyer_tel) { | ||
this.buyer_tel = buyer_tel; | ||
} | ||
|
||
public String getBuyerAddr() { | ||
return buyer_addr; | ||
} | ||
|
||
public void setBuyerAddr(String buyer_addr) { | ||
this.buyer_addr = buyer_addr; | ||
} | ||
|
||
public String getBuyerPostcode() { | ||
return buyer_postcode; | ||
} | ||
|
||
public void setBuyerPostcode(String buyer_postcode) { | ||
this.buyer_postcode = buyer_postcode; | ||
} | ||
|
||
public int getCardQuota() { | ||
return card_quota; | ||
} | ||
|
||
public void setCardQuota(int card_quota) { | ||
this.card_quota = card_quota; | ||
} | ||
|
||
@SerializedName("customer_uid") | ||
private String customer_uid; | ||
|
||
@SerializedName("merchant_uid") | ||
private String merchant_uid; | ||
|
||
@SerializedName("amount") | ||
private BigDecimal amount; | ||
|
||
@SerializedName("vat") | ||
private BigDecimal vat; | ||
|
||
@SerializedName("name") | ||
private String name; | ||
|
||
@SerializedName("buyer_name") | ||
private String buyer_name; | ||
|
||
@SerializedName("buyer_email") | ||
private String buyer_email; | ||
|
||
@SerializedName("buyer_tel") | ||
private String buyer_tel; | ||
|
||
@SerializedName("buyer_addr") | ||
private String buyer_addr; | ||
|
||
@SerializedName("buyer_postcode") | ||
private String buyer_postcode; | ||
|
||
@SerializedName("card_quota") | ||
private int card_quota; | ||
|
||
@SerializedName("extra") | ||
private ExtraNaverUseCfmEntry extra; | ||
|
||
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 getVat() { | ||
return vat; | ||
} | ||
|
||
public void setVat(BigDecimal vat) { | ||
this.vat = vat; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
public String getBuyerName() { | ||
return buyer_name; | ||
} | ||
|
||
public void setBuyerName(String buyer_name) { | ||
this.buyer_name = buyer_name; | ||
} | ||
|
||
public String getBuyerEmail() { | ||
return buyer_email; | ||
} | ||
|
||
public void setBuyerEmail(String buyer_email) { | ||
this.buyer_email = buyer_email; | ||
} | ||
|
||
public String getBuyerTel() { | ||
return buyer_tel; | ||
} | ||
|
||
public void setBuyerTel(String buyer_tel) { | ||
this.buyer_tel = buyer_tel; | ||
} | ||
|
||
public String getBuyerAddr() { | ||
return buyer_addr; | ||
} | ||
|
||
public void setBuyerAddr(String buyer_addr) { | ||
this.buyer_addr = buyer_addr; | ||
} | ||
|
||
public String getBuyerPostcode() { | ||
return buyer_postcode; | ||
} | ||
|
||
public void setBuyerPostcode(String buyer_postcode) { | ||
this.buyer_postcode = buyer_postcode; | ||
} | ||
|
||
public int getCardQuota() { | ||
return card_quota; | ||
} | ||
|
||
public void setCardQuota(int card_quota) { | ||
this.card_quota = card_quota; | ||
} | ||
|
||
public ExtraNaverUseCfmEntry getExtra() { | ||
return extra; | ||
} | ||
|
||
public void setExtra(ExtraNaverUseCfmEntry extra) { | ||
this.extra = extra; | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
src/main/java/com/siot/IamportRestClient/request/ExtraNaverUseCfmEntry.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.siot.IamportRestClient.request; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
|
||
import java.math.BigDecimal; | ||
import java.util.Date; | ||
|
||
public class ExtraNaverUseCfmEntry { | ||
|
||
@SerializedName("naverUseCfm") | ||
private String naverUseCfm; | ||
|
||
public ExtraNaverUseCfmEntry(String naverUseCfm) { | ||
this.naverUseCfm = naverUseCfm; | ||
} | ||
|
||
public String getNaverUseCfm() { | ||
return naverUseCfm; | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
src/main/java/com/siot/IamportRestClient/request/ExtraRequesterEntry.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.siot.IamportRestClient.request; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
|
||
public class ExtraRequesterEntry { | ||
|
||
@SerializedName("requester") | ||
private String requester; | ||
|
||
public ExtraRequesterEntry(String requester) { | ||
this.requester = requester; | ||
} | ||
|
||
public String getRequester() { | ||
return requester; | ||
} | ||
} |