Module: AppManager::Client::Plans

Included in:
AppManager::Client
Defined in:
lib/app_manager/client/plans.rb

Instance Method Summary collapse

Instance Method Details

#cancel_charge(shop_domain, plan_id) ⇒ Object



17
18
19
# File 'lib/app_manager/client/plans.rb', line 17

def cancel_charge(shop_domain,plan_id)
	  post("/cancel-charge", {shop_domain: shop_domain,plan_id: plan_id})
end

#get_charge(shop_domain) ⇒ Object



29
30
31
# File 'lib/app_manager/client/plans.rb', line 29

def get_charge(shop_domain)
    get("/get-charge?shop_domain=#{shop_domain}")
end

#get_plan(plan_id, shop_domain = nil) ⇒ Object



9
10
11
# File 'lib/app_manager/client/plans.rb', line 9

def get_plan(plan_id,shop_domain=nil)
 get("/plan?plan_id=#{plan_id}&shop_domain=#{shop_domain}")
end

#get_plans(options = {}) ⇒ Object



5
6
7
# File 'lib/app_manager/client/plans.rb', line 5

def get_plans(options = {})
 get("/plans", options)
end

#get_remaining_days(shop_domain, trial_activated_at = nil, plan_id = nil) ⇒ Object



25
26
27
# File 'lib/app_manager/client/plans.rb', line 25

def get_remaining_days(shop_domain,trial_activated_at=nil,plan_id=nil)
	  get("/get-remaining-days?shop_domain=#{shop_domain}&trial_activated_at=#{trial_activated_at}&plan_id=#{plan_id}")
end

#get_status(options = {}) ⇒ Object



33
34
35
# File 'lib/app_manager/client/plans.rb', line 33

def get_status(options = {})
 get("/get-status", options)
end

#store_charge(options = {}) ⇒ Object



13
14
15
# File 'lib/app_manager/client/plans.rb', line 13

def store_charge(options = {})
	  post("/store-charge", options)
end

#sync_charge(options = {}) ⇒ Object



21
22
23
# File 'lib/app_manager/client/plans.rb', line 21

def sync_charge(options = {})
	  post("/sync-charge", options)
end