-
Notifications
You must be signed in to change notification settings - Fork 474
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
Why does ShopifyAPI::Variant#to_hash
exclude inventory_quantity
?
#930
Comments
Hey @koshigoe, thanks for reporting this! The We'll add a parameter to |
mkevinosullivan
added a commit
that referenced
this issue
Apr 22, 2022
Adds parameter to `to_hash` so that default behaviour includes readonly attributes; setting the parameter to `true` indicates that `to_hash` is being used to serialize the object for saving (and thus excludes readonly attributes). Fixes issue #930
4 tasks
mkevinosullivan
added a commit
that referenced
this issue
Apr 22, 2022
Adds parameter to `to_hash` so that default behaviour includes readonly attributes; setting the parameter to `true` indicates that `to_hash` is being used to serialize the object for saving (and thus excludes readonly attributes). Fixes issue #930
mkevinosullivan
added a commit
that referenced
this issue
Apr 25, 2022
Adds parameter to `to_hash` so that default behaviour includes readonly attributes; setting the parameter to `true` indicates that `to_hash` is being used to serialize the object for saving (and thus excludes readonly attributes). Fixes issue #930
mkevinosullivan
added a commit
that referenced
this issue
Apr 26, 2022
Adds parameter to `to_hash` so that default behaviour includes readonly attributes; setting the parameter to `true` indicates that `to_hash` is being used to serialize the object for saving (and thus excludes readonly attributes). Fixes issue #930
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue summary
I try to get variant's
inventory_quantity
viaShopiryAPI::Product#to_hash
.But
inventory_quantity
did not exist inHash
object.Expected behavior
I hope
ShopifyAPI::Variant#to_hash
include all API properties.Actual behavior
Some properties exclude?
Specifications
shopify_api
version: 10.0.22022-01
The text was updated successfully, but these errors were encountered: