diff --git a/Xero.NetStandard.OAuth2.Test/Api/AccountingApiTests.cs b/Xero.NetStandard.OAuth2.Test/Api/AccountingApiTests.cs index a7d56812..bd5346f8 100755 --- a/Xero.NetStandard.OAuth2.Test/Api/AccountingApiTests.cs +++ b/Xero.NetStandard.OAuth2.Test/Api/AccountingApiTests.cs @@ -148,7 +148,7 @@ public async Task CreateBankTransactionsTest() bankTransactions._BankTransactions = new List { new BankTransaction() }; string idempotencyKey = AutoFaker.Generate(); bool? summarizeErrors = AutoFaker.Generate(); - var response = await instance.CreateBankTransactionsAsync(accessToken, xeroTenantId, bankTransactions, idempotencyKey, summarizeErrors).ConfigureAwait(false); + var response = await instance.CreateBankTransactionsAsync(accessToken, xeroTenantId, bankTransactions, summarizeErrors, null, idempotencyKey ).ConfigureAwait(false); Assert.IsType(response); } @@ -304,7 +304,7 @@ public async Task CreateContactsTest() Contacts contacts = new Contacts(); string idempotencyKey = AutoFaker.Generate(); bool? summarizeErrors = AutoFaker.Generate(); - var response = await instance.CreateContactsAsync(accessToken, xeroTenantId, contacts, idempotencyKey, summarizeErrors).ConfigureAwait(false); + var response = await instance.CreateContactsAsync(accessToken, xeroTenantId, contacts, summarizeErrors, idempotencyKey).ConfigureAwait(false); Assert.IsType(response); } @@ -362,7 +362,7 @@ public async Task CreateCreditNotesTest() CreditNotes creditNotes = new CreditNotes(); string idempotencyKey = AutoFaker.Generate(); bool? summarizeErrors = AutoFaker.Generate(); - var response = await instance.CreateCreditNotesAsync(accessToken, xeroTenantId, creditNotes, idempotencyKey, summarizeErrors).ConfigureAwait(false); + var response = await instance.CreateCreditNotesAsync(accessToken, xeroTenantId, creditNotes, summarizeErrors, null, idempotencyKey).ConfigureAwait(false); Assert.IsType(response); } @@ -465,7 +465,7 @@ public async Task CreateInvoicesTest() invoices._Invoices = invList; string idempotencyKey = AutoFaker.Generate(); bool? summarizeErrors = AutoFaker.Generate(); - var response = await instance.CreateInvoicesAsync(accessToken, xeroTenantId, invoices, idempotencyKey, summarizeErrors).ConfigureAwait(false); + var response = await instance.CreateInvoicesAsync(accessToken, xeroTenantId, invoices, summarizeErrors, null, idempotencyKey).ConfigureAwait(false); Assert.IsType(response); } @@ -494,7 +494,7 @@ public async Task CreateItemsTest() Items items = new Items(); string idempotencyKey = AutoFaker.Generate(); bool? summarizeErrors = AutoFaker.Generate(); - var response = await instance.CreateItemsAsync(accessToken, xeroTenantId, items, idempotencyKey, summarizeErrors).ConfigureAwait(false); + var response = await instance.CreateItemsAsync(accessToken, xeroTenantId, items, summarizeErrors, null, idempotencyKey).ConfigureAwait(false); Assert.IsType(response); } @@ -689,7 +689,7 @@ public async Task CreatePurchaseOrdersTest() PurchaseOrders purchaseOrders = new PurchaseOrders(); string idempotencyKey = AutoFaker.Generate(); bool? summarizeErrors = AutoFaker.Generate(); - var response = await instance.CreatePurchaseOrdersAsync(accessToken, xeroTenantId, purchaseOrders, idempotencyKey, summarizeErrors).ConfigureAwait(false); + var response = await instance.CreatePurchaseOrdersAsync(accessToken, xeroTenantId, purchaseOrders, summarizeErrors, idempotencyKey).ConfigureAwait(false); Assert.IsType(response); } @@ -2742,7 +2742,7 @@ public async Task UpdateOrCreateBankTransactionsTest() BankTransactions bankTransactions = new BankTransactions(); string idempotencyKey = AutoFaker.Generate(); bool? summarizeErrors = AutoFaker.Generate(); - var response = await instance.UpdateOrCreateBankTransactionsAsync(accessToken, xeroTenantId, bankTransactions, idempotencyKey, summarizeErrors).ConfigureAwait(false); + var response = await instance.UpdateOrCreateBankTransactionsAsync(accessToken, xeroTenantId, bankTransactions, summarizeErrors, null, idempotencyKey).ConfigureAwait(false); Assert.IsType(response); } @@ -2757,7 +2757,7 @@ public async Task UpdateOrCreateContactsTest() string idempotencyKey = AutoFaker.Generate(); Contacts contacts = new Contacts(); bool? summarizeErrors = AutoFaker.Generate(); - var response = await instance.UpdateOrCreateContactsAsync(accessToken, xeroTenantId, contacts, idempotencyKey, summarizeErrors).ConfigureAwait(false); + var response = await instance.UpdateOrCreateContactsAsync(accessToken, xeroTenantId, contacts, summarizeErrors, idempotencyKey).ConfigureAwait(false); Assert.IsType(response); } @@ -2772,7 +2772,7 @@ public async Task UpdateOrCreateCreditNotesTest() CreditNotes creditNotes = new CreditNotes(); string idempotencyKey = AutoFaker.Generate(); bool? summarizeErrors = AutoFaker.Generate(); - var response = await instance.UpdateOrCreateCreditNotesAsync(accessToken, xeroTenantId, creditNotes, idempotencyKey, summarizeErrors).ConfigureAwait(false); + var response = await instance.UpdateOrCreateCreditNotesAsync(accessToken, xeroTenantId, creditNotes, summarizeErrors, null, idempotencyKey).ConfigureAwait(false); Assert.IsType(response); } @@ -2787,7 +2787,7 @@ public async Task UpdateOrCreateInvoicesTest() Invoices invoices = new Invoices(); string idempotencyKey = AutoFaker.Generate(); bool? summarizeErrors = AutoFaker.Generate(); - var response = await instance.UpdateOrCreateInvoicesAsync(accessToken, xeroTenantId, invoices, idempotencyKey, summarizeErrors).ConfigureAwait(false); + var response = await instance.UpdateOrCreateInvoicesAsync(accessToken, xeroTenantId, invoices, summarizeErrors, null, idempotencyKey).ConfigureAwait(false); Assert.IsType(response); } @@ -2802,7 +2802,7 @@ public async Task UpdateOrCreateItemsTest() Items items = new Items(); string idempotencyKey = AutoFaker.Generate(); bool? summarizeErrors = AutoFaker.Generate(); - var response = await instance.UpdateOrCreateItemsAsync(accessToken, xeroTenantId, items, idempotencyKey, summarizeErrors).ConfigureAwait(false); + var response = await instance.UpdateOrCreateItemsAsync(accessToken, xeroTenantId, items, summarizeErrors, null, idempotencyKey).ConfigureAwait(false); Assert.IsType(response); } @@ -2817,7 +2817,7 @@ public async Task UpdateOrCreatePurchaseOrdersTest() PurchaseOrders purchaseOrders = new PurchaseOrders(); string idempotencyKey = AutoFaker.Generate(); bool? summarizeErrors = AutoFaker.Generate(); - var response = await instance.UpdateOrCreatePurchaseOrdersAsync(accessToken, xeroTenantId, purchaseOrders, idempotencyKey, summarizeErrors).ConfigureAwait(false); + var response = await instance.UpdateOrCreatePurchaseOrdersAsync(accessToken, xeroTenantId, purchaseOrders, summarizeErrors, idempotencyKey).ConfigureAwait(false); Assert.IsType(response); } diff --git a/Xero.NetStandard.OAuth2.Test/Api/BankFeedsApiTests.cs b/Xero.NetStandard.OAuth2.Test/Api/BankFeedsApiTests.cs index 98631b44..a6778e5e 100644 --- a/Xero.NetStandard.OAuth2.Test/Api/BankFeedsApiTests.cs +++ b/Xero.NetStandard.OAuth2.Test/Api/BankFeedsApiTests.cs @@ -92,7 +92,7 @@ public async Task CreateStatementsTest() { Statements statements = new Statements(); string idempotencyKey = AutoFaker.Generate(); - var response = await instance.CreateStatementsAsync(accessToken, xeroTenantId, idempotencyKey, statements); + var response = await instance.CreateStatementsAsync(accessToken, xeroTenantId, statements, idempotencyKey); Assert.IsType(response); } diff --git a/Xero.NetStandard.OAuth2.Test/Api/PayrollAuApiTests.cs b/Xero.NetStandard.OAuth2.Test/Api/PayrollAuApiTests.cs index 6813841a..b545339d 100644 --- a/Xero.NetStandard.OAuth2.Test/Api/PayrollAuApiTests.cs +++ b/Xero.NetStandard.OAuth2.Test/Api/PayrollAuApiTests.cs @@ -357,7 +357,7 @@ public async Task UpdateEmployeeTest() Guid employeeId = AutoFaker.Generate(); List employee = new List { new Employee() }; string idempotencyKey = AutoFaker.Generate(); - var response = await instance.UpdateEmployeeAsync(accessToken, xeroTenantId, employeeId, idempotencyKey, employee); + var response = await instance.UpdateEmployeeAsync(accessToken, xeroTenantId, employeeId, employee, idempotencyKey); Assert.IsType(response); } @@ -382,7 +382,7 @@ public async Task UpdatePayRunTest() Guid payRunID = AutoFaker.Generate(); string idempotencyKey = AutoFaker.Generate(); List payRun = new List { new PayRun() }; - var response = await instance.UpdatePayRunAsync(accessToken, xeroTenantId, payRunID, idempotencyKey, payRun); + var response = await instance.UpdatePayRunAsync(accessToken, xeroTenantId, payRunID, payRun, idempotencyKey); Assert.IsType(response); } @@ -395,7 +395,7 @@ public async Task UpdatePayslipTest() Guid payslipID = AutoFaker.Generate(); string idempotencyKey = AutoFaker.Generate(); List payslipLines = new List { new PayslipLines() }; - var response = await instance.UpdatePayslipAsync(accessToken, xeroTenantId, payslipID, idempotencyKey, payslipLines); + var response = await instance.UpdatePayslipAsync(accessToken, xeroTenantId, payslipID, payslipLines, idempotencyKey); Assert.IsType(response); } @@ -408,7 +408,7 @@ public async Task UpdateSuperfundTest() Guid superFundID = AutoFaker.Generate(); string idempotencyKey = AutoFaker.Generate(); List superFund = new List { new SuperFund() }; - var response = await instance.UpdateSuperfundAsync(accessToken, xeroTenantId, superFundID, idempotencyKey, superFund); + var response = await instance.UpdateSuperfundAsync(accessToken, xeroTenantId, superFundID, superFund, idempotencyKey); Assert.IsType(response); } @@ -421,7 +421,7 @@ public async Task UpdateTimesheetTest() Guid timesheetID = AutoFaker.Generate(); string idempotencyKey = AutoFaker.Generate(); List timesheet = new List { new Timesheet() }; - var response = await instance.UpdateTimesheetAsync(accessToken, xeroTenantId, timesheetID, idempotencyKey, timesheet); + var response = await instance.UpdateTimesheetAsync(accessToken, xeroTenantId, timesheetID, timesheet, idempotencyKey); Assert.IsType(response); }