Class: Mollie::Onboarding

Inherits:
Base
  • Object
show all
Defined in:
lib/mollie/onboarding.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#attributes

Class Method Summary collapse

Instance Method Summary collapse

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

Returns the value of attribute _links.



3
4
5
# File 'lib/mollie/onboarding.rb', line 3

def _links
  @_links
end

#can_receive_paymentsObject

Returns the value of attribute can_receive_payments.



3
4
5
# File 'lib/mollie/onboarding.rb', line 3

def can_receive_payments
  @can_receive_payments
end

#can_receive_settlementsObject

Returns the value of attribute can_receive_settlements.



3
4
5
# File 'lib/mollie/onboarding.rb', line 3

def can_receive_settlements
  @can_receive_settlements
end

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/mollie/onboarding.rb', line 3

def name
  @name
end

#signed_up_atObject

Returns the value of attribute signed_up_at.



3
4
5
# File 'lib/mollie/onboarding.rb', line 3

def signed_up_at
  @signed_up_at
end

#statusObject

Returns the value of attribute status.



3
4
5
# File 'lib/mollie/onboarding.rb', line 3

def status
  @status
end

Class Method Details

.me(options = {}) ⇒ Object



12
13
14
15
# File 'lib/mollie/onboarding.rb', line 12

def self.me(options = {})
  response = Client.instance.perform_http_call('GET', 'onboarding', 'me', {}, options)
  new(response)
end

.submit(data = {}, options = {}) ⇒ Object



17
18
19
20
# File 'lib/mollie/onboarding.rb', line 17

def self.submit(data = {}, options = {})
  Client.instance.perform_http_call('POST', 'onboarding', 'me', data, options)
  nil
end

Instance Method Details

#dashboardObject



22
23
24
# File 'lib/mollie/onboarding.rb', line 22

def dashboard
  Util.extract_url(links, 'dashboard')
end

#organization(options = {}) ⇒ Object



26
27
28
29
30
# File 'lib/mollie/onboarding.rb', line 26

def organization(options = {})
  resource_url = Util.extract_url(links, 'organization')
  response = Client.instance.perform_http_call('GET', resource_url, nil, {}, options)
  Organization.new(response)
end