Просмотр исходного кода

Add new #activate methods to charges.

Jesse Storimer 15 лет назад
Родитель
Сommit
e493f356a3
1 измененных файлов с 7 добавлено и 0 удалено
  1. 7 0
      lib/shopify_api.rb

+ 7 - 0
lib/shopify_api.rb

@@ -452,9 +452,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