intacct / intacct-sdk-js

Official repository of the Sage Intacct SDK for JavaScript in Node.js
https://developer.intacct.com/tools/sdk-node-js/
Apache License 2.0
24 stars 33 forks source link

Remove exceptions for elements missing in control block response #13

Closed jimmymcpeter closed 5 years ago

jimmymcpeter commented 5 years ago

For example, the following response to an old demo company:

<?xml version="1.0" encoding="UTF-8"?>
<response>
    <control>
        <status>failure</status>
        <senderid></senderid>
        <controlid></controlid>
    </control>
    <errormessage>
        <error>
            <errorno>PL04000055</errorno>
            <description></description>
            <description2>This company is a demo company and has expired.</description2>
            <correction></correction>
        </error>
    </errormessage>
</response>

will throw an exception because the uniqueid element is missing.