Neil Costford 11 лет назад
Родитель
Сommit
48d4f54f21
1 измененных файлов с 2 добавлено и 0 удалено
  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