# frozen_string_literal: true require 'vk/api/methods' module Vk module API class Market < Vk::Schema::Namespace module Methods # Adds an item to one or multiple collections. class AddToAlbum < Schema::Method # @!group Properties self.open = false self.method = 'market.addToAlbum' # @method initialize(arguments) # @param [Hash] arguments # @option arguments [Integer] :owner_id ID of an item owner community. # @option arguments [Integer] :item_id Item ID. # @option arguments [Array] :album_ids Collections IDs to add item to. # @return [Market::Methods::AddToAlbum] # @!group Arguments # @return [Integer] ID of an item owner community. attribute :owner_id, API::Types::Coercible::Int.optional # @return [Integer] Item ID. attribute :item_id, API::Types::Coercible::Int.optional # @return [Array] Collections IDs to add item to. attribute :album_ids, API::Types::Coercible::Array.optional end end end end end