Browse Source

exposes customer#orders

Neil Costford 11 năm trước cách đây
mục cha
commit
48d4f54f21
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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