Sha256: 6a7db9cea80868bdd96bc61e16a0c03f73a8dc777757551738611a1d156aa059

Contents?: true

Size: 962 Bytes

Versions: 2

Compression:

Stored size: 962 Bytes

Contents

module NetSuite
  module Records
    class CurrencyRate
      include Support::Records
      include Support::Fields

      include Support::Actions
      include Support::RecordRefs
      include Namespaces::ListAcct

      # https://system.netsuite.com/help/helpcenter/en_US/srbrowser/Browser2014_1/schema/record/currencyrate.html

      actions :get, :get_list, :search

      fields :effective_date, :exchange_rate

      record_refs :base_currency, :transaction_currency

      #field :base_currency, Currency
      #field :transaction_currency, Currency

      attr_reader :internal_id
      attr_accessor :external_id
      attr_accessor :search_joins

      def initialize(attributes = {})
        @internal_id = attributes.delete(:internal_id) || attributes.delete(:@internal_id)
        @external_id = attributes.delete(:external_id) || attributes.delete(:@external_id)

        initialize_from_attributes_hash(attributes)
      end

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
netsuite-0.8.10 lib/netsuite/records/currency_rate.rb
netsuite-0.8.9 lib/netsuite/records/currency_rate.rb