We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
taxes_included
ShopifyAPI::Shop
Accessing the taxes_included property on a ShopifyAPI::Shop object returns a Sorbet TypeError due to a mismatch between the auto-generated type on the ShopifyAPI::Shop class and what gets returned in the body of the response
shopify_api
[12] pry(#<ShopRepository>)> shopify_shop.taxes_included TypeError: Return value: Expected type T.nilable(String), got type FalseClass Caller: (pry):10
ShopifyAPI::Shop.all.first.taxes_included should return nillable boolean.
ShopifyAPI::Shop.all.first.taxes_included
From the documentation: taxes_included: Whether applicable taxes are included in product prices. Valid values: true or null.
ShopifyAPI::Shop.all.first.taxes_included returns a Sorbet type error: TypeError: Return value: Expected type T.nilable(String), got type FalseClass
TypeError: Return value: Expected type T.nilable(String), got type FalseClass
Shop
shop = ShopifyAPI::Shop.all.first
arguments
shop.taxes_included
The text was updated successfully, but these errors were encountered:
mllemango
No branches or pull requests
Issue summary
Accessing the
taxes_included
property on aShopifyAPI::Shop
object returns a Sorbet TypeError due to a mismatch between the auto-generated type on the ShopifyAPI::Shop class and what gets returned in the body of the responseshopify_api
version: 13.0.0Expected behavior
ShopifyAPI::Shop.all.first.taxes_included
should return nillable boolean.From the documentation:
taxes_included
: Whether applicable taxes are included in product prices. Valid values: true or null.Actual behavior
ShopifyAPI::Shop.all.first.taxes_included
returns a Sorbet type error:TypeError: Return value: Expected type T.nilable(String), got type FalseClass
Steps to reproduce the problem
Shop
object through the auto-generated REST API resource class:shop = ShopifyAPI::Shop.all.first
arguments
property:shop.taxes_included
The text was updated successfully, but these errors were encountered: