Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
orion3dgames opened this issue Nov 4, 2024 · 2 comments
Open

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

orion3dgames opened this issue Nov 4, 2024 · 2 comments

Comments

@orion3dgames
Copy link

orion3dgames commented Nov 4, 2024

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

Copy link

github-actions bot commented Nov 4, 2024

PETOSS-666

Copy link

github-actions bot commented Nov 4, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant