XeroAPI / xero-php-oauth2

Xero PHP SDK for oAuth 2 generated from Xero API OpenAPI Spec 3.0
MIT License
91 stars 65 forks source link

UK Payroll SalaryAndWage does not support Hourly PaymentType #221

Closed aarangara closed 3 years ago

aarangara commented 3 years ago

SDK you're using (please complete the following information):

Describe the bug For an UK PAYROLL, I am trying to create an Hourly SalaryAndWage object for the Employement of an Employee, but it fails because the only supported payment type is "Salary".

Is there any specific reason why "Hourly" payment type is not supported?

/**
 * Gets allowable values of the enum
 *
 * @return string[]
 */
public function getPaymentTypeAllowableValues()
{
    return [
        self::PAYMENT_TYPE_SALARY,
    ];
}
SidneyAllen commented 3 years ago

@aarangara Thanks for the feedback.

This is corrected in version 2.5.2 https://github.com/XeroAPI/xero-php-oauth2/releases/tag/2.5.2