Explorar o código

exposes customer#orders

Neil Costford %!s(int64=11) %!d(string=hai) anos
pai
achega
48d4f54f21
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      lib/shopify_api/resources/customer.rb

+ 2 - 0
lib/shopify_api/resources/customer.rb

@@ -2,6 +2,8 @@ module ShopifyAPI
   class Customer < Base
     include Metafields
 
+    def orders(options = {}); load_attributes_from_response(get(:orders, options)); end
+    
     class DefaultAddress < Base
     end
   end