Shopify / shopify-api-ruby

ShopifyAPI is a lightweight gem for accessing the Shopify admin REST and GraphQL web services.
MIT License
1.05k stars 468 forks source link

Fix type for Shop#google_apps_login_enabled #1337

Closed kirillplatonov closed 2 weeks ago

kirillplatonov commented 2 weeks ago

Description

Fixes #1334

Fixes incorrect type of Shop#google_apps_login_enabled attribute in REST API.

How has this been tested?

This code can be used to reproduce the issue and test the fix:

shop = Shop.last
shopify_shop = shop.with_shopify_session do
  ShopifyAPI::Shop.all.first
end
shop_data = shopify_shop.to_hash
shop_data["google_apps_login_enabled"] = true
loaded_shop = shop.with_shopify_session do
  ShopifyAPI::Shop.new(from_hash: shop_data)
end
loaded_shop.google_apps_login_enabled

Checklist:

kirillplatonov commented 2 weeks ago

cc @paulomarg