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-9.10.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-9.9.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-9.8.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-9.7.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-9.6.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-9.5.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-9.4.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-9.3.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-9.2.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-9.1.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-9.0.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-8.23.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-8.22.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-8.21.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-8.20.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-8.19.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-8.18.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-8.17.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-8.16.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-8.15.2 lib/rock_rms/response/transaction_detail.rb