- byte[]
+ File
Byte array of file in body of request
@@ -46650,7 +47440,7 @@
Parameters
"application/octet-stream" : {
"schema" : {
"type" : "string",
- "format" : "byte"
+ "format" : "binary"
}
}
},
@@ -46810,7 +47600,17 @@ Parameters
"schema" : {
"$ref" : "#/components/schemas/TaxRates"
},
- "example" : "{ \"TaxRates\": [ { \"Name\": \"State Tax NY\", \"TaxComponents\": [ { \"Name\": \"State Tax\", \"Rate\": 2.25 } ], \"Status\": \"DELETED\", \"ReportTaxType\": \"INPUT\" } ] }"
+ "example" : {
+ "TaxRates" : [ {
+ "Name" : "State Tax NY",
+ "TaxComponents" : [ {
+ "Name" : "State Tax",
+ "Rate" : 2.25
+ } ],
+ "Status" : "DELETED",
+ "ReportTaxType" : "INPUT"
+ } ]
+ }
}
},
"required" : true
@@ -46991,7 +47791,9 @@ Parameters
"schema" : {
"$ref" : "#/components/schemas/TrackingCategory"
},
- "example" : "{ \"Name\": \"Avengers\" }"
+ "example" : {
+ "Name" : "Avengers"
+ }
}
},
"required" : true
@@ -47199,7 +48001,9 @@ Parameters
"schema" : {
"$ref" : "#/components/schemas/TrackingOption"
},
- "example" : "{ name: \"Vision\" }"
+ "example" : {
+ "name" : "Vision"
+ }
}
},
"required" : true
diff --git a/docs/v2/appstore/index.html b/docs/v2/appstore/index.html
index e954597f..c1f6bd8e 100644
--- a/docs/v2/appstore/index.html
+++ b/docs/v2/appstore/index.html
@@ -1624,7 +1624,10 @@ Parameters
"schema" : {
"$ref" : "#/components/schemas/CreateUsageRecord"
},
- "example" : "{ \"timestamp\": \"2022-01-21T13:01:00\", \"quantity\": 10 }"
+ "example" : {
+ "timestamp" : "2022-01-21T13:01:00",
+ "quantity" : 10
+ }
}
},
"required" : true
@@ -1833,7 +1836,9 @@ Parameters
"schema" : {
"$ref" : "#/components/schemas/UpdateUsageRecord"
},
- "example" : "{ \"quantity\": 10 }"
+ "example" : {
+ "quantity" : 10
+ }
}
},
"required" : true
diff --git a/docs/v2/assets/index.html b/docs/v2/assets/index.html
index 2d763d0e..d02d1364 100644
--- a/docs/v2/assets/index.html
+++ b/docs/v2/assets/index.html
@@ -1030,7 +1030,6 @@
};
defs["BookDepreciationDetail"] = {
"title" : "",
- "required" : [ "name" ],
"properties" : {
"currentCapitalGain" : {
"type" : "number",
@@ -1084,7 +1083,6 @@
};
defs["BookDepreciationSetting"] = {
"title" : "",
- "required" : [ "name" ],
"properties" : {
"depreciationMethod" : {
"type" : "string",
@@ -1569,7 +1567,28 @@ Parameters
"schema" : {
"$ref" : "#/components/schemas/Asset"
},
- "example" : "{ \"assetName\":\"Computer74863\", \"assetNumber\":\"123477544\", \"purchaseDate\":\"2020-01-01\", \"purchasePrice\":100.0, \"disposalPrice\":23.23, \"assetStatus\":\"Draft\", \"bookDepreciationSetting\":{ \"depreciationMethod\":\"StraightLine\", \"averagingMethod\":\"ActualDays\", \"depreciationRate\":0.5, \"depreciationCalculationMethod\":\"None\" }, \"bookDepreciationDetail\":{ \"currentCapitalGain\":5.32, \"currentGainLoss\":3.88, \"depreciationStartDate\":\"2020-01-02\", \"costLimit\":100.0, \"currentAccumDepreciationAmount\":2.25 }, \"AccountingBookValue\":99.5 }"
+ "example" : {
+ "assetName" : "Computer74863",
+ "assetNumber" : "123477544",
+ "purchaseDate" : "2020-01-01",
+ "purchasePrice" : 100.0,
+ "disposalPrice" : 23.23,
+ "assetStatus" : "Draft",
+ "bookDepreciationSetting" : {
+ "depreciationMethod" : "StraightLine",
+ "averagingMethod" : "ActualDays",
+ "depreciationRate" : 0.5,
+ "depreciationCalculationMethod" : "None"
+ },
+ "bookDepreciationDetail" : {
+ "currentCapitalGain" : 5.32,
+ "currentGainLoss" : 3.88,
+ "depreciationStartDate" : "2020-01-02",
+ "costLimit" : 100.0,
+ "currentAccumDepreciationAmount" : 2.25
+ },
+ "AccountingBookValue" : 99.5
+ }
}
},
"required" : true
@@ -1727,7 +1746,18 @@ Parameters
"schema" : {
"$ref" : "#/components/schemas/AssetType"
},
- "example" : "{ \"assetTypeName\":\"Machinery11004\", \"fixedAssetAccountId\":\"3d8d063a-c148-4bb8-8b3c-a5e2ad3b1e82\", \"depreciationExpenseAccountId\":\"d1602f69-f900-4616-8d34-90af393fa368\", \"accumulatedDepreciationAccountId\":\"9195cadd-8645-41e6-9f67-7bcd421defe8\", \"bookDepreciationSetting\":{ \"depreciationMethod\":\"DiminishingValue100\", \"averagingMethod\":\"ActualDays\", \"depreciationRate\":0.05, \"depreciationCalculationMethod\":\"None\" } }"
+ "example" : {
+ "assetTypeName" : "Machinery11004",
+ "fixedAssetAccountId" : "3d8d063a-c148-4bb8-8b3c-a5e2ad3b1e82",
+ "depreciationExpenseAccountId" : "d1602f69-f900-4616-8d34-90af393fa368",
+ "accumulatedDepreciationAccountId" : "9195cadd-8645-41e6-9f67-7bcd421defe8",
+ "bookDepreciationSetting" : {
+ "depreciationMethod" : "DiminishingValue100",
+ "averagingMethod" : "ActualDays",
+ "depreciationRate" : 0.05,
+ "depreciationCalculationMethod" : "None"
+ }
+ }
}
},
"required" : true
diff --git a/docs/v2/payroll_au/index.html b/docs/v2/payroll_au/index.html
index e5275941..242e5532 100644
--- a/docs/v2/payroll_au/index.html
+++ b/docs/v2/payroll_au/index.html
@@ -4156,7 +4156,25 @@ Parameters
"schema" : {
"$ref" : "#/components/schemas/PayItem"
},
- "example" : "{ \"EarningsRates\": [ { \"Name\": \"MyRate\", \"AccountCode\": \"400\", \"TypeOfUnits\": \"4.00\", \"IsExemptFromTax\": true, \"IsExemptFromSuper\": true, \"IsReportableAsW1\": false, \"AllowanceContributesToAnnualLeaveRate\": false, \"AllowanceContributesToOvertimeRate\": false, \"EarningsType\": \"ORDINARYTIMEEARNINGS\", \"EarningsRateID\": \"1fa4e226-b711-46ba-a8a7-4344c9c5fb87\", \"RateType\": \"MULTIPLE\", \"RatePerUnit\": \"10.0\", \"Multiplier\": 1.5, \"Amount\": 5, \"EmploymentTerminationPaymentType\": \"O\" } ] }"
+ "example" : {
+ "EarningsRates" : [ {
+ "Name" : "MyRate",
+ "AccountCode" : "400",
+ "TypeOfUnits" : "4.00",
+ "IsExemptFromTax" : true,
+ "IsExemptFromSuper" : true,
+ "IsReportableAsW1" : false,
+ "AllowanceContributesToAnnualLeaveRate" : false,
+ "AllowanceContributesToOvertimeRate" : false,
+ "EarningsType" : "ORDINARYTIMEEARNINGS",
+ "EarningsRateID" : "1fa4e226-b711-46ba-a8a7-4344c9c5fb87",
+ "RateType" : "MULTIPLE",
+ "RatePerUnit" : "10.0",
+ "Multiplier" : 1.5,
+ "Amount" : 5,
+ "EmploymentTerminationPaymentType" : "O"
+ } ]
+ }
}
},
"required" : true
@@ -8275,7 +8293,16 @@ Parameters
"$ref" : "#/components/schemas/PayslipLines"
}
},
- "example" : "{ \"Payslip\": { \"EmployeeID\": \"cdfb8371-0b21-4b8a-8903-1024df6c391e\", \"DeductionLines\": [ { \"DeductionTypeID\": \"727af5e8-b347-4ae7-85fc-9b82266d0aec\", \"CalculationType\": \"FIXEDAMOUNT\", \"NumberOfUnits\": 10 } ] } }"
+ "example" : {
+ "Payslip" : {
+ "EmployeeID" : "cdfb8371-0b21-4b8a-8903-1024df6c391e",
+ "DeductionLines" : [ {
+ "DeductionTypeID" : "727af5e8-b347-4ae7-85fc-9b82266d0aec",
+ "CalculationType" : "FIXEDAMOUNT",
+ "NumberOfUnits" : 10
+ } ]
+ }
+ }
}
},
"required" : true
diff --git a/docs/v2/payroll_nz/index.html b/docs/v2/payroll_nz/index.html
index ff2e5bab..1cf9ee9a 100644
--- a/docs/v2/payroll_nz/index.html
+++ b/docs/v2/payroll_nz/index.html
@@ -1048,7 +1048,7 @@
};
defs["Deduction"] = {
"title" : "",
- "required" : [ "calculationType", "deductionCategory", "deductionName", "liabilityAccountId" ],
+ "required" : [ "deductionCategory", "deductionName", "liabilityAccountId" ],
"type" : "object",
"properties" : {
"deductionId" : {
@@ -1422,7 +1422,7 @@
};
defs["Employee"] = {
"title" : "",
- "required" : [ "Address", "DateOfBirth", "FirstName", "LastName" ],
+ "required" : [ "address", "dateOfBirth", "firstName", "lastName" ],
"type" : "object",
"properties" : {
"employeeID" : {
@@ -2463,7 +2463,7 @@
};
defs["Employment"] = {
"title" : "",
- "required" : [ "EngagementType", "PayrollCalendarID", "StartDate" ],
+ "required" : [ "engagementType", "payrollCalendarID", "startDate" ],
"type" : "object",
"properties" : {
"payrollCalendarID" : {
@@ -4603,7 +4603,11 @@ Parameters
"schema" : {
"$ref" : "#/components/schemas/Deduction"
},
- "example" : "{ \"deductionName\": \"My new deduction\", \"deductionCategory\": \"NzOther\", \"liabilityAccountId\": \"568f2e9a-0870-46cc-8678-f83f132ed4e3\" }"
+ "example" : {
+ "deductionName" : "My new deduction",
+ "deductionCategory" : "NzOther",
+ "liabilityAccountId" : "568f2e9a-0870-46cc-8678-f83f132ed4e3"
+ }
}
},
"required" : true
@@ -4752,7 +4756,13 @@ Parameters
"schema" : {
"$ref" : "#/components/schemas/EarningsRate"
},
- "example" : "{ \"name\": \"My Earnings Rate\", \"earningsType\": \"RegularEarnings\", \"rateType\": \"RatePerUnit\", \"typeOfUnits\": \"hours\", \"expenseAccountID\": \"e4eb36f6-97e3-4427-a394-dd4e1b355c2e\" }"
+ "example" : {
+ "name" : "My Earnings Rate",
+ "earningsType" : "RegularEarnings",
+ "rateType" : "RatePerUnit",
+ "typeOfUnits" : "hours",
+ "expenseAccountID" : "e4eb36f6-97e3-4427-a394-dd4e1b355c2e"
+ }
}
},
"required" : true
@@ -4909,7 +4919,20 @@ Parameters
"schema" : {
"$ref" : "#/components/schemas/Employee"
},
- "example" : "{ \"title\": \"Mr\", \"firstName\": \"Mike\", \"lastName\": \"Johntzxzpxhmkgson\", \"dateOfBirth\": \"2000-01-01\", \"address\": { \"addressLine1\": \"101 Green St\", \"city\": \"San Francisco\", \"postCode\": \"4351\", \"countryName\": \"United Kingdom\" }, \"email\": \"83139@starkindustries.com\", \"gender\": \"M\" }"
+ "example" : {
+ "title" : "Mr",
+ "firstName" : "Mike",
+ "lastName" : "Johntzxzpxhmkgson",
+ "dateOfBirth" : "2000-01-01",
+ "address" : {
+ "addressLine1" : "101 Green St",
+ "city" : "San Francisco",
+ "postCode" : "4351",
+ "countryName" : "United Kingdom"
+ },
+ "email" : "83139@starkindustries.com",
+ "gender" : "M"
+ }
}
},
"required" : true
@@ -5097,7 +5120,12 @@ Parameters
"schema" : {
"$ref" : "#/components/schemas/EarningsTemplate"
},
- "example" : "{ \"ratePerUnit\": 20, \"numberOfUnits\": 8, \"earningsRateID\": \"f9d8f5b5-9049-47f4-8541-35e200f750a5\", \"name\": \"My New One\" }"
+ "example" : {
+ "ratePerUnit" : 20,
+ "numberOfUnits" : 8,
+ "earningsRateID" : "f9d8f5b5-9049-47f4-8541-35e200f750a5",
+ "name" : "My New One"
+ }
}
},
"required" : true
@@ -5284,7 +5312,12 @@ Parameters
"schema" : {
"$ref" : "#/components/schemas/EmployeeLeave"
},
- "example" : "{ \"leaveTypeID\": \"b0b1b79e-2a25-46c2-ad08-ca25ef48d7e4\", \"description\": \"Creating a Description\", \"startDate\": \"2020-04-24\", \"endDate\": \"2020-04-26\" }"
+ "example" : {
+ "leaveTypeID" : "b0b1b79e-2a25-46c2-ad08-ca25ef48d7e4",
+ "description" : "Creating a Description",
+ "startDate" : "2020-04-24",
+ "endDate" : "2020-04-26"
+ }
}
},
"required" : true
@@ -5475,7 +5508,16 @@ Parameters
"schema" : {
"$ref" : "#/components/schemas/EmployeeLeaveSetup"
},
- "example" : "{ \"holidayPayOpeningBalance\": 10, \"annualLeaveOpeningBalance\": 100, \"sickLeaveHoursToAccrueAnnually\": 20, \"sickLeaveToAccrueAnnually\": 20, \"sickLeaveOpeningBalance\": 10, \"sickLeaveScheduleOfAccrual\": \"OnAnniversaryDate\", \"sickLeaveAnniversaryDate\": \"2023-12-31\", \"annualLeaveAnniversaryDate\": \"2023-12-31\" }"
+ "example" : {
+ "holidayPayOpeningBalance" : 10,
+ "annualLeaveOpeningBalance" : 100,
+ "sickLeaveHoursToAccrueAnnually" : 20,
+ "sickLeaveToAccrueAnnually" : 20,
+ "sickLeaveOpeningBalance" : 10,
+ "sickLeaveScheduleOfAccrual" : "OnAnniversaryDate",
+ "sickLeaveAnniversaryDate" : "2023-12-31",
+ "annualLeaveAnniversaryDate" : "2023-12-31"
+ }
}
},
"required" : true
@@ -5659,7 +5701,17 @@ Parameters
"schema" : {
"$ref" : "#/components/schemas/EmployeeLeaveType"
},
- "example" : "{ \"leaveTypeID\": \"35da97ae-05b9-427f-9a98-69157ba42cec\", \"scheduleOfAccrual\": \"AnnuallyAfter6Months\", \"hoursAccruedAnnually\": 10, \"unitsAccruedAnnually\": 10, \"typeOfUnitsToAccrue\": \"Hours\", \"openingBalanceTypeOfUnits\": \"Hours\" \"maximumToAccrue\": 80, \"openingBalance\": 100, \"rateAccruedHourly\": 3.5 }"
+ "example" : {
+ "leaveTypeID" : "35da97ae-05b9-427f-9a98-69157ba42cec",
+ "scheduleOfAccrual" : "AnnuallyAfter6Months",
+ "hoursAccruedAnnually" : 10,
+ "unitsAccruedAnnually" : 10,
+ "typeOfUnitsToAccrue" : "Hours",
+ "openingBalanceTypeOfUnits" : "Hours",
+ "maximumToAccrue" : 80,
+ "openingBalance" : 100,
+ "rateAccruedHourly" : 3.5
+ }
}
},
"required" : true
@@ -6033,6 +6085,18 @@ Parameters
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/PaymentMethod"
+ },
+ "example" : {
+ "bankAccounts" : [ {
+ "accountName" : "Casual Worker",
+ "accountNumber" : "0607050201419000",
+ "sortCode" : null,
+ "particulars" : null,
+ "code" : null,
+ "dollarAmount" : null,
+ "reference" : "",
+ "calculationType" : "Balance"
+ } ]
}
}
},
@@ -6217,7 +6281,17 @@ Parameters
"schema" : {
"$ref" : "#/components/schemas/SalaryAndWage"
},
- "example" : "{ \"earningsRateID\": \"f9d8f5b5-9049-47f4-8541-35e200f750a5\", \"numberOfUnitsPerWeek\": 2, \"ratePerUnit\": 10, \"numberOfUnitsPerDay\": 2, \"daysPerWeek\": 1, \"effectiveFrom\": \"2020-05-01\", \"annualSalary\": 100, \"status\": \"Active\", \"paymentType\": \"Salary\" }"
+ "example" : {
+ "earningsRateID" : "f9d8f5b5-9049-47f4-8541-35e200f750a5",
+ "numberOfUnitsPerWeek" : 2,
+ "ratePerUnit" : 10,
+ "numberOfUnitsPerDay" : 2,
+ "daysPerWeek" : 1,
+ "effectiveFrom" : "2020-05-01",
+ "annualSalary" : 100,
+ "status" : "Active",
+ "paymentType" : "Salary"
+ }
}
},
"required" : true
@@ -6405,7 +6479,18 @@ Parameters
"schema" : {
"$ref" : "#/components/schemas/EmployeeWorkingPatternWithWorkingWeeksRequest"
},
- "example" : "{ \"effectiveFrom\": \"2020-01-01T00:00:00\", \"workingWeeks\": [ { \"monday\": 0.0, \"tuesday\": 3.0000, \"wednesday\": 0.0, \"thursday\": 0.0, \"friday\": 0.0, \"saturday\": 0.0, \"sunday\": 0.0 } ] }"
+ "example" : {
+ "effectiveFrom" : "2020-01-01T00:00:00",
+ "workingWeeks" : [ {
+ "monday" : 0.0,
+ "tuesday" : 3.0,
+ "wednesday" : 0.0,
+ "thursday" : 0.0,
+ "friday" : 0.0,
+ "saturday" : 0.0,
+ "sunday" : 0.0
+ } ]
+ }
}
},
"required" : true
@@ -6590,7 +6675,12 @@ Parameters
"schema" : {
"$ref" : "#/components/schemas/Employment"
},
- "example" : "{ \"payrollCalendarID\": \"9aa56064-990f-4ad3-a189-d966d8f6a030\", \"startDate\": \"2020-09-02\", \"engagementType\": \"FixedTerm\", \"fixedTermEndDate\": \"2026-01-01\" }"
+ "example" : {
+ "payrollCalendarID" : "9aa56064-990f-4ad3-a189-d966d8f6a030",
+ "startDate" : "2020-09-02",
+ "engagementType" : "FixedTerm",
+ "fixedTermEndDate" : "2026-01-01"
+ }
}
},
"required" : true
@@ -6739,7 +6829,11 @@ Parameters
"schema" : {
"$ref" : "#/components/schemas/LeaveType"
},
- "example" : "{ \"name\": \"My wqwhhiktun Leave\", \"isPaidLeave\": false, \"showOnPayslip\": true }"
+ "example" : {
+ "name" : "My wqwhhiktun Leave",
+ "isPaidLeave" : false,
+ "showOnPayslip" : true
+ }
}
},
"required" : true
@@ -7075,7 +7169,15 @@ Parameters
"schema" : {
"$ref" : "#/components/schemas/PayRun"
},
- "example" : "{ \"payrollCalendarID\": \"9aa56064-990f-4ad3-a189-d966d8f6a030\", \"periodStartDate\": \"2020-09-08\", \"periodEndDate\": \"2020-09-15\", \"paymentDate\": \"2020-09-20\", \"payRunStatus\": \"Draft\", \"payRunType\": \"Scheduled\", \"calendarType\": \"Weekly\" }"
+ "example" : {
+ "payrollCalendarID" : "9aa56064-990f-4ad3-a189-d966d8f6a030",
+ "periodStartDate" : "2020-09-08",
+ "periodEndDate" : "2020-09-15",
+ "paymentDate" : "2020-09-20",
+ "payRunStatus" : "Draft",
+ "payRunType" : "Scheduled",
+ "calendarType" : "Weekly"
+ }
}
},
"required" : true
@@ -7226,7 +7328,12 @@ Parameters
"schema" : {
"$ref" : "#/components/schemas/PayRunCalendar"
},
- "example" : "{ \"name\": \"My Weekly Cal\", \"calendarType\": \"Weekly\", \"periodStartDate\": \"2020-05-01\", \"paymentDate\": \"2020-05-15\" }"
+ "example" : {
+ "name" : "My Weekly Cal",
+ "calendarType" : "Weekly",
+ "periodStartDate" : "2020-05-01",
+ "paymentDate" : "2020-05-15"
+ }
}
},
"required" : true
@@ -7376,7 +7483,12 @@ Parameters
"schema" : {
"$ref" : "#/components/schemas/Reimbursement"
},
- "example" : "{ \"name\": \"My new Reimburse\", \"accountID\": \"fa5cdc43-643b-4ad8-b4ac-3ffe0d0f4488\", \"reimbursementCategory\": \"GSTInclusive\", \"calculationType\": \"FixedAmount\" }"
+ "example" : {
+ "name" : "My new Reimburse",
+ "accountID" : "fa5cdc43-643b-4ad8-b4ac-3ffe0d0f4488",
+ "reimbursementCategory" : "GSTInclusive",
+ "calculationType" : "FixedAmount"
+ }
}
},
"required" : true
@@ -7528,7 +7640,14 @@ Parameters
"schema" : {
"$ref" : "#/components/schemas/Benefit"
},
- "example" : "{ \"name\": \"SidSaver\", \"category\": \"Other\", \"liabilityAccountId\": \"568f2e9a-0870-46cc-8678-f83f132ed4e3\", \"expenseAccountId\": \"e4eb36f6-97e3-4427-a394-dd4e1b355c2e\", \"CalculationTypeNZ\": \"FixedAmount\", \"standardAmount\": 10 }"
+ "example" : {
+ "name" : "SidSaver",
+ "category" : "Other",
+ "liabilityAccountId" : "568f2e9a-0870-46cc-8678-f83f132ed4e3",
+ "expenseAccountId" : "e4eb36f6-97e3-4427-a394-dd4e1b355c2e",
+ "CalculationTypeNZ" : "FixedAmount",
+ "standardAmount" : 10
+ }
}
},
"required" : true
@@ -7680,7 +7799,21 @@ Parameters
"schema" : {
"$ref" : "#/components/schemas/Timesheet"
},
- "example" : "{ \"payrollCalendarID\": \"9aa56064-990f-4ad3-a189-d966d8f6a030\", \"employeeID\": \"68342973-c405-4b86-b5d3-d7b877c27995\", \"startDate\": \"2020-04-13\", \"endDate\": \"2020-04-19\", \"timesheetLines\": [ { \"date\": \"2020-04-13\", \"earningsRateID\": \"f9d8f5b5-9049-47f4-8541-35e200f750a5\", \"numberOfUnits\": 8 }, { \"date\": \"2020-04-15\", \"earningsRateID\": \"f9d8f5b5-9049-47f4-8541-35e200f750a5\", \"numberOfUnits\": 6 } ] }"
+ "example" : {
+ "payrollCalendarID" : "9aa56064-990f-4ad3-a189-d966d8f6a030",
+ "employeeID" : "68342973-c405-4b86-b5d3-d7b877c27995",
+ "startDate" : "2020-04-13",
+ "endDate" : "2020-04-19",
+ "timesheetLines" : [ {
+ "date" : "2020-04-13",
+ "earningsRateID" : "f9d8f5b5-9049-47f4-8541-35e200f750a5",
+ "numberOfUnits" : 8
+ }, {
+ "date" : "2020-04-15",
+ "earningsRateID" : "f9d8f5b5-9049-47f4-8541-35e200f750a5",
+ "numberOfUnits" : 6
+ } ]
+ }
}
},
"required" : true
@@ -7866,7 +7999,11 @@ Parameters
"schema" : {
"$ref" : "#/components/schemas/TimesheetLine"
},
- "example" : "{ \"date\": \"2020-08-03\", \"earningsRateID\": \"f9d8f5b5-9049-47f4-8541-35e200f750a5\", \"numberOfUnits\": 1 }"
+ "example" : {
+ "date" : "2020-08-03",
+ "earningsRateID" : "f9d8f5b5-9049-47f4-8541-35e200f750a5",
+ "numberOfUnits" : 1
+ }
}
},
"required" : true
@@ -13794,7 +13931,20 @@ Parameters
"schema" : {
"$ref" : "#/components/schemas/Employee"
},
- "example" : "{ \"title\": \"Mr\", \"firstName\": \"Tony\", \"lastName\": \"Starkgtrzgquusrson\", \"dateOfBirth\": \"1999-01-01\", \"address\": { \"addressLine1\": \"101 Green St\", \"city\": \"San Francisco\", \"postCode\": \"4432\", \"countryName\": \"United Kingdom\" }, \"email\": \"58315@starkindustries.com\", \"gender\": \"M\" }"
+ "example" : {
+ "title" : "Mr",
+ "firstName" : "Tony",
+ "lastName" : "Starkgtrzgquusrson",
+ "dateOfBirth" : "1999-01-01",
+ "address" : {
+ "addressLine1" : "101 Green St",
+ "city" : "San Francisco",
+ "postCode" : "4432",
+ "countryName" : "United Kingdom"
+ },
+ "email" : "58315@starkindustries.com",
+ "gender" : "M"
+ }
}
},
"required" : true
@@ -14009,7 +14159,11 @@ Parameters
"schema" : {
"$ref" : "#/components/schemas/EarningsTemplate"
},
- "example" : "{ \"ratePerUnit\": 25, \"numberOfUnits\": 4, \"earningsRateID\": \"f9d8f5b5-9049-47f4-8541-35e200f750a5\" }"
+ "example" : {
+ "ratePerUnit" : 25,
+ "numberOfUnits" : 4,
+ "earningsRateID" : "f9d8f5b5-9049-47f4-8541-35e200f750a5"
+ }
}
},
"required" : true
@@ -14221,7 +14375,18 @@ Parameters
"schema" : {
"$ref" : "#/components/schemas/EmployeeLeave"
},
- "example" : "{ \"leaveTypeID\": \"b0b1b79e-2a25-46c2-ad08-ca25ef48d7e4\", \"description\": \"Creating a Description\", \"startDate\": \"2020-04-24\", \"endDate\": \"2020-04-26\", \"periods\": [ { \"periodStartDate\": \"2020-04-20\", \"periodEndDate\": \"2020-04-26\", \"numberOfUnits\": 1, \"periodStatus\": \"Approved\" } ] }"
+ "example" : {
+ "leaveTypeID" : "b0b1b79e-2a25-46c2-ad08-ca25ef48d7e4",
+ "description" : "Creating a Description",
+ "startDate" : "2020-04-24",
+ "endDate" : "2020-04-26",
+ "periods" : [ {
+ "periodStartDate" : "2020-04-20",
+ "periodEndDate" : "2020-04-26",
+ "numberOfUnits" : 1,
+ "periodStatus" : "Approved"
+ } ]
+ }
}
},
"required" : true
@@ -14432,7 +14597,17 @@ Parameters
"schema" : {
"$ref" : "#/components/schemas/SalaryAndWage"
},
- "example" : "{ \"earningsRateID\": \"f9d8f5b5-9049-47f4-8541-35e200f750a5\", \"numberOfUnitsPerWeek\": 3, \"ratePerUnit\": 11, \"numberOfUnitsPerDay\": 3, \"daysPerWeek\": 1, \"effectiveFrom\": \"2020-05-15\", \"annualSalary\": 101, \"status\": \"Active\", \"paymentType\": \"Salary\" }"
+ "example" : {
+ "earningsRateID" : "f9d8f5b5-9049-47f4-8541-35e200f750a5",
+ "numberOfUnitsPerWeek" : 3,
+ "ratePerUnit" : 11,
+ "numberOfUnitsPerDay" : 3,
+ "daysPerWeek" : 1,
+ "effectiveFrom" : "2020-05-15",
+ "annualSalary" : 101,
+ "status" : "Active",
+ "paymentType" : "Salary"
+ }
}
},
"required" : true
@@ -14624,6 +14799,24 @@ Parameters
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/EmployeeTax"
+ },
+ "example" : {
+ "irdNumber" : "111111111",
+ "taxCode" : "M",
+ "esctRatePercentage" : 17.5,
+ "isEligibleForKiwiSaver" : true,
+ "hasSpecialStudentLoanRate" : false,
+ "specialStudentLoanRatePercentage" : null,
+ "specialTaxRatePercentage" : null,
+ "kiwiSaverContributions" : "MakeContributions",
+ "kiwiSaverOptOutDate" : null,
+ "kiwiSaverContributionHolidayEndDate" : null,
+ "kiwiSaverEmployeeContributionRatePercentage" : 3,
+ "kiwiSaverEmployerContributionRatePercentage" : 3,
+ "kiwiSaverEmployerSalarySacrificeContributionRatePercentage" : 0,
+ "hasStudentLoanBalance" : false,
+ "studentLoanBalance" : null,
+ "studentLoanAsAt" : null
}
}
},
@@ -14809,7 +15002,9 @@ Parameters
"schema" : {
"$ref" : "#/components/schemas/PayRun"
},
- "example" : "{ \"paymentDate\": \"2019-07-01\" }"
+ "example" : {
+ "paymentDate" : "2019-07-01"
+ }
}
},
"required" : true
@@ -15000,7 +15195,81 @@ Parameters
"schema" : {
"$ref" : "#/components/schemas/PaySlip"
},
- "example" : "{ \"earningsLines\": [ { \"earningsLineID\": \"f9d8f5b5-9049-47f4-8541-35e200f750a5\", \"earningsRateID\": \"f9d8f5b5-9049-47f4-8541-35e200f750a5\", \"displayName\": \"Ordinary Time\", \"ratePerUnit\": 25, \"numberOfUnits\": 0, \"amount\": 0, \"isLinkedToTimesheet\": false, \"isSystemGenerated\": true }, { \"earningsLineID\": \"65b83d94-f20f-45e1-85ae-387fcf460c26\", \"earningsRateID\": \"65b83d94-f20f-45e1-85ae-387fcf460c26\", \"displayName\": \"Salary\", \"ratePerUnit\": 0, \"numberOfUnits\": 8, \"amount\": 0, \"isLinkedToTimesheet\": false, \"isSystemGenerated\": false } ], \"leaveEarningsLines\": [ { \"earningsLineID\": \"0441497f-5dc7-4cd3-a90d-f2e07e21b2a6\", \"earningsRateID\": \"39b3560a-5d2f-4538-924a-4349dc86396e\", \"displayName\": \"Holiday Pay\", \"fixedAmount\": 268.8, \"amount\": 268.8, \"isLinkedToTimesheet\": false, \"isSystemGenerated\": true } ], \"deductionLines\": [ { \"deductionTypeID\": \"a3760fe4-68a4-4e38-8326-fe616af7dc74\", \"amount\": 100 } ], \"leaveAccrualLines\": [ { \"leaveTypeID\": \"0441497f-5dc7-4cd3-a90d-f2e07e21b2a6\", \"numberOfUnits\": 268.8 }, { \"leaveTypeID\": \"b0b1b79e-2a25-46c2-ad08-ca25ef48d7e4\", \"numberOfUnits\": 0 }, { \"leaveTypeID\": \"f2f994cf-1899-46f3-ad4f-5d92d78c3719\", \"numberOfUnits\": 0 }, { \"leaveTypeID\": \"34129765-11cb-4d8c-b568-84a2219beda3\", \"numberOfUnits\": 0 } ], \"superannuationLines\": [ { \"superannuationTypeID\": \"563273ea-0dae-4f82-86a4-e0db77c008ea\", \"displayName\": \"KiwiSaver\", \"amount\": 108.86, \"fixedAmount\": 3, \"percentage\": 3, \"manualAdjustment\": false } ], \"employeeTaxLines\": [ { \"taxLineID\": \"1084146b-e890-489c-aed3-06de80f63d84\", \"amount\": 1057.22, \"globalTaxTypeID\": \"11\", \"manualAdjustment\": false } ], \"employerTaxLines\": [ { \"taxLineID\": \"6f9eb8cd-0f4a-440b-939c-bdb0f6ad694c\", \"amount\": 18.9, \"globalTaxTypeID\": \"10\", \"manualAdjustment\": false } ], \"statutoryDeductionLines\": [ { \"statutoryDeductionTypeID\": \"b5efd8d1-0c93-4a14-a314-b5cba4a4e6b3\", \"amount\": 108.86 } ], \"grossEarningsHistory\": { \"daysPaid\": 3, \"unpaidWeeks\": 0 } }"
+ "example" : {
+ "earningsLines" : [ {
+ "earningsLineID" : "f9d8f5b5-9049-47f4-8541-35e200f750a5",
+ "earningsRateID" : "f9d8f5b5-9049-47f4-8541-35e200f750a5",
+ "displayName" : "Ordinary Time",
+ "ratePerUnit" : 25,
+ "numberOfUnits" : 0,
+ "amount" : 0,
+ "isLinkedToTimesheet" : false,
+ "isSystemGenerated" : true
+ }, {
+ "earningsLineID" : "65b83d94-f20f-45e1-85ae-387fcf460c26",
+ "earningsRateID" : "65b83d94-f20f-45e1-85ae-387fcf460c26",
+ "displayName" : "Salary",
+ "ratePerUnit" : 0,
+ "numberOfUnits" : 8,
+ "amount" : 0,
+ "isLinkedToTimesheet" : false,
+ "isSystemGenerated" : false
+ } ],
+ "leaveEarningsLines" : [ {
+ "earningsLineID" : "0441497f-5dc7-4cd3-a90d-f2e07e21b2a6",
+ "earningsRateID" : "39b3560a-5d2f-4538-924a-4349dc86396e",
+ "displayName" : "Holiday Pay",
+ "fixedAmount" : 268.8,
+ "amount" : 268.8,
+ "isLinkedToTimesheet" : false,
+ "isSystemGenerated" : true
+ } ],
+ "deductionLines" : [ {
+ "deductionTypeID" : "a3760fe4-68a4-4e38-8326-fe616af7dc74",
+ "amount" : 100
+ } ],
+ "leaveAccrualLines" : [ {
+ "leaveTypeID" : "0441497f-5dc7-4cd3-a90d-f2e07e21b2a6",
+ "numberOfUnits" : 268.8
+ }, {
+ "leaveTypeID" : "b0b1b79e-2a25-46c2-ad08-ca25ef48d7e4",
+ "numberOfUnits" : 0
+ }, {
+ "leaveTypeID" : "f2f994cf-1899-46f3-ad4f-5d92d78c3719",
+ "numberOfUnits" : 0
+ }, {
+ "leaveTypeID" : "34129765-11cb-4d8c-b568-84a2219beda3",
+ "numberOfUnits" : 0
+ } ],
+ "superannuationLines" : [ {
+ "superannuationTypeID" : "563273ea-0dae-4f82-86a4-e0db77c008ea",
+ "displayName" : "KiwiSaver",
+ "amount" : 108.86,
+ "fixedAmount" : 3,
+ "percentage" : 3,
+ "manualAdjustment" : false
+ } ],
+ "employeeTaxLines" : [ {
+ "taxLineID" : "1084146b-e890-489c-aed3-06de80f63d84",
+ "amount" : 1057.22,
+ "globalTaxTypeID" : "11",
+ "manualAdjustment" : false
+ } ],
+ "employerTaxLines" : [ {
+ "taxLineID" : "6f9eb8cd-0f4a-440b-939c-bdb0f6ad694c",
+ "amount" : 18.9,
+ "globalTaxTypeID" : "10",
+ "manualAdjustment" : false
+ } ],
+ "statutoryDeductionLines" : [ {
+ "statutoryDeductionTypeID" : "b5efd8d1-0c93-4a14-a314-b5cba4a4e6b3",
+ "amount" : 108.86
+ } ],
+ "grossEarningsHistory" : {
+ "daysPaid" : 3,
+ "unpaidWeeks" : 0
+ }
+ }
}
},
"required" : true
@@ -15213,7 +15482,11 @@ Parameters
"schema" : {
"$ref" : "#/components/schemas/TimesheetLine"
},
- "example" : "{ \"date\": \"2020-08-04\", \"earningsRateID\": \"f9d8f5b5-9049-47f4-8541-35e200f750a5\", \"numberOfUnits\": 2 }"
+ "example" : {
+ "date" : "2020-08-04",
+ "earningsRateID" : "f9d8f5b5-9049-47f4-8541-35e200f750a5",
+ "numberOfUnits" : 2
+ }
}
},
"required" : true
diff --git a/docs/v2/payroll_uk/index.html b/docs/v2/payroll_uk/index.html
index 5d4bbd4e..35464858 100644
--- a/docs/v2/payroll_uk/index.html
+++ b/docs/v2/payroll_uk/index.html
@@ -1514,7 +1514,7 @@
};
defs["Employee"] = {
"title" : "",
- "required" : [ "Address", "DateOfBirth", "FirstName", "Gender", "LastName", "Title" ],
+ "required" : [ "address", "dateOfBirth", "firstName", "gender", "lastName", "title" ],
"type" : "object",
"properties" : {
"employeeID" : {
@@ -4111,7 +4111,15 @@ Parameters
"schema" : {
"$ref" : "#/components/schemas/Benefit"
},
- "example" : "{ \"name\": \"My Big Bennie\", \"category\": \"StakeholderPension\", \"liabilityAccountId\": \"e0faa299-ca0d-4b0a-9e32-0dfabdf9179a\", \"expenseAccountId\": \"4b03500d-32fd-4616-8d70-e1e56e0519c6\", \"standardAmount\": 50, \"percentage\": 25, \"calculationType\": \"PercentageOfGross\" }"
+ "example" : {
+ "name" : "My Big Bennie",
+ "category" : "StakeholderPension",
+ "liabilityAccountId" : "e0faa299-ca0d-4b0a-9e32-0dfabdf9179a",
+ "expenseAccountId" : "4b03500d-32fd-4616-8d70-e1e56e0519c6",
+ "standardAmount" : 50,
+ "percentage" : 25,
+ "calculationType" : "PercentageOfGross"
+ }
}
},
"required" : true
@@ -4261,7 +4269,12 @@ Parameters
"schema" : {
"$ref" : "#/components/schemas/Deduction"
},
- "example" : "{ \"deductionName\": \"My new deduction\", \"deductionCategory\": \"SalarySacrifice\", \"liabilityAccountId\": \"e0faa299-ca0d-4b0a-9e32-0dfabdf9179a\", \"calculationType\": \"FixedAmount\" }"
+ "example" : {
+ "deductionName" : "My new deduction",
+ "deductionCategory" : "SalarySacrifice",
+ "liabilityAccountId" : "e0faa299-ca0d-4b0a-9e32-0dfabdf9179a",
+ "calculationType" : "FixedAmount"
+ }
}
},
"required" : true
@@ -4411,7 +4424,13 @@ Parameters
"schema" : {
"$ref" : "#/components/schemas/EarningsRate"
},
- "example" : "{ \"name\": \"My Earnings Rate\", \"earningsType\": \"RegularEarnings\", \"rateType\": \"RatePerUnit\", \"typeOfUnits\": \"hours\", \"expenseAccountID\": \"4b03500d-32fd-4616-8d70-e1e56e0519c6\" }"
+ "example" : {
+ "name" : "My Earnings Rate",
+ "earningsType" : "RegularEarnings",
+ "rateType" : "RatePerUnit",
+ "typeOfUnits" : "hours",
+ "expenseAccountID" : "4b03500d-32fd-4616-8d70-e1e56e0519c6"
+ }
}
},
"required" : true
@@ -4568,7 +4587,20 @@ Parameters
"schema" : {
"$ref" : "#/components/schemas/Employee"
},
- "example" : "{ \"title\":\"Mr\", \"firstName\":\"Mike\", \"lastName\":\"Fancy\", \"dateOfBirth\":\"1999-01-01T00:00:00\", \"gender\":\"M\", \"email\":\"mike@starkindustries.com\", \"isOffPayrollWorker\": false, \"address\": { \"addressLine1\": \"171 Midsummer\", \"city\": \"Milton Keyness\", \"postCode\": \"MK9 1EB\" } }"
+ "example" : {
+ "title" : "Mr",
+ "firstName" : "Mike",
+ "lastName" : "Fancy",
+ "dateOfBirth" : "1999-01-01T00:00:00",
+ "gender" : "M",
+ "email" : "mike@starkindustries.com",
+ "isOffPayrollWorker" : false,
+ "address" : {
+ "addressLine1" : "171 Midsummer",
+ "city" : "Milton Keyness",
+ "postCode" : "MK9 1EB"
+ }
+ }
}
},
"required" : true
@@ -4940,7 +4972,12 @@ Parameters
"schema" : {
"$ref" : "#/components/schemas/EmployeeLeave"
},
- "example" : "{ \"leaveTypeID\": \"1d2778ee-86ea-45c0-bbf8-1045485f6b3f\", \"description\": \"Creating a Description\", \"startDate\": \"2020-03-24\", \"endDate\": \"2020-03-26\" }"
+ "example" : {
+ "leaveTypeID" : "1d2778ee-86ea-45c0-bbf8-1045485f6b3f",
+ "description" : "Creating a Description",
+ "startDate" : "2020-03-24",
+ "endDate" : "2020-03-26"
+ }
}
},
"required" : true
@@ -5124,7 +5161,11 @@ Parameters
"schema" : {
"$ref" : "#/components/schemas/EmployeeLeaveType"
},
- "example" : "{ \"leaveTypeID\": \"4918f233-bd31-43f9-9633-bcc6de1178f2\", \"scheduleOfAccrual\": \"BeginningOfCalendarYear\", \"hoursAccruedAnnually\": 10 }"
+ "example" : {
+ "leaveTypeID" : "4918f233-bd31-43f9-9633-bcc6de1178f2",
+ "scheduleOfAccrual" : "BeginningOfCalendarYear",
+ "hoursAccruedAnnually" : 10
+ }
}
},
"required" : true
@@ -5309,7 +5350,14 @@ Parameters
"schema" : {
"$ref" : "#/components/schemas/EmployeeOpeningBalances"
},
- "example" : "{ \"statutoryAdoptionPay\": 10, \"statutoryMaternityPay\": 10, \"statutoryPaternityPay\": 10, \"statutorySharedParentalPay\": 10, \"statutorySickPay\": 10, \"priorEmployeeNumber\": 10 }"
+ "example" : {
+ "statutoryAdoptionPay" : 10,
+ "statutoryMaternityPay" : 10,
+ "statutoryPaternityPay" : 10,
+ "statutorySharedParentalPay" : 10,
+ "statutorySickPay" : 10,
+ "priorEmployeeNumber" : 10
+ }
}
},
"required" : true
@@ -5497,7 +5545,14 @@ Parameters
"schema" : {
"$ref" : "#/components/schemas/PaymentMethod"
},
- "example" : "{ \"paymentMethod\": \"Electronically\", \"bankAccounts\": [ { \"accountName\": \"Sid BofA\", \"accountNumber\": \"24987654\", \"sortCode\": \"287654\" } ] }"
+ "example" : {
+ "paymentMethod" : "Electronically",
+ "bankAccounts" : [ {
+ "accountName" : "Sid BofA",
+ "accountNumber" : "24987654",
+ "sortCode" : "287654"
+ } ]
+ }
}
},
"required" : true
@@ -5682,7 +5737,16 @@ Parameters
"schema" : {
"$ref" : "#/components/schemas/SalaryAndWage"
},
- "example" : "{ \"earningsRateID\": \"87f5b43a-cf51-4b74-92de-94c819e82d27\", \"numberOfUnitsPerWeek\": 2, \"ratePerUnit\": 10, \"numberOfUnitsPerDay\": 2, \"effectiveFrom\": \"2020-05-01\", \"annualSalary\": 100, \"status\": \"ACTIVE\", \"paymentType\": \"Salary\" }"
+ "example" : {
+ "earningsRateID" : "87f5b43a-cf51-4b74-92de-94c819e82d27",
+ "numberOfUnitsPerWeek" : 2,
+ "ratePerUnit" : 10,
+ "numberOfUnitsPerDay" : 2,
+ "effectiveFrom" : "2020-05-01",
+ "annualSalary" : 100,
+ "status" : "ACTIVE",
+ "paymentType" : "Salary"
+ }
}
},
"required" : true
@@ -5834,7 +5898,15 @@ Parameters
"schema" : {
"$ref" : "#/components/schemas/EmployeeStatutorySickLeave"
},
- "example" : "{ \"employeeID\": \"aad6b292-7b94-408b-93f6-e489867e3fb0\", \"leaveTypeID\": \"aab78802-e9d3-4bbd-bc87-df858054988f\", \"startDate\": \"2020-04-21\", \"endDate\": \"2020-04-24\", \"workPattern\": [ \"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\" ], \"isPregnancyRelated\": false, \"sufficientNotice\": true }"
+ "example" : {
+ "employeeID" : "aad6b292-7b94-408b-93f6-e489867e3fb0",
+ "leaveTypeID" : "aab78802-e9d3-4bbd-bc87-df858054988f",
+ "startDate" : "2020-04-21",
+ "endDate" : "2020-04-24",
+ "workPattern" : [ "Monday", "Tuesday", "Wednesday", "Thursday", "Friday" ],
+ "isPregnancyRelated" : false,
+ "sufficientNotice" : true
+ }
}
},
"required" : true
@@ -6168,7 +6240,11 @@ Parameters
"schema" : {
"$ref" : "#/components/schemas/LeaveType"
},
- "example" : "{ \"name\": \"My opebvwbfxf Leave\", \"isPaidLeave\": false, \"showOnPayslip\": true }"
+ "example" : {
+ "name" : "My opebvwbfxf Leave",
+ "isPaidLeave" : false,
+ "showOnPayslip" : true
+ }
}
},
"required" : true
@@ -6507,7 +6583,12 @@ Parameters
"schema" : {
"$ref" : "#/components/schemas/PayRunCalendar"
},
- "example" : "{ \"name\": \"My Weekly Cal\", \"calendarType\": \"Weekly\", \"periodStartDate\": \"2020-05-01\", \"paymentDate\": \"2020-05-15\" }"
+ "example" : {
+ "name" : "My Weekly Cal",
+ "calendarType" : "Weekly",
+ "periodStartDate" : "2020-05-01",
+ "paymentDate" : "2020-05-15"
+ }
}
},
"required" : true
@@ -6655,7 +6736,10 @@ Parameters
"schema" : {
"$ref" : "#/components/schemas/Reimbursement"
},
- "example" : "{ \"name\": \"My new Reimburse\", \"accountID\": \"9ee28149-32a9-4661-8eab-a28738696983\" }"
+ "example" : {
+ "name" : "My new Reimburse",
+ "accountID" : "9ee28149-32a9-4661-8eab-a28738696983"
+ }
}
},
"required" : true
@@ -6807,7 +6891,21 @@ Parameters
"schema" : {
"$ref" : "#/components/schemas/Timesheet"
},
- "example" : "{ \"payrollCalendarID\": \"216d80e6-af55-47b1-b718-9457c3f5d2fe\", \"employeeID\": \"aad6b292-7b94-408b-93f6-e489867e3fb0\", \"startDate\": \"2020-04-13\", \"endDate\": \"2020-04-19\", \"timesheetLines\": [ { \"date\": \"2020-04-13\", \"earningsRateID\": \"87f5b43a-cf51-4b74-92de-94c819e82d27\", \"numberOfUnits\": 8 }, { \"date\": \"2020-04-15\", \"earningsRateID\": \"87f5b43a-cf51-4b74-92de-94c819e82d27\", \"numberOfUnits\": 6 } ] }"
+ "example" : {
+ "payrollCalendarID" : "216d80e6-af55-47b1-b718-9457c3f5d2fe",
+ "employeeID" : "aad6b292-7b94-408b-93f6-e489867e3fb0",
+ "startDate" : "2020-04-13",
+ "endDate" : "2020-04-19",
+ "timesheetLines" : [ {
+ "date" : "2020-04-13",
+ "earningsRateID" : "87f5b43a-cf51-4b74-92de-94c819e82d27",
+ "numberOfUnits" : 8
+ }, {
+ "date" : "2020-04-15",
+ "earningsRateID" : "87f5b43a-cf51-4b74-92de-94c819e82d27",
+ "numberOfUnits" : 6
+ } ]
+ }
}
},
"required" : true
@@ -6993,7 +7091,11 @@ Parameters
"schema" : {
"$ref" : "#/components/schemas/TimesheetLine"
},
- "example" : "{ \"date\": \"2020-04-14\", \"earningsRateID\": \"87f5b43a-cf51-4b74-92de-94c819e82d27\", \"numberOfUnits\": 1 }"
+ "example" : {
+ "date" : "2020-04-14",
+ "earningsRateID" : "87f5b43a-cf51-4b74-92de-94c819e82d27",
+ "numberOfUnits" : 1
+ }
}
},
"required" : true
@@ -13105,7 +13207,21 @@ Parameters
"schema" : {
"$ref" : "#/components/schemas/Employee"
},
- "example" : "{ \"title\": \"Mr.\", \"firstName\": \"TestDataUK\", \"lastName\": \"Tester\", \"dateOfBirth\": \"1992-11-22T00:00:00\", \"gender\": \"M\", \"email\": \"tester@gmail.com\", \"phoneNumber\": \"0400123456\", \"isOffPayrollWorker\": false, \"address\": { \"addressLine1\": \"171 Midsummer\", \"city\": \"Milton Keyness\", \"postCode\": \"MK9 1EB\" } }"
+ "example" : {
+ "title" : "Mr.",
+ "firstName" : "TestDataUK",
+ "lastName" : "Tester",
+ "dateOfBirth" : "1992-11-22T00:00:00",
+ "gender" : "M",
+ "email" : "tester@gmail.com",
+ "phoneNumber" : "0400123456",
+ "isOffPayrollWorker" : false,
+ "address" : {
+ "addressLine1" : "171 Midsummer",
+ "city" : "Milton Keyness",
+ "postCode" : "MK9 1EB"
+ }
+ }
}
},
"required" : true
@@ -13320,7 +13436,11 @@ Parameters
"schema" : {
"$ref" : "#/components/schemas/EarningsTemplate"
},
- "example" : "{ \"ratePerUnit\": 30, \"numberOfUnits\": 4, \"earningsRateID\": \"87f5b43a-cf51-4b74-92de-94c819e82d27\" }"
+ "example" : {
+ "ratePerUnit" : 30,
+ "numberOfUnits" : 4,
+ "earningsRateID" : "87f5b43a-cf51-4b74-92de-94c819e82d27"
+ }
}
},
"required" : true
@@ -13532,7 +13652,18 @@ Parameters
"schema" : {
"$ref" : "#/components/schemas/EmployeeLeave"
},
- "example" : "{ \"leaveTypeID\": \"ed08dffe-788e-4b24-9630-f0fa2f4d164c\", \"description\": \"Creating a Description\", \"startDate\": \"2020-04-24\", \"endDate\": \"2020-04-26\", \"periods\": [ { \"periodStartDate\": \"2020-04-20\", \"periodEndDate\": \"2020-04-26\", \"numberOfUnits\": 1, \"periodStatus\": \"Approved\" } ] }"
+ "example" : {
+ "leaveTypeID" : "ed08dffe-788e-4b24-9630-f0fa2f4d164c",
+ "description" : "Creating a Description",
+ "startDate" : "2020-04-24",
+ "endDate" : "2020-04-26",
+ "periods" : [ {
+ "periodStartDate" : "2020-04-20",
+ "periodEndDate" : "2020-04-26",
+ "numberOfUnits" : 1,
+ "periodStatus" : "Approved"
+ } ]
+ }
}
},
"required" : true
@@ -13717,7 +13848,14 @@ Parameters
"schema" : {
"$ref" : "#/components/schemas/EmployeeOpeningBalances"
},
- "example" : "{ \"statutoryAdoptionPay\": 20, \"statutoryMaternityPay\": 20, \"statutoryPaternityPay\": 20, \"statutorySharedParentalPay\": 20, \"statutorySickPay\": 20, \"priorEmployeeNumber\": 20 }"
+ "example" : {
+ "statutoryAdoptionPay" : 20,
+ "statutoryMaternityPay" : 20,
+ "statutoryPaternityPay" : 20,
+ "statutorySharedParentalPay" : 20,
+ "statutorySickPay" : 20,
+ "priorEmployeeNumber" : 20
+ }
}
},
"required" : true
@@ -13929,7 +14067,15 @@ Parameters
"schema" : {
"$ref" : "#/components/schemas/SalaryAndWage"
},
- "example" : "{ \"earningsRateID\": \"87f5b43a-cf51-4b74-92de-94c819e82d27\", \"numberOfUnitsPerWeek\": 3, \"ratePerUnit\": 11, \"effectiveFrom\": \"2020-05-15\", \"annualSalary\": 101, \"status\": \"ACTIVE\", \"paymentType\": \"Salary\" }"
+ "example" : {
+ "earningsRateID" : "87f5b43a-cf51-4b74-92de-94c819e82d27",
+ "numberOfUnitsPerWeek" : 3,
+ "ratePerUnit" : 11,
+ "effectiveFrom" : "2020-05-15",
+ "annualSalary" : 101,
+ "status" : "ACTIVE",
+ "paymentType" : "Salary"
+ }
}
},
"required" : true
@@ -14114,7 +14260,9 @@ Parameters
"schema" : {
"$ref" : "#/components/schemas/PayRun"
},
- "example" : "{ \"paymentDate\": \"2020-05-01\" }"
+ "example" : {
+ "paymentDate" : "2020-05-01"
+ }
}
},
"required" : true
@@ -14327,7 +14475,11 @@ Parameters
"schema" : {
"$ref" : "#/components/schemas/TimesheetLine"
},
- "example" : "{ \"date\": \"2020-04-14\", \"earningsRateID\": \"87f5b43a-cf51-4b74-92de-94c819e82d27\", \"numberOfUnits\": 2 }"
+ "example" : {
+ "date" : "2020-04-14",
+ "earningsRateID" : "87f5b43a-cf51-4b74-92de-94c819e82d27",
+ "numberOfUnits" : 2
+ }
}
},
"required" : true
diff --git a/docs/v2/projects/index.html b/docs/v2/projects/index.html
index 9d796e39..b6f08252 100644
--- a/docs/v2/projects/index.html
+++ b/docs/v2/projects/index.html
@@ -2022,7 +2022,13 @@ Parameters
"schema" : {
"$ref" : "#/components/schemas/TimeEntryCreateOrUpdate"
},
- "example" : "{ \"userId\": \"00000000-0000-0000-0000-000000000000\", \"taskId\": \"00000000-0000-0000-0000-000000000000\", \"dateUtc\": \"2020-02-26T15:00:00Z\", \"duration\":30, \"description\": \"My description\" }"
+ "example" : {
+ "userId" : "00000000-0000-0000-0000-000000000000",
+ "taskId" : "00000000-0000-0000-0000-000000000000",
+ "dateUtc" : "2020-02-26T15:00:00Z",
+ "duration" : 30,
+ "description" : "My description"
+ }
}
},
"required" : true
@@ -4448,7 +4454,13 @@ Parameters
"schema" : {
"$ref" : "#/components/schemas/TimeEntryCreateOrUpdate"
},
- "example" : "{ \"userId\": \"00000000-0000-0000-0000-000000000000\", \"taskId\": \"00000000-0000-0000-0000-000000000000\", \"dateUtc\": \"2020-02-27T15:00:00Z\", \"duration\":45, \"description\": \"My UPDATED description\" }"
+ "example" : {
+ "userId" : "00000000-0000-0000-0000-000000000000",
+ "taskId" : "00000000-0000-0000-0000-000000000000",
+ "dateUtc" : "2020-02-27T15:00:00Z",
+ "duration" : 45,
+ "description" : "My UPDATED description"
+ }
}
},
"required" : true
diff --git a/lib/Api/AccountingApi.php b/lib/Api/AccountingApi.php
index 77b896a9..c868c42d 100644
--- a/lib/Api/AccountingApi.php
+++ b/lib/Api/AccountingApi.php
@@ -364,7 +364,7 @@ protected function createAccountRequest($xero_tenant_id, $account, $idempotency_
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $account_id Unique identifier for Account object (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \XeroAPI\XeroPHP\ApiException on non-2xx response
* @throws \InvalidArgumentException
@@ -381,7 +381,7 @@ public function createAccountAttachmentByFileName($xero_tenant_id, $account_id,
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $account_id Unique identifier for Account object (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \XeroAPI\XeroPHP\ApiException on non-2xx response
* @throws \InvalidArgumentException
@@ -480,7 +480,7 @@ public function createAccountAttachmentByFileNameWithHttpInfo($xero_tenant_id, $
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $account_id Unique identifier for Account object (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
@@ -500,7 +500,7 @@ function ($response) {
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $account_id Unique identifier for Account object (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface */
@@ -546,7 +546,7 @@ function ($exception) {
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $account_id Unique identifier for Account object (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request */
@@ -675,7 +675,7 @@ protected function createAccountAttachmentByFileNameRequest($xero_tenant_id, $ac
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $bank_transaction_id Xero generated unique identifier for a bank transaction (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \XeroAPI\XeroPHP\ApiException on non-2xx response
* @throws \InvalidArgumentException
@@ -692,7 +692,7 @@ public function createBankTransactionAttachmentByFileName($xero_tenant_id, $bank
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $bank_transaction_id Xero generated unique identifier for a bank transaction (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \XeroAPI\XeroPHP\ApiException on non-2xx response
* @throws \InvalidArgumentException
@@ -791,7 +791,7 @@ public function createBankTransactionAttachmentByFileNameWithHttpInfo($xero_tena
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $bank_transaction_id Xero generated unique identifier for a bank transaction (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
@@ -811,7 +811,7 @@ function ($response) {
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $bank_transaction_id Xero generated unique identifier for a bank transaction (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface */
@@ -857,7 +857,7 @@ function ($exception) {
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $bank_transaction_id Xero generated unique identifier for a bank transaction (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request */
@@ -1841,7 +1841,7 @@ protected function createBankTransferRequest($xero_tenant_id, $bank_transfers, $
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $bank_transfer_id Xero generated unique identifier for a bank transfer (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \XeroAPI\XeroPHP\ApiException on non-2xx response
* @throws \InvalidArgumentException
@@ -1857,7 +1857,7 @@ public function createBankTransferAttachmentByFileName($xero_tenant_id, $bank_tr
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $bank_transfer_id Xero generated unique identifier for a bank transfer (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \XeroAPI\XeroPHP\ApiException on non-2xx response
* @throws \InvalidArgumentException
@@ -1956,7 +1956,7 @@ public function createBankTransferAttachmentByFileNameWithHttpInfo($xero_tenant_
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $bank_transfer_id Xero generated unique identifier for a bank transfer (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
@@ -1976,7 +1976,7 @@ function ($response) {
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $bank_transfer_id Xero generated unique identifier for a bank transfer (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface */
@@ -2022,7 +2022,7 @@ function ($exception) {
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $bank_transfer_id Xero generated unique identifier for a bank transfer (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request */
@@ -3308,7 +3308,7 @@ protected function createBrandingThemePaymentServicesRequest($xero_tenant_id, $b
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $contact_id Unique identifier for a Contact (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \XeroAPI\XeroPHP\ApiException on non-2xx response
* @throws \InvalidArgumentException
@@ -3324,7 +3324,7 @@ public function createContactAttachmentByFileName($xero_tenant_id, $contact_id,
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $contact_id Unique identifier for a Contact (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \XeroAPI\XeroPHP\ApiException on non-2xx response
* @throws \InvalidArgumentException
@@ -3423,7 +3423,7 @@ public function createContactAttachmentByFileNameWithHttpInfo($xero_tenant_id, $
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $contact_id Unique identifier for a Contact (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
@@ -3443,7 +3443,7 @@ function ($response) {
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $contact_id Unique identifier for a Contact (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface */
@@ -3489,7 +3489,7 @@ function ($exception) {
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $contact_id Unique identifier for a Contact (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request */
@@ -5058,7 +5058,7 @@ protected function createCreditNoteAllocationRequest($xero_tenant_id, $credit_no
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $credit_note_id Unique identifier for a Credit Note (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param bool $include_online Allows an attachment to be seen by the end customer within their online invoice (optional, default to false)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \XeroAPI\XeroPHP\ApiException on non-2xx response
@@ -5076,7 +5076,7 @@ public function createCreditNoteAttachmentByFileName($xero_tenant_id, $credit_no
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $credit_note_id Unique identifier for a Credit Note (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param bool $include_online Allows an attachment to be seen by the end customer within their online invoice (optional, default to false)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \XeroAPI\XeroPHP\ApiException on non-2xx response
@@ -5176,7 +5176,7 @@ public function createCreditNoteAttachmentByFileNameWithHttpInfo($xero_tenant_id
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $credit_note_id Unique identifier for a Credit Note (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param bool $include_online Allows an attachment to be seen by the end customer within their online invoice (optional, default to false)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
@@ -5197,7 +5197,7 @@ function ($response) {
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $credit_note_id Unique identifier for a Credit Note (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param bool $include_online Allows an attachment to be seen by the end customer within their online invoice (optional, default to false)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
@@ -5244,7 +5244,7 @@ function ($exception) {
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $credit_note_id Unique identifier for a Credit Note (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param bool $include_online Allows an attachment to be seen by the end customer within their online invoice (optional, default to false)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
@@ -7043,7 +7043,7 @@ protected function createExpenseClaimsRequest($xero_tenant_id, $expense_claims,
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $invoice_id Unique identifier for an Invoice (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param bool $include_online Allows an attachment to be seen by the end customer within their online invoice (optional, default to false)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \XeroAPI\XeroPHP\ApiException on non-2xx response
@@ -7061,7 +7061,7 @@ public function createInvoiceAttachmentByFileName($xero_tenant_id, $invoice_id,
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $invoice_id Unique identifier for an Invoice (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param bool $include_online Allows an attachment to be seen by the end customer within their online invoice (optional, default to false)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \XeroAPI\XeroPHP\ApiException on non-2xx response
@@ -7161,7 +7161,7 @@ public function createInvoiceAttachmentByFileNameWithHttpInfo($xero_tenant_id, $
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $invoice_id Unique identifier for an Invoice (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param bool $include_online Allows an attachment to be seen by the end customer within their online invoice (optional, default to false)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
@@ -7182,7 +7182,7 @@ function ($response) {
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $invoice_id Unique identifier for an Invoice (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param bool $include_online Allows an attachment to be seen by the end customer within their online invoice (optional, default to false)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
@@ -7229,7 +7229,7 @@ function ($exception) {
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $invoice_id Unique identifier for an Invoice (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param bool $include_online Allows an attachment to be seen by the end customer within their online invoice (optional, default to false)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
@@ -8783,7 +8783,7 @@ protected function createLinkedTransactionRequest($xero_tenant_id, $linked_trans
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $manual_journal_id Unique identifier for a ManualJournal (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \XeroAPI\XeroPHP\ApiException on non-2xx response
* @throws \InvalidArgumentException
@@ -8800,7 +8800,7 @@ public function createManualJournalAttachmentByFileName($xero_tenant_id, $manual
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $manual_journal_id Unique identifier for a ManualJournal (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \XeroAPI\XeroPHP\ApiException on non-2xx response
* @throws \InvalidArgumentException
@@ -8899,7 +8899,7 @@ public function createManualJournalAttachmentByFileNameWithHttpInfo($xero_tenant
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $manual_journal_id Unique identifier for a ManualJournal (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
@@ -8919,7 +8919,7 @@ function ($response) {
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $manual_journal_id Unique identifier for a ManualJournal (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface */
@@ -8965,7 +8965,7 @@ function ($exception) {
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $manual_journal_id Unique identifier for a ManualJournal (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request */
@@ -11974,7 +11974,7 @@ protected function createPrepaymentHistoryRequest($xero_tenant_id, $prepayment_i
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $purchase_order_id Unique identifier for an Purchase Order (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \XeroAPI\XeroPHP\ApiException on non-2xx response
* @throws \InvalidArgumentException
@@ -11991,7 +11991,7 @@ public function createPurchaseOrderAttachmentByFileName($xero_tenant_id, $purcha
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $purchase_order_id Unique identifier for an Purchase Order (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \XeroAPI\XeroPHP\ApiException on non-2xx response
* @throws \InvalidArgumentException
@@ -12090,7 +12090,7 @@ public function createPurchaseOrderAttachmentByFileNameWithHttpInfo($xero_tenant
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $purchase_order_id Unique identifier for an Purchase Order (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
@@ -12110,7 +12110,7 @@ function ($response) {
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $purchase_order_id Unique identifier for an Purchase Order (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface */
@@ -12156,7 +12156,7 @@ function ($exception) {
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $purchase_order_id Unique identifier for an Purchase Order (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request */
@@ -12859,7 +12859,7 @@ protected function createPurchaseOrdersRequest($xero_tenant_id, $purchase_orders
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $quote_id Unique identifier for an Quote (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \XeroAPI\XeroPHP\ApiException on non-2xx response
* @throws \InvalidArgumentException
@@ -12876,7 +12876,7 @@ public function createQuoteAttachmentByFileName($xero_tenant_id, $quote_id, $fil
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $quote_id Unique identifier for an Quote (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \XeroAPI\XeroPHP\ApiException on non-2xx response
* @throws \InvalidArgumentException
@@ -12975,7 +12975,7 @@ public function createQuoteAttachmentByFileNameWithHttpInfo($xero_tenant_id, $qu
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $quote_id Unique identifier for an Quote (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
@@ -12995,7 +12995,7 @@ function ($response) {
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $quote_id Unique identifier for an Quote (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface */
@@ -13041,7 +13041,7 @@ function ($exception) {
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $quote_id Unique identifier for an Quote (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request */
@@ -14026,7 +14026,7 @@ protected function createReceiptRequest($xero_tenant_id, $receipts, $unitdp = nu
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $receipt_id Unique identifier for a Receipt (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \XeroAPI\XeroPHP\ApiException on non-2xx response
* @throws \InvalidArgumentException
@@ -14043,7 +14043,7 @@ public function createReceiptAttachmentByFileName($xero_tenant_id, $receipt_id,
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $receipt_id Unique identifier for a Receipt (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \XeroAPI\XeroPHP\ApiException on non-2xx response
* @throws \InvalidArgumentException
@@ -14142,7 +14142,7 @@ public function createReceiptAttachmentByFileNameWithHttpInfo($xero_tenant_id, $
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $receipt_id Unique identifier for a Receipt (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
@@ -14162,7 +14162,7 @@ function ($response) {
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $receipt_id Unique identifier for a Receipt (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface */
@@ -14208,7 +14208,7 @@ function ($exception) {
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $receipt_id Unique identifier for a Receipt (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request */
@@ -14629,7 +14629,7 @@ protected function createReceiptHistoryRequest($xero_tenant_id, $receipt_id, $hi
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $repeating_invoice_id Unique identifier for a Repeating Invoice (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \XeroAPI\XeroPHP\ApiException on non-2xx response
* @throws \InvalidArgumentException
@@ -14646,7 +14646,7 @@ public function createRepeatingInvoiceAttachmentByFileName($xero_tenant_id, $rep
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $repeating_invoice_id Unique identifier for a Repeating Invoice (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \XeroAPI\XeroPHP\ApiException on non-2xx response
* @throws \InvalidArgumentException
@@ -14745,7 +14745,7 @@ public function createRepeatingInvoiceAttachmentByFileNameWithHttpInfo($xero_ten
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $repeating_invoice_id Unique identifier for a Repeating Invoice (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
@@ -14765,7 +14765,7 @@ function ($response) {
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $repeating_invoice_id Unique identifier for a Repeating Invoice (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface */
@@ -14811,7 +14811,7 @@ function ($exception) {
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $repeating_invoice_id Unique identifier for a Repeating Invoice (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request */
@@ -53967,7 +53967,7 @@ protected function updateAccountRequest($xero_tenant_id, $account_id, $accounts,
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $account_id Unique identifier for Account object (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \XeroAPI\XeroPHP\ApiException on non-2xx response
* @throws \InvalidArgumentException
@@ -53984,7 +53984,7 @@ public function updateAccountAttachmentByFileName($xero_tenant_id, $account_id,
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $account_id Unique identifier for Account object (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \XeroAPI\XeroPHP\ApiException on non-2xx response
* @throws \InvalidArgumentException
@@ -54083,7 +54083,7 @@ public function updateAccountAttachmentByFileNameWithHttpInfo($xero_tenant_id, $
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $account_id Unique identifier for Account object (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
@@ -54103,7 +54103,7 @@ function ($response) {
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $account_id Unique identifier for Account object (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface */
@@ -54149,7 +54149,7 @@ function ($exception) {
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $account_id Unique identifier for Account object (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request */
@@ -54579,7 +54579,7 @@ protected function updateBankTransactionRequest($xero_tenant_id, $bank_transacti
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $bank_transaction_id Xero generated unique identifier for a bank transaction (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \XeroAPI\XeroPHP\ApiException on non-2xx response
* @throws \InvalidArgumentException
@@ -54596,7 +54596,7 @@ public function updateBankTransactionAttachmentByFileName($xero_tenant_id, $bank
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $bank_transaction_id Xero generated unique identifier for a bank transaction (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \XeroAPI\XeroPHP\ApiException on non-2xx response
* @throws \InvalidArgumentException
@@ -54695,7 +54695,7 @@ public function updateBankTransactionAttachmentByFileNameWithHttpInfo($xero_tena
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $bank_transaction_id Xero generated unique identifier for a bank transaction (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
@@ -54715,7 +54715,7 @@ function ($response) {
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $bank_transaction_id Xero generated unique identifier for a bank transaction (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface */
@@ -54761,7 +54761,7 @@ function ($exception) {
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $bank_transaction_id Xero generated unique identifier for a bank transaction (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request */
@@ -54889,7 +54889,7 @@ protected function updateBankTransactionAttachmentByFileNameRequest($xero_tenant
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $bank_transfer_id Xero generated unique identifier for a bank transfer (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \XeroAPI\XeroPHP\ApiException on non-2xx response
* @throws \InvalidArgumentException
@@ -54905,7 +54905,7 @@ public function updateBankTransferAttachmentByFileName($xero_tenant_id, $bank_tr
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $bank_transfer_id Xero generated unique identifier for a bank transfer (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \XeroAPI\XeroPHP\ApiException on non-2xx response
* @throws \InvalidArgumentException
@@ -55004,7 +55004,7 @@ public function updateBankTransferAttachmentByFileNameWithHttpInfo($xero_tenant_
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $bank_transfer_id Xero generated unique identifier for a bank transfer (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
@@ -55024,7 +55024,7 @@ function ($response) {
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $bank_transfer_id Xero generated unique identifier for a bank transfer (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface */
@@ -55070,7 +55070,7 @@ function ($exception) {
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $bank_transfer_id Xero generated unique identifier for a bank transfer (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request */
@@ -55490,7 +55490,7 @@ protected function updateContactRequest($xero_tenant_id, $contact_id, $contacts,
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $contact_id Unique identifier for a Contact (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \XeroAPI\XeroPHP\ApiException on non-2xx response
* @throws \InvalidArgumentException
@@ -55506,7 +55506,7 @@ public function updateContactAttachmentByFileName($xero_tenant_id, $contact_id,
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $contact_id Unique identifier for a Contact (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \XeroAPI\XeroPHP\ApiException on non-2xx response
* @throws \InvalidArgumentException
@@ -55605,7 +55605,7 @@ public function updateContactAttachmentByFileNameWithHttpInfo($xero_tenant_id, $
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $contact_id Unique identifier for a Contact (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
@@ -55625,7 +55625,7 @@ function ($response) {
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $contact_id Unique identifier for a Contact (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface */
@@ -55671,7 +55671,7 @@ function ($exception) {
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $contact_id Unique identifier for a Contact (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request */
@@ -56393,7 +56393,7 @@ protected function updateCreditNoteRequest($xero_tenant_id, $credit_note_id, $cr
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $credit_note_id Unique identifier for a Credit Note (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \XeroAPI\XeroPHP\ApiException on non-2xx response
* @throws \InvalidArgumentException
@@ -56410,7 +56410,7 @@ public function updateCreditNoteAttachmentByFileName($xero_tenant_id, $credit_no
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $credit_note_id Unique identifier for a Credit Note (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \XeroAPI\XeroPHP\ApiException on non-2xx response
* @throws \InvalidArgumentException
@@ -56509,7 +56509,7 @@ public function updateCreditNoteAttachmentByFileNameWithHttpInfo($xero_tenant_id
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $credit_note_id Unique identifier for a Credit Note (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
@@ -56529,7 +56529,7 @@ function ($response) {
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $credit_note_id Unique identifier for a Credit Note (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface */
@@ -56575,7 +56575,7 @@ function ($exception) {
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $credit_note_id Unique identifier for a Credit Note (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request */
@@ -57297,7 +57297,7 @@ protected function updateInvoiceRequest($xero_tenant_id, $invoice_id, $invoices,
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $invoice_id Unique identifier for an Invoice (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \XeroAPI\XeroPHP\ApiException on non-2xx response
* @throws \InvalidArgumentException
@@ -57314,7 +57314,7 @@ public function updateInvoiceAttachmentByFileName($xero_tenant_id, $invoice_id,
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $invoice_id Unique identifier for an Invoice (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \XeroAPI\XeroPHP\ApiException on non-2xx response
* @throws \InvalidArgumentException
@@ -57413,7 +57413,7 @@ public function updateInvoiceAttachmentByFileNameWithHttpInfo($xero_tenant_id, $
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $invoice_id Unique identifier for an Invoice (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
@@ -57433,7 +57433,7 @@ function ($response) {
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $invoice_id Unique identifier for an Invoice (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface */
@@ -57479,7 +57479,7 @@ function ($exception) {
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $invoice_id Unique identifier for an Invoice (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request */
@@ -58493,7 +58493,7 @@ protected function updateManualJournalRequest($xero_tenant_id, $manual_journal_i
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $manual_journal_id Unique identifier for a ManualJournal (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \XeroAPI\XeroPHP\ApiException on non-2xx response
* @throws \InvalidArgumentException
@@ -58510,7 +58510,7 @@ public function updateManualJournalAttachmentByFileName($xero_tenant_id, $manual
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $manual_journal_id Unique identifier for a ManualJournal (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \XeroAPI\XeroPHP\ApiException on non-2xx response
* @throws \InvalidArgumentException
@@ -58609,7 +58609,7 @@ public function updateManualJournalAttachmentByFileNameWithHttpInfo($xero_tenant
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $manual_journal_id Unique identifier for a ManualJournal (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
@@ -58629,7 +58629,7 @@ function ($response) {
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $manual_journal_id Unique identifier for a ManualJournal (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface */
@@ -58675,7 +58675,7 @@ function ($exception) {
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $manual_journal_id Unique identifier for a ManualJournal (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request */
@@ -61952,7 +61952,7 @@ protected function updatePurchaseOrderRequest($xero_tenant_id, $purchase_order_i
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $purchase_order_id Unique identifier for an Purchase Order (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \XeroAPI\XeroPHP\ApiException on non-2xx response
* @throws \InvalidArgumentException
@@ -61969,7 +61969,7 @@ public function updatePurchaseOrderAttachmentByFileName($xero_tenant_id, $purcha
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $purchase_order_id Unique identifier for an Purchase Order (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \XeroAPI\XeroPHP\ApiException on non-2xx response
* @throws \InvalidArgumentException
@@ -62068,7 +62068,7 @@ public function updatePurchaseOrderAttachmentByFileNameWithHttpInfo($xero_tenant
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $purchase_order_id Unique identifier for an Purchase Order (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
@@ -62088,7 +62088,7 @@ function ($response) {
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $purchase_order_id Unique identifier for an Purchase Order (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface */
@@ -62134,7 +62134,7 @@ function ($exception) {
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $purchase_order_id Unique identifier for an Purchase Order (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request */
@@ -62555,7 +62555,7 @@ protected function updateQuoteRequest($xero_tenant_id, $quote_id, $quotes, $idem
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $quote_id Unique identifier for an Quote (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \XeroAPI\XeroPHP\ApiException on non-2xx response
* @throws \InvalidArgumentException
@@ -62572,7 +62572,7 @@ public function updateQuoteAttachmentByFileName($xero_tenant_id, $quote_id, $fil
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $quote_id Unique identifier for an Quote (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \XeroAPI\XeroPHP\ApiException on non-2xx response
* @throws \InvalidArgumentException
@@ -62671,7 +62671,7 @@ public function updateQuoteAttachmentByFileNameWithHttpInfo($xero_tenant_id, $qu
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $quote_id Unique identifier for an Quote (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
@@ -62691,7 +62691,7 @@ function ($response) {
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $quote_id Unique identifier for an Quote (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface */
@@ -62737,7 +62737,7 @@ function ($exception) {
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $quote_id Unique identifier for an Quote (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request */
@@ -63167,7 +63167,7 @@ protected function updateReceiptRequest($xero_tenant_id, $receipt_id, $receipts,
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $receipt_id Unique identifier for a Receipt (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \XeroAPI\XeroPHP\ApiException on non-2xx response
* @throws \InvalidArgumentException
@@ -63184,7 +63184,7 @@ public function updateReceiptAttachmentByFileName($xero_tenant_id, $receipt_id,
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $receipt_id Unique identifier for a Receipt (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \XeroAPI\XeroPHP\ApiException on non-2xx response
* @throws \InvalidArgumentException
@@ -63283,7 +63283,7 @@ public function updateReceiptAttachmentByFileNameWithHttpInfo($xero_tenant_id, $
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $receipt_id Unique identifier for a Receipt (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
@@ -63303,7 +63303,7 @@ function ($response) {
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $receipt_id Unique identifier for a Receipt (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface */
@@ -63349,7 +63349,7 @@ function ($exception) {
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $receipt_id Unique identifier for a Receipt (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request */
@@ -63770,7 +63770,7 @@ protected function updateRepeatingInvoiceRequest($xero_tenant_id, $repeating_inv
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $repeating_invoice_id Unique identifier for a Repeating Invoice (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \XeroAPI\XeroPHP\ApiException on non-2xx response
* @throws \InvalidArgumentException
@@ -63787,7 +63787,7 @@ public function updateRepeatingInvoiceAttachmentByFileName($xero_tenant_id, $rep
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $repeating_invoice_id Unique identifier for a Repeating Invoice (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \XeroAPI\XeroPHP\ApiException on non-2xx response
* @throws \InvalidArgumentException
@@ -63886,7 +63886,7 @@ public function updateRepeatingInvoiceAttachmentByFileNameWithHttpInfo($xero_ten
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $repeating_invoice_id Unique identifier for a Repeating Invoice (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
@@ -63906,7 +63906,7 @@ function ($response) {
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $repeating_invoice_id Unique identifier for a Repeating Invoice (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface */
@@ -63952,7 +63952,7 @@ function ($exception) {
* @param string $xero_tenant_id Xero identifier for Tenant (required)
* @param string $repeating_invoice_id Unique identifier for a Repeating Invoice (required)
* @param string $file_name Name of the attachment (required)
- * @param string $body Byte array of file in body of request (required)
+ * @param \SplFileObject $body Byte array of file in body of request (required)
* @param string $idempotency_key This allows you to safely retry requests without the risk of duplicate processing. 128 character max. (optional)
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request */
diff --git a/lib/Models/PayrollNz/Employee.php b/lib/Models/PayrollNz/Employee.php
index 84a00aa9..b18dd5c3 100644
--- a/lib/Models/PayrollNz/Employee.php
+++ b/lib/Models/PayrollNz/Employee.php
@@ -301,6 +301,18 @@ public function listInvalidProperties()
{
$invalidProperties = [];
+ if ($this->container['first_name'] === null) {
+ $invalidProperties[] = "'first_name' can't be null";
+ }
+ if ($this->container['last_name'] === null) {
+ $invalidProperties[] = "'last_name' can't be null";
+ }
+ if ($this->container['date_of_birth'] === null) {
+ $invalidProperties[] = "'date_of_birth' can't be null";
+ }
+ if ($this->container['address'] === null) {
+ $invalidProperties[] = "'address' can't be null";
+ }
$allowedValues = $this->getGenderAllowableValues();
if (!is_null($this->container['gender']) && !in_array($this->container['gender'], $allowedValues, true)) {
$invalidProperties[] = sprintf(
@@ -381,7 +393,7 @@ public function setTitle($title)
/**
* Gets first_name
*
- * @return string|null
+ * @return string
*/
public function getFirstName()
{
@@ -391,7 +403,7 @@ public function getFirstName()
/**
* Sets first_name
*
- * @param string|null $first_name First name of employee
+ * @param string $first_name First name of employee
*
* @return $this
*/
@@ -408,7 +420,7 @@ public function setFirstName($first_name)
/**
* Gets last_name
*
- * @return string|null
+ * @return string
*/
public function getLastName()
{
@@ -418,7 +430,7 @@ public function getLastName()
/**
* Sets last_name
*
- * @param string|null $last_name Last name of employee
+ * @param string $last_name Last name of employee
*
* @return $this
*/
@@ -435,7 +447,7 @@ public function setLastName($last_name)
/**
* Gets date_of_birth
*
- * @return \DateTime|null
+ * @return \DateTime
*/
public function getDateOfBirth()
{
@@ -445,7 +457,7 @@ public function getDateOfBirth()
/**
* Sets date_of_birth
*
- * @param \DateTime|null $date_of_birth Date of birth of the employee (YYYY-MM-DD)
+ * @param \DateTime $date_of_birth Date of birth of the employee (YYYY-MM-DD)
*
* @return $this
*/
@@ -462,7 +474,7 @@ public function setDateOfBirth($date_of_birth)
/**
* Gets address
*
- * @return \XeroAPI\XeroPHP\Models\PayrollNz\Address|null
+ * @return \XeroAPI\XeroPHP\Models\PayrollNz\Address
*/
public function getAddress()
{
@@ -472,7 +484,7 @@ public function getAddress()
/**
* Sets address
*
- * @param \XeroAPI\XeroPHP\Models\PayrollNz\Address|null $address address
+ * @param \XeroAPI\XeroPHP\Models\PayrollNz\Address $address address
*
* @return $this
*/
diff --git a/lib/Models/PayrollNz/Employment.php b/lib/Models/PayrollNz/Employment.php
index 54981820..3520706b 100644
--- a/lib/Models/PayrollNz/Employment.php
+++ b/lib/Models/PayrollNz/Employment.php
@@ -214,6 +214,15 @@ public function listInvalidProperties()
{
$invalidProperties = [];
+ if ($this->container['payroll_calendar_id'] === null) {
+ $invalidProperties[] = "'payroll_calendar_id' can't be null";
+ }
+ if ($this->container['start_date'] === null) {
+ $invalidProperties[] = "'start_date' can't be null";
+ }
+ if ($this->container['engagement_type'] === null) {
+ $invalidProperties[] = "'engagement_type' can't be null";
+ }
return $invalidProperties;
}
@@ -232,7 +241,7 @@ public function valid()
/**
* Gets payroll_calendar_id
*
- * @return string|null
+ * @return string
*/
public function getPayrollCalendarId()
{
@@ -242,7 +251,7 @@ public function getPayrollCalendarId()
/**
* Sets payroll_calendar_id
*
- * @param string|null $payroll_calendar_id Xero unique identifier for the payroll calendar of the employee
+ * @param string $payroll_calendar_id Xero unique identifier for the payroll calendar of the employee
*
* @return $this
*/
@@ -286,7 +295,7 @@ public function setPayRunCalendarId($pay_run_calendar_id)
/**
* Gets start_date
*
- * @return \DateTime|null
+ * @return \DateTime
*/
public function getStartDate()
{
@@ -296,7 +305,7 @@ public function getStartDate()
/**
* Sets start_date
*
- * @param \DateTime|null $start_date Start date of the employment (YYYY-MM-DD)
+ * @param \DateTime $start_date Start date of the employment (YYYY-MM-DD)
*
* @return $this
*/
@@ -313,7 +322,7 @@ public function setStartDate($start_date)
/**
* Gets engagement_type
*
- * @return string|null
+ * @return string
*/
public function getEngagementType()
{
@@ -323,7 +332,7 @@ public function getEngagementType()
/**
* Sets engagement_type
*
- * @param string|null $engagement_type Engagement type of the employee
+ * @param string $engagement_type Engagement type of the employee
*
* @return $this
*/
diff --git a/lib/Models/PayrollUk/Employee.php b/lib/Models/PayrollUk/Employee.php
index e4f21a48..19a5ae83 100644
--- a/lib/Models/PayrollUk/Employee.php
+++ b/lib/Models/PayrollUk/Employee.php
@@ -307,6 +307,24 @@ public function listInvalidProperties()
{
$invalidProperties = [];
+ if ($this->container['title'] === null) {
+ $invalidProperties[] = "'title' can't be null";
+ }
+ if ($this->container['first_name'] === null) {
+ $invalidProperties[] = "'first_name' can't be null";
+ }
+ if ($this->container['last_name'] === null) {
+ $invalidProperties[] = "'last_name' can't be null";
+ }
+ if ($this->container['date_of_birth'] === null) {
+ $invalidProperties[] = "'date_of_birth' can't be null";
+ }
+ if ($this->container['address'] === null) {
+ $invalidProperties[] = "'address' can't be null";
+ }
+ if ($this->container['gender'] === null) {
+ $invalidProperties[] = "'gender' can't be null";
+ }
$allowedValues = $this->getGenderAllowableValues();
if (!is_null($this->container['gender']) && !in_array($this->container['gender'], $allowedValues, true)) {
$invalidProperties[] = sprintf(
@@ -360,7 +378,7 @@ public function setEmployeeId($employee_id)
/**
* Gets title
*
- * @return string|null
+ * @return string
*/
public function getTitle()
{
@@ -370,7 +388,7 @@ public function getTitle()
/**
* Sets title
*
- * @param string|null $title Title of the employee
+ * @param string $title Title of the employee
*
* @return $this
*/
@@ -387,7 +405,7 @@ public function setTitle($title)
/**
* Gets first_name
*
- * @return string|null
+ * @return string
*/
public function getFirstName()
{
@@ -397,7 +415,7 @@ public function getFirstName()
/**
* Sets first_name
*
- * @param string|null $first_name First name of employee
+ * @param string $first_name First name of employee
*
* @return $this
*/
@@ -414,7 +432,7 @@ public function setFirstName($first_name)
/**
* Gets last_name
*
- * @return string|null
+ * @return string
*/
public function getLastName()
{
@@ -424,7 +442,7 @@ public function getLastName()
/**
* Sets last_name
*
- * @param string|null $last_name Last name of employee
+ * @param string $last_name Last name of employee
*
* @return $this
*/
@@ -441,7 +459,7 @@ public function setLastName($last_name)
/**
* Gets date_of_birth
*
- * @return \DateTime|null
+ * @return \DateTime
*/
public function getDateOfBirth()
{
@@ -451,7 +469,7 @@ public function getDateOfBirth()
/**
* Sets date_of_birth
*
- * @param \DateTime|null $date_of_birth Date of birth of the employee (YYYY-MM-DD)
+ * @param \DateTime $date_of_birth Date of birth of the employee (YYYY-MM-DD)
*
* @return $this
*/
@@ -468,7 +486,7 @@ public function setDateOfBirth($date_of_birth)
/**
* Gets address
*
- * @return \XeroAPI\XeroPHP\Models\PayrollUk\Address|null
+ * @return \XeroAPI\XeroPHP\Models\PayrollUk\Address
*/
public function getAddress()
{
@@ -478,7 +496,7 @@ public function getAddress()
/**
* Sets address
*
- * @param \XeroAPI\XeroPHP\Models\PayrollUk\Address|null $address address
+ * @param \XeroAPI\XeroPHP\Models\PayrollUk\Address $address address
*
* @return $this
*/
@@ -522,7 +540,7 @@ public function setEmail($email)
/**
* Gets gender
*
- * @return string|null
+ * @return string
*/
public function getGender()
{
@@ -532,14 +550,14 @@ public function getGender()
/**
* Sets gender
*
- * @param string|null $gender The employee’s gender
+ * @param string $gender The employee’s gender
*
* @return $this
*/
public function setGender($gender)
{
$allowedValues = $this->getGenderAllowableValues();
- if (!is_null($gender) && !in_array($gender, $allowedValues, true)) {
+ if (!in_array($gender, $allowedValues, true)) {
throw new \InvalidArgumentException(
sprintf(
"Invalid value for 'gender', must be one of '%s'",
diff --git a/test/Api/AccountingApiTest.php b/test/Api/AccountingApiTest.php
deleted file mode 100644
index 7382c2e8..00000000
--- a/test/Api/AccountingApiTest.php
+++ /dev/null
@@ -1,1973 +0,0 @@
-