You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/java/com/xero/models/accounting/BatchPayment.java
+37-2Lines changed: 37 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -119,10 +119,45 @@ public static TypeEnum fromValue(String value) {
119
119
120
120
@JsonProperty("Type")
121
121
privateTypeEnumtype;
122
+
/**
123
+
* AUTHORISED or DELETED (read-only). New batch payments will have a status of AUTHORISED. It is not possible to delete batch payments via the API.
124
+
*/
125
+
publicenumStatusEnum {
126
+
AUTHORISED("AUTHORISED"),
127
+
128
+
DELETED("DELETED");
129
+
130
+
privateStringvalue;
131
+
132
+
StatusEnum(Stringvalue) {
133
+
this.value = value;
134
+
}
135
+
136
+
@JsonValue
137
+
publicStringgetValue() {
138
+
returnvalue;
139
+
}
140
+
141
+
@Override
142
+
publicStringtoString() {
143
+
returnString.valueOf(value);
144
+
}
145
+
146
+
@JsonCreator
147
+
publicstaticStatusEnumfromValue(Stringvalue) {
148
+
for (StatusEnumb : StatusEnum.values()) {
149
+
if (b.value.equals(value)) {
150
+
returnb;
151
+
}
152
+
}
153
+
thrownewIllegalArgumentException("Unexpected value '" + value + "'");
154
+
}
155
+
}
156
+
122
157
123
158
124
159
@JsonProperty("Status")
125
-
privateStringstatus;
160
+
privateStatusEnumstatus;
126
161
127
162
128
163
@JsonProperty("TotalAmount")
@@ -346,7 +381,7 @@ public TypeEnum getType() {
346
381
* @return status
347
382
**/
348
383
@ApiModelProperty(value = "AUTHORISED or DELETED (read-only). New batch payments will have a status of AUTHORISED. It is not possible to delete batch payments via the API.")
0 commit comments