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: docs/v4/assets/index.html
+22-17
Original file line number
Diff line number
Diff line change
@@ -855,6 +855,11 @@
855
855
"example" : 1000.0000,
856
856
"x-is-money" : true
857
857
},
858
+
"disposalDate" : {
859
+
"type" : "string",
860
+
"description" : "The date the asset was disposed",
861
+
"format" : "date"
862
+
},
858
863
"disposalPrice" : {
859
864
"type" : "number",
860
865
"description" : "The price the asset was disposed at",
@@ -1134,7 +1139,7 @@
1134
1139
},
1135
1140
"localisedMessage" : {
1136
1141
"type" : "string",
1137
-
"description" : "Explaination of the field validation error"
1142
+
"description" : "Explanation of the field validation error"
1138
1143
},
1139
1144
"type" : {
1140
1145
"type" : "string",
@@ -1186,7 +1191,7 @@
1186
1191
},
1187
1192
"localisedMessage" : {
1188
1193
"type" : "string",
1189
-
"description" : "Explaination of the resource validation error"
1194
+
"description" : "Explanation of the resource validation error"
1190
1195
},
1191
1196
"type" : {
1192
1197
"type" : "string",
@@ -1309,10 +1314,10 @@ <h1>Xero Assets API</h1>
1309
1314
<h2 id="welcome-to-apidoc">API and SDK Documentation</h2>
1310
1315
<div class="app-desc">Version: 1.0.0</div>
1311
1316
<!--
1312
-
<div class="app-desc">Version: 2.3.7</div>
1317
+
<div class="app-desc">Version: 2.9.0</div>
1313
1318
<hr>
1314
1319
<div id="app-description" class="app-desc">
1315
-
This is the Xero Assets API
1320
+
The Assets API exposes fixed asset related functions of the Xero Accounting application and can be used for a variety of purposes such as creating assets, retrieving asset valuations etc.
@@ -3577,7 +3582,7 @@ <h3>Usage and SDK Samples</h3>
3577
3582
Integer pageSize = 5; // Integer | The number of records returned per page. By default the number of records returned is 10.
3578
3583
String orderBy = AssetName; // String | Requests can be ordered by AssetType, AssetName, AssetNumber, PurchaseDate and PurchasePrice. If the asset status is DISPOSED it also allows DisposalDate and DisposalPrice.
3579
3584
String sortDirection = ASC; // String | ASC or DESC
3580
-
String filterBy = Draft; // String | A string that can be used to filter the list to only return assets containing the text. Checks it against the AssetName, AssetNumber, Description and AssetTypeName fields.
3585
+
String filterBy = Company Car; // String | A string that can be used to filter the list to only return assets containing the text. Checks it against the AssetName, AssetNumber, Description and AssetTypeName fields.
3581
3586
try {
3582
3587
Assets result = apiInstance.getAssets(xeroTenantId, status, page, pageSize, orderBy, sortDirection, filterBy);
3583
3588
System.out.println(result);
@@ -3602,7 +3607,7 @@ <h3>Usage and SDK Samples</h3>
3602
3607
Integer pageSize = 5; // Integer | The number of records returned per page. By default the number of records returned is 10.
3603
3608
String orderBy = AssetName; // String | Requests can be ordered by AssetType, AssetName, AssetNumber, PurchaseDate and PurchasePrice. If the asset status is DISPOSED it also allows DisposalDate and DisposalPrice.
3604
3609
String sortDirection = ASC; // String | ASC or DESC
3605
-
String filterBy = Draft; // String | A string that can be used to filter the list to only return assets containing the text. Checks it against the AssetName, AssetNumber, Description and AssetTypeName fields.
3610
+
String filterBy = Company Car; // String | A string that can be used to filter the list to only return assets containing the text. Checks it against the AssetName, AssetNumber, Description and AssetTypeName fields.
3606
3611
try {
3607
3612
Assets result = apiInstance.getAssets(xeroTenantId, status, page, pageSize, orderBy, sortDirection, filterBy);
3608
3613
System.out.println(result);
@@ -3629,7 +3634,7 @@ <h3>Usage and SDK Samples</h3>
3629
3634
Integer *pageSize = 5; // The number of records returned per page. By default the number of records returned is 10. (optional) (default to null)
3630
3635
String *orderBy = AssetName; // Requests can be ordered by AssetType, AssetName, AssetNumber, PurchaseDate and PurchasePrice. If the asset status is DISPOSED it also allows DisposalDate and DisposalPrice. (optional) (default to null)
3631
3636
String *sortDirection = ASC; // ASC or DESC (optional) (default to null)
3632
-
String *filterBy = Draft; // A string that can be used to filter the list to only return assets containing the text. Checks it against the AssetName, AssetNumber, Description and AssetTypeName fields. (optional) (default to null)
3637
+
String *filterBy = Company Car; // A string that can be used to filter the list to only return assets containing the text. Checks it against the AssetName, AssetNumber, Description and AssetTypeName fields. (optional) (default to null)
3633
3638
3634
3639
AssetApi *apiInstance = [[AssetApi alloc] init];
3635
3640
@@ -3674,7 +3679,7 @@ <h3>Usage and SDK Samples</h3>
3674
3679
3675
3680
const sortDirection = 'ASC'; // {String} ASC or DESC
3676
3681
3677
-
const filterBy = 'Draft'; // {String} A string that can be used to filter the list to only return assets containing the text. Checks it against the AssetName, AssetNumber, Description and AssetTypeName fields.
3682
+
const filterBy = 'Company Car'; // {String} A string that can be used to filter the list to only return assets containing the text. Checks it against the AssetName, AssetNumber, Description and AssetTypeName fields.
3678
3683
3679
3684
3680
3685
try {
@@ -3714,7 +3719,7 @@ <h3>Usage and SDK Samples</h3>
3714
3719
var pageSize = 5; // Integer | The number of records returned per page. By default the number of records returned is 10. (optional) (default to null)
3715
3720
var orderBy = AssetName; // String | Requests can be ordered by AssetType, AssetName, AssetNumber, PurchaseDate and PurchasePrice. If the asset status is DISPOSED it also allows DisposalDate and DisposalPrice. (optional) (default to null)
3716
3721
var sortDirection = ASC; // String | ASC or DESC (optional) (default to null)
3717
-
var filterBy = Draft; // String | A string that can be used to filter the list to only return assets containing the text. Checks it against the AssetName, AssetNumber, Description and AssetTypeName fields. (optional) (default to null)
3722
+
var filterBy = Company Car; // String | A string that can be used to filter the list to only return assets containing the text. Checks it against the AssetName, AssetNumber, Description and AssetTypeName fields. (optional) (default to null)
3718
3723
3719
3724
try
3720
3725
{
@@ -3770,7 +3775,7 @@ <h3>Usage and SDK Samples</h3>
3770
3775
my $pageSize = 5; # Integer | The number of records returned per page. By default the number of records returned is 10.
3771
3776
my $orderBy = AssetName; # String | Requests can be ordered by AssetType, AssetName, AssetNumber, PurchaseDate and PurchasePrice. If the asset status is DISPOSED it also allows DisposalDate and DisposalPrice.
3772
3777
my $sortDirection = ASC; # String | ASC or DESC
3773
-
my $filterBy = Draft; # String | A string that can be used to filter the list to only return assets containing the text. Checks it against the AssetName, AssetNumber, Description and AssetTypeName fields.
3778
+
my $filterBy = Company Car; # String | A string that can be used to filter the list to only return assets containing the text. Checks it against the AssetName, AssetNumber, Description and AssetTypeName fields.
@@ -3799,7 +3804,7 @@ <h3>Usage and SDK Samples</h3>
3799
3804
pageSize = 5 # Integer | The number of records returned per page. By default the number of records returned is 10. (optional) (default to null)
3800
3805
orderBy = AssetName # String | Requests can be ordered by AssetType, AssetName, AssetNumber, PurchaseDate and PurchasePrice. If the asset status is DISPOSED it also allows DisposalDate and DisposalPrice. (optional) (default to null)
3801
3806
sortDirection = ASC # String | ASC or DESC (optional) (default to null)
3802
-
filterBy = Draft # String | A string that can be used to filter the list to only return assets containing the text. Checks it against the AssetName, AssetNumber, Description and AssetTypeName fields. (optional) (default to null)
3807
+
filterBy = Company Car # String | A string that can be used to filter the list to only return assets containing the text. Checks it against the AssetName, AssetNumber, Description and AssetTypeName fields. (optional) (default to null)
3803
3808
3804
3809
try:
3805
3810
# searches fixed asset
@@ -3819,7 +3824,7 @@ <h3>Usage and SDK Samples</h3>
3819
3824
let pageSize = 5; // Integer
3820
3825
let orderBy = AssetName; // String
3821
3826
let sortDirection = ASC; // String
3822
-
let filterBy = Draft; // String
3827
+
let filterBy = Company Car; // String
3823
3828
3824
3829
let mut context = AssetApi::Context::default();
3825
3830
let result = client.getAssets(xeroTenantId, status, page, pageSize, orderBy, sortDirection, filterBy, &context).wait();
0 commit comments