lib/app_manager/model.rb in app_manager-1.6.1 vs lib/app_manager/model.rb in app_manager-1.6.2
- old
+ new
@@ -311,9 +311,20 @@
# Rollbar.error("Warning in APP MANAGER model charge_callback, trying to update active shopify charge in app manager>>>> #{e.inspect}")
# return nil
# end
end
+ def active_shopfiy_charge_full
+ active_charge_id = self.active_shopify_charge_id
+ if active_charge_id.present?
+ gq_obj = AppManager::GraphqlHelper.new(self.shopify_domain, self.shopify_token)
+ rac_data = gq_obj.current_rc_charge_gql(active_charge_id)
+ return rac_data
+ else
+ return nil
+ end
+ end
+
def config_trial_days
@field_names = AppManager.configuration.field_names
if !@field_names.nil? && @field_names.has_key?('total_trial_days') && !@field_names['total_trial_days'].nil? && !@field_names['total_trial_days'].blank?
return @field_names['total_trial_days']
else