
urn.ebay.apis.eBLBaseComponents.UnitOfMeasure Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of merchantsdk Show documentation
Show all versions of merchantsdk Show documentation
The PayPal Merchant SDK provides Java APIs for processing payments, recurring payments, subscriptions and transactions using PayPal's Merchant APIs, which include Express Checkout, Recurring Payments, Direct Payment and Transactional APIs.
package urn.ebay.apis.eBLBaseComponents;
/**
* Based on NRF-ARTS Specification for Units of Measure
*
*/
public enum UnitOfMeasure {
EA("EA"),
HOURS("Hours"),
DAYS("Days"),
SECONDS("Seconds"),
CRATEOF("CrateOf12"),
PACK("6Pack"),
GLI("GLI"),
GLL("GLL"),
LTR("LTR"),
INH("INH"),
FOT("FOT"),
MMT("MMT"),
CMQ("CMQ"),
MTR("MTR"),
MTK("MTK"),
MTQ("MTQ"),
GRM("GRM"),
KGM("KGM"),
KG("KG"),
LBR("LBR"),
ANN("ANN"),
CEL("CEL"),
FAH("FAH"),
RESERVED("RESERVED");
private String value;
private UnitOfMeasure (String value) {
this.value = value;
}
public String getValue(){
return value;
}
public static UnitOfMeasure fromValue(String v) {
for (UnitOfMeasure c : values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy