class Mollie::Profile
Constants
- CATEGORY_CODE_BOOKS_MAGAZINES_AND_NEWSPAPERS
- CATEGORY_CODE_CHARITY_AND_DONATIONS
- CATEGORY_CODE_ELECTRONICS_COMPUTERS_AND_SOFTWARE
- CATEGORY_CODE_EVENTS_FESTIVALS_AND_RECREATION
- CATEGORY_CODE_FINANCIAL_SERVICES
- CATEGORY_CODE_FOOD_AND_DRINKS
- CATEGORY_CODE_GENERAL_MERCHANDISE
- CATEGORY_CODE_OTHER
- CATEGORY_CODE_PERSONAL_SERVICES
- CATEGORY_CODE_TRAVEL_RENTAL_AND_TRANSPORTATION
- REVIEW_STATUS_PENDING
- REVIEW_STATUS_REJECTED
- STATUS_BLOCKED
- STATUS_UNVERIFIED
- STATUS_VERIFIED
Attributes
_links[RW]
category_code[RW]
created_at[RW]
email[RW]
id[RW]
links[RW]
mode[RW]
name[RW]
phone[RW]
review[RW]
status[RW]
website[RW]
Public Instance Methods
blocked?()
click to toggle source
# File lib/mollie/profile.rb, line 43 def blocked? status == STATUS_BLOCKED end
chargebacks(options = {})
click to toggle source
# File lib/mollie/profile.rb, line 71 def chargebacks(options = {}) Chargeback.all(options.merge(profile_id: id)) end
checkout_preview_url()
click to toggle source
# File lib/mollie/profile.rb, line 67 def checkout_preview_url Util.extract_url(links, 'checkout_preview_url') end
created_at=(created_at)
click to toggle source
# File lib/mollie/profile.rb, line 59 def created_at=(created_at) @created_at = begin Time.parse(created_at.to_s) rescue StandardError nil end end
methods(options = {})
click to toggle source
# File lib/mollie/profile.rb, line 75 def methods(options = {}) Method.all(options.merge(profile_id: id)) end
payments(options = {})
click to toggle source
# File lib/mollie/profile.rb, line 79 def payments(options = {}) Payment.all(options.merge(profile_id: id)) end
refunds(options = {})
click to toggle source
# File lib/mollie/profile.rb, line 83 def refunds(options = {}) Refund.all(options.merge(profile_id: id)) end
review=(review)
click to toggle source
# File lib/mollie/profile.rb, line 47 def review=(review) @review = OpenStruct.new(review) if review.is_a?(Hash) end
review_pending?()
click to toggle source
# File lib/mollie/profile.rb, line 51 def review_pending? @review && @review.status == REVIEW_STATUS_PENDING end
review_rejected?()
click to toggle source
# File lib/mollie/profile.rb, line 55 def review_rejected? @review && @review.status == REVIEW_STATUS_REJECTED end
unverified?()
click to toggle source
# File lib/mollie/profile.rb, line 35 def unverified? status == STATUS_UNVERIFIED end
verified?()
click to toggle source
# File lib/mollie/profile.rb, line 39 def verified? status == STATUS_VERIFIED end