Sha256: 7cd433a38a340abbdf8b88ff91a4442b6ae1463e0c7f53878355ecba5676334b

Contents?: true

Size: 530 Bytes

Versions: 9

Compression:

Stored size: 530 Bytes

Contents

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

9 entries across 9 versions & 1 rubygems

Version Path
rock_rms-7.0.2 lib/rock_rms/response/transaction_detail.rb
rock_rms-7.0.1 lib/rock_rms/response/transaction_detail.rb
rock_rms-7.0.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-6.2.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-6.1.0 lib/rock_rms/response/transaction_detail.rb
rock_rms-6.0.8 lib/rock_rms/response/transaction_detail.rb
rock_rms-6.0.7 lib/rock_rms/response/transaction_detail.rb
rock_rms-6.0.6 lib/rock_rms/response/transaction_detail.rb
rock_rms-6.0.5 lib/rock_rms/response/transaction_detail.rb