From 8b821e9d143003619b4538fc0a8543cf5a90367c Mon Sep 17 00:00:00 2001 From: Lens0021 / Leslie Date: Fri, 29 Jul 2022 11:16:28 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EB=84=A4=EC=9D=B4=EB=B2=84=20=ED=99=98?= =?UTF-8?q?=EB=B6=88=20=EC=BD=94=EB=93=9C=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../request/naver/NaverCancelData.java | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/siot/IamportRestClient/request/naver/NaverCancelData.java b/src/main/java/com/siot/IamportRestClient/request/naver/NaverCancelData.java index da16b14..a91df61 100644 --- a/src/main/java/com/siot/IamportRestClient/request/naver/NaverCancelData.java +++ b/src/main/java/com/siot/IamportRestClient/request/naver/NaverCancelData.java @@ -4,9 +4,13 @@ public class NaverCancelData { - public static final String REASON_PRODUCT_UNSATISFIED = "PRODUCT_UNSATISFIED"; - public static final String REASON_DELAYED_DELIVERY = "DELAYED_DELIVERY"; public static final String REASON_SOLD_OUT = "SOLD_OUT"; + public static final String REASON_DELAYED_DELIVERY = "DELAYED_DELIVERY"; + public static final String REASON_PRODUCT_UNSATISFIED = "PRODUCT_UNSATISFIED"; + public static final String REASON_INTENT_CHANGED = "INTENT_CHANGED"; + public static final String REASON_COLOR_AND_SIZE = "COLOR_AND_SIZE"; + public static final String REASON_WRONG_ORDER = "WRONG_ORDER"; + public static final String REASON_INCORRECT_INFO = "INCORRECT_INFO"; @SerializedName("product_order_id") private String[] product_order_id; @@ -25,9 +29,13 @@ public void setProductOrderId(String[] product_order_id) { } private boolean isValidReason(String reason) { - return REASON_PRODUCT_UNSATISFIED.equals(reason) || + return REASON_SOLD_OUT.equals(reason) || REASON_DELAYED_DELIVERY.equals(reason) || - REASON_SOLD_OUT.equals(reason); + REASON_PRODUCT_UNSATISFIED.equals(reason) || + REASON_INTENT_CHANGED.equals(reason) || + REASON_COLOR_AND_SIZE.equals(reason) || + REASON_WRONG_ORDER.equals(reason) || + REASON_INCORRECT_INFO.equals(reason); } }