class Upay::People::Payer
Public Instance Methods
billingAddress()
click to toggle source
# File lib/upay/people/payer.rb, line 11 def billingAddress; @billingAddress end
billingAddress=(billingAddress = nil)
click to toggle source
# File lib/upay/people/payer.rb, line 12 def billingAddress=(billingAddress = nil) @billingAddress = billingAddress; end
id()
click to toggle source
# File lib/upay/people/payer.rb, line 5 def id; @id end
id=(id = nil)
click to toggle source
# File lib/upay/people/payer.rb, line 6 def id=(id = nil) @id = id; end
merchantPayerId()
click to toggle source
# File lib/upay/people/payer.rb, line 8 def merchantPayerId; @merchantPayerId || @id end
merchantPayerId=(merchantPayerId = nil)
click to toggle source
# File lib/upay/people/payer.rb, line 9 def merchantPayerId=(merchantPayerId = nil) @merchantPayerId = merchantPayerId; end
to_hash()
click to toggle source
# File lib/upay/people/payer.rb, line 19 def to_hash person_hash = self.instance_variables.each_with_object({}) { |var,hash| hash[var.to_s.delete("@").to_sym] = self.instance_variable_get(var)} person_hash[:billingAddress] = self.billingAddress.to_hash if self.billingAddress person_hash end
valid?()
click to toggle source
# File lib/upay/people/payer.rb, line 14 def valid? validator = PayerValidator.new validator.valid?(self) end