Sha256: b1465a22ab568957cb7f2a0db4c3ffda8aa046e943377df5819941c53973b9bb

Contents?: true

Size: 1.78 KB

Versions: 22

Compression:

Stored size: 1.78 KB

Contents

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

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

    def get_terminal_logo(company_id, headers: {}, query_params: {})
      endpoint = '/companies/{companyId}/terminalLogos'.gsub(/{.+?}/, '%s')
      endpoint = endpoint.gsub(%r{^/}, '')
      endpoint = format(endpoint, company_id)
      endpoint += create_query_string(query_params)
      action = { method: 'get', url: endpoint }
      @client.call_adyen_api(@service, action, {}, headers, @version)
    end

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

    def update_terminal_logo(request, company_id, headers: {}, query_params: {})
      endpoint = '/companies/{companyId}/terminalLogos'.gsub(/{.+?}/, '%s')
      endpoint = endpoint.gsub(%r{^/}, '')
      endpoint = format(endpoint, company_id)
      endpoint += create_query_string(query_params)
      action = { method: 'patch', url: endpoint }
      @client.call_adyen_api(@service, action, request, headers, @version)
    end

    def update_terminal_settings(request, company_id, headers: {})
      endpoint = '/companies/{companyId}/terminalSettings'.gsub(/{.+?}/, '%s')
      endpoint = endpoint.gsub(%r{^/}, '')
      endpoint = format(endpoint, company_id)
      
      action = { method: 'patch', url: endpoint }
      @client.call_adyen_api(@service, action, request, headers, @version)
    end

  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
adyen-ruby-api-library-10.0.0 lib/adyen/services/management/terminal_settings_company_level_api.rb
adyen-ruby-api-library-9.9.0 lib/adyen/services/management/terminal_settings_company_level_api.rb
adyen-ruby-api-library-9.8.0 lib/adyen/services/management/terminal_settings_company_level_api.rb
adyen-ruby-api-library-9.7.1 lib/adyen/services/management/terminal_settings_company_level_api.rb
adyen-ruby-api-library-9.7.0 lib/adyen/services/management/terminal_settings_company_level_api.rb
adyen-ruby-api-library-9.6.0 lib/adyen/services/management/terminal_settings_company_level_api.rb
adyen-ruby-api-library-9.5.2 lib/adyen/services/management/terminal_settings_company_level_api.rb
adyen-ruby-api-library-9.5.1 lib/adyen/services/management/terminal_settings_company_level_api.rb
adyen-ruby-api-library-9.5.0 lib/adyen/services/management/terminal_settings_company_level_api.rb
adyen-ruby-api-library-9.3.0 lib/adyen/services/management/terminal_settings_company_level_api.rb
adyen-ruby-api-library-9.2.0 lib/adyen/services/management/terminal_settings_company_level_api.rb
adyen-ruby-api-library-9.1.0 lib/adyen/services/management/terminal_settings_company_level_api.rb
adyen-ruby-api-library-9.0.0 lib/adyen/services/management/terminal_settings_company_level_api.rb
adyen-ruby-api-library-8.0.1 lib/adyen/services/management/terminal_settings_company_level_api.rb
adyen-ruby-api-library-8.0.0 lib/adyen/services/management/terminal_settings_company_level_api.rb
adyen-ruby-api-library-8.0.0.pre.beta.1 lib/adyen/services/management/terminal_settings_company_level_api.rb
adyen-ruby-api-library-7.3.1 lib/adyen/services/management/terminal_settings_company_level_api.rb
adyen-ruby-api-library-7.3.0 lib/adyen/services/management/terminal_settings_company_level_api.rb
adyen-ruby-api-library-7.2.0 lib/adyen/services/management/terminal_settings_company_level_api.rb
adyen-ruby-api-library-7.1.0 lib/adyen/services/management/terminal_settings_company_level_api.rb