Class: GenesisRuby::Api::Requests::Base::NonFinancial::Kyc::Base

Inherits:
Versioned show all
Defined in:
lib/genesis_ruby/api/requests/base/non_financial/kyc/base.rb

Overview

Base Request class for KYC Non-Financial API services

Constant Summary

Constants inherited from GenesisRuby::Api::Request

GenesisRuby::Api::Request::AUTH_TYPE_BASIC, GenesisRuby::Api::Request::AUTH_TYPE_TOKEN, GenesisRuby::Api::Request::METHOD_DELETE, GenesisRuby::Api::Request::METHOD_GET, GenesisRuby::Api::Request::METHOD_PATCH, GenesisRuby::Api::Request::METHOD_POST, GenesisRuby::Api::Request::METHOD_PUT, GenesisRuby::Api::Request::PORT_HTTPS, GenesisRuby::Api::Request::PROTOCOL_HTTPS

Instance Attribute Summary

Attributes inherited from Versioned

#allowed_versions, #version

Attributes inherited from GenesisRuby::Api::Request

#api_config

Instance Method Summary collapse

Methods inherited from GenesisRuby::Api::Request

#build_document

Constructor Details

#initialize(configuration, builder_interface = Builder::JSON) ⇒ Base

Constructor for the KYC Base Request



13
14
15
# File 'lib/genesis_ruby/api/requests/base/non_financial/kyc/base.rb', line 13

def initialize(configuration, builder_interface = Builder::JSON)
  super(configuration, builder_interface)
end

Instance Method Details

#init_configurationObject

Initializes the request path and version



18
19
20
21
22
# File 'lib/genesis_ruby/api/requests/base/non_financial/kyc/base.rb', line 18

def init_configuration
  super

  init_kyc_service_configuration request_path: "api/#{version}/#{request_path}"
end

#request_structureObject

Empty request structure



25
26
27
# File 'lib/genesis_ruby/api/requests/base/non_financial/kyc/base.rb', line 25

def request_structure
  {}
end