Explorar el Código

Add new #activate methods to charges.

Jesse Storimer hace 15 años
padre
commit
e493f356a3
Se han modificado 1 ficheros con 7 adiciones y 0 borrados
  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