class Paymill::Preauthorization

Attributes

amount[R]
client[R]
currency[R]
description[R]
livemode[R]
payment[R]
status[R]
transaction[R]

Protected Class Methods

allowed_arguments() click to toggle source
# File lib/paymill/models/preauthorization.rb, line 17
def self.allowed_arguments
  [:amount, :currency, :description]
end
create_with?( incoming_arguments ) click to toggle source
Calls superclass method Paymill::Base::create_with?
# File lib/paymill/models/preauthorization.rb, line 8
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/preauthorization.rb, line 13
def self.mandatory_arguments
  [:amount, :currency]
end
mutual_excluded_arguments() click to toggle source
# File lib/paymill/models/preauthorization.rb, line 21
def self.mutual_excluded_arguments
  [:token, :payment]
end