Sha256: 3b9f3a470ef8e58aeacf136037e608e125943330e09e3faa09b4e1ffb32caf6f

Contents?: true

Size: 707 Bytes

Versions: 37

Compression:

Stored size: 707 Bytes

Contents

module RockRMS
  class Client
    module TransactionDetail
      def list_transaction_details(options = {})
        res = get(transaction_detail_path, options)
        Response::TransactionDetail.format(res)
      end

      def find_transaction_detail(id)
        res = get(transaction_detail_path(id))
        Response::TransactionDetail.format(res)
      end

      def update_transaction_detail(id, fund_id:)
        options = {
          'AccountId' => fund_id
        }
        patch(transaction_detail_path(id), options)
      end

      private

      def transaction_detail_path(id = nil)
        id ? "FinancialTransactionDetails/#{id}" : 'FinancialTransactionDetails'
      end
    end
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
rock_rms-4.15.0 lib/rock_rms/resources/transaction_detail.rb
rock_rms-4.14.0 lib/rock_rms/resources/transaction_detail.rb
rock_rms-4.13.0 lib/rock_rms/resources/transaction_detail.rb
rock_rms-4.12.3 lib/rock_rms/resources/transaction_detail.rb
rock_rms-4.12.2 lib/rock_rms/resources/transaction_detail.rb
rock_rms-4.12.1 lib/rock_rms/resources/transaction_detail.rb
rock_rms-4.11.0 lib/rock_rms/resources/transaction_detail.rb
rock_rms-4.10.0 lib/rock_rms/resources/transaction_detail.rb
rock_rms-4.9.0 lib/rock_rms/resources/transaction_detail.rb
rock_rms-4.8.0 lib/rock_rms/resources/transaction_detail.rb
rock_rms-4.7.0 lib/rock_rms/resources/transaction_detail.rb
rock_rms-4.6.0 lib/rock_rms/resources/transaction_detail.rb
rock_rms-4.5.0 lib/rock_rms/resources/transaction_detail.rb
rock_rms-4.4.0 lib/rock_rms/resources/transaction_detail.rb
rock_rms-4.3.0 lib/rock_rms/resources/transaction_detail.rb
rock_rms-4.2.3 lib/rock_rms/resources/transaction_detail.rb
rock_rms-4.2.2 lib/rock_rms/resources/transaction_detail.rb
rock_rms-4.2.1 lib/rock_rms/resources/transaction_detail.rb
rock_rms-4.2.0 lib/rock_rms/resources/transaction_detail.rb
rock_rms-4.1.1 lib/rock_rms/resources/transaction_detail.rb