module Ravelin
  class Transaction < RavelinObject
    attr_accessor :transaction_id,
      :email,
      :currency,
      :debit,
      :credit,
      :gateway,
      :custom,
      :success,
      :auth_code,
      :decline_code,
      :gateway_reference,
      :avs_result_code,
      :cvv_result_code

    attr_required :transaction_id,
      :currency,
      :debit,
      :credit,
      :gateway,
      :gateway_reference,
      :success
  end
end

module Ravelin
  class Transaction < RavelinObject
    attr_accessor :transaction_id,
      :email,
      :currency,
      :debit,
      :credit,
      :gateway,
      :custom,
      :success,
      :auth_code,
      :decline_code,
      :gateway_reference,
      :avs_result_code,
      :cvv_result_code,
      :type,
      :time

    attr_required :transaction_id,
      :currency,
      :debit,
      :credit,
      :gateway,
      :gateway_reference,
      :success
  end
end

Add type and time to Transaction
Add type and time to Transaction

As can be seen on Raveline API here https://developer.ravelin.com/\#post-/v2/transaction
