Class: Adyen::HostedOnboardingApi
- Defined in:
- lib/adyen/services/legalEntityManagement/hosted_onboarding_api.rb
Instance Attribute Summary collapse
-
#service ⇒ Object
Returns the value of attribute service.
-
#version ⇒ Object
Returns the value of attribute version.
Attributes inherited from Service
Instance Method Summary collapse
- #get_link_to_adyenhosted_onboarding_page(request, id, headers: {}) ⇒ Object
- #get_onboarding_link_theme(id, headers: {}) ⇒ Object
-
#initialize(client, version = DEFAULT_VERSION) ⇒ HostedOnboardingApi
constructor
A new instance of HostedOnboardingApi.
- #list_hosted_onboarding_page_themes(headers: {}) ⇒ Object
Methods inherited from Service
Constructor Details
#initialize(client, version = DEFAULT_VERSION) ⇒ HostedOnboardingApi
Returns a new instance of HostedOnboardingApi.
8 9 10 11 12 |
# File 'lib/adyen/services/legalEntityManagement/hosted_onboarding_api.rb', line 8 def initialize(client, version = DEFAULT_VERSION) @service = "LegalEntityManagement" @client = client @version = version end |
Instance Attribute Details
#service ⇒ Object
Returns the value of attribute service.
6 7 8 |
# File 'lib/adyen/services/legalEntityManagement/hosted_onboarding_api.rb', line 6 def service @service end |
#version ⇒ Object
Returns the value of attribute version.
6 7 8 |
# File 'lib/adyen/services/legalEntityManagement/hosted_onboarding_api.rb', line 6 def version @version end |
Instance Method Details
#get_link_to_adyenhosted_onboarding_page(request, id, headers: {}) ⇒ Object
38 39 40 41 42 43 44 45 46 47 48 |
# File 'lib/adyen/services/legalEntityManagement/hosted_onboarding_api.rb', line 38 def get_link_to_adyenhosted_onboarding_page(request, id, headers: {} ) """ Get a link to an Adyen-hosted onboarding page """ endpoint = "/legalEntities/{id}/onboardingLinks".gsub(/{.+?}/, '%s') endpoint = endpoint.gsub(/^\//, "") endpoint = endpoint % [id] action = { method: "post", url: endpoint} @client.call_adyen_api(@service, action, request, headers, @version) end |
#get_onboarding_link_theme(id, headers: {}) ⇒ Object
26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/adyen/services/legalEntityManagement/hosted_onboarding_api.rb', line 26 def get_onboarding_link_theme(id, headers: {} ) """ Get an onboarding link theme """ endpoint = "/themes/{id}".gsub(/{.+?}/, '%s') endpoint = endpoint.gsub(/^\//, "") endpoint = endpoint % [id] action = { method: "get", url: endpoint} @client.call_adyen_api(@service, action, {}, headers, @version) end |
#list_hosted_onboarding_page_themes(headers: {}) ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/adyen/services/legalEntityManagement/hosted_onboarding_api.rb', line 14 def list_hosted_onboarding_page_themes(headers: {} ) """ Get a list of hosted onboarding page themes """ endpoint = "/themes".gsub(/{.+?}/, '%s') endpoint = endpoint.gsub(/^\//, "") endpoint = endpoint % [] action = { method: "get", url: endpoint} @client.call_adyen_api(@service, action, {}, headers, @version) end |