Class: Mollie::Customer::Mandate
- Defined in:
- lib/mollie/customer/mandate.rb
Constant Summary collapse
- STATUS_VALID =
'valid'.freeze
- STATUS_INVALID =
'invalid'.freeze
- STATUS_PENDING =
'pending'.freeze
Instance Attribute Summary collapse
-
#_links ⇒ Object
(also: #links)
Returns the value of attribute _links.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#details ⇒ Object
Returns the value of attribute details.
-
#id ⇒ Object
Returns the value of attribute id.
-
#mandate_reference ⇒ Object
Returns the value of attribute mandate_reference.
-
#method ⇒ Object
Returns the value of attribute method.
-
#mode ⇒ Object
Returns the value of attribute mode.
-
#signature_date ⇒ Object
Returns the value of attribute signature_date.
-
#status ⇒ Object
Returns the value of attribute status.
Attributes inherited from Base
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
#_links ⇒ Object Also known as: links
Returns the value of attribute _links.
8 9 10 |
# File 'lib/mollie/customer/mandate.rb', line 8 def _links @_links end |
#created_at ⇒ Object
Returns the value of attribute created_at.
8 9 10 |
# File 'lib/mollie/customer/mandate.rb', line 8 def created_at @created_at end |
#details ⇒ Object
Returns the value of attribute details.
8 9 10 |
# File 'lib/mollie/customer/mandate.rb', line 8 def details @details end |
#id ⇒ Object
Returns the value of attribute id.
8 9 10 |
# File 'lib/mollie/customer/mandate.rb', line 8 def id @id end |
#mandate_reference ⇒ Object
Returns the value of attribute mandate_reference.
8 9 10 |
# File 'lib/mollie/customer/mandate.rb', line 8 def mandate_reference @mandate_reference end |
#method ⇒ Object
Returns the value of attribute method.
8 9 10 |
# File 'lib/mollie/customer/mandate.rb', line 8 def method @method end |
#mode ⇒ Object
Returns the value of attribute mode.
8 9 10 |
# File 'lib/mollie/customer/mandate.rb', line 8 def mode @mode end |
#signature_date ⇒ Object
Returns the value of attribute signature_date.
8 9 10 |
# File 'lib/mollie/customer/mandate.rb', line 8 def signature_date @signature_date end |
#status ⇒ Object
Returns the value of attribute status.
8 9 10 |
# File 'lib/mollie/customer/mandate.rb', line 8 def status @status end |
Instance Method Details
#customer(options = {}) ⇒ Object
44 45 46 47 |
# File 'lib/mollie/customer/mandate.rb', line 44 def customer( = {}) customer_id = Util.extract_id(links, 'customer') Customer.get(customer_id, ) end |
#invalid? ⇒ Boolean
40 41 42 |
# File 'lib/mollie/customer/mandate.rb', line 40 def invalid? status == STATUS_INVALID end |
#pending? ⇒ Boolean
36 37 38 |
# File 'lib/mollie/customer/mandate.rb', line 36 def pending? status == STATUS_PENDING end |
#valid? ⇒ Boolean
32 33 34 |
# File 'lib/mollie/customer/mandate.rb', line 32 def valid? status == STATUS_VALID end |