Skip to content

Commit

Permalink
Updating ChargeType and ChargeItem
Browse files Browse the repository at this point in the history
Renaming Type to ChargeType and moving it into its own source file. Updating type property name in ChargeItem to match documentation.
  • Loading branch information
oddprints-karl committed Jan 30, 2023
1 parent 13e9ccd commit 6cf2534
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
15 changes: 5 additions & 10 deletions src/main/java/com/oddprints/prodigi/pojos/ChargeItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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() {
Expand Down
6 changes: 6 additions & 0 deletions src/main/java/com/oddprints/prodigi/pojos/ChargeType.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package com.oddprints.prodigi.pojos;

public enum ChargeType {
Item,
Shipping
}

0 comments on commit 6cf2534

Please sign in to comment.