class Paymill::Transaction

Attributes

amount[R]
client[R]
currency[R]
description[RW]
fees[R]
invoices[R]
is_fraud[R]
items[R]
livemode[R]
mandate_reference[R]
origin_amount[R]
payment[R]
preauthorization[R]
refunds[R]
response_code[R]
short_id[R]
status[R]

Protected Class Methods

allowed_arguments() click to toggle source
# File lib/paymill/models/transaction.rb, line 19
def self.allowed_arguments
  [:amount, :client, :currency, :description, :preauthorization, :fee_amount, :fee_payment, :fee_currency, :mandate_reference]
end
create_with?( incoming_arguments ) click to toggle source
Calls superclass method Paymill::Base::create_with?
# File lib/paymill/models/transaction.rb, line 10
def self.create_with?( incoming_arguments )
  raise ArgumentError unless incoming_arguments.any? { |e| mutual_excluded_arguments.include? e } && ( incoming_arguments & mutual_excluded_arguments ).size == 1
  super( incoming_arguments - mutual_excluded_arguments )
end
mandatory_arguments() click to toggle source
# File lib/paymill/models/transaction.rb, line 15
def self.mandatory_arguments
  [:amount, :currency]
end
mutual_excluded_arguments() click to toggle source
# File lib/paymill/models/transaction.rb, line 23
def self.mutual_excluded_arguments
  [:token, :payment, :preauthorization]
end