Skip to content

Commit 8d34ae0

Browse files
author
sangeet-joy_xero
committed
Build for version - 11.0.0
1 parent f53bb5f commit 8d34ae0

9 files changed

Lines changed: 92 additions & 20 deletions

File tree

docs/v4/accounting/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6218,7 +6218,7 @@
62186218
"OrganisationRole" : {
62196219
"type" : "string",
62206220
"description" : "User role that defines permissions in Xero and via API (READONLY, INVOICEONLY, STANDARD, FINANCIALADVISER, etc)",
6221-
"enum" : [ "READONLY", "INVOICEONLY", "STANDARD", "FINANCIALADVISER", "MANAGEDCLIENT", "CASHBOOKCLIENT", "UNKNOWN" ]
6221+
"enum" : [ "READONLY", "INVOICEONLY", "STANDARD", "FINANCIALADVISER", "MANAGEDCLIENT", "CASHBOOKCLIENT", "UNKNOWN", "REMOVED" ]
62226222
}
62236223
},
62246224
"description" : "",

docs/v4/appstore/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -974,8 +974,8 @@
974974
},
975975
"type" : {
976976
"type" : "string",
977-
"description" : "The pricing model of the product:\n* FIXED: Customers are charged a fixed amount for each billing period\n* PER_SEAT: Customers are charged based on the number of units they purchase\n* METERED: Customers are charged per use of this product\n",
978-
"enum" : [ "FIXED", "PER_SEAT", "METERED" ]
977+
"description" : "The pricing model of the product:\n* FIXED: Customers are charged a fixed amount for each billing period\n* PER_SEAT: Customers are charged based on the number of units they purchase\n* METERED: Customers are charged per use of this product\n* SIMPLE: Customers are charged on a fixed amount for each billing period with an optional add-on feature\n",
978+
"enum" : [ "FIXED", "PER_SEAT", "METERED", "SIMPLE" ]
979979
},
980980
"usageUnit" : {
981981
"type" : "string",

docs/v4/files/index.html

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2746,10 +2746,11 @@ <h3>Usage and SDK Samples</h3>
27462746
String xeroTenantId = 'YOUR_XERO_TENANT_ID';
27472747
Integer pagesize = 50;
27482748
Integer page = 2;
2749-
String sort = 'CreatedDateUTC DESC';
2749+
String sort = 'CreatedDateUTC';
2750+
String direction = 'ASC';
27502751

27512752
try {
2752-
Files result = apiInstance.getFiles(accessToken, xeroTenantId, pagesize, page, sort);
2753+
Files result = apiInstance.getFiles(accessToken, xeroTenantId, pagesize, page, sort, direction);
27532754
System.out.println(result);
27542755
} catch (XeroException e) {
27552756
System.err.println("Exception when calling FilesApi#getFiles");
@@ -2868,6 +2869,26 @@ <h2>Parameters</h2>
28682869
</div>
28692870
</div>
28702871
</td>
2872+
</tr>
2873+
2874+
<tr><td style="width:150px;">direction</td>
2875+
<td>
2876+
2877+
2878+
<div id="d2e199_getFiles_direction">
2879+
<div class="json-schema-view">
2880+
<div class="primitive">
2881+
<span class="type">
2882+
String
2883+
</span>
2884+
2885+
<div class="inner description marked">
2886+
sort direction
2887+
</div>
2888+
</div>
2889+
</div>
2890+
</div>
2891+
</td>
28712892
</tr>
28722893

28732894
</table>

docs/v4/payroll-uk/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1952,7 +1952,7 @@
19521952
"leaveType" : {
19531953
"type" : "string",
19541954
"description" : "The type of statutory leave",
1955-
"enum" : [ "Sick", "Adoption", "Maternity", "Paternity", "Sharedparental", "Bereavement" ]
1955+
"enum" : [ "Sick", "Adoption", "Maternity", "Paternity", "Sharedparental", "Bereavement", "NeonatalCare" ]
19561956
},
19571957
"balanceRemaining" : {
19581958
"type" : "number",
@@ -2000,7 +2000,7 @@
20002000
"type" : {
20012001
"type" : "string",
20022002
"description" : "The category of statutory leave",
2003-
"enum" : [ "Sick", "Adoption", "Maternity", "Paternity", "Sharedparental", "Bereavement" ]
2003+
"enum" : [ "Sick", "Adoption", "Maternity", "Paternity", "Sharedparental", "Bereavement", "NeonatalCare" ]
20042004
},
20052005
"startDate" : {
20062006
"type" : "string",

src/main/java/com/xero/api/client/FilesApi.java

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1169,17 +1169,23 @@ public HttpResponse getFileContentForHttpResponse(
11691169
* @param pagesize pass an optional page size value
11701170
* @param page number of records to skip for pagination
11711171
* @param sort values to sort by
1172+
* @param direction sort direction
11721173
* @param accessToken Authorization token for user set in header of each request
11731174
* @return Files
11741175
* @throws IOException if an error occurs while attempting to invoke the API *
11751176
*/
11761177
public Files getFiles(
1177-
String accessToken, String xeroTenantId, Integer pagesize, Integer page, String sort)
1178+
String accessToken,
1179+
String xeroTenantId,
1180+
Integer pagesize,
1181+
Integer page,
1182+
String sort,
1183+
String direction)
11781184
throws IOException {
11791185
try {
11801186
TypeReference<Files> typeRef = new TypeReference<Files>() {};
11811187
HttpResponse response =
1182-
getFilesForHttpResponse(accessToken, xeroTenantId, pagesize, page, sort);
1188+
getFilesForHttpResponse(accessToken, xeroTenantId, pagesize, page, sort, direction);
11831189
return apiClient.getObjectMapper().readValue(response.getContent(), typeRef);
11841190
} catch (HttpResponseException e) {
11851191
if (logger.isDebugEnabled()) {
@@ -1206,12 +1212,18 @@ public Files getFiles(
12061212
* @param pagesize pass an optional page size value
12071213
* @param page number of records to skip for pagination
12081214
* @param sort values to sort by
1215+
* @param direction sort direction
12091216
* @param accessToken Authorization token for user set in header of each request
12101217
* @return HttpResponse
12111218
* @throws IOException if an error occurs while attempting to invoke the API
12121219
*/
12131220
public HttpResponse getFilesForHttpResponse(
1214-
String accessToken, String xeroTenantId, Integer pagesize, Integer page, String sort)
1221+
String accessToken,
1222+
String xeroTenantId,
1223+
Integer pagesize,
1224+
Integer page,
1225+
String sort,
1226+
String direction)
12151227
throws IOException {
12161228
// verify the required parameter 'xeroTenantId' is set
12171229
if (xeroTenantId == null) {
@@ -1287,6 +1299,26 @@ public HttpResponse getFilesForHttpResponse(
12871299
uriBuilder = uriBuilder.queryParam(key, value);
12881300
}
12891301
}
1302+
if (direction != null) {
1303+
String key = "direction";
1304+
Object value = direction;
1305+
if (value instanceof Collection) {
1306+
List valueList = new ArrayList<>((Collection) value);
1307+
if (!valueList.isEmpty() && valueList.get(0) instanceof UUID) {
1308+
List<String> list = new ArrayList<String>();
1309+
for (int i = 0; i < valueList.size(); i++) {
1310+
list.add(valueList.get(i).toString());
1311+
}
1312+
uriBuilder = uriBuilder.queryParam(key, String.join(",", list));
1313+
} else {
1314+
uriBuilder = uriBuilder.queryParam(key, String.join(",", valueList));
1315+
}
1316+
} else if (value instanceof Object[]) {
1317+
uriBuilder = uriBuilder.queryParam(key, (Object[]) value);
1318+
} else {
1319+
uriBuilder = uriBuilder.queryParam(key, value);
1320+
}
1321+
}
12901322
String url = uriBuilder.build().toString();
12911323
GenericUrl genericUrl = new GenericUrl(url);
12921324
if (logger.isDebugEnabled()) {

src/main/java/com/xero/models/accounting/User.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,10 @@ public enum OrganisationRoleEnum {
6666
CASHBOOKCLIENT("CASHBOOKCLIENT"),
6767

6868
/** UNKNOWN */
69-
UNKNOWN("UNKNOWN");
69+
UNKNOWN("UNKNOWN"),
70+
71+
/** REMOVED */
72+
REMOVED("REMOVED");
7073

7174
private String value;
7275

src/main/java/com/xero/models/appstore/Product.java

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ public class Product {
3434
/**
3535
* The pricing model of the product: * FIXED: Customers are charged a fixed amount for each
3636
* billing period * PER_SEAT: Customers are charged based on the number of units they purchase *
37-
* METERED: Customers are charged per use of this product
37+
* METERED: Customers are charged per use of this product * SIMPLE: Customers are charged on a
38+
* fixed amount for each billing period with an optional add-on feature
3839
*/
3940
public enum TypeEnum {
4041
/** FIXED */
@@ -44,7 +45,10 @@ public enum TypeEnum {
4445
PER_SEAT("PER_SEAT"),
4546

4647
/** METERED */
47-
METERED("METERED");
48+
METERED("METERED"),
49+
50+
/** SIMPLE */
51+
SIMPLE("SIMPLE");
4852

4953
private String value;
5054

@@ -206,7 +210,8 @@ public void setSeatUnit(String seatUnit) {
206210
/**
207211
* The pricing model of the product: * FIXED: Customers are charged a fixed amount for each
208212
* billing period * PER_SEAT: Customers are charged based on the number of units they purchase *
209-
* METERED: Customers are charged per use of this product
213+
* METERED: Customers are charged per use of this product * SIMPLE: Customers are charged on a
214+
* fixed amount for each billing period with an optional add-on feature
210215
*
211216
* @param type TypeEnum
212217
* @return Product
@@ -219,19 +224,23 @@ public Product type(TypeEnum type) {
219224
/**
220225
* The pricing model of the product: * FIXED: Customers are charged a fixed amount for each
221226
* billing period * PER_SEAT: Customers are charged based on the number of units they purchase *
222-
* METERED: Customers are charged per use of this product
227+
* METERED: Customers are charged per use of this product * SIMPLE: Customers are charged on a
228+
* fixed amount for each billing period with an optional add-on feature
223229
*
224230
* @return type
225231
*/
226232
@ApiModelProperty(
227233
value =
228234
"The pricing model of the product: * FIXED: Customers are charged a fixed amount for"
229235
+ " each billing period * PER_SEAT: Customers are charged based on the number of"
230-
+ " units they purchase * METERED: Customers are charged per use of this product ")
236+
+ " units they purchase * METERED: Customers are charged per use of this product *"
237+
+ " SIMPLE: Customers are charged on a fixed amount for each billing period with an"
238+
+ " optional add-on feature ")
231239
/**
232240
* The pricing model of the product: * FIXED: Customers are charged a fixed amount for each
233241
* billing period * PER_SEAT: Customers are charged based on the number of units they purchase *
234-
* METERED: Customers are charged per use of this product
242+
* METERED: Customers are charged per use of this product * SIMPLE: Customers are charged on a
243+
* fixed amount for each billing period with an optional add-on feature
235244
*
236245
* @return type TypeEnum
237246
*/
@@ -242,7 +251,8 @@ public TypeEnum getType() {
242251
/**
243252
* The pricing model of the product: * FIXED: Customers are charged a fixed amount for each
244253
* billing period * PER_SEAT: Customers are charged based on the number of units they purchase *
245-
* METERED: Customers are charged per use of this product
254+
* METERED: Customers are charged per use of this product * SIMPLE: Customers are charged on a
255+
* fixed amount for each billing period with an optional add-on feature
246256
*
247257
* @param type TypeEnum
248258
*/

src/main/java/com/xero/models/payrolluk/EmployeeStatutoryLeaveBalance.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ public enum LeaveTypeEnum {
3939
SHAREDPARENTAL("Sharedparental"),
4040

4141
/** BEREAVEMENT */
42-
BEREAVEMENT("Bereavement");
42+
BEREAVEMENT("Bereavement"),
43+
44+
/** NEONATALCARE */
45+
NEONATALCARE("NeonatalCare");
4346

4447
private String value;
4548

src/main/java/com/xero/models/payrolluk/EmployeeStatutoryLeaveSummary.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@ public enum TypeEnum {
4747
SHAREDPARENTAL("Sharedparental"),
4848

4949
/** BEREAVEMENT */
50-
BEREAVEMENT("Bereavement");
50+
BEREAVEMENT("Bereavement"),
51+
52+
/** NEONATALCARE */
53+
NEONATALCARE("NeonatalCare");
5154

5255
private String value;
5356

0 commit comments

Comments
 (0)