Closed thusithagh closed 1 year ago
Hi Thusitha, Thanks for raising this issue, we agree that the batch payment property should be apart of the payment model. We have gone ahead and released this change in the latest SDK release (3.29.2), view the release notes here for more details.
Thanks.
Xero.NetStandard.OAuth2 3.29.1 Xero.NetStandard.OAuth2Client 1.6.0
No property to hold batch payment information, within the
Xero.NetStandard.OAuth2.Model.Accounting.Payment
class.To Reproduce Steps to reproduce the behavior:
Go to API explorer
Make a request to Accounting/GetPayments endpoint against the Demo org
Notice the
BatchPayment
property under eachPayment
Use Xero.NetStandard.OAuth2 to make the same request.
Notice that the
BatchPayment
is not captured in Xero.NetStandard.OAuth2.Model.Accounting.Payment` class, and there isn't even a property to hold this information.Expected behavior There should be a property to hold batch payment information, under each payment. This is readily available in the API, so it should be about just having a new property and the values assigned to it on successful response.
It will be great help if we have all the information received via the API, in all the response objects in
Xero.NetStandard.OAuth2.Model.Accounting
Best regards, Thusitha H