| 
					
				 | 
			
			
				@@ -1,9 +1,27 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 module ShopifyAPI 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   class RecurringApplicationCharge < Base 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     undef_method :test 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    def self.current 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      find(:all).find{|charge| charge.status == 'active'} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    class << self 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      def current 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        all.find { |c| c.status == 'active' } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      end 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+       
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      def pending 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        all.find { |c| c.status == 'pending' } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      end 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+       
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      def cancelled 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        all.find { |c| c.status == 'cancelled' } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      end 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+       
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      def accepted 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        all.find { |c| c.status == 'accepted' } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      end 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+       
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      def declined 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        all.find { |c| c.status == 'declined' } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      end 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     end 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     def cancel 
			 |