class Mollie::Customer

Attributes

created_at[RW]
email[RW]
id[RW]
locale[RW]
metadata[RW]
mode[RW]
name[RW]

Public Instance Methods

created_at=(created_at) click to toggle source
# File lib/mollie/customer.rb, line 11
def created_at=(created_at)
  @created_at = Time.parse(created_at.to_s)
end
mandates(options = {}) click to toggle source
# File lib/mollie/customer.rb, line 19
def mandates(options = {})
  Mandate.all(options.merge(customer_id: id))
end
metadata=(metadata) click to toggle source
# File lib/mollie/customer.rb, line 15
def metadata=(metadata)
  @metadata = OpenStruct.new(metadata) if metadata.is_a?(Hash)
end
payments(options = {}) click to toggle source
# File lib/mollie/customer.rb, line 23
def payments(options = {})
  Payment.all(options.merge(customer_id: id))
end
subscriptions(options = {}) click to toggle source
# File lib/mollie/customer.rb, line 27
def subscriptions(options = {})
  Subscription.all(options.merge(customer_id: id))
end