Sha256: c2e6dc921b38ac26bdd75baf69c1da99e16fd9294014ce406473094774b70bbb

Contents?: true

Size: 1001 Bytes

Versions: 8

Compression:

Stored size: 1001 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 :base_currency, :effective_date, :exchange_rate, :transaction_currency

      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

8 entries across 8 versions & 1 rubygems

Version Path
netsuite-0.8.8 lib/netsuite/records/currency_rate.rb
netsuite-0.8.7 lib/netsuite/records/currency_rate.rb
netsuite-0.8.6 lib/netsuite/records/currency_rate.rb
netsuite-0.8.5 lib/netsuite/records/currency_rate.rb
netsuite-0.8.4 lib/netsuite/records/currency_rate.rb
netsuite-0.8.3 lib/netsuite/records/currency_rate.rb
netsuite-0.8.2 lib/netsuite/records/currency_rate.rb
netsuite-0.8.1 lib/netsuite/records/currency_rate.rb