xero-php-oauth2-app icon indicating copy to clipboard operation
xero-php-oauth2-app copied to clipboard

XERO API - Organization Class Does Not Exists (IGNITE PLAN)

Open orion3dgames opened this issue 3 months ago • 2 comments

Hi All,

Looks like there is an issue on the class allowed types in a organization:

version: "xeroapi/xero-php-oauth2": "2.23.3" in '\vendor\xeroapi\xero-php-oauth2\lib\Models\Accounting\Organization.php' line 518, there is a list of allowed account plans I'm guessing

return [
            self::MODEL_CLASS_DEMO,
            self::MODEL_CLASS_TRIAL,
            self::MODEL_CLASS_STARTER,
            self::MODEL_CLASS_STANDARD,
            self::MODEL_CLASS_PREMIUM,
            self::MODEL_CLASS_PREMIUM_20,
            self::MODEL_CLASS_PREMIUM_50,
            self::MODEL_CLASS_PREMIUM_100,
            self::MODEL_CLASS_LEDGER,
            self::MODEL_CLASS_GST_CASHBOOK,
            self::MODEL_CLASS_NON_GST_CASHBOOK,
            self::MODEL_CLASS_ULTIMATE,
            self::MODEL_CLASS_LITE,
        ];

That list does not include the plan my company is currently on, which is: IGNITE

So of course, line 1504 function setClass will throw an error,

Can you please let me know if you need more details and or if I'm doing something wrong?

Cheers, Orion

orion3dgames avatar Nov 04 '24 05:11 orion3dgames