-
Notifications
You must be signed in to change notification settings - Fork 304
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
Invalid Type : CATEGORY is supported only in minorVersion >= 4 #517
Comments
That's interesting because the model is showing 33:
If you try it outside of the batch does it give you a different result? |
@drewish ok, I tried and it works when I don't use batch. I don't have to use batches so good enough for me, but I think the issue is still there and should be fixed for batches. I was trying to overwrite this MINORVERSION variable to 41 but it still didn't work, so unfortunately solution isn't so simple. |
Thanks for the update. Yeah, having the This should be doable by overriding each service |
Before now I had not fully looked at the minor version documentation: It suggests you can apply a minorversion query param to all requests globally. That is, it doesn't need to be specified per request. This would suggest we could do:
Thoughts? |
Agree. I think one, configurable minor version for all would be really nice. In my opinion it's a bit misleading that there is possibility that gem in one endpoint uses different version than in other. |
Ah yeah I realized what I'd been doing for this was setting the query param for the whole batch with the version:
Having it as a client level could be nice. Is there every a reason to want to downgrade the version? |
@drewish @szymonlipka I worked on this in a branch/PR: #518 Basically you can set Quickbooks.minorversion = X as needed. The library defaults to the current highest number (47 as of now). Anyone want to take a look? |
Pushed gem version |
* QueryBuilder refactor for handling argument values of all types (not just strings). Thank you @jethrodaniel
Hey, I'm trying to create item with "Category" type and I'm getting error "Invalid Type : CATEGORY is supported only in minorVersion >= 4". I'm doing something like this:
I'm wondering if I'm doing something wrong or maybe type "Category" isn't really allowed for Items and the gem shouldn't allow it?
The text was updated successfully, but these errors were encountered: