Class: GenesisRuby::Api::Requests::NonFinancial::Payee::CreatePayeeDocument

Inherits:
Base::NonFinancial::Payee::Base show all
Defined in:
lib/genesis_ruby/api/requests/non_financial/payee/create_payee_document.rb

Overview

Create a Document for a specific Payee.

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 collapse

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

Create Payee Document initialization



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

def initialize(configuration, _builder_interface = nil)
  super configuration

  self.request_path = 'payee/:payee_unique_id/documents'
end

Instance Attribute Details

#document_typeObject

Returns the value of attribute document_type.



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

def document_type
  @document_type
end

#fileObject

Returns the value of attribute file.



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

def file
  @file
end

#payee_unique_idObject

Returns the value of attribute payee_unique_id.



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

def payee_unique_id
  @payee_unique_id
end