فهرست منبع

Merge branch 'master' of github.com:Shopify/shopify_api

Julie Hache 15 سال پیش
والد
کامیت
56527d998e
2فایلهای تغییر یافته به همراه8 افزوده شده و 1 حذف شده
  1. 1 1
      VERSION
  2. 7 0
      lib/shopify_api.rb

+ 1 - 1
VERSION

@@ -1 +1 @@
-1.0.1
+1.0.2

+ 7 - 0
lib/shopify_api.rb

@@ -451,9 +451,16 @@ module ShopifyAPI
     def cancel
       load_attributes_from_response(self.destroy)
     end
+    
+    def activate
+      load_attributes_from_response(post(:activate))
+    end
   end
 
   class ApplicationCharge < Base
+    def activate
+      load_attributes_from_response(post(:activate))
+    end
   end
   
   # Include Metafields module in all enabled classes