Sha256: 8542d18c3c8709d0a38629501f2e6e291203de2454d0046ab2c223535c3389e4

Contents?: true

Size: 480 Bytes

Versions: 16

Compression:

Stored size: 480 Bytes

Contents

module RockRMS
  module Response
    class TransactionDetail < Base
      MAP = {
        id: 'Id',
        fee_amount: 'FeeAmount',
        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

16 entries across 16 versions & 1 rubygems

Version Path
rock_rms-6.0.4 lib/rock_rms/response/transaction_detail.rb
rock_rms-6.0.3 lib/rock_rms/response/transaction_detail.rb
rock_rms-6.0.1 lib/rock_rms/response/transaction_detail.rb
rock_rms-6.0.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-5.18.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-5.17.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-5.16.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-5.15.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-5.14.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-5.13.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-5.12.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-5.11.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-5.10.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-5.9.2 lib/rock_rms/response/transaction_detail.rb
rock_rms-5.9.1 lib/rock_rms/response/transaction_detail.rb
rock_rms-5.9.0 lib/rock_rms/response/transaction_detail.rb