XeroAPI / xero-php-oauth2-app

PHP app for demonstrating the xero-php-oauth2 SDK
MIT License
22 stars 25 forks source link

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

Open orion3dgames opened 2 days ago

orion3dgames commented 2 days ago

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

github-actions[bot] commented 2 days ago

PETOSS-666

github-actions[bot] commented 2 days ago

Thanks for raising an issue, a ticket has been created to track your request