You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When making the call for earnings rates payroll_uk_api.get_earnings_rates I receive an argument error from the SDK, specifically from line 232 in earnings_rate.rb:
#<ArgumentError: invalid value for "earnings_type", must be one of ["Allowance", "Backpay", "Bonus", "Commission", "LumpSum", "OtherEarnings", "OvertimeEarnings", "RegularEarnings", "StatutoryAdoptionPay", "StatutoryAdoptionPayNonPensionable", "StatutoryBereavementPay", "StatutoryMaternityPay", "StatutoryMaternityPayNonPensionable", "StatutoryPaternityPay", "StatutoryPaternityPayNonPensionable", "StatutoryParentalBereavementPayNonPensionable", "StatutorySharedParentalPay", "StatutorySharedParentalPayNonPensionable", "StatutorySickPay", "StatutorySickPayNonPensionable", "TipsNonDirect", "TipsDirect", "TerminationPay"].>
I noticed this previous issue about the same error: #175
In that issue, TerminationPay is missing, but it has it in my response so perhaps there is a new pay type?
Correlation ID for one of my failed calls is: 60ab3a47-397d-4491-8457-bb8a404b6c56
Thanks in advance.
The text was updated successfully, but these errors were encountered:
Hey @WillRogers727 thanks for calling this out. Looks like the Backpay enum is cased differently from the API in the OpenAPI spec when it should be BackPay. This was based of the docs so we'll update the SDKs and request the relevant API team update their docs.
When making the call for earnings rates
payroll_uk_api.get_earnings_rates
I receive an argument error from the SDK, specifically from line 232 inearnings_rate.rb
:I noticed this previous issue about the same error: #175
In that issue, TerminationPay is missing, but it has it in my response so perhaps there is a new pay type?
Correlation ID for one of my failed calls is:
60ab3a47-397d-4491-8457-bb8a404b6c56
Thanks in advance.
The text was updated successfully, but these errors were encountered: