Class: Moneta::Api::Requests::Profile::CreateOrganizationProfileRequest

Inherits:
CreateProfileRequest show all
Defined in:
lib/moneta/api/requests/profile/create_organization_profile_request.rb

Overview

Запрос на создание пользователя с типом “организация” в системе МОНЕТА.РУ. Request for creating a MONETA.RU organization account.

Instance Method Summary collapse

Methods inherited from CreateProfileRequest

#unit_id

Methods included from DataMapper

#fill, #to_hash

Constructor Details

#initializeCreateOrganizationProfileRequest

Returns a new instance of CreateOrganizationProfileRequest.



19
20
21
# File 'lib/moneta/api/requests/profile/create_organization_profile_request.rb', line 19

def initialize
  @profile_type = 'organization'
end

Instance Method Details

#profileMoneta::Api::Types::Profile::Organization

Returns Данные создаваемого пользователя. Данные представлены в виде “ключ-значение”. / Ключи данных зависят от типа пользователя (ProfileType). / User profile information in the list of key-value pairs. / The list of supported keys depends on ProfileType.

Returns:

  • (Moneta::Api::Types::Profile::Organization)

    Данные создаваемого пользователя. Данные представлены в виде “ключ-значение”. / Ключи данных зависят от типа пользователя (ProfileType). / User profile information in the list of key-value pairs. / The list of supported keys depends on ProfileType.



17
# File 'lib/moneta/api/requests/profile/create_organization_profile_request.rb', line 17

property :profile, type: Moneta::Api::Types::Profile::Organization

#profile_typeString

Returns Тип пользователя. Возможные значения: [client, organization] / Profile type. Valid values are: [client, organization].

Returns:

  • (String)

    Тип пользователя. Возможные значения: [client, organization] / Profile type. Valid values are: [client, organization]



11
# File 'lib/moneta/api/requests/profile/create_organization_profile_request.rb', line 11

property :profile_type, read_only: true