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
Public Instance Methods
Source
# File lib/mollie/profile.rb, line 73 def chargebacks(options = {}) Chargeback.all(options.merge(profile_id: id)) end
Source
# File lib/mollie/profile.rb, line 69 def checkout_preview_url Util.extract_url(links, 'checkout_preview_url') end
Source
# File lib/mollie/profile.rb, line 61 def created_at=(created_at) @created_at = begin Time.parse(created_at.to_s) rescue StandardError nil end end
Source
# File lib/mollie/profile.rb, line 77 def methods(options = {}) Method.all(options.merge(profile_id: id)) end
Source
# File lib/mollie/profile.rb, line 81 def payments(options = {}) Payment.all(options.merge(profile_id: id)) end
Source
# File lib/mollie/profile.rb, line 85 def refunds(options = {}) Refund.all(options.merge(profile_id: id)) end
Source
# File lib/mollie/profile.rb, line 49 def review=(review) @review = OpenStruct.new(review) if review.is_a?(Hash) end
Source
# File lib/mollie/profile.rb, line 53 def review_pending? @review && @review.status == REVIEW_STATUS_PENDING end
Source
# File lib/mollie/profile.rb, line 57 def review_rejected? @review && @review.status == REVIEW_STATUS_REJECTED end
Source
# File lib/mollie/profile.rb, line 37 def unverified? status == STATUS_UNVERIFIED end
Source
# File lib/mollie/profile.rb, line 41 def verified? status == STATUS_VERIFIED end