diff --git a/src/gen/api/accountingApi.ts b/src/gen/api/accountingApi.ts index 82be36a5..05ba5817 100644 --- a/src/gen/api/accountingApi.ts +++ b/src/gen/api/accountingApi.ts @@ -145,7 +145,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -223,7 +224,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -334,7 +336,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -443,7 +446,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -524,7 +528,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -606,7 +611,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -683,7 +689,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -792,7 +799,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -872,7 +880,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -952,7 +961,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -1033,7 +1043,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -1115,7 +1126,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -1222,7 +1234,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -1298,7 +1311,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -1379,7 +1393,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -1459,7 +1474,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -1540,7 +1556,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -1628,7 +1645,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -1741,7 +1759,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -1822,7 +1841,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -1904,7 +1924,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -1979,7 +2000,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -2059,7 +2081,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -2138,7 +2161,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -2217,7 +2241,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -2330,7 +2355,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -2411,7 +2437,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -2495,7 +2522,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -2576,7 +2604,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -2658,7 +2687,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -2736,7 +2766,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -2845,7 +2876,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -2925,7 +2957,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -3006,7 +3039,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -3091,7 +3125,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -3170,7 +3205,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -3246,7 +3282,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -3325,7 +3362,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -3400,7 +3438,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -3481,7 +3520,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -3566,7 +3606,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -3649,7 +3690,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -3758,7 +3800,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -3838,7 +3881,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -3920,7 +3964,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -4029,7 +4074,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -4109,7 +4155,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -4188,7 +4235,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -4270,7 +4318,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -4379,7 +4428,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -4462,7 +4512,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -4571,7 +4622,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -4651,7 +4703,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -4729,7 +4782,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -4803,7 +4857,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -4879,7 +4934,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -4958,7 +5014,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -5031,7 +5088,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -5107,7 +5165,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -5188,7 +5247,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -5265,7 +5325,8 @@ export class AccountingApi { let localVarFormParams: any = {}; let acceptHeadersFromSpec = [ ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -5340,7 +5401,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -5418,7 +5480,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -5491,7 +5554,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -5566,7 +5630,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -5646,7 +5711,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -5727,7 +5793,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -5805,7 +5872,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -5880,7 +5948,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -5960,7 +6029,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -6039,7 +6109,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -6115,7 +6186,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/octet-stream" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -6202,7 +6274,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/octet-stream" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -6286,7 +6359,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -6365,7 +6439,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -6443,7 +6518,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -6523,7 +6599,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/octet-stream" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -6610,7 +6687,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/octet-stream" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -6694,7 +6772,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -6775,7 +6854,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -6860,7 +6940,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -6933,7 +7014,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -7009,7 +7091,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/octet-stream" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -7096,7 +7179,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/octet-stream" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -7180,7 +7264,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -7258,7 +7343,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -7332,7 +7418,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -7409,7 +7496,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -7482,7 +7570,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -7556,7 +7645,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -7633,7 +7723,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -7706,7 +7797,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -7777,7 +7869,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -7847,7 +7940,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -7929,7 +8023,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -8009,7 +8104,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -8085,7 +8181,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/octet-stream" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -8172,7 +8269,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/octet-stream" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -8256,7 +8354,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -8334,7 +8433,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -8407,7 +8507,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -8480,7 +8581,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -8553,7 +8655,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -8629,7 +8732,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -8708,7 +8812,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -8806,7 +8911,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -8883,7 +8989,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/pdf" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -8959,7 +9066,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/octet-stream" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -9046,7 +9154,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/octet-stream" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -9130,7 +9239,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -9208,7 +9318,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -9284,7 +9395,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -9369,7 +9481,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -9445,7 +9558,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -9519,7 +9633,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -9596,7 +9711,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -9669,7 +9785,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -9743,7 +9860,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -9821,7 +9939,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -9898,7 +10017,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/pdf" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -9974,7 +10094,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/octet-stream" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -10061,7 +10182,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/octet-stream" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -10145,7 +10267,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -10223,7 +10346,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -10294,7 +10418,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -10372,7 +10497,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -10486,7 +10612,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -10563,7 +10690,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -10638,7 +10766,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -10719,7 +10848,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -10792,7 +10922,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -10866,7 +10997,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -10943,7 +11075,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -11020,7 +11153,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -11112,7 +11246,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -11188,7 +11323,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/octet-stream" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -11275,7 +11411,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/octet-stream" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -11359,7 +11496,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -11439,7 +11577,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -11520,7 +11659,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -11593,7 +11733,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -11664,7 +11805,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -11732,7 +11874,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -11803,7 +11946,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -11871,7 +12015,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -11944,7 +12089,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -12020,7 +12166,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -12105,7 +12252,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -12178,7 +12326,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -12249,7 +12398,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -12319,7 +12469,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -12400,7 +12551,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -12473,7 +12625,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -12549,7 +12702,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -12634,7 +12788,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -12707,7 +12862,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/pdf" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -12783,7 +12939,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/octet-stream" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -12870,7 +13027,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/octet-stream" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -12954,7 +13112,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -13032,7 +13191,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -13105,7 +13265,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -13182,7 +13343,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -13271,7 +13433,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -13344,7 +13507,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/pdf" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -13420,7 +13584,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/octet-stream" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -13507,7 +13672,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/octet-stream" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -13591,7 +13757,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -13669,7 +13836,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -13750,7 +13918,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -13856,7 +14025,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -13936,7 +14106,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/octet-stream" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -14023,7 +14194,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/octet-stream" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -14107,7 +14279,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -14185,7 +14358,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -14260,7 +14434,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -14341,7 +14516,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -14417,7 +14593,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/octet-stream" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -14504,7 +14681,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/octet-stream" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -14588,7 +14766,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -14666,7 +14845,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -14739,7 +14919,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -14817,7 +14998,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -14908,7 +15090,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -15002,7 +15185,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -15098,7 +15282,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -15175,7 +15360,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -15254,7 +15440,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -15326,7 +15513,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -15407,7 +15595,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -15514,7 +15703,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -15586,7 +15776,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -15660,7 +15851,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -15729,7 +15921,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -15810,7 +16003,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -15890,7 +16084,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -15963,7 +16158,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -16037,7 +16233,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -16114,7 +16311,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -16190,7 +16388,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -16273,7 +16472,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -16383,7 +16583,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -16470,7 +16671,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -16580,7 +16782,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -16689,7 +16892,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -16771,7 +16975,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -16880,7 +17085,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -16962,7 +17168,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -17049,7 +17256,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -17158,7 +17366,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -17240,7 +17449,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -17327,7 +17537,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -17437,7 +17648,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -17522,7 +17734,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -17603,7 +17816,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -17686,7 +17900,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -17795,7 +18010,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -17878,7 +18094,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -17958,7 +18175,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -18041,7 +18259,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -18121,7 +18340,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -18205,7 +18425,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -18288,7 +18509,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -18367,7 +18589,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -18446,7 +18669,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -18525,7 +18749,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -18605,7 +18830,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -18688,7 +18914,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -18797,7 +19024,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -18880,7 +19108,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -18990,7 +19219,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -19077,7 +19307,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -19186,7 +19417,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -19269,7 +19501,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -19376,7 +19609,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -19452,7 +19686,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -19535,7 +19770,8 @@ export class AccountingApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { diff --git a/src/gen/api/appStoreApi.ts b/src/gen/api/appStoreApi.ts index 478e168f..f8faf4c9 100644 --- a/src/gen/api/appStoreApi.ts +++ b/src/gen/api/appStoreApi.ts @@ -97,7 +97,8 @@ export class AppStoreApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'subscriptionId' is not null or undefined if (subscriptionId === null || subscriptionId === undefined) { @@ -163,7 +164,8 @@ export class AppStoreApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'subscriptionId' is not null or undefined if (subscriptionId === null || subscriptionId === undefined) { @@ -233,7 +235,8 @@ export class AppStoreApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'subscriptionId' is not null or undefined if (subscriptionId === null || subscriptionId === undefined) { @@ -316,7 +319,8 @@ export class AppStoreApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'subscriptionId' is not null or undefined if (subscriptionId === null || subscriptionId === undefined) { diff --git a/src/gen/api/assetApi.ts b/src/gen/api/assetApi.ts index f02e0f16..ef4a7bb5 100644 --- a/src/gen/api/assetApi.ts +++ b/src/gen/api/assetApi.ts @@ -97,7 +97,8 @@ export class AssetApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -171,7 +172,8 @@ export class AssetApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -240,7 +242,8 @@ export class AssetApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -311,7 +314,8 @@ export class AssetApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -377,7 +381,8 @@ export class AssetApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -449,7 +454,8 @@ export class AssetApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { diff --git a/src/gen/api/bankfeedsApi.ts b/src/gen/api/bankfeedsApi.ts index 6d393be7..2f05e96d 100644 --- a/src/gen/api/bankfeedsApi.ts +++ b/src/gen/api/bankfeedsApi.ts @@ -96,7 +96,8 @@ export class BankFeedsApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -171,7 +172,8 @@ export class BankFeedsApi { "application/json", "application/problem+json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -240,7 +242,8 @@ export class BankFeedsApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -314,7 +317,8 @@ export class BankFeedsApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -387,7 +391,8 @@ export class BankFeedsApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -463,7 +468,8 @@ export class BankFeedsApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -539,7 +545,8 @@ export class BankFeedsApi { "application/json", "application/problem+json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { diff --git a/src/gen/api/filesApi.ts b/src/gen/api/filesApi.ts index 771e6ed3..67576c6f 100644 --- a/src/gen/api/filesApi.ts +++ b/src/gen/api/filesApi.ts @@ -98,7 +98,8 @@ export class FilesApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -172,7 +173,8 @@ export class FilesApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -240,7 +242,8 @@ export class FilesApi { let localVarFormParams: any = {}; let acceptHeadersFromSpec = [ ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -314,7 +317,8 @@ export class FilesApi { let localVarFormParams: any = {}; let acceptHeadersFromSpec = [ ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -391,7 +395,8 @@ export class FilesApi { let localVarFormParams: any = {}; let acceptHeadersFromSpec = [ ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -468,7 +473,8 @@ export class FilesApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -556,7 +562,8 @@ export class FilesApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -633,7 +640,8 @@ export class FilesApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -706,7 +714,8 @@ export class FilesApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -779,7 +788,8 @@ export class FilesApi { let acceptHeadersFromSpec = [ "application/octet-stream" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -853,7 +863,8 @@ export class FilesApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -933,7 +944,8 @@ export class FilesApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -1005,7 +1017,8 @@ export class FilesApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -1075,7 +1088,8 @@ export class FilesApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -1145,7 +1159,8 @@ export class FilesApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -1221,7 +1236,8 @@ export class FilesApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -1303,7 +1319,8 @@ export class FilesApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -1409,7 +1426,8 @@ export class FilesApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { diff --git a/src/gen/api/financeApi.ts b/src/gen/api/financeApi.ts index 4e1adfda..52db876a 100644 --- a/src/gen/api/financeApi.ts +++ b/src/gen/api/financeApi.ts @@ -104,7 +104,8 @@ export class FinanceApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -179,7 +180,8 @@ export class FinanceApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -250,7 +252,8 @@ export class FinanceApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -321,7 +324,8 @@ export class FinanceApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -395,7 +399,8 @@ export class FinanceApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -495,7 +500,8 @@ export class FinanceApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -574,7 +580,8 @@ export class FinanceApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -646,7 +653,8 @@ export class FinanceApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -724,7 +732,8 @@ export class FinanceApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -810,7 +819,8 @@ export class FinanceApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -894,7 +904,8 @@ export class FinanceApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -969,7 +980,8 @@ export class FinanceApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { diff --git a/src/gen/api/payrollAUApi.ts b/src/gen/api/payrollAUApi.ts index b4e087f7..4d7d2858 100644 --- a/src/gen/api/payrollAUApi.ts +++ b/src/gen/api/payrollAUApi.ts @@ -114,7 +114,8 @@ export class PayrollAuApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -188,7 +189,8 @@ export class PayrollAuApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -262,7 +264,8 @@ export class PayrollAuApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -336,7 +339,8 @@ export class PayrollAuApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -410,7 +414,8 @@ export class PayrollAuApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -484,7 +489,8 @@ export class PayrollAuApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -558,7 +564,8 @@ export class PayrollAuApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -632,7 +639,8 @@ export class PayrollAuApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -706,7 +714,8 @@ export class PayrollAuApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -781,7 +790,8 @@ export class PayrollAuApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -862,7 +872,8 @@ export class PayrollAuApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -937,7 +948,8 @@ export class PayrollAuApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -1020,7 +1032,8 @@ export class PayrollAuApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -1103,7 +1116,8 @@ export class PayrollAuApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -1184,7 +1198,8 @@ export class PayrollAuApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -1259,7 +1274,8 @@ export class PayrollAuApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -1340,7 +1356,8 @@ export class PayrollAuApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -1415,7 +1432,8 @@ export class PayrollAuApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -1496,7 +1514,8 @@ export class PayrollAuApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -1567,7 +1586,8 @@ export class PayrollAuApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -1635,7 +1655,8 @@ export class PayrollAuApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -1708,7 +1729,8 @@ export class PayrollAuApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -1786,7 +1808,8 @@ export class PayrollAuApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -1867,7 +1890,8 @@ export class PayrollAuApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -1942,7 +1966,8 @@ export class PayrollAuApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -2024,7 +2049,8 @@ export class PayrollAuApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -2100,7 +2126,8 @@ export class PayrollAuApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -2176,7 +2203,8 @@ export class PayrollAuApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -2257,7 +2285,8 @@ export class PayrollAuApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -2333,7 +2362,8 @@ export class PayrollAuApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -2409,7 +2439,8 @@ export class PayrollAuApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -2485,7 +2516,8 @@ export class PayrollAuApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { diff --git a/src/gen/api/payrollNZApi.ts b/src/gen/api/payrollNZApi.ts index 052dedc9..e16b8613 100644 --- a/src/gen/api/payrollNZApi.ts +++ b/src/gen/api/payrollNZApi.ts @@ -155,7 +155,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -229,7 +230,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -303,7 +305,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -377,7 +380,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -453,7 +457,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -534,7 +539,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -615,7 +621,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -696,7 +703,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -777,7 +785,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -858,7 +867,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -939,7 +949,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -1020,7 +1031,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -1099,7 +1111,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -1175,7 +1188,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -1254,7 +1268,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -1328,7 +1343,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -1402,7 +1418,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -1476,7 +1493,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -1550,7 +1568,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -1626,7 +1645,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -1707,7 +1727,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -1787,7 +1808,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -1867,7 +1889,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -1945,7 +1968,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -2020,7 +2044,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -2098,7 +2123,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -2170,7 +2196,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -2242,7 +2269,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -2314,7 +2342,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -2386,7 +2415,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -2459,7 +2489,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -2534,7 +2565,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -2615,7 +2647,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -2688,7 +2721,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -2761,7 +2795,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -2834,7 +2869,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -2907,7 +2943,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -2982,7 +3019,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -3061,7 +3099,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -3138,7 +3177,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -3211,7 +3251,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -3287,7 +3328,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -3360,7 +3402,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -3436,7 +3479,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -3509,7 +3553,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -3581,7 +3626,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -3653,7 +3699,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -3729,7 +3776,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -3802,7 +3850,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -3883,7 +3932,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -3955,7 +4005,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -4025,7 +4076,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -4093,7 +4145,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -4165,7 +4218,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -4237,7 +4291,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -4309,7 +4364,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -4381,7 +4437,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -4458,7 +4515,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -4548,7 +4606,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -4617,7 +4676,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -4693,7 +4753,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -4776,7 +4837,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -4864,7 +4926,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -4952,7 +5015,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -5038,7 +5102,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -5119,7 +5184,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -5200,7 +5266,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -5283,7 +5350,8 @@ export class PayrollNzApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { diff --git a/src/gen/api/payrollUKApi.ts b/src/gen/api/payrollUKApi.ts index 6ac958ea..32ecc450 100644 --- a/src/gen/api/payrollUKApi.ts +++ b/src/gen/api/payrollUKApi.ts @@ -155,7 +155,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -229,7 +230,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -303,7 +305,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -377,7 +380,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -451,7 +455,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -527,7 +532,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -608,7 +614,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -689,7 +696,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -770,7 +778,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -851,7 +860,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -932,7 +942,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -1011,7 +1022,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -1087,7 +1099,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -1166,7 +1179,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -1242,7 +1256,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -1321,7 +1336,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -1395,7 +1411,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -1469,7 +1486,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -1545,7 +1563,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -1625,7 +1644,8 @@ export class PayrollUkApi { let localVarFormParams: any = {}; let acceptHeadersFromSpec = [ ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -1705,7 +1725,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -1784,7 +1805,8 @@ export class PayrollUkApi { let localVarFormParams: any = {}; let acceptHeadersFromSpec = [ ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -1862,7 +1884,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -1937,7 +1960,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -2015,7 +2039,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -2087,7 +2112,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -2159,7 +2185,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -2231,7 +2258,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -2303,7 +2331,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -2375,7 +2404,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -2447,7 +2477,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -2519,7 +2550,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -2591,7 +2623,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -2666,7 +2699,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -2744,7 +2778,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -2819,7 +2854,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -2900,7 +2936,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -2973,7 +3010,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -3046,7 +3084,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -3119,7 +3158,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -3192,7 +3232,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -3267,7 +3308,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -3346,7 +3388,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -3425,7 +3468,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -3506,7 +3550,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -3579,7 +3624,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -3652,7 +3698,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -3728,7 +3775,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -3801,7 +3849,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -3877,7 +3926,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -3950,7 +4000,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -4022,7 +4073,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -4094,7 +4146,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -4170,7 +4223,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -4243,7 +4297,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -4324,7 +4379,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -4396,7 +4452,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -4466,7 +4523,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -4535,7 +4593,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -4612,7 +4671,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -4689,7 +4749,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -4779,7 +4840,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -4848,7 +4910,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -4924,7 +4987,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -5007,7 +5071,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -5095,7 +5160,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -5181,7 +5247,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -5264,7 +5331,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -5350,7 +5418,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -5433,7 +5502,8 @@ export class PayrollUkApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { diff --git a/src/gen/api/projectApi.ts b/src/gen/api/projectApi.ts index 0dfcc03c..0666ee65 100644 --- a/src/gen/api/projectApi.ts +++ b/src/gen/api/projectApi.ts @@ -104,7 +104,8 @@ export class ProjectApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -180,7 +181,8 @@ export class ProjectApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -261,7 +263,8 @@ export class ProjectApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -342,7 +345,8 @@ export class ProjectApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -422,7 +426,8 @@ export class ProjectApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -500,7 +505,8 @@ export class ProjectApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -573,7 +579,8 @@ export class ProjectApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -652,7 +659,8 @@ export class ProjectApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -742,7 +750,8 @@ export class ProjectApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -824,7 +833,8 @@ export class ProjectApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -923,7 +933,8 @@ export class ProjectApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -1038,7 +1049,8 @@ export class ProjectApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -1118,7 +1130,8 @@ export class ProjectApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -1199,7 +1212,8 @@ export class ProjectApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -1282,7 +1296,8 @@ export class ProjectApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) { @@ -1370,7 +1385,8 @@ export class ProjectApi { let acceptHeadersFromSpec = [ "application/json" ]; - const responseTypeOption = !acceptHeadersFromSpec.includes("application/json") ? "arraybuffer" : "json"; + const isBufferType = acceptHeadersFromSpec.includes("application/pdf")|| acceptHeadersFromSpec.includes("application/octet-stream") || acceptHeadersFromSpec.includes("application/jpg"); + const responseTypeOption = isBufferType ? "arraybuffer" : "json"; // verify required parameter 'xeroTenantId' is not null or undefined if (xeroTenantId === null || xeroTenantId === undefined) {