diff --git a/src/main/java/com/oddprints/prodigi/pojos/ChargeItem.java b/src/main/java/com/oddprints/prodigi/pojos/ChargeItem.java index b579c7b..0a38436 100644 --- a/src/main/java/com/oddprints/prodigi/pojos/ChargeItem.java +++ b/src/main/java/com/oddprints/prodigi/pojos/ChargeItem.java @@ -5,14 +5,9 @@ @JsonIgnoreProperties(ignoreUnknown = true) public class ChargeItem { - public enum Type { - Item, - Shipping - } - private String id; private String description; - private Type type; + private ChargeType chargeType; private String itemSku; private String shipmentId; private String itemId; @@ -37,12 +32,12 @@ public void setDescription(String description) { this.description = description; } - public Type getType() { - return type; + public ChargeType getChargeType() { + return chargeType; } - public void setType(Type type) { - this.type = type; + public void setChargeType(ChargeType chargeType) { + this.chargeType = chargeType; } public String getItemSku() { diff --git a/src/main/java/com/oddprints/prodigi/pojos/ChargeType.java b/src/main/java/com/oddprints/prodigi/pojos/ChargeType.java new file mode 100644 index 0000000..468ae02 --- /dev/null +++ b/src/main/java/com/oddprints/prodigi/pojos/ChargeType.java @@ -0,0 +1,6 @@ +package com.oddprints.prodigi.pojos; + +public enum ChargeType { + Item, + Shipping +}