Class: Mollie::Profile
Constant Summary collapse
- CATEGORY_CODE_GENERAL_MERCHANDISE =
5399
- CATEGORY_CODE_ELECTRONICS_COMPUTERS_AND_SOFTWARE =
5732
- CATEGORY_CODE_TRAVEL_RENTAL_AND_TRANSPORTATION =
4121
- CATEGORY_CODE_FINANCIAL_SERVICES =
6012
- CATEGORY_CODE_FOOD_AND_DRINKS =
5499
- CATEGORY_CODE_EVENTS_FESTIVALS_AND_RECREATION =
7999
- CATEGORY_CODE_BOOKS_MAGAZINES_AND_NEWSPAPERS =
5192
- CATEGORY_CODE_PERSONAL_SERVICES =
7299
- CATEGORY_CODE_CHARITY_AND_DONATIONS =
8398
- CATEGORY_CODE_OTHER =
0
- STATUS_UNVERIFIED =
'unverified'.freeze
- STATUS_VERIFIED =
'verified'.freeze
- STATUS_BLOCKED =
'blocked'.freeze
- REVIEW_STATUS_PENDING =
'pending'.freeze
- REVIEW_STATUS_REJECTED =
'rejected'.freeze
Instance Attribute Summary collapse
-
#_links ⇒ Object
(also: #links)
Returns the value of attribute _links.
-
#business_category ⇒ Object
Returns the value of attribute business_category.
-
#category_code ⇒ Object
Returns the value of attribute category_code.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#email ⇒ Object
Returns the value of attribute email.
-
#id ⇒ Object
Returns the value of attribute id.
-
#mode ⇒ Object
Returns the value of attribute mode.
-
#name ⇒ Object
Returns the value of attribute name.
-
#phone ⇒ Object
Returns the value of attribute phone.
-
#review ⇒ Object
Returns the value of attribute review.
-
#status ⇒ Object
Returns the value of attribute status.
-
#website ⇒ Object
Returns the value of attribute website.
Attributes inherited from Base
Instance Method Summary collapse
- #blocked? ⇒ Boolean
- #chargebacks(options = {}) ⇒ Object
- #checkout_preview_url ⇒ Object
- #methods(options = {}) ⇒ Object
- #payments(options = {}) ⇒ Object
- #refunds(options = {}) ⇒ Object
- #review_pending? ⇒ Boolean
- #review_rejected? ⇒ Boolean
- #unverified? ⇒ Boolean
- #verified? ⇒ Boolean
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.
21 22 23 |
# File 'lib/mollie/profile.rb', line 21 def _links @_links end |
#business_category ⇒ Object
Returns the value of attribute business_category.
21 22 23 |
# File 'lib/mollie/profile.rb', line 21 def business_category @business_category end |
#category_code ⇒ Object
Returns the value of attribute category_code.
21 22 23 |
# File 'lib/mollie/profile.rb', line 21 def category_code @category_code end |
#created_at ⇒ Object
Returns the value of attribute created_at.
21 22 23 |
# File 'lib/mollie/profile.rb', line 21 def created_at @created_at end |
#email ⇒ Object
Returns the value of attribute email.
21 22 23 |
# File 'lib/mollie/profile.rb', line 21 def email @email end |
#id ⇒ Object
Returns the value of attribute id.
21 22 23 |
# File 'lib/mollie/profile.rb', line 21 def id @id end |
#mode ⇒ Object
Returns the value of attribute mode.
21 22 23 |
# File 'lib/mollie/profile.rb', line 21 def mode @mode end |
#name ⇒ Object
Returns the value of attribute name.
21 22 23 |
# File 'lib/mollie/profile.rb', line 21 def name @name end |
#phone ⇒ Object
Returns the value of attribute phone.
21 22 23 |
# File 'lib/mollie/profile.rb', line 21 def phone @phone end |
#review ⇒ Object
Returns the value of attribute review.
21 22 23 |
# File 'lib/mollie/profile.rb', line 21 def review @review end |
#status ⇒ Object
Returns the value of attribute status.
21 22 23 |
# File 'lib/mollie/profile.rb', line 21 def status @status end |
#website ⇒ Object
Returns the value of attribute website.
21 22 23 |
# File 'lib/mollie/profile.rb', line 21 def website @website end |
Instance Method Details
#blocked? ⇒ Boolean
45 46 47 |
# File 'lib/mollie/profile.rb', line 45 def blocked? status == STATUS_BLOCKED end |
#chargebacks(options = {}) ⇒ Object
73 74 75 |
# File 'lib/mollie/profile.rb', line 73 def chargebacks( = {}) Chargeback.all(.merge(profile_id: id)) end |
#checkout_preview_url ⇒ Object
69 70 71 |
# File 'lib/mollie/profile.rb', line 69 def checkout_preview_url Util.extract_url(links, 'checkout_preview_url') end |
#methods(options = {}) ⇒ Object
77 78 79 |
# File 'lib/mollie/profile.rb', line 77 def methods( = {}) Method.all(.merge(profile_id: id)) end |
#payments(options = {}) ⇒ Object
81 82 83 |
# File 'lib/mollie/profile.rb', line 81 def payments( = {}) Payment.all(.merge(profile_id: id)) end |
#refunds(options = {}) ⇒ Object
85 86 87 |
# File 'lib/mollie/profile.rb', line 85 def refunds( = {}) Refund.all(.merge(profile_id: id)) end |
#review_pending? ⇒ Boolean
53 54 55 |
# File 'lib/mollie/profile.rb', line 53 def review_pending? @review && @review.status == REVIEW_STATUS_PENDING end |
#review_rejected? ⇒ Boolean
57 58 59 |
# File 'lib/mollie/profile.rb', line 57 def review_rejected? @review && @review.status == REVIEW_STATUS_REJECTED end |
#unverified? ⇒ Boolean
37 38 39 |
# File 'lib/mollie/profile.rb', line 37 def unverified? status == STATUS_UNVERIFIED end |
#verified? ⇒ Boolean
41 42 43 |
# File 'lib/mollie/profile.rb', line 41 def verified? status == STATUS_VERIFIED end |