lib/phrase/api/notifications_api.rb in phrase-2.8.2 vs lib/phrase/api/notifications_api.rb in phrase-2.8.3

- old
+ new

@@ -10,11 +10,12 @@ # List notifications # List all notifications from the current user # @param [Hash] opts the optional parameters # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional) # @option opts [Integer] :page Page number - # @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default + # @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default + # @option opts [Boolean] :unseen Include only unseen notifications # @return [Array<Object>] def notifications_list(opts = {}) data, _status_code, _headers = notifications_list_with_http_info(opts) data end @@ -22,11 +23,12 @@ # List notifications # List all notifications from the current user # @param [Hash] opts the optional parameters # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional) # @option opts [Integer] :page Page number - # @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default + # @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default + # @option opts [Boolean] :unseen Include only unseen notifications # @return [Array<(Response<(Array<Object>)>, Integer, Hash)>] Response<(Array<Object>)> data, response status code and response headers def notifications_list_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: NotificationsApi.notifications_list ...' end @@ -35,9 +37,10 @@ # query parameters query_params = opts[:query_params] || {} query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil? + query_params[:'unseen'] = opts[:'unseen'] if !opts[:'unseen'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json'])