class Mollie::Customer::Mandate
Constants
- STATUS_INVALID
- STATUS_PENDING
- STATUS_VALID
Attributes
_links[RW]
created_at[RW]
details[RW]
id[RW]
links[RW]
mandate_reference[RW]
method[RW]
mode[RW]
signature_date[RW]
status[RW]
Public Instance Methods
created_at=(created_at)
click to toggle source
# File lib/mollie/customer/mandate.rb, line 24 def created_at=(created_at) @created_at = begin Time.parse(created_at.to_s) rescue StandardError nil end end
customer(options = {})
click to toggle source
# File lib/mollie/customer/mandate.rb, line 44 def customer(options = {}) customer_id = Util.extract_id(links, 'customer') Customer.get(customer_id, options) end
details=(details)
click to toggle source
# File lib/mollie/customer/mandate.rb, line 20 def details=(details) @details = OpenStruct.new(details) if details.is_a?(Hash) end
invalid?()
click to toggle source
# File lib/mollie/customer/mandate.rb, line 40 def invalid? status == STATUS_INVALID end
pending?()
click to toggle source
# File lib/mollie/customer/mandate.rb, line 36 def pending? status == STATUS_PENDING end
valid?()
click to toggle source
# File lib/mollie/customer/mandate.rb, line 32 def valid? status == STATUS_VALID end