SDK you're using (please complete the following information):
Latest
Describe the bug
Details
Type: InvalidArgumentException
Message: Invalid value for 'earnings_type', must be one of 'Allowance', 'Backpay', 'Bonus', 'Commission', 'LumpSum', 'OtherEarnings', 'OvertimeEarnings', 'RegularEarnings', 'StatutoryAdoptionPay', 'StatutoryMaternityPay', 'StatutoryPaternityPay', 'StatutorySharedParentalPay', 'StatutorySickPay', 'Tips(Direct)', 'Tips(Non-Direct)'
File:vendor/xeroapi/xero-php-oauth2/lib/Models/PayrollUk/EarningsRate.php
Line: 425
SDK you're using (please complete the following information):
Describe the bug
Details
Type: InvalidArgumentException Message: Invalid value for 'earnings_type', must be one of 'Allowance', 'Backpay', 'Bonus', 'Commission', 'LumpSum', 'OtherEarnings', 'OvertimeEarnings', 'RegularEarnings', 'StatutoryAdoptionPay', 'StatutoryMaternityPay', 'StatutoryPaternityPay', 'StatutorySharedParentalPay', 'StatutorySickPay', 'Tips(Direct)', 'Tips(Non-Direct)' File:vendor/xeroapi/xero-php-oauth2/lib/Models/PayrollUk/EarningsRate.php Line: 425
Expected behavior I expect a response which is an array of earning rates using https://developer.xero.com/documentation/payroll-api-uk/earningrates
My code: