determine type from ShopifyAPI gem during generation