Sha256: 88531a24427300991a449610ab0ec6175de47ad811871873b386ae0bfc5dd7a1

Contents?: true

Size: 492 Bytes

Versions: 44

Compression:

Stored size: 492 Bytes

Contents

module RockRMS
  class Client
    module TransactionImage
      def create_transaction_image(
        binary_file_id:,
        transaction_id:
      )
        options = {
          'BinaryFileId' => binary_file_id,
          'Transactionid' => transaction_id
        }

        post(transaction_image_path, options)
      end

      private

      def transaction_image_path(id = nil)
        id ? "FinancialTransactionImages/#{id}" : 'FinancialTransactionImages'
      end
    end
  end
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
rock_rms-8.0.0 lib/rock_rms/resources/transaction_image.rb
rock_rms-7.4.0 lib/rock_rms/resources/transaction_image.rb
rock_rms-7.3.0 lib/rock_rms/resources/transaction_image.rb
rock_rms-7.2.0 lib/rock_rms/resources/transaction_image.rb