Class: Mollie::Customer

Inherits:
Base
  • Object
show all
Defined in:
lib/mollie/customer.rb,
lib/mollie/customer/mandate.rb,
lib/mollie/customer/payment.rb,
lib/mollie/customer/subscription.rb

Defined Under Namespace

Classes: Mandate, Payment, Subscription

Instance Attribute Summary collapse

Attributes inherited from Base

#attributes

Instance Method Summary collapse

Methods inherited from Base

all, #assign_attributes, cancel, create, #delete, delete, get, id_param, #initialize, parent_id, request, resource_name, update, #update

Constructor Details

This class inherits a constructor from Mollie::Base

Instance Attribute Details

#created_atObject

Returns the value of attribute created_at.



3
4
5
# File 'lib/mollie/customer.rb', line 3

def created_at
  @created_at
end

#emailObject

Returns the value of attribute email.



3
4
5
# File 'lib/mollie/customer.rb', line 3

def email
  @email
end

#idObject

Returns the value of attribute id.



3
4
5
# File 'lib/mollie/customer.rb', line 3

def id
  @id
end

#localeObject

Returns the value of attribute locale.



3
4
5
# File 'lib/mollie/customer.rb', line 3

def locale
  @locale
end

#metadataObject

Returns the value of attribute metadata.



3
4
5
# File 'lib/mollie/customer.rb', line 3

def 
  @metadata
end

#modeObject

Returns the value of attribute mode.



3
4
5
# File 'lib/mollie/customer.rb', line 3

def mode
  @mode
end

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/mollie/customer.rb', line 3

def name
  @name
end

Instance Method Details

#mandates(options = {}) ⇒ Object



19
20
21
# File 'lib/mollie/customer.rb', line 19

def mandates(options = {})
  Mandate.all(options.merge(customer_id: id))
end

#payments(options = {}) ⇒ Object



23
24
25
# File 'lib/mollie/customer.rb', line 23

def payments(options = {})
  Payment.all(options.merge(customer_id: id))
end

#subscriptions(options = {}) ⇒ Object



27
28
29
# File 'lib/mollie/customer.rb', line 27

def subscriptions(options = {})
  Subscription.all(options.merge(customer_id: id))
end