ApiPurchasePaymentStatus.java
package org.oxerr.stubhub.client.model;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
/**
* Gets or Sets ApiPurchasePaymentStatus
*/
public enum ApiPurchasePaymentStatus {
UNPAID("Unpaid"),
PARTIALLY_PAID("PartiallyPaid"),
PAID("Paid"),
FAILED("Failed"),
REFUND_NEEDED("RefundNeeded"),
REFUNDED("Refunded"),
PARTIALLY_REFUNDED("PartiallyRefunded");
private String value;
ApiPurchasePaymentStatus(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static ApiPurchasePaymentStatus fromValue(String value) {
for (ApiPurchasePaymentStatus b : ApiPurchasePaymentStatus.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}