@@ -211,6 +211,7 @@ public HttpResponse createFileAssociationForHttpResponse(
211
211
headers .set ("xero-tenant-id" , xeroTenantId );
212
212
headers .set ("Idempotency-Key" , idempotencyKey );
213
213
headers .setAccept ("application/json" );
214
+ headers .setContentType ("application/json" );
214
215
headers .setUserAgent (this .getUserAgent ());
215
216
// create a map of path variables
216
217
final Map <String , Object > uriVariables = new HashMap <String , Object >();
@@ -313,6 +314,7 @@ public HttpResponse createFolderForHttpResponse(
313
314
headers .set ("xero-tenant-id" , xeroTenantId );
314
315
headers .set ("Idempotency-Key" , idempotencyKey );
315
316
headers .setAccept ("application/json" );
317
+ headers .setContentType ("application/json" );
316
318
headers .setUserAgent (this .getUserAgent ());
317
319
UriBuilder uriBuilder = UriBuilder .fromUri (apiClient .getBasePath () + "/Folders" );
318
320
String url = uriBuilder .build ().toString ();
@@ -393,6 +395,7 @@ public HttpResponse deleteFileForHttpResponse(
393
395
HttpHeaders headers = new HttpHeaders ();
394
396
headers .set ("xero-tenant-id" , xeroTenantId );
395
397
headers .setAccept ("" );
398
+ headers .setContentType ("" );
396
399
headers .setUserAgent (this .getUserAgent ());
397
400
// create a map of path variables
398
401
final Map <String , Object > uriVariables = new HashMap <String , Object >();
@@ -484,6 +487,7 @@ public HttpResponse deleteFileAssociationForHttpResponse(
484
487
HttpHeaders headers = new HttpHeaders ();
485
488
headers .set ("xero-tenant-id" , xeroTenantId );
486
489
headers .setAccept ("" );
490
+ headers .setContentType ("" );
487
491
headers .setUserAgent (this .getUserAgent ());
488
492
// create a map of path variables
489
493
final Map <String , Object > uriVariables = new HashMap <String , Object >();
@@ -569,6 +573,7 @@ public HttpResponse deleteFolderForHttpResponse(
569
573
HttpHeaders headers = new HttpHeaders ();
570
574
headers .set ("xero-tenant-id" , xeroTenantId );
571
575
headers .setAccept ("" );
576
+ headers .setContentType ("" );
572
577
headers .setUserAgent (this .getUserAgent ());
573
578
// create a map of path variables
574
579
final Map <String , Object > uriVariables = new HashMap <String , Object >();
@@ -682,6 +687,7 @@ public HttpResponse getAssociationsByObjectForHttpResponse(
682
687
HttpHeaders headers = new HttpHeaders ();
683
688
headers .set ("xero-tenant-id" , xeroTenantId );
684
689
headers .setAccept ("application/json" );
690
+ headers .setContentType ("" );
685
691
headers .setUserAgent (this .getUserAgent ());
686
692
// create a map of path variables
687
693
final Map <String , Object > uriVariables = new HashMap <String , Object >();
@@ -853,6 +859,7 @@ public HttpResponse getAssociationsCountForHttpResponse(
853
859
HttpHeaders headers = new HttpHeaders ();
854
860
headers .set ("xero-tenant-id" , xeroTenantId );
855
861
headers .setAccept ("application/json" );
862
+ headers .setContentType ("" );
856
863
headers .setUserAgent (this .getUserAgent ());
857
864
UriBuilder uriBuilder = UriBuilder .fromUri (apiClient .getBasePath () + "/Associations/Count" );
858
865
if (objectIds != null ) {
@@ -956,6 +963,7 @@ public HttpResponse getFileForHttpResponse(String accessToken, String xeroTenant
956
963
HttpHeaders headers = new HttpHeaders ();
957
964
headers .set ("xero-tenant-id" , xeroTenantId );
958
965
headers .setAccept ("application/json" );
966
+ headers .setContentType ("" );
959
967
headers .setUserAgent (this .getUserAgent ());
960
968
// create a map of path variables
961
969
final Map <String , Object > uriVariables = new HashMap <String , Object >();
@@ -1043,6 +1051,7 @@ public HttpResponse getFileAssociationsForHttpResponse(
1043
1051
HttpHeaders headers = new HttpHeaders ();
1044
1052
headers .set ("xero-tenant-id" , xeroTenantId );
1045
1053
headers .setAccept ("application/json" );
1054
+ headers .setContentType ("" );
1046
1055
headers .setUserAgent (this .getUserAgent ());
1047
1056
// create a map of path variables
1048
1057
final Map <String , Object > uriVariables = new HashMap <String , Object >();
@@ -1135,6 +1144,7 @@ public HttpResponse getFileContentForHttpResponse(
1135
1144
HttpHeaders headers = new HttpHeaders ();
1136
1145
headers .set ("xero-tenant-id" , xeroTenantId );
1137
1146
headers .setAccept ("application/octet-stream" );
1147
+ headers .setContentType ("" );
1138
1148
headers .setUserAgent (this .getUserAgent ());
1139
1149
// create a map of path variables
1140
1150
final Map <String , Object > uriVariables = new HashMap <String , Object >();
@@ -1225,6 +1235,7 @@ public HttpResponse getFilesForHttpResponse(
1225
1235
HttpHeaders headers = new HttpHeaders ();
1226
1236
headers .set ("xero-tenant-id" , xeroTenantId );
1227
1237
headers .setAccept ("application/json" );
1238
+ headers .setContentType ("" );
1228
1239
headers .setUserAgent (this .getUserAgent ());
1229
1240
UriBuilder uriBuilder = UriBuilder .fromUri (apiClient .getBasePath () + "/Files" );
1230
1241
if (pagesize != null ) {
@@ -1370,6 +1381,7 @@ public HttpResponse getFolderForHttpResponse(
1370
1381
HttpHeaders headers = new HttpHeaders ();
1371
1382
headers .set ("xero-tenant-id" , xeroTenantId );
1372
1383
headers .setAccept ("application/json" );
1384
+ headers .setContentType ("" );
1373
1385
headers .setUserAgent (this .getUserAgent ());
1374
1386
// create a map of path variables
1375
1387
final Map <String , Object > uriVariables = new HashMap <String , Object >();
@@ -1453,6 +1465,7 @@ public HttpResponse getFoldersForHttpResponse(
1453
1465
HttpHeaders headers = new HttpHeaders ();
1454
1466
headers .set ("xero-tenant-id" , xeroTenantId );
1455
1467
headers .setAccept ("application/json" );
1468
+ headers .setContentType ("" );
1456
1469
headers .setUserAgent (this .getUserAgent ());
1457
1470
UriBuilder uriBuilder = UriBuilder .fromUri (apiClient .getBasePath () + "/Folders" );
1458
1471
if (sort != null ) {
@@ -1549,6 +1562,7 @@ public HttpResponse getInboxForHttpResponse(String accessToken, String xeroTenan
1549
1562
HttpHeaders headers = new HttpHeaders ();
1550
1563
headers .set ("xero-tenant-id" , xeroTenantId );
1551
1564
headers .setAccept ("application/json" );
1565
+ headers .setContentType ("" );
1552
1566
headers .setUserAgent (this .getUserAgent ());
1553
1567
UriBuilder uriBuilder = UriBuilder .fromUri (apiClient .getBasePath () + "/Inbox" );
1554
1568
String url = uriBuilder .build ().toString ();
@@ -1658,6 +1672,7 @@ public HttpResponse updateFileForHttpResponse(
1658
1672
headers .set ("xero-tenant-id" , xeroTenantId );
1659
1673
headers .set ("Idempotency-Key" , idempotencyKey );
1660
1674
headers .setAccept ("application/json" );
1675
+ headers .setContentType ("application/json" );
1661
1676
headers .setUserAgent (this .getUserAgent ());
1662
1677
// create a map of path variables
1663
1678
final Map <String , Object > uriVariables = new HashMap <String , Object >();
@@ -1767,6 +1782,7 @@ public HttpResponse updateFolderForHttpResponse(
1767
1782
headers .set ("xero-tenant-id" , xeroTenantId );
1768
1783
headers .set ("Idempotency-Key" , idempotencyKey );
1769
1784
headers .setAccept ("application/json" );
1785
+ headers .setContentType ("application/json" );
1770
1786
headers .setUserAgent (this .getUserAgent ());
1771
1787
// create a map of path variables
1772
1788
final Map <String , Object > uriVariables = new HashMap <String , Object >();
@@ -1895,6 +1911,7 @@ public HttpResponse uploadFileForHttpResponse(
1895
1911
headers .set ("xero-tenant-id" , xeroTenantId );
1896
1912
headers .set ("Idempotency-Key" , idempotencyKey );
1897
1913
headers .setAccept ("application/json" );
1914
+ headers .setContentType ("multipart/form-data" );
1898
1915
headers .setUserAgent (this .getUserAgent ());
1899
1916
UriBuilder uriBuilder = UriBuilder .fromUri (apiClient .getBasePath () + "/Files" );
1900
1917
String url = uriBuilder .build ().toString ();
@@ -2052,6 +2069,7 @@ public HttpResponse uploadFileToFolderForHttpResponse(
2052
2069
headers .set ("xero-tenant-id" , xeroTenantId );
2053
2070
headers .set ("Idempotency-Key" , idempotencyKey );
2054
2071
headers .setAccept ("application/json" );
2072
+ headers .setContentType ("multipart/form-data" );
2055
2073
headers .setUserAgent (this .getUserAgent ());
2056
2074
// create a map of path variables
2057
2075
final Map <String , Object > uriVariables = new HashMap <String , Object >();
0 commit comments