class Mollie::Customer::Mandate
Constants
- STATUS_INVALID
- STATUS_PENDING
- STATUS_VALID
Attributes
Public Instance Methods
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
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
Source
# File lib/mollie/customer/mandate.rb, line 20 def details=(details) @details = OpenStruct.new(details) if details.is_a?(Hash) end
Source
# File lib/mollie/customer/mandate.rb, line 40 def invalid? status == STATUS_INVALID end
Source
# File lib/mollie/customer/mandate.rb, line 36 def pending? status == STATUS_PENDING end
Source
# File lib/mollie/customer/mandate.rb, line 32 def valid? status == STATUS_VALID end