Class: Mollie::Partner
Instance Attribute Summary collapse
-
#_links ⇒ Object
(also: #links)
Returns the value of attribute _links.
-
#is_commission_partner ⇒ Object
Returns the value of attribute is_commission_partner.
-
#partner_contract_signed_at ⇒ Object
Returns the value of attribute partner_contract_signed_at.
-
#partner_contract_update_available ⇒ Object
Returns the value of attribute partner_contract_update_available.
-
#partner_type ⇒ Object
Returns the value of attribute partner_type.
-
#user_agent_tokens ⇒ Object
Returns the value of attribute user_agent_tokens.
Attributes inherited from Base
Class Method Summary collapse
Instance Method Summary collapse
- #commission_partner? ⇒ Boolean
- #contract_signed_at ⇒ Object
- #contract_update_available? ⇒ Boolean
- #signuplink ⇒ Object
- #type ⇒ Object
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.
3 4 5 |
# File 'lib/mollie/partner.rb', line 3 def _links @_links end |
#is_commission_partner ⇒ Object
Returns the value of attribute is_commission_partner.
3 4 5 |
# File 'lib/mollie/partner.rb', line 3 def is_commission_partner @is_commission_partner end |
#partner_contract_signed_at ⇒ Object
Returns the value of attribute partner_contract_signed_at.
3 4 5 |
# File 'lib/mollie/partner.rb', line 3 def partner_contract_signed_at @partner_contract_signed_at end |
#partner_contract_update_available ⇒ Object
Returns the value of attribute partner_contract_update_available.
3 4 5 |
# File 'lib/mollie/partner.rb', line 3 def partner_contract_update_available @partner_contract_update_available end |
#partner_type ⇒ Object
Returns the value of attribute partner_type.
3 4 5 |
# File 'lib/mollie/partner.rb', line 3 def partner_type @partner_type end |
#user_agent_tokens ⇒ Object
Returns the value of attribute user_agent_tokens.
9 10 11 |
# File 'lib/mollie/partner.rb', line 9 def user_agent_tokens @user_agent_tokens end |
Class Method Details
.current(options = {}) ⇒ Object
13 14 15 16 |
# File 'lib/mollie/partner.rb', line 13 def self.current( = {}) response = Client.instance.perform_http_call('GET', 'organizations/me/partner', nil, {}, ) new(response) end |
Instance Method Details
#commission_partner? ⇒ Boolean
22 23 24 |
# File 'lib/mollie/partner.rb', line 22 def commission_partner? is_commission_partner end |
#contract_signed_at ⇒ Object
26 27 28 29 30 31 32 |
# File 'lib/mollie/partner.rb', line 26 def contract_signed_at @contract_signed_at = begin Time.parse(partner_contract_signed_at) rescue StandardError nil end end |
#contract_update_available? ⇒ Boolean
34 35 36 |
# File 'lib/mollie/partner.rb', line 34 def contract_update_available? partner_contract_update_available end |
#signuplink ⇒ Object
48 49 50 |
# File 'lib/mollie/partner.rb', line 48 def signuplink Util.extract_url(links, 'signuplink') end |
#type ⇒ Object
18 19 20 |
# File 'lib/mollie/partner.rb', line 18 def type partner_type end |