Class: GenesisRuby::Api::Requests::NonFinancial::Payee::Create

Inherits:
Base::Versioned show all
Defined in:
lib/genesis_ruby/api/requests/non_financial/payee/create.rb

Overview

Create a Payee record.

Constant Summary collapse

PAYEE_TYPE_PERSON =
'person'
PAYEE_TYPE_COMPANY =
'company'

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) ⇒ Create

Create Payee initialization



17
18
19
20
21
# File 'lib/genesis_ruby/api/requests/non_financial/payee/create.rb', line 17

def initialize(configuration, _builder_interface = nil)
  super configuration

  self.request_path = 'payee'
end

Instance Attribute Details

#payee_countryObject

Returns the value of attribute payee_country.



14
15
16
# File 'lib/genesis_ruby/api/requests/non_financial/payee/create.rb', line 14

def payee_country
  @payee_country
end

#payee_nameObject

Returns the value of attribute payee_name.



14
15
16
# File 'lib/genesis_ruby/api/requests/non_financial/payee/create.rb', line 14

def payee_name
  @payee_name
end

#payee_typeObject

Returns the value of attribute payee_type.



14
15
16
# File 'lib/genesis_ruby/api/requests/non_financial/payee/create.rb', line 14

def payee_type
  @payee_type
end