lib/app_manager/client/plans.rb in app_manager-1.2.7 vs lib/app_manager/client/plans.rb in app_manager-1.3.0
- old
+ new
@@ -1,48 +1,48 @@
module AppManager
- class Client
- module Plans
+ class Client
+ module Plans
- def get_plans(shop_domain,active_plan_id=nil)
- get("/plans?shop_domain=#{shop_domain}&active_plan_id=#{active_plan_id}")
- end
+ def get_plans(shop_domain, active_plan_id = nil)
+ get("/plans?shop_domain=#{shop_domain}&active_plan_id=#{active_plan_id}")
+ end
- def get_plan(plan_id,shop_domain=nil)
- get("/plan?plan_id=#{plan_id}&shop_domain=#{shop_domain}")
- end
+ def get_plan(plan_id, shop_domain = nil)
+ get("/plan?plan_id=#{plan_id}&shop_domain=#{shop_domain}")
+ end
- def store_charge(options = {})
- post("/store-charge", options)
- end
+ def store_charge(options = {})
+ post("/store-charge", options)
+ end
- def cancel_charge(shop_domain,plan_id)
- post("/cancel-charge", {shop_domain: shop_domain,plan_id: plan_id})
- end
+ def cancel_charge(shop_domain, plan_id)
+ post("/cancel-charge", {shop_domain: shop_domain, plan_id: plan_id})
+ end
- def update_charge(shop_domain,plan_id)
- post("/update-charge", {shop_domain: shop_domain,plan_id: plan_id})
- end
+ def update_charge(shop_domain, plan_id)
+ post("/update-charge", {shop_domain: shop_domain, plan_id: plan_id})
+ end
- def sync_charge(options = {})
- post("/sync-charge", options)
- end
+ def sync_charge(options = {})
+ post("/sync-charge", options)
+ end
- 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
+ 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
- def get_charge(shop_domain)
- get("/get-charge?shop_domain=#{shop_domain}")
- end
+ def get_charge(shop_domain)
+ get("/get-charge?shop_domain=#{shop_domain}")
+ end
- def get_status(options = {})
- get("/get-status", options)
- end
+ def get_status(options = {})
+ get("/get-status", options)
+ end
- def has_plan(shop_domain,plan_id,trial_activated_at,grandfathered)
- get("/has-plan?shop_domain=#{shop_domain}&plan_id=#{plan_id}&trial_activated_at=#{trial_activated_at}&grandfathered=#{grandfathered}")
- end
+ def has_plan(shop_domain, plan_id, trial_activated_at, grandfathered)
+ get("/has-plan?shop_domain=#{shop_domain}&plan_id=#{plan_id}&trial_activated_at=#{trial_activated_at}&grandfathered=#{grandfathered}")
+ end
- end
- end
+ end
+ end
end
\ No newline at end of file