```ruby
module NetSuite
  module Records
    class CashSaleItemList
      include Namespaces::TranSales

      def initialize(attributes = {})
        case attributes[:item]
        when Hash
          items << CashSaleItem.new(attributes[:item])
        when Array
          attributes[:item].each { |item| items << CashSaleItem.new(item) }
        end
      end

      def items
        @items ||= []
      end

      def to_record
        { "#{record_namespace}:item" => items.map(&:to_record) }
      end
    end
  end
end

```

Refactor CashSaleItemList to use Support::Sublist
user
```ruby
module NetSuite
  module Records
    class CashSaleItemList < Support::Sublist
      include Namespaces::TranSales

      sublist :item, CashSaleItem

      alias :items :item

    end
  end
end

```
assistant