Sha256: 0a14f6fb9beb0761ce2cac8d3986995b378aaf1d2b04eabbd66edaf5d8c8e779

Contents?: true

Size: 928 Bytes

Versions: 6

Compression:

Stored size: 928 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

      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

6 entries across 6 versions & 1 rubygems

Version Path
netsuite-0.9.3 lib/netsuite/records/currency_rate.rb
netsuite-0.9.2 lib/netsuite/records/currency_rate.rb
netsuite-0.9.1 lib/netsuite/records/currency_rate.rb
netsuite-0.9.0 lib/netsuite/records/currency_rate.rb
netsuite-0.8.12 lib/netsuite/records/currency_rate.rb
netsuite-0.8.11 lib/netsuite/records/currency_rate.rb