module AppManager class Config attr_accessor :cache_by_headers attr_accessor :expires_in attr_accessor :enable_caching attr_accessor :plan_features attr_accessor :app_url attr_accessor :shopify_api_key attr_accessor :shopify_api_version attr_accessor :shopify_table_name attr_accessor :shopify_domain_field attr_accessor :plan_id_or_name_field attr_accessor :field_names attr_accessor :refresh_by_request_params attr_accessor :shopify_app_slug def initialize @refresh_by_request_params = true @expires_in = 1.day @enable_caching = true @app_url = nil @shopify_api_key = nil @shopify_api_version = nil @shopify_table_name = 'shops' @shopify_domain_field = 'shopify_domain' @plan_id_or_name_field = nil @shopify_app_slug = nil @field_names = { 'name' => 'shopify_domain', # sample example: demo-chirag-parmar.myshopify.com 'shopify_email' => 'email', # chirag.p@hulkapps.com 'shopify_token' => 'shopify_token', 'shopify_plan' => 'plan_name', # partner_test 'plan_id' => 'plan_id', # 1 'created_at' => 'created_at', # 2022-04-15 10:43:05 'trial_activated_at' => 'trial_activated_at', 'email' => 'email' } @fs = AppManager::FailSafe.new # AppManager.clear_cache end def expires_in @expires_in end def enable_caching @enable_caching end def plan_features @plan_features end def app_url @app_url end def shopify_api_key @shopify_api_key end def shopify_api_version @shopify_api_version end def shopify_table_name @shopify_table_name end def shopify_domain_field @shopify_domain_field end def plan_id_or_name_field @plan_id_or_name_field end def field_names @field_names end def refresh_by_request_params? @refresh_by_request_params end def shopify_app_slug @shopify_app_slug end end end