View Javadoc
1   package org.oxerr.stubhub.client.model;
2   
3   import com.fasterxml.jackson.annotation.JsonCreator;
4   import com.fasterxml.jackson.annotation.JsonValue;
5   
6   /**
7    * Gets or Sets ApiPosPaymentState
8    */
9   public enum ApiPosPaymentState {
10  
11  	UNPAID("Unpaid"),
12  
13  	QUEUED("Queued"),
14  
15  	PAID("Paid"),
16  
17  	PARTIALLY_PAID("PartiallyPaid"),
18  
19  	PENDING_REVERSAL("PendingReversal"),
20  
21  	REVERSED("Reversed");
22  
23  	private String value;
24  
25  	ApiPosPaymentState(String value) {
26  		this.value = value;
27  	}
28  
29  	@JsonValue
30  	public String getValue() {
31  		return value;
32  	}
33  
34  	@Override
35  	public String toString() {
36  		return String.valueOf(value);
37  	}
38  
39  	@JsonCreator
40  	public static ApiPosPaymentState fromValue(String value) {
41  		for (ApiPosPaymentState b : ApiPosPaymentState.values()) {
42  			if (b.value.equals(value)) {
43  				return b;
44  			}
45  		}
46  		throw new IllegalArgumentException("Unexpected value '" + value + "'");
47  	}
48  }