Sha256: 70c53b0ae60fd762f1ceb20d921dadb746b7e6b29c2d6da3475e64e40fc6590b
Contents?: true
Size: 940 Bytes
Versions: 5
Compression:
Stored size: 940 Bytes
Contents
module AppManager class Client module Plans def get_plans(options = {}) get("/plans", options) 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 cancel_charge(shop_domain,plan_id) post("/cancel-charge", {shop_domain: shop_domain,plan_id: plan_id}) 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_charge(shop_domain) get("/get-charge?shop_domain=#{shop_domain}") end def get_status(options = {}) get("/get-status", options) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems