intacct-sdk-js icon indicating copy to clipboard operation
intacct-sdk-js copied to clipboard

Added "offset" to Result.

Open de-zakauff opened this issue 9 months ago • 0 comments

While working with the SDK, I realized that there is no way to get the offset, so if you don't retain that when passing it to the SDK for querying, the value is lost.

  • Added a new "private" field, _offset, which holds the offset value from the result XML, if it is present.
  • Added a public getter for the _offset field.
  • Updated the constructor so that if the Result XML has an offset attribute, it attempts to parse it to an integer and then set it to the _offset field.
  • Updated ResultTest to add tests for the expected offset data.

de-zakauff avatar May 03 '24 16:05 de-zakauff