Class: GenesisRuby::Api::Requests::NonFinancial::Consumers::Disable

Inherits:
Base::Consumer show all
Defined in:
lib/genesis_ruby/api/requests/non_financial/consumers/disable.rb

Overview

Disable consumer from usage until further action.

Constant Summary

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 GenesisRuby::Api::Request

#build_document

Constructor Details

#initialize(configuration, _builder_interface = nil) ⇒ Disable

Disable Consumer constructor



14
15
16
17
18
# File 'lib/genesis_ruby/api/requests/non_financial/consumers/disable.rb', line 14

def initialize(configuration, _builder_interface = nil)
  super configuration

  self.request_path = 'disable_consumer'
end

Instance Attribute Details

#consumer_idObject

Returns the value of attribute consumer_id.



11
12
13
# File 'lib/genesis_ruby/api/requests/non_financial/consumers/disable.rb', line 11

def consumer_id
  @consumer_id
end

#emailObject

Returns the value of attribute email.



11
12
13
# File 'lib/genesis_ruby/api/requests/non_financial/consumers/disable.rb', line 11

def email
  @email
end