Skip to content

Commit

Permalink
Merge pull request #24 from lens0021/feat/naver-cancel-reasons
Browse files Browse the repository at this point in the history
feat: 네이버 환불 코드 추가
  • Loading branch information
lens0021 authored Aug 10, 2022
2 parents 938cbce + 8b821e9 commit abc5047
Showing 1 changed file with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
}

}

0 comments on commit abc5047

Please sign in to comment.