Skip to content

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

Open
@orion3dgames

Description

@orion3dgames

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions