Sha256: d73c14db264a5b08af83ed381d2936cf962427008d69aa1434ef24321794423c

Contents?: true

Size: 1.22 KB

Versions: 26

Compression:

Stored size: 1.22 KB

Contents

module Moneta
  module Api
    module Requests
      module Profile
        # Запрос на создание пользователя с типом "организация" в системе МОНЕТА.РУ.
        # Request for creating a MONETA.RU organization account.
        class CreateOrganizationProfileRequest < CreateProfileRequest

          # @return [String] Тип пользователя. Возможные значения: [client, organization]
          #   / Profile type. Valid values are: [client, organization]
          property :profile_type, read_only: true

          # @return [Moneta::Api::Types::Profile::Organization] Данные создаваемого пользователя. Данные представлены в виде "ключ-значение".
          #   / Ключи данных зависят от типа пользователя (ProfileType).
          #   / User profile information in the list of key-value pairs.
          #   / The list of supported keys depends on ProfileType.
          property :profile, type: Moneta::Api::Types::Profile::Organization

          def initialize
            @profile_type = 'organization'
          end
        end
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
moneta-api-2.1.0 lib/moneta/api/requests/profile/create_organization_profile_request.rb
moneta-api-2.0.0 lib/moneta/api/requests/profile/create_organization_profile_request.rb
moneta-api-2.0.0.rc2 lib/moneta/api/requests/profile/create_organization_profile_request.rb
moneta-api-2.0.0.rc1 lib/moneta/api/requests/profile/create_organization_profile_request.rb
moneta-api-1.13.0 lib/moneta/api/requests/profile/create_organization_profile_request.rb
moneta-api-1.12.8 lib/moneta/api/requests/profile/create_organization_profile_request.rb
moneta-api-1.12.7 lib/moneta/api/requests/profile/create_organization_profile_request.rb
moneta-api-1.12.6 lib/moneta/api/requests/profile/create_organization_profile_request.rb
moneta-api-1.12.5 lib/moneta/api/requests/profile/create_organization_profile_request.rb
moneta-api-1.12.4 lib/moneta/api/requests/profile/create_organization_profile_request.rb
moneta-api-1.12.3 lib/moneta/api/requests/profile/create_organization_profile_request.rb
moneta-api-1.12.2 lib/moneta/api/requests/profile/create_organization_profile_request.rb
moneta-api-1.12.1 lib/moneta/api/requests/profile/create_organization_profile_request.rb
moneta-api-1.12.0 lib/moneta/api/requests/profile/create_organization_profile_request.rb
moneta-api-1.11.0 lib/moneta/api/requests/profile/create_organization_profile_request.rb
moneta-api-1.10.0 lib/moneta/api/requests/profile/create_organization_profile_request.rb
moneta-api-1.9.0 lib/moneta/api/requests/profile/create_organization_profile_request.rb
moneta-api-1.8.0 lib/moneta/api/requests/profile/create_organization_profile_request.rb
moneta-api-1.7.0 lib/moneta/api/requests/profile/create_organization_profile_request.rb
moneta-api-1.6.0 lib/moneta/api/requests/profile/create_organization_profile_request.rb