Class: GenesisRuby::Api::Requests::NonFinancial::Kyc::Call::Create

Inherits:
Base::NonFinancial::Kyc::Base show all
Defined in:
lib/genesis_ruby/api/requests/non_financial/kyc/call/create.rb

Overview

Create Call Request class for KYC Non-Financial API services This method is used to make a call or send an SMS to a given phone number.

Constant Summary collapse

SERVICE_TYPE_SMS =
1
SERVICE_TYPE_VOICE =
2
VALID_SERVICE_TYPES =
[SERVICE_TYPE_SMS, SERVICE_TYPE_VOICE].freeze

Constants inherited from GenesisRuby::Api::Request

GenesisRuby::Api::Request::AUTH_TYPE_BASIC, GenesisRuby::Api::Request::AUTH_TYPE_TOKEN, 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 collapse

Attributes inherited from Base::Versioned

#allowed_versions, #version

Attributes inherited from GenesisRuby::Api::Request

#api_config

Instance Method Summary collapse

Methods inherited from Base::NonFinancial::Kyc::Base

#init_configuration

Methods inherited from GenesisRuby::Api::Request

#build_document

Constructor Details

#initialize(configuration, _builder_interface = nil) ⇒ Create

Initialize the Make Call document request



25
26
27
28
29
# File 'lib/genesis_ruby/api/requests/non_financial/kyc/call/create.rb', line 25

def initialize(configuration, _builder_interface = nil)
  super configuration

  self.request_path = 'create_authentication'
end

Instance Attribute Details

#customer_phone_numberObject

Returns the value of attribute customer_phone_number.



22
23
24
# File 'lib/genesis_ruby/api/requests/non_financial/kyc/call/create.rb', line 22

def customer_phone_number
  @customer_phone_number
end

#customer_unique_idObject

Returns the value of attribute customer_unique_id.



20
21
22
# File 'lib/genesis_ruby/api/requests/non_financial/kyc/call/create.rb', line 20

def customer_unique_id
  @customer_unique_id
end

#customer_usernameObject

Returns the value of attribute customer_username.



20
21
22
# File 'lib/genesis_ruby/api/requests/non_financial/kyc/call/create.rb', line 20

def customer_username
  @customer_username
end

#security_codeObject

Returns the value of attribute security_code.



22
23
24
# File 'lib/genesis_ruby/api/requests/non_financial/kyc/call/create.rb', line 22

def security_code
  @security_code
end

#service_languageObject

Returns the value of attribute service_language.



20
21
22
# File 'lib/genesis_ruby/api/requests/non_financial/kyc/call/create.rb', line 20

def service_language
  @service_language
end

#service_typeObject

Returns the value of attribute service_type.



20
21
22
# File 'lib/genesis_ruby/api/requests/non_financial/kyc/call/create.rb', line 20

def service_type
  @service_type
end

#transaction_unique_idObject

Returns the value of attribute transaction_unique_id.



20
21
22
# File 'lib/genesis_ruby/api/requests/non_financial/kyc/call/create.rb', line 20

def transaction_unique_id
  @transaction_unique_id
end