|
1013 | 1013 | "type" : "string",
|
1014 | 1014 | "description" : "The Object Type",
|
1015 | 1015 | "enum" : [ "Unknown", "Accpay", "AccPayCredit", "AccPayPayment", "AccRec", "AccRecCredit", "AccRecPayment", "Adjustment", "ApCreditPayment", "ApOverPayment", "ApOverPaymentPayment", "ApOverPaymentSourcePayment", "ApPrepayment", "ApPrepaymentPayment", "ApPrepaymentSourcePayment", "ArCreditPayment", "ArOverPayment", "ArOverpaymentPayment", "ArOverpaymentSourcePayment", "ArPrepayment", "ArPrepaymentPayment", "ArPrepaymentSourcePayment", "CashPaid", "CashRec", "ExpPayment", "ManJournal", "PurchaseOrder", "Receipt", "Transfer", "Account", "Contact", "Business", "Employee", "Person", "User", "Org", "FixedAsset", "PayRun", "PriceListItem", "Bank", "Current", "Equity", "Expense", "Fixed", "Liability", "Prepayment", "Revenue", "Sales", "Overheads", "Depreciatn", "OtherIncome", "DirectCosts", "Currliab", "Termliab", "NonCurrent", "SalesQuote" ]
|
1016 |
| -}; |
1017 |
| - defs["UploadObject"] = { |
1018 |
| - "title" : "", |
1019 |
| - "required" : [ "body", "filename", "name" ], |
1020 |
| - "type" : "object", |
1021 |
| - "properties" : { |
1022 |
| - "body" : { |
1023 |
| - "type" : "string", |
1024 |
| - "format" : "byte" |
1025 |
| - }, |
1026 |
| - "name" : { |
1027 |
| - "type" : "string", |
1028 |
| - "description" : "exact name of the file you are uploading" |
1029 |
| - }, |
1030 |
| - "filename" : { |
1031 |
| - "type" : "string" |
1032 |
| - }, |
1033 |
| - "mimeType" : { |
1034 |
| - "type" : "string" |
1035 |
| - } |
1036 |
| - }, |
1037 |
| - "description" : "" |
1038 | 1016 | };
|
1039 | 1017 | defs["User"] = {
|
1040 | 1018 | "title" : "",
|
|
1151 | 1129 | <nav id="scrollingNav">
|
1152 | 1130 | <ul class="sidenav nav nav-list">
|
1153 | 1131 | <li class="nav-header" data-group="Files"><strong>SDK: </strong><span id='sdk-name'></span></li>
|
1154 |
| - <li class="nav-header" data-group="Files"><strong>VSN: </strong>4.17.0</li> |
| 1132 | + <li class="nav-header" data-group="Files"><strong>VSN: </strong>4.18.0</li> |
1155 | 1133 | <li class="nav-header" data-group="Files"><a href="#api-Files">Methods</a></li>
|
1156 | 1134 | <li data-group="Files" data-name="createFileAssociation" class="">
|
1157 | 1135 | <a href="#api-Files-createFileAssociation">createFileAssociation</a>
|
@@ -1260,6 +1238,7 @@ <h3>Usage and SDK Samples</h3>
|
1260 | 1238 | apiInstance = AccountingApi.getInstance(defaultClient);
|
1261 | 1239 | String xeroTenantId = 'YOUR_XERO_TENANT_ID';
|
1262 | 1240 | UUID fileId = UUID.fromString("4ff1e5cc-9835-40d5-bb18-09fdb118db9c");
|
| 1241 | + UUID fileId = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c'; |
1263 | 1242 |
|
1264 | 1243 | try {
|
1265 | 1244 | Association result = apiInstance.createFileAssociation(accessToken, xeroTenantId, fileId, association);
|
@@ -1542,6 +1521,7 @@ <h3>Usage and SDK Samples</h3>
|
1542 | 1521 | apiInstance = AccountingApi.getInstance(defaultClient);
|
1543 | 1522 | String xeroTenantId = 'YOUR_XERO_TENANT_ID';
|
1544 | 1523 | UUID fileId = UUID.fromString("4ff1e5cc-9835-40d5-bb18-09fdb118db9c");
|
| 1524 | + UUID fileId = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c'; |
1545 | 1525 |
|
1546 | 1526 | try {
|
1547 | 1527 | result = apiInstance.deleteFile(accessToken, xeroTenantId, fileId);
|
@@ -1667,7 +1647,9 @@ <h3>Usage and SDK Samples</h3>
|
1667 | 1647 | apiInstance = AccountingApi.getInstance(defaultClient);
|
1668 | 1648 | String xeroTenantId = 'YOUR_XERO_TENANT_ID';
|
1669 | 1649 | UUID fileId = UUID.fromString("4ff1e5cc-9835-40d5-bb18-09fdb118db9c");
|
| 1650 | + UUID fileId = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c'; |
1670 | 1651 | UUID objectId = UUID.fromString("4ff1e5cc-9835-40d5-bb18-09fdb118db9c");
|
| 1652 | + UUID objectId = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c'; |
1671 | 1653 |
|
1672 | 1654 | try {
|
1673 | 1655 | result = apiInstance.deleteFileAssociation(accessToken, xeroTenantId, fileId, objectId);
|
@@ -1819,6 +1801,7 @@ <h3>Usage and SDK Samples</h3>
|
1819 | 1801 | apiInstance = AccountingApi.getInstance(defaultClient);
|
1820 | 1802 | String xeroTenantId = 'YOUR_XERO_TENANT_ID';
|
1821 | 1803 | UUID folderId = UUID.fromString("4ff1e5cc-9835-40d5-bb18-09fdb118db9c");
|
| 1804 | + UUID folderId = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c'; |
1822 | 1805 |
|
1823 | 1806 | try {
|
1824 | 1807 | result = apiInstance.deleteFolder(accessToken, xeroTenantId, folderId);
|
@@ -1944,6 +1927,7 @@ <h3>Usage and SDK Samples</h3>
|
1944 | 1927 | apiInstance = AccountingApi.getInstance(defaultClient);
|
1945 | 1928 | String xeroTenantId = 'YOUR_XERO_TENANT_ID';
|
1946 | 1929 | UUID objectId = UUID.fromString("4ff1e5cc-9835-40d5-bb18-09fdb118db9c");
|
| 1930 | + UUID objectId = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c'; |
1947 | 1931 |
|
1948 | 1932 | try {
|
1949 | 1933 | array[Association] result = apiInstance.getAssociationsByObject(accessToken, xeroTenantId, objectId);
|
@@ -2075,6 +2059,7 @@ <h3>Usage and SDK Samples</h3>
|
2075 | 2059 | apiInstance = AccountingApi.getInstance(defaultClient);
|
2076 | 2060 | String xeroTenantId = 'YOUR_XERO_TENANT_ID';
|
2077 | 2061 | UUID fileId = UUID.fromString("4ff1e5cc-9835-40d5-bb18-09fdb118db9c");
|
| 2062 | + UUID fileId = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c'; |
2078 | 2063 |
|
2079 | 2064 | try {
|
2080 | 2065 | FileObject result = apiInstance.getFile(accessToken, xeroTenantId, fileId);
|
@@ -2206,6 +2191,7 @@ <h3>Usage and SDK Samples</h3>
|
2206 | 2191 | apiInstance = AccountingApi.getInstance(defaultClient);
|
2207 | 2192 | String xeroTenantId = 'YOUR_XERO_TENANT_ID';
|
2208 | 2193 | UUID fileId = UUID.fromString("4ff1e5cc-9835-40d5-bb18-09fdb118db9c");
|
| 2194 | + UUID fileId = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c'; |
2209 | 2195 |
|
2210 | 2196 | try {
|
2211 | 2197 | array[Association] result = apiInstance.getFileAssociations(accessToken, xeroTenantId, fileId);
|
@@ -2337,6 +2323,7 @@ <h3>Usage and SDK Samples</h3>
|
2337 | 2323 | apiInstance = AccountingApi.getInstance(defaultClient);
|
2338 | 2324 | String xeroTenantId = 'YOUR_XERO_TENANT_ID';
|
2339 | 2325 | UUID fileId = UUID.fromString("4ff1e5cc-9835-40d5-bb18-09fdb118db9c");
|
| 2326 | + UUID fileId = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c'; |
2340 | 2327 |
|
2341 | 2328 | try {
|
2342 | 2329 | ByteArrayInputStream result = apiInstance.getFileContent(accessToken, xeroTenantId, fileId);
|
@@ -2635,6 +2622,7 @@ <h3>Usage and SDK Samples</h3>
|
2635 | 2622 | apiInstance = AccountingApi.getInstance(defaultClient);
|
2636 | 2623 | String xeroTenantId = 'YOUR_XERO_TENANT_ID';
|
2637 | 2624 | UUID folderId = UUID.fromString("4ff1e5cc-9835-40d5-bb18-09fdb118db9c");
|
| 2625 | + UUID folderId = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c'; |
2638 | 2626 |
|
2639 | 2627 | try {
|
2640 | 2628 | Folder result = apiInstance.getFolder(accessToken, xeroTenantId, folderId);
|
@@ -2988,6 +2976,7 @@ <h3>Usage and SDK Samples</h3>
|
2988 | 2976 | apiInstance = AccountingApi.getInstance(defaultClient);
|
2989 | 2977 | String xeroTenantId = 'YOUR_XERO_TENANT_ID';
|
2990 | 2978 | UUID fileId = UUID.fromString("4ff1e5cc-9835-40d5-bb18-09fdb118db9c");
|
| 2979 | + UUID fileId = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c'; |
2991 | 2980 |
|
2992 | 2981 | try {
|
2993 | 2982 | FileObject result = apiInstance.updateFile(accessToken, xeroTenantId, fileId, fileObject);
|
@@ -3146,6 +3135,7 @@ <h3>Usage and SDK Samples</h3>
|
3146 | 3135 | apiInstance = AccountingApi.getInstance(defaultClient);
|
3147 | 3136 | String xeroTenantId = 'YOUR_XERO_TENANT_ID';
|
3148 | 3137 | UUID folderId = UUID.fromString("4ff1e5cc-9835-40d5-bb18-09fdb118db9c");
|
| 3138 | + UUID folderId = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c'; |
3149 | 3139 |
|
3150 | 3140 | try {
|
3151 | 3141 | Folder result = apiInstance.updateFolder(accessToken, xeroTenantId, folderId, folder);
|
@@ -3503,6 +3493,7 @@ <h3>Usage and SDK Samples</h3>
|
3503 | 3493 | apiInstance = AccountingApi.getInstance(defaultClient);
|
3504 | 3494 | String xeroTenantId = 'YOUR_XERO_TENANT_ID';
|
3505 | 3495 | UUID folderId = UUID.fromString("4ff1e5cc-9835-40d5-bb18-09fdb118db9c");
|
| 3496 | + UUID folderId = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c'; |
3506 | 3497 | byte[] body = BYTE_ARRAY_DATA_HERE;
|
3507 | 3498 | String name = 'name_example';
|
3508 | 3499 | String filename = 'filename_example';
|
|
0 commit comments