Quellcode durchsuchen

Add new #activate methods to charges.

Jesse Storimer vor 15 Jahren
Ursprung
Commit
e493f356a3
1 geänderte Dateien mit 7 neuen und 0 gelöschten Zeilen
  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