Sha256: 8db008411c3a1bb9bf50ab7883d9195f20f751d9b1337261f69e98efc2d2794f

Contents?: true

Size: 592 Bytes

Versions: 37

Compression:

Stored size: 592 Bytes

Contents

module NetSuite
  module Records
    class CustomerRefundApplyList
      include Namespaces::TranCust

      def initialize(attributes = {})
        case attributes[:apply]
        when Hash
          applies << CustomerRefundApply.new(attributes[:apply])
        when Array
          attributes[:apply].each { |apply| applies << CustomerRefundApply.new(apply) }
        end
      end

      def applies
        @applies ||= []
      end

      def to_record
        applies.map do |apply|
          { "#{record_namespace}:apply" => apply.to_record }
        end
      end

    end
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
netsuite-0.3.3 lib/netsuite/records/customer_refund_apply_list.rb
netsuite-0.3.2 lib/netsuite/records/customer_refund_apply_list.rb
netsuite-0.3.1 lib/netsuite/records/customer_refund_apply_list.rb
netsuite-0.3.0 lib/netsuite/records/customer_refund_apply_list.rb
netsuite-0.2.6 lib/netsuite/records/customer_refund_apply_list.rb
netsuite-0.2.5 lib/netsuite/records/customer_refund_apply_list.rb
netsuite-0.2.4 lib/netsuite/records/customer_refund_apply_list.rb
netsuite-0.2.3 lib/netsuite/records/customer_refund_apply_list.rb
netsuite-0.2.2 lib/netsuite/records/customer_refund_apply_list.rb
netsuite-0.2.1 lib/netsuite/records/customer_refund_apply_list.rb
netsuite-0.2.0 lib/netsuite/records/customer_refund_apply_list.rb
netsuite-0.1.0 lib/netsuite/records/customer_refund_apply_list.rb
netsuite-0.0.50 lib/netsuite/records/customer_refund_apply_list.rb
netsuite-0.0.49 lib/netsuite/records/customer_refund_apply_list.rb
netsuite-0.0.48 lib/netsuite/records/customer_refund_apply_list.rb
netsuite-0.0.47 lib/netsuite/records/customer_refund_apply_list.rb
netsuite-0.0.45 lib/netsuite/records/customer_refund_apply_list.rb
netsuite-0.0.44 lib/netsuite/records/customer_refund_apply_list.rb
netsuite-0.0.43 lib/netsuite/records/customer_refund_apply_list.rb
netsuite-0.0.42 lib/netsuite/records/customer_refund_apply_list.rb