Sha256: 607afca2c4434c32684bb3a4794be21023ce8ca5aec6c1abbdc8e3712879148e

Contents?: true

Size: 512 Bytes

Versions: 45

Compression:

Stored size: 512 Bytes

Contents

module RockRMS
  module Response
    class TransactionDetail < Base
      MAP = {
        fee_amount: 'FeeAmount',
        fee_coverage_amount: 'FeeCoverageAmount',
        fund: 'Account',
        fund_id: 'AccountId',
        amount: 'Amount',
        entity_type_id: 'EntityTypeId',
        entity_id: 'EntityId'
      }.freeze

      def format_single(response)
        response        = to_h(MAP, response)
        response[:fund] = Fund.format(response[:fund])
        response
      end
    end
  end
end

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
rock_rms-8.15.1 lib/rock_rms/response/transaction_detail.rb
rock_rms-8.15.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-8.14.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-8.13.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-8.12.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-8.11.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-8.10.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-8.9.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-8.8.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-8.7.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-8.6.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-8.5.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-8.4.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-8.3.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-8.2.1 lib/rock_rms/response/transaction_detail.rb
rock_rms-8.2.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-8.1.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-8.0.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-7.4.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-7.3.0 lib/rock_rms/response/transaction_detail.rb