-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathAchStopPaymentDisableReason.java
More file actions
80 lines (62 loc) · 1.7 KB
/
AchStopPaymentDisableReason.java
File metadata and controls
80 lines (62 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
/*
* Unit OpenAPI specifications
* An OpenAPI specifications for unit-sdk clients
*
* The version of the OpenAPI document: 0.3.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package unit.java.sdk.model;
import java.net.URLEncoder;
import java.nio.charset.StandardCharsets;
import java.util.StringJoiner;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
/**
* Gets or Sets AchStopPaymentDisableReason
*/
public enum AchStopPaymentDisableReason {
EXPIRED("Expired"),
REQUESTED("Requested"),
PAYMENT_STOPPED("PaymentStopped");
private String value;
AchStopPaymentDisableReason(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static AchStopPaymentDisableReason fromValue(String value) {
for (AchStopPaymentDisableReason b : AchStopPaymentDisableReason.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
/**
* Convert the instance into URL query string.
*
* @param prefix prefix of the query string
* @return URL query string
*/
public String toUrlQueryString(String prefix) {
if (prefix == null) {
prefix = "";
}
return String.format("%s=%s", prefix, this.toString());
}
}