
com.easilydo.sift.model.ShipmentStatus Maven / Gradle / Ivy
package com.easilydo.sift.model;
import java.util.HashMap;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
public enum ShipmentStatus {
DELIVERED("http://schema.org/OrderDelivered"),
IN_TRANSIT("http://schema.org/OrderInTransit"),
PICKUP_AVAILABLE("http://schema.org/OrderPickupAvailable");
private final String name;
private static Map constants = new HashMap();
static {
for (ShipmentStatus s: values()) {
constants.put(s.name, s);
}
}
ShipmentStatus(String name) {
this.name = name;
}
@JsonCreator
public static ShipmentStatus getShipmentStatus(String type) {
return constants.get(type);
}
@JsonValue
@Override
public String toString() {
return this.name;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy