Sha256: 003f92b882d18baf0d4e0482d088256bcc404574196970ac14640e1c518f0ef0

Contents?: true

Size: 1.22 KB

Versions: 8

Compression:

Stored size: 1.22 KB

Contents

require_relative '../service'
module Adyen
  class HostedOnboardingApi < Service
    attr_accessor :service, :version

    def initialize(client, version = DEFAULT_VERSION)
      super(client, version, 'LegalEntityManagement')
    end

    def list_hosted_onboarding_page_themes(headers: {})
      endpoint = '/themes'.gsub(/{.+?}/, '%s')
      endpoint = endpoint.gsub(%r{^/}, '')
      endpoint = format(endpoint)
      
      action = { method: 'get', url: endpoint }
      @client.call_adyen_api(@service, action, {}, headers, @version)
    end

    def get_onboarding_link_theme(id, headers: {})
      endpoint = '/themes/{id}'.gsub(/{.+?}/, '%s')
      endpoint = endpoint.gsub(%r{^/}, '')
      endpoint = format(endpoint, id)
      
      action = { method: 'get', url: endpoint }
      @client.call_adyen_api(@service, action, {}, headers, @version)
    end

    def get_link_to_adyenhosted_onboarding_page(request, id, headers: {})
      endpoint = '/legalEntities/{id}/onboardingLinks'.gsub(/{.+?}/, '%s')
      endpoint = endpoint.gsub(%r{^/}, '')
      endpoint = format(endpoint, id)
      
      action = { method: 'post', url: endpoint }
      @client.call_adyen_api(@service, action, request, headers, @version)
    end

  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
adyen-ruby-api-library-8.0.0 lib/adyen/services/legalEntityManagement/hosted_onboarding_api.rb
adyen-ruby-api-library-8.0.0.pre.beta.1 lib/adyen/services/legalEntityManagement/hosted_onboarding_api.rb
adyen-ruby-api-library-7.3.1 lib/adyen/services/legalEntityManagement/hosted_onboarding_api.rb
adyen-ruby-api-library-7.3.0 lib/adyen/services/legalEntityManagement/hosted_onboarding_api.rb
adyen-ruby-api-library-7.2.0 lib/adyen/services/legalEntityManagement/hosted_onboarding_api.rb
adyen-ruby-api-library-7.1.0 lib/adyen/services/legalEntityManagement/hosted_onboarding_api.rb
adyen-ruby-api-library-7.0.3 lib/adyen/services/legalEntityManagement/hosted_onboarding_api.rb
adyen-ruby-api-library-7.0.2 lib/adyen/services/legalEntityManagement/hosted_onboarding_api.rb