From 585d786aebcff4c18289dd977457a2da43fe3bdd Mon Sep 17 00:00:00 2001 From: github-actions Date: Wed, 1 Jul 2026 06:16:25 +0000 Subject: [PATCH] Codes are generated by openapi --- .../bot/v2/insight/.openapi-generator/FILES | 10 ++ lib/line/bot/v2/insight/api/insight_client.rb | 166 ++++++++++++++++++ lib/line/bot/v2/insight/core.rb | 10 ++ .../get_rich_menu_insight_daily_response.rb | 97 ++++++++++ ...rich_menu_insight_daily_response_bounds.rb | 85 +++++++++ ..._rich_menu_insight_daily_response_click.rb | 79 +++++++++ ...nu_insight_daily_response_daily_metrics.rb | 79 +++++++++ ..._menu_insight_daily_response_impression.rb | 73 ++++++++ .../get_rich_menu_insight_summary_response.rb | 97 ++++++++++ ...ch_menu_insight_summary_response_bounds.rb | 85 +++++++++ ...ich_menu_insight_summary_response_click.rb | 73 ++++++++ ...enu_insight_summary_response_impression.rb | 67 +++++++ ...h_menu_insight_summary_response_metrics.rb | 73 ++++++++ .../manage_audience/model/audience_group.rb | 4 +- line-openapi | 2 +- .../bot/v2/insight/.openapi-generator/FILES | 10 ++ .../bot/v2/insight/api/insight_client.rbs | 92 ++++++++++ .../get_rich_menu_insight_daily_response.rbs | 52 ++++++ ...ich_menu_insight_daily_response_bounds.rbs | 49 ++++++ ...rich_menu_insight_daily_response_click.rbs | 43 +++++ ...u_insight_daily_response_daily_metrics.rbs | 46 +++++ ...menu_insight_daily_response_impression.rbs | 40 +++++ ...get_rich_menu_insight_summary_response.rbs | 52 ++++++ ...h_menu_insight_summary_response_bounds.rbs | 49 ++++++ ...ch_menu_insight_summary_response_click.rbs | 43 +++++ ...nu_insight_summary_response_impression.rbs | 40 +++++ ..._menu_insight_summary_response_metrics.rbs | 43 +++++ .../manage_audience/model/audience_group.rbs | 6 +- 28 files changed, 1559 insertions(+), 6 deletions(-) create mode 100644 lib/line/bot/v2/insight/model/get_rich_menu_insight_daily_response.rb create mode 100644 lib/line/bot/v2/insight/model/get_rich_menu_insight_daily_response_bounds.rb create mode 100644 lib/line/bot/v2/insight/model/get_rich_menu_insight_daily_response_click.rb create mode 100644 lib/line/bot/v2/insight/model/get_rich_menu_insight_daily_response_daily_metrics.rb create mode 100644 lib/line/bot/v2/insight/model/get_rich_menu_insight_daily_response_impression.rb create mode 100644 lib/line/bot/v2/insight/model/get_rich_menu_insight_summary_response.rb create mode 100644 lib/line/bot/v2/insight/model/get_rich_menu_insight_summary_response_bounds.rb create mode 100644 lib/line/bot/v2/insight/model/get_rich_menu_insight_summary_response_click.rb create mode 100644 lib/line/bot/v2/insight/model/get_rich_menu_insight_summary_response_impression.rb create mode 100644 lib/line/bot/v2/insight/model/get_rich_menu_insight_summary_response_metrics.rb create mode 100644 sig/line/bot/v2/insight/model/get_rich_menu_insight_daily_response.rbs create mode 100644 sig/line/bot/v2/insight/model/get_rich_menu_insight_daily_response_bounds.rbs create mode 100644 sig/line/bot/v2/insight/model/get_rich_menu_insight_daily_response_click.rbs create mode 100644 sig/line/bot/v2/insight/model/get_rich_menu_insight_daily_response_daily_metrics.rbs create mode 100644 sig/line/bot/v2/insight/model/get_rich_menu_insight_daily_response_impression.rbs create mode 100644 sig/line/bot/v2/insight/model/get_rich_menu_insight_summary_response.rbs create mode 100644 sig/line/bot/v2/insight/model/get_rich_menu_insight_summary_response_bounds.rbs create mode 100644 sig/line/bot/v2/insight/model/get_rich_menu_insight_summary_response_click.rbs create mode 100644 sig/line/bot/v2/insight/model/get_rich_menu_insight_summary_response_impression.rbs create mode 100644 sig/line/bot/v2/insight/model/get_rich_menu_insight_summary_response_metrics.rbs diff --git a/lib/line/bot/v2/insight/.openapi-generator/FILES b/lib/line/bot/v2/insight/.openapi-generator/FILES index 440861af..af087070 100644 --- a/lib/line/bot/v2/insight/.openapi-generator/FILES +++ b/lib/line/bot/v2/insight/.openapi-generator/FILES @@ -14,6 +14,16 @@ model/get_message_event_response_message.rb model/get_message_event_response_overview.rb model/get_number_of_followers_response.rb model/get_number_of_message_deliveries_response.rb +model/get_rich_menu_insight_daily_response.rb +model/get_rich_menu_insight_daily_response_bounds.rb +model/get_rich_menu_insight_daily_response_click.rb +model/get_rich_menu_insight_daily_response_daily_metrics.rb +model/get_rich_menu_insight_daily_response_impression.rb +model/get_rich_menu_insight_summary_response.rb +model/get_rich_menu_insight_summary_response_bounds.rb +model/get_rich_menu_insight_summary_response_click.rb +model/get_rich_menu_insight_summary_response_impression.rb +model/get_rich_menu_insight_summary_response_metrics.rb model/get_statistics_per_unit_response.rb model/get_statistics_per_unit_response_click.rb model/get_statistics_per_unit_response_message.rb diff --git a/lib/line/bot/v2/insight/api/insight_client.rb b/lib/line/bot/v2/insight/api/insight_client.rb index 74d66ed6..a6578f8e 100644 --- a/lib/line/bot/v2/insight/api/insight_client.rb +++ b/lib/line/bot/v2/insight/api/insight_client.rb @@ -244,6 +244,172 @@ def get_number_of_message_deliveries( response_body end + # Gets rich menu statistics broken down by day for the specified period, for a rich menu created via the Messaging API. Returns the daily impression count for the whole rich menu and the daily click count for each tappable area. When the total number of unique clicks during the period is below the privacy threshold, only `richMenuId` is returned and the other fields are omitted. + # This requests to GET https://api.line.me/v2/bot/insight/richmenu/{richMenuId}/daily + # This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase. + # + # @param rich_menu_id [String] ID of the rich menu created via the Messaging API. + # @param from [String] Start date of the aggregation period (inclusive). Must be within the most recent 3 years. Format: yyyyMMdd (e.g. 20260213) Time zone: UTC+9 + # @param to [String] End date of the aggregation period (inclusive). The end date can be specified for up to 99 days after the start date. Format: yyyyMMdd (e.g. 20260215) Time zone: UTC+9 + # @see https://developers.line.biz/en/reference/messaging-api/#get-rich-menu-insight-daily + # @return [Array(Line::Bot::V2::Insight::GetRichMenuInsightDailyResponse, Integer, Hash{String => String})] when HTTP status code is 200 + # @return [Array(Line::Bot::V2::Insight::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 400 + # @return [Array(Line::Bot::V2::Insight::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 404 + # @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself. + def get_rich_menu_insight_daily_with_http_info( + rich_menu_id:, + from:, + to: + ) + path = Line::Bot::V2::Utils.build_path("/v2/bot/insight/richmenu/{richMenuId}/daily", { + "richMenuId": rich_menu_id + }) + query_params = { + "from": from, + "to": to + }.compact + + response = @http_client.get( + path: path, + query_params: query_params, + ) + + case response.code.to_i + when 200 + json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) + json.transform_keys! do |key| + Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key + end + response_body = Line::Bot::V2::Insight::GetRichMenuInsightDailyResponse.create(json) + [response_body, 200, response.each_header.to_h] + when 400 + json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) + json.transform_keys! do |key| + Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key + end + response_body = Line::Bot::V2::Insight::ErrorResponse.create(json) + [response_body, 400, response.each_header.to_h] + when 404 + json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) + json.transform_keys! do |key| + Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key + end + response_body = Line::Bot::V2::Insight::ErrorResponse.create(json) + [response_body, 404, response.each_header.to_h] + else + [response.body, response.code.to_i, response.each_header.to_h] + end + end + + # Gets rich menu statistics broken down by day for the specified period, for a rich menu created via the Messaging API. Returns the daily impression count for the whole rich menu and the daily click count for each tappable area. When the total number of unique clicks during the period is below the privacy threshold, only `richMenuId` is returned and the other fields are omitted. + # This requests to GET https://api.line.me/v2/bot/insight/richmenu/{richMenuId}/daily + # When you want to get HTTP status code or response headers, use {#get_rich_menu_insight_daily_with_http_info} instead of this. + # + # @param rich_menu_id [String] ID of the rich menu created via the Messaging API. + # @param from [String] Start date of the aggregation period (inclusive). Must be within the most recent 3 years. Format: yyyyMMdd (e.g. 20260213) Time zone: UTC+9 + # @param to [String] End date of the aggregation period (inclusive). The end date can be specified for up to 99 days after the start date. Format: yyyyMMdd (e.g. 20260215) Time zone: UTC+9 + # @see https://developers.line.biz/en/reference/messaging-api/#get-rich-menu-insight-daily + # @return [Line::Bot::V2::Insight::GetRichMenuInsightDailyResponse] when HTTP status code is 200 + # @return [Line::Bot::V2::Insight::ErrorResponse] when HTTP status code is 400 + # @return [Line::Bot::V2::Insight::ErrorResponse] when HTTP status code is 404 + # @return [String, nil] when other HTTP status code is returned. This String is HTTP response body itself. + def get_rich_menu_insight_daily( + rich_menu_id:, + from:, + to: + ) + response_body, _status_code, _headers = get_rich_menu_insight_daily_with_http_info( + rich_menu_id: rich_menu_id, + from: from, + to: to + ) + + response_body + end + + # Gets a summary of rich menu statistics for the specified period, for a rich menu created via the Messaging API. Returns the total impression count for the whole rich menu and the click count for each tappable area, aggregated over the entire period as a single result. When the total number of unique clicks during the period is below the privacy threshold, only `richMenuId` is returned and the other fields are omitted. + # This requests to GET https://api.line.me/v2/bot/insight/richmenu/{richMenuId}/summary + # This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase. + # + # @param rich_menu_id [String] ID of the rich menu created via the Messaging API. + # @param from [String] Start date of the aggregation period (inclusive). Must be within the most recent 3 years. Format: yyyyMMdd (e.g. 20260213) Time zone: UTC+9 + # @param to [String] End date of the aggregation period (inclusive). The end date can be specified for up to 396 days after the start date. Format: yyyyMMdd (e.g. 20260215) Time zone: UTC+9 + # @see https://developers.line.biz/en/reference/messaging-api/#get-rich-menu-insight-summary + # @return [Array(Line::Bot::V2::Insight::GetRichMenuInsightSummaryResponse, Integer, Hash{String => String})] when HTTP status code is 200 + # @return [Array(Line::Bot::V2::Insight::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 400 + # @return [Array(Line::Bot::V2::Insight::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 404 + # @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself. + def get_rich_menu_insight_summary_with_http_info( + rich_menu_id:, + from:, + to: + ) + path = Line::Bot::V2::Utils.build_path("/v2/bot/insight/richmenu/{richMenuId}/summary", { + "richMenuId": rich_menu_id + }) + query_params = { + "from": from, + "to": to + }.compact + + response = @http_client.get( + path: path, + query_params: query_params, + ) + + case response.code.to_i + when 200 + json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) + json.transform_keys! do |key| + Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key + end + response_body = Line::Bot::V2::Insight::GetRichMenuInsightSummaryResponse.create(json) + [response_body, 200, response.each_header.to_h] + when 400 + json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) + json.transform_keys! do |key| + Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key + end + response_body = Line::Bot::V2::Insight::ErrorResponse.create(json) + [response_body, 400, response.each_header.to_h] + when 404 + json = Line::Bot::V2::Utils.deep_underscore(JSON.parse(response.body)) + json.transform_keys! do |key| + Line::Bot::V2::RESERVED_WORDS.include?(key) ? "_#{key}".to_sym : key + end + response_body = Line::Bot::V2::Insight::ErrorResponse.create(json) + [response_body, 404, response.each_header.to_h] + else + [response.body, response.code.to_i, response.each_header.to_h] + end + end + + # Gets a summary of rich menu statistics for the specified period, for a rich menu created via the Messaging API. Returns the total impression count for the whole rich menu and the click count for each tappable area, aggregated over the entire period as a single result. When the total number of unique clicks during the period is below the privacy threshold, only `richMenuId` is returned and the other fields are omitted. + # This requests to GET https://api.line.me/v2/bot/insight/richmenu/{richMenuId}/summary + # When you want to get HTTP status code or response headers, use {#get_rich_menu_insight_summary_with_http_info} instead of this. + # + # @param rich_menu_id [String] ID of the rich menu created via the Messaging API. + # @param from [String] Start date of the aggregation period (inclusive). Must be within the most recent 3 years. Format: yyyyMMdd (e.g. 20260213) Time zone: UTC+9 + # @param to [String] End date of the aggregation period (inclusive). The end date can be specified for up to 396 days after the start date. Format: yyyyMMdd (e.g. 20260215) Time zone: UTC+9 + # @see https://developers.line.biz/en/reference/messaging-api/#get-rich-menu-insight-summary + # @return [Line::Bot::V2::Insight::GetRichMenuInsightSummaryResponse] when HTTP status code is 200 + # @return [Line::Bot::V2::Insight::ErrorResponse] when HTTP status code is 400 + # @return [Line::Bot::V2::Insight::ErrorResponse] when HTTP status code is 404 + # @return [String, nil] when other HTTP status code is returned. This String is HTTP response body itself. + def get_rich_menu_insight_summary( + rich_menu_id:, + from:, + to: + ) + response_body, _status_code, _headers = get_rich_menu_insight_summary_with_http_info( + rich_menu_id: rich_menu_id, + from: from, + to: to + ) + + response_body + end + # You can check the per-unit statistics of how users interact with push messages and multicast messages sent from your LINE Official Account. # This requests to GET https://api.line.me/v2/bot/insight/message/event/aggregation # This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase. diff --git a/lib/line/bot/v2/insight/core.rb b/lib/line/bot/v2/insight/core.rb index 11dd716c..42384e4d 100644 --- a/lib/line/bot/v2/insight/core.rb +++ b/lib/line/bot/v2/insight/core.rb @@ -22,6 +22,16 @@ require_relative './model/get_message_event_response_overview' require_relative './model/get_number_of_followers_response' require_relative './model/get_number_of_message_deliveries_response' +require_relative './model/get_rich_menu_insight_daily_response' +require_relative './model/get_rich_menu_insight_daily_response_bounds' +require_relative './model/get_rich_menu_insight_daily_response_click' +require_relative './model/get_rich_menu_insight_daily_response_daily_metrics' +require_relative './model/get_rich_menu_insight_daily_response_impression' +require_relative './model/get_rich_menu_insight_summary_response' +require_relative './model/get_rich_menu_insight_summary_response_bounds' +require_relative './model/get_rich_menu_insight_summary_response_click' +require_relative './model/get_rich_menu_insight_summary_response_impression' +require_relative './model/get_rich_menu_insight_summary_response_metrics' require_relative './model/get_statistics_per_unit_response' require_relative './model/get_statistics_per_unit_response_click' require_relative './model/get_statistics_per_unit_response_message' diff --git a/lib/line/bot/v2/insight/model/get_rich_menu_insight_daily_response.rb b/lib/line/bot/v2/insight/model/get_rich_menu_insight_daily_response.rb new file mode 100644 index 00000000..ced3436a --- /dev/null +++ b/lib/line/bot/v2/insight/model/get_rich_menu_insight_daily_response.rb @@ -0,0 +1,97 @@ +# LINE Messaging API(Insight) +# This document describes LINE Messaging API(Insight). +# +# The version of the OpenAPI document: 0.0.1 +# +# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). +# https://openapi-generator.tech +# Do not edit the class manually. + +module Line + module Bot + module V2 + module Insight + # Daily impression and click statistics for a rich menu created via the Messaging API. + class GetRichMenuInsightDailyResponse + # @!attribute [rw] rich_menu_id + # @return [String] Rich menu ID. + attr_accessor :rich_menu_id + # @!attribute [rw] metrics_from + # @return [String,nil] Start date (JST) of the period actually covered by the returned metrics. Format: yyyyMMdd (e.g. 20260213). + attr_accessor :metrics_from + # @!attribute [rw] metrics_to + # @return [String,nil] End date (JST) of the period actually covered by the returned metrics. Format: yyyyMMdd (e.g. 20260215). + attr_accessor :metrics_to + # @!attribute [rw] impression + # @return [GetRichMenuInsightDailyResponseImpression,nil] + attr_accessor :impression + # @!attribute [rw] clicks + # @return [Array[GetRichMenuInsightDailyResponseClick],nil] Daily click metrics for each tappable area of the rich menu. + attr_accessor :clicks + + # @param rich_menu_id [String] Rich menu ID. + # @param metrics_from [String,nil] Start date (JST) of the period actually covered by the returned metrics. Format: yyyyMMdd (e.g. 20260213). + # @param metrics_to [String,nil] End date (JST) of the period actually covered by the returned metrics. Format: yyyyMMdd (e.g. 20260215). + # @param impression [GetRichMenuInsightDailyResponseImpression, Hash[Symbol, untyped], nil] + # @param clicks [Array[GetRichMenuInsightDailyResponseClick, Hash[Symbol, untyped]],nil] Daily click metrics for each tappable area of the rich menu. + def initialize( + rich_menu_id:, + metrics_from: nil, + metrics_to: nil, + impression: nil, + clicks: nil, + **dynamic_attributes + ) + + @rich_menu_id = rich_menu_id + @metrics_from = metrics_from + @metrics_to = metrics_to + @impression = impression.is_a?(Line::Bot::V2::Insight::GetRichMenuInsightDailyResponseImpression) || impression.nil? ? impression : Line::Bot::V2::Insight::GetRichMenuInsightDailyResponseImpression.create(**impression) + @clicks = clicks&.map do |item| + if item.is_a?(Hash) + Line::Bot::V2::Insight::GetRichMenuInsightDailyResponseClick.create(**item) + else + item + end + end + + dynamic_attributes.each do |key, value| + self.class.attr_accessor key + + if value.is_a?(Hash) + struct_klass = Struct.new(*value.keys.map(&:to_sym)) + struct_values = value.map { |_k, v| v.is_a?(Hash) ? Line::Bot::V2::Utils.hash_to_struct(v) : v } + instance_variable_set("@#{key}", struct_klass.new(*struct_values)) + else + instance_variable_set("@#{key}", value) + end + end + end + + # Create an instance of the class from a hash + # @param args [Hash] Hash containing all the required attributes + # @return [Line::Bot::V2::Insight::GetRichMenuInsightDailyResponse] Instance of the class + def self.create(args) + symbolized_args = Line::Bot::V2::Utils.deep_symbolize(args) + return new(**symbolized_args) # steep:ignore InsufficientKeywordArguments + end + + # @param other [Object] Object to compare + # @return [Boolean] true if the objects are equal, false otherwise + def ==(other) + return false unless self.class == other.class + + instance_variables.all? do |var| + instance_variable_get(var) == other.instance_variable_get(var) + end + end + + # @return [Integer] Hash code of the object + def hash + [self.class, *instance_variables.map { |var| instance_variable_get(var) }].hash + end + end + end + end + end +end diff --git a/lib/line/bot/v2/insight/model/get_rich_menu_insight_daily_response_bounds.rb b/lib/line/bot/v2/insight/model/get_rich_menu_insight_daily_response_bounds.rb new file mode 100644 index 00000000..669cdc89 --- /dev/null +++ b/lib/line/bot/v2/insight/model/get_rich_menu_insight_daily_response_bounds.rb @@ -0,0 +1,85 @@ +# LINE Messaging API(Insight) +# This document describes LINE Messaging API(Insight). +# +# The version of the OpenAPI document: 0.0.1 +# +# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). +# https://openapi-generator.tech +# Do not edit the class manually. + +module Line + module Bot + module V2 + module Insight + # Target area of the metrics, represented by the top-left coordinate, width, and height. + class GetRichMenuInsightDailyResponseBounds + # @!attribute [rw] x + # @return [Integer] The x coordinate of the top-left corner of the target area. + attr_accessor :x + # @!attribute [rw] y + # @return [Integer] The y coordinate of the top-left corner of the target area. + attr_accessor :y + # @!attribute [rw] width + # @return [Integer] The width of the target area. + attr_accessor :width + # @!attribute [rw] height + # @return [Integer] The height of the target area. + attr_accessor :height + + # @param x [Integer] The x coordinate of the top-left corner of the target area. + # @param y [Integer] The y coordinate of the top-left corner of the target area. + # @param width [Integer] The width of the target area. + # @param height [Integer] The height of the target area. + def initialize( + x:, + y:, + width:, + height:, + **dynamic_attributes + ) + + @x = x + @y = y + @width = width + @height = height + + dynamic_attributes.each do |key, value| + self.class.attr_accessor key + + if value.is_a?(Hash) + struct_klass = Struct.new(*value.keys.map(&:to_sym)) + struct_values = value.map { |_k, v| v.is_a?(Hash) ? Line::Bot::V2::Utils.hash_to_struct(v) : v } + instance_variable_set("@#{key}", struct_klass.new(*struct_values)) + else + instance_variable_set("@#{key}", value) + end + end + end + + # Create an instance of the class from a hash + # @param args [Hash] Hash containing all the required attributes + # @return [Line::Bot::V2::Insight::GetRichMenuInsightDailyResponseBounds] Instance of the class + def self.create(args) + symbolized_args = Line::Bot::V2::Utils.deep_symbolize(args) + return new(**symbolized_args) # steep:ignore InsufficientKeywordArguments + end + + # @param other [Object] Object to compare + # @return [Boolean] true if the objects are equal, false otherwise + def ==(other) + return false unless self.class == other.class + + instance_variables.all? do |var| + instance_variable_get(var) == other.instance_variable_get(var) + end + end + + # @return [Integer] Hash code of the object + def hash + [self.class, *instance_variables.map { |var| instance_variable_get(var) }].hash + end + end + end + end + end +end diff --git a/lib/line/bot/v2/insight/model/get_rich_menu_insight_daily_response_click.rb b/lib/line/bot/v2/insight/model/get_rich_menu_insight_daily_response_click.rb new file mode 100644 index 00000000..256b49a6 --- /dev/null +++ b/lib/line/bot/v2/insight/model/get_rich_menu_insight_daily_response_click.rb @@ -0,0 +1,79 @@ +# LINE Messaging API(Insight) +# This document describes LINE Messaging API(Insight). +# +# The version of the OpenAPI document: 0.0.1 +# +# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). +# https://openapi-generator.tech +# Do not edit the class manually. + +module Line + module Bot + module V2 + module Insight + # Daily click metrics for a single tappable area of the rich menu. + class GetRichMenuInsightDailyResponseClick + # @!attribute [rw] bounds + # @return [GetRichMenuInsightDailyResponseBounds] + attr_accessor :bounds + # @!attribute [rw] metrics + # @return [Array[GetRichMenuInsightDailyResponseDailyMetrics]] Per-day click metrics for the target area. + attr_accessor :metrics + + # @param bounds [GetRichMenuInsightDailyResponseBounds, Hash[Symbol, untyped]] + # @param metrics [Array[GetRichMenuInsightDailyResponseDailyMetrics, Hash[Symbol, untyped]]] Per-day click metrics for the target area. + def initialize( + bounds:, + metrics:, + **dynamic_attributes + ) + + @bounds = bounds.is_a?(Line::Bot::V2::Insight::GetRichMenuInsightDailyResponseBounds) ? bounds : Line::Bot::V2::Insight::GetRichMenuInsightDailyResponseBounds.create(**bounds) + @metrics = metrics.map do |item| + if item.is_a?(Hash) + Line::Bot::V2::Insight::GetRichMenuInsightDailyResponseDailyMetrics.create(**item) + else + item + end + end + + dynamic_attributes.each do |key, value| + self.class.attr_accessor key + + if value.is_a?(Hash) + struct_klass = Struct.new(*value.keys.map(&:to_sym)) + struct_values = value.map { |_k, v| v.is_a?(Hash) ? Line::Bot::V2::Utils.hash_to_struct(v) : v } + instance_variable_set("@#{key}", struct_klass.new(*struct_values)) + else + instance_variable_set("@#{key}", value) + end + end + end + + # Create an instance of the class from a hash + # @param args [Hash] Hash containing all the required attributes + # @return [Line::Bot::V2::Insight::GetRichMenuInsightDailyResponseClick] Instance of the class + def self.create(args) + symbolized_args = Line::Bot::V2::Utils.deep_symbolize(args) + return new(**symbolized_args) # steep:ignore InsufficientKeywordArguments + end + + # @param other [Object] Object to compare + # @return [Boolean] true if the objects are equal, false otherwise + def ==(other) + return false unless self.class == other.class + + instance_variables.all? do |var| + instance_variable_get(var) == other.instance_variable_get(var) + end + end + + # @return [Integer] Hash code of the object + def hash + [self.class, *instance_variables.map { |var| instance_variable_get(var) }].hash + end + end + end + end + end +end diff --git a/lib/line/bot/v2/insight/model/get_rich_menu_insight_daily_response_daily_metrics.rb b/lib/line/bot/v2/insight/model/get_rich_menu_insight_daily_response_daily_metrics.rb new file mode 100644 index 00000000..d187cf57 --- /dev/null +++ b/lib/line/bot/v2/insight/model/get_rich_menu_insight_daily_response_daily_metrics.rb @@ -0,0 +1,79 @@ +# LINE Messaging API(Insight) +# This document describes LINE Messaging API(Insight). +# +# The version of the OpenAPI document: 0.0.1 +# +# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). +# https://openapi-generator.tech +# Do not edit the class manually. + +module Line + module Bot + module V2 + module Insight + # Aggregated number of events and unique users for a single day. + class GetRichMenuInsightDailyResponseDailyMetrics + # @!attribute [rw] date + # @return [String] The date (JST) of these metrics. Format: yyyyMMdd (e.g. 20260213). + attr_accessor :date + # @!attribute [rw] count + # @return [Integer] Number of impressions or clicks on this day. + attr_accessor :count + # @!attribute [rw] unique_users + # @return [Integer] Approximate number of unique users who triggered an impression or click on this day. + attr_accessor :unique_users + + # @param date [String] The date (JST) of these metrics. Format: yyyyMMdd (e.g. 20260213). + # @param count [Integer] Number of impressions or clicks on this day. + # @param unique_users [Integer] Approximate number of unique users who triggered an impression or click on this day. + def initialize( + date:, + count:, + unique_users:, + **dynamic_attributes + ) + + @date = date + @count = count + @unique_users = unique_users + + dynamic_attributes.each do |key, value| + self.class.attr_accessor key + + if value.is_a?(Hash) + struct_klass = Struct.new(*value.keys.map(&:to_sym)) + struct_values = value.map { |_k, v| v.is_a?(Hash) ? Line::Bot::V2::Utils.hash_to_struct(v) : v } + instance_variable_set("@#{key}", struct_klass.new(*struct_values)) + else + instance_variable_set("@#{key}", value) + end + end + end + + # Create an instance of the class from a hash + # @param args [Hash] Hash containing all the required attributes + # @return [Line::Bot::V2::Insight::GetRichMenuInsightDailyResponseDailyMetrics] Instance of the class + def self.create(args) + symbolized_args = Line::Bot::V2::Utils.deep_symbolize(args) + return new(**symbolized_args) # steep:ignore InsufficientKeywordArguments + end + + # @param other [Object] Object to compare + # @return [Boolean] true if the objects are equal, false otherwise + def ==(other) + return false unless self.class == other.class + + instance_variables.all? do |var| + instance_variable_get(var) == other.instance_variable_get(var) + end + end + + # @return [Integer] Hash code of the object + def hash + [self.class, *instance_variables.map { |var| instance_variable_get(var) }].hash + end + end + end + end + end +end diff --git a/lib/line/bot/v2/insight/model/get_rich_menu_insight_daily_response_impression.rb b/lib/line/bot/v2/insight/model/get_rich_menu_insight_daily_response_impression.rb new file mode 100644 index 00000000..0d971ad6 --- /dev/null +++ b/lib/line/bot/v2/insight/model/get_rich_menu_insight_daily_response_impression.rb @@ -0,0 +1,73 @@ +# LINE Messaging API(Insight) +# This document describes LINE Messaging API(Insight). +# +# The version of the OpenAPI document: 0.0.1 +# +# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). +# https://openapi-generator.tech +# Do not edit the class manually. + +module Line + module Bot + module V2 + module Insight + # Daily impression metrics for the whole rich menu. + class GetRichMenuInsightDailyResponseImpression + # @!attribute [rw] metrics + # @return [Array[GetRichMenuInsightDailyResponseDailyMetrics]] Per-day impression metrics. + attr_accessor :metrics + + # @param metrics [Array[GetRichMenuInsightDailyResponseDailyMetrics, Hash[Symbol, untyped]]] Per-day impression metrics. + def initialize( + metrics:, + **dynamic_attributes + ) + + @metrics = metrics.map do |item| + if item.is_a?(Hash) + Line::Bot::V2::Insight::GetRichMenuInsightDailyResponseDailyMetrics.create(**item) + else + item + end + end + + dynamic_attributes.each do |key, value| + self.class.attr_accessor key + + if value.is_a?(Hash) + struct_klass = Struct.new(*value.keys.map(&:to_sym)) + struct_values = value.map { |_k, v| v.is_a?(Hash) ? Line::Bot::V2::Utils.hash_to_struct(v) : v } + instance_variable_set("@#{key}", struct_klass.new(*struct_values)) + else + instance_variable_set("@#{key}", value) + end + end + end + + # Create an instance of the class from a hash + # @param args [Hash] Hash containing all the required attributes + # @return [Line::Bot::V2::Insight::GetRichMenuInsightDailyResponseImpression] Instance of the class + def self.create(args) + symbolized_args = Line::Bot::V2::Utils.deep_symbolize(args) + return new(**symbolized_args) # steep:ignore InsufficientKeywordArguments + end + + # @param other [Object] Object to compare + # @return [Boolean] true if the objects are equal, false otherwise + def ==(other) + return false unless self.class == other.class + + instance_variables.all? do |var| + instance_variable_get(var) == other.instance_variable_get(var) + end + end + + # @return [Integer] Hash code of the object + def hash + [self.class, *instance_variables.map { |var| instance_variable_get(var) }].hash + end + end + end + end + end +end diff --git a/lib/line/bot/v2/insight/model/get_rich_menu_insight_summary_response.rb b/lib/line/bot/v2/insight/model/get_rich_menu_insight_summary_response.rb new file mode 100644 index 00000000..bae05483 --- /dev/null +++ b/lib/line/bot/v2/insight/model/get_rich_menu_insight_summary_response.rb @@ -0,0 +1,97 @@ +# LINE Messaging API(Insight) +# This document describes LINE Messaging API(Insight). +# +# The version of the OpenAPI document: 0.0.1 +# +# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). +# https://openapi-generator.tech +# Do not edit the class manually. + +module Line + module Bot + module V2 + module Insight + # Summary of impression and click statistics for a rich menu created via the Messaging API. + class GetRichMenuInsightSummaryResponse + # @!attribute [rw] rich_menu_id + # @return [String] Rich menu ID. + attr_accessor :rich_menu_id + # @!attribute [rw] metrics_from + # @return [String,nil] Start date (JST) of the period actually covered by the returned metrics. Format: yyyyMMdd (e.g. 20260213). + attr_accessor :metrics_from + # @!attribute [rw] metrics_to + # @return [String,nil] End date (JST) of the period actually covered by the returned metrics. Format: yyyyMMdd (e.g. 20260215). + attr_accessor :metrics_to + # @!attribute [rw] impression + # @return [GetRichMenuInsightSummaryResponseImpression,nil] + attr_accessor :impression + # @!attribute [rw] clicks + # @return [Array[GetRichMenuInsightSummaryResponseClick],nil] Click metrics for each tappable area of the rich menu. + attr_accessor :clicks + + # @param rich_menu_id [String] Rich menu ID. + # @param metrics_from [String,nil] Start date (JST) of the period actually covered by the returned metrics. Format: yyyyMMdd (e.g. 20260213). + # @param metrics_to [String,nil] End date (JST) of the period actually covered by the returned metrics. Format: yyyyMMdd (e.g. 20260215). + # @param impression [GetRichMenuInsightSummaryResponseImpression, Hash[Symbol, untyped], nil] + # @param clicks [Array[GetRichMenuInsightSummaryResponseClick, Hash[Symbol, untyped]],nil] Click metrics for each tappable area of the rich menu. + def initialize( + rich_menu_id:, + metrics_from: nil, + metrics_to: nil, + impression: nil, + clicks: nil, + **dynamic_attributes + ) + + @rich_menu_id = rich_menu_id + @metrics_from = metrics_from + @metrics_to = metrics_to + @impression = impression.is_a?(Line::Bot::V2::Insight::GetRichMenuInsightSummaryResponseImpression) || impression.nil? ? impression : Line::Bot::V2::Insight::GetRichMenuInsightSummaryResponseImpression.create(**impression) + @clicks = clicks&.map do |item| + if item.is_a?(Hash) + Line::Bot::V2::Insight::GetRichMenuInsightSummaryResponseClick.create(**item) + else + item + end + end + + dynamic_attributes.each do |key, value| + self.class.attr_accessor key + + if value.is_a?(Hash) + struct_klass = Struct.new(*value.keys.map(&:to_sym)) + struct_values = value.map { |_k, v| v.is_a?(Hash) ? Line::Bot::V2::Utils.hash_to_struct(v) : v } + instance_variable_set("@#{key}", struct_klass.new(*struct_values)) + else + instance_variable_set("@#{key}", value) + end + end + end + + # Create an instance of the class from a hash + # @param args [Hash] Hash containing all the required attributes + # @return [Line::Bot::V2::Insight::GetRichMenuInsightSummaryResponse] Instance of the class + def self.create(args) + symbolized_args = Line::Bot::V2::Utils.deep_symbolize(args) + return new(**symbolized_args) # steep:ignore InsufficientKeywordArguments + end + + # @param other [Object] Object to compare + # @return [Boolean] true if the objects are equal, false otherwise + def ==(other) + return false unless self.class == other.class + + instance_variables.all? do |var| + instance_variable_get(var) == other.instance_variable_get(var) + end + end + + # @return [Integer] Hash code of the object + def hash + [self.class, *instance_variables.map { |var| instance_variable_get(var) }].hash + end + end + end + end + end +end diff --git a/lib/line/bot/v2/insight/model/get_rich_menu_insight_summary_response_bounds.rb b/lib/line/bot/v2/insight/model/get_rich_menu_insight_summary_response_bounds.rb new file mode 100644 index 00000000..2daa3d21 --- /dev/null +++ b/lib/line/bot/v2/insight/model/get_rich_menu_insight_summary_response_bounds.rb @@ -0,0 +1,85 @@ +# LINE Messaging API(Insight) +# This document describes LINE Messaging API(Insight). +# +# The version of the OpenAPI document: 0.0.1 +# +# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). +# https://openapi-generator.tech +# Do not edit the class manually. + +module Line + module Bot + module V2 + module Insight + # Target area of the metrics, represented by the top-left coordinate, width, and height. + class GetRichMenuInsightSummaryResponseBounds + # @!attribute [rw] x + # @return [Integer] The x coordinate of the top-left corner of the target area. + attr_accessor :x + # @!attribute [rw] y + # @return [Integer] The y coordinate of the top-left corner of the target area. + attr_accessor :y + # @!attribute [rw] width + # @return [Integer] The width of the target area. + attr_accessor :width + # @!attribute [rw] height + # @return [Integer] The height of the target area. + attr_accessor :height + + # @param x [Integer] The x coordinate of the top-left corner of the target area. + # @param y [Integer] The y coordinate of the top-left corner of the target area. + # @param width [Integer] The width of the target area. + # @param height [Integer] The height of the target area. + def initialize( + x:, + y:, + width:, + height:, + **dynamic_attributes + ) + + @x = x + @y = y + @width = width + @height = height + + dynamic_attributes.each do |key, value| + self.class.attr_accessor key + + if value.is_a?(Hash) + struct_klass = Struct.new(*value.keys.map(&:to_sym)) + struct_values = value.map { |_k, v| v.is_a?(Hash) ? Line::Bot::V2::Utils.hash_to_struct(v) : v } + instance_variable_set("@#{key}", struct_klass.new(*struct_values)) + else + instance_variable_set("@#{key}", value) + end + end + end + + # Create an instance of the class from a hash + # @param args [Hash] Hash containing all the required attributes + # @return [Line::Bot::V2::Insight::GetRichMenuInsightSummaryResponseBounds] Instance of the class + def self.create(args) + symbolized_args = Line::Bot::V2::Utils.deep_symbolize(args) + return new(**symbolized_args) # steep:ignore InsufficientKeywordArguments + end + + # @param other [Object] Object to compare + # @return [Boolean] true if the objects are equal, false otherwise + def ==(other) + return false unless self.class == other.class + + instance_variables.all? do |var| + instance_variable_get(var) == other.instance_variable_get(var) + end + end + + # @return [Integer] Hash code of the object + def hash + [self.class, *instance_variables.map { |var| instance_variable_get(var) }].hash + end + end + end + end + end +end diff --git a/lib/line/bot/v2/insight/model/get_rich_menu_insight_summary_response_click.rb b/lib/line/bot/v2/insight/model/get_rich_menu_insight_summary_response_click.rb new file mode 100644 index 00000000..11c7700e --- /dev/null +++ b/lib/line/bot/v2/insight/model/get_rich_menu_insight_summary_response_click.rb @@ -0,0 +1,73 @@ +# LINE Messaging API(Insight) +# This document describes LINE Messaging API(Insight). +# +# The version of the OpenAPI document: 0.0.1 +# +# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). +# https://openapi-generator.tech +# Do not edit the class manually. + +module Line + module Bot + module V2 + module Insight + # Click metrics for a single tappable area of the rich menu. + class GetRichMenuInsightSummaryResponseClick + # @!attribute [rw] bounds + # @return [GetRichMenuInsightSummaryResponseBounds] + attr_accessor :bounds + # @!attribute [rw] metrics + # @return [GetRichMenuInsightSummaryResponseMetrics] + attr_accessor :metrics + + # @param bounds [GetRichMenuInsightSummaryResponseBounds, Hash[Symbol, untyped]] + # @param metrics [GetRichMenuInsightSummaryResponseMetrics, Hash[Symbol, untyped]] + def initialize( + bounds:, + metrics:, + **dynamic_attributes + ) + + @bounds = bounds.is_a?(Line::Bot::V2::Insight::GetRichMenuInsightSummaryResponseBounds) ? bounds : Line::Bot::V2::Insight::GetRichMenuInsightSummaryResponseBounds.create(**bounds) + @metrics = metrics.is_a?(Line::Bot::V2::Insight::GetRichMenuInsightSummaryResponseMetrics) ? metrics : Line::Bot::V2::Insight::GetRichMenuInsightSummaryResponseMetrics.create(**metrics) + + dynamic_attributes.each do |key, value| + self.class.attr_accessor key + + if value.is_a?(Hash) + struct_klass = Struct.new(*value.keys.map(&:to_sym)) + struct_values = value.map { |_k, v| v.is_a?(Hash) ? Line::Bot::V2::Utils.hash_to_struct(v) : v } + instance_variable_set("@#{key}", struct_klass.new(*struct_values)) + else + instance_variable_set("@#{key}", value) + end + end + end + + # Create an instance of the class from a hash + # @param args [Hash] Hash containing all the required attributes + # @return [Line::Bot::V2::Insight::GetRichMenuInsightSummaryResponseClick] Instance of the class + def self.create(args) + symbolized_args = Line::Bot::V2::Utils.deep_symbolize(args) + return new(**symbolized_args) # steep:ignore InsufficientKeywordArguments + end + + # @param other [Object] Object to compare + # @return [Boolean] true if the objects are equal, false otherwise + def ==(other) + return false unless self.class == other.class + + instance_variables.all? do |var| + instance_variable_get(var) == other.instance_variable_get(var) + end + end + + # @return [Integer] Hash code of the object + def hash + [self.class, *instance_variables.map { |var| instance_variable_get(var) }].hash + end + end + end + end + end +end diff --git a/lib/line/bot/v2/insight/model/get_rich_menu_insight_summary_response_impression.rb b/lib/line/bot/v2/insight/model/get_rich_menu_insight_summary_response_impression.rb new file mode 100644 index 00000000..31672b71 --- /dev/null +++ b/lib/line/bot/v2/insight/model/get_rich_menu_insight_summary_response_impression.rb @@ -0,0 +1,67 @@ +# LINE Messaging API(Insight) +# This document describes LINE Messaging API(Insight). +# +# The version of the OpenAPI document: 0.0.1 +# +# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). +# https://openapi-generator.tech +# Do not edit the class manually. + +module Line + module Bot + module V2 + module Insight + # Impression metrics for the whole rich menu. + class GetRichMenuInsightSummaryResponseImpression + # @!attribute [rw] metrics + # @return [GetRichMenuInsightSummaryResponseMetrics] + attr_accessor :metrics + + # @param metrics [GetRichMenuInsightSummaryResponseMetrics, Hash[Symbol, untyped]] + def initialize( + metrics:, + **dynamic_attributes + ) + + @metrics = metrics.is_a?(Line::Bot::V2::Insight::GetRichMenuInsightSummaryResponseMetrics) ? metrics : Line::Bot::V2::Insight::GetRichMenuInsightSummaryResponseMetrics.create(**metrics) + + dynamic_attributes.each do |key, value| + self.class.attr_accessor key + + if value.is_a?(Hash) + struct_klass = Struct.new(*value.keys.map(&:to_sym)) + struct_values = value.map { |_k, v| v.is_a?(Hash) ? Line::Bot::V2::Utils.hash_to_struct(v) : v } + instance_variable_set("@#{key}", struct_klass.new(*struct_values)) + else + instance_variable_set("@#{key}", value) + end + end + end + + # Create an instance of the class from a hash + # @param args [Hash] Hash containing all the required attributes + # @return [Line::Bot::V2::Insight::GetRichMenuInsightSummaryResponseImpression] Instance of the class + def self.create(args) + symbolized_args = Line::Bot::V2::Utils.deep_symbolize(args) + return new(**symbolized_args) # steep:ignore InsufficientKeywordArguments + end + + # @param other [Object] Object to compare + # @return [Boolean] true if the objects are equal, false otherwise + def ==(other) + return false unless self.class == other.class + + instance_variables.all? do |var| + instance_variable_get(var) == other.instance_variable_get(var) + end + end + + # @return [Integer] Hash code of the object + def hash + [self.class, *instance_variables.map { |var| instance_variable_get(var) }].hash + end + end + end + end + end +end diff --git a/lib/line/bot/v2/insight/model/get_rich_menu_insight_summary_response_metrics.rb b/lib/line/bot/v2/insight/model/get_rich_menu_insight_summary_response_metrics.rb new file mode 100644 index 00000000..bba615f6 --- /dev/null +++ b/lib/line/bot/v2/insight/model/get_rich_menu_insight_summary_response_metrics.rb @@ -0,0 +1,73 @@ +# LINE Messaging API(Insight) +# This document describes LINE Messaging API(Insight). +# +# The version of the OpenAPI document: 0.0.1 +# +# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). +# https://openapi-generator.tech +# Do not edit the class manually. + +module Line + module Bot + module V2 + module Insight + # Aggregated number of events and unique users over the whole period. + class GetRichMenuInsightSummaryResponseMetrics + # @!attribute [rw] count + # @return [Integer] Number of impressions or clicks. + attr_accessor :count + # @!attribute [rw] unique_users + # @return [Integer] Approximate number of unique users who triggered an impression or click. + attr_accessor :unique_users + + # @param count [Integer] Number of impressions or clicks. + # @param unique_users [Integer] Approximate number of unique users who triggered an impression or click. + def initialize( + count:, + unique_users:, + **dynamic_attributes + ) + + @count = count + @unique_users = unique_users + + dynamic_attributes.each do |key, value| + self.class.attr_accessor key + + if value.is_a?(Hash) + struct_klass = Struct.new(*value.keys.map(&:to_sym)) + struct_values = value.map { |_k, v| v.is_a?(Hash) ? Line::Bot::V2::Utils.hash_to_struct(v) : v } + instance_variable_set("@#{key}", struct_klass.new(*struct_values)) + else + instance_variable_set("@#{key}", value) + end + end + end + + # Create an instance of the class from a hash + # @param args [Hash] Hash containing all the required attributes + # @return [Line::Bot::V2::Insight::GetRichMenuInsightSummaryResponseMetrics] Instance of the class + def self.create(args) + symbolized_args = Line::Bot::V2::Utils.deep_symbolize(args) + return new(**symbolized_args) # steep:ignore InsufficientKeywordArguments + end + + # @param other [Object] Object to compare + # @return [Boolean] true if the objects are equal, false otherwise + def ==(other) + return false unless self.class == other.class + + instance_variables.all? do |var| + instance_variable_get(var) == other.instance_variable_get(var) + end + end + + # @return [Integer] Hash code of the object + def hash + [self.class, *instance_variables.map { |var| instance_variable_get(var) }].hash + end + end + end + end + end +end diff --git a/lib/line/bot/v2/manage_audience/model/audience_group.rb b/lib/line/bot/v2/manage_audience/model/audience_group.rb index 46f5655a..1da12f27 100644 --- a/lib/line/bot/v2/manage_audience/model/audience_group.rb +++ b/lib/line/bot/v2/manage_audience/model/audience_group.rb @@ -26,7 +26,7 @@ class AudienceGroup # @return [String,nil] ('IN_PROGRESS'|'READY'|'FAILED'|'EXPIRED'|'INACTIVE'|'ACTIVATING') attr_accessor :status # @!attribute [rw] failed_type - # @return [String,nil] ('AUDIENCE_GROUP_AUDIENCE_INSUFFICIENT'|'INTERNAL_ERROR'|'') + # @return [String,nil] ('AUDIENCE_GROUP_AUDIENCE_INSUFFICIENT'|'INTERNAL_ERROR') attr_accessor :failed_type # @!attribute [rw] audience_count # @return [Integer,nil] The number of users included in the audience. @@ -54,7 +54,7 @@ class AudienceGroup # @param type [String,nil] ('UPLOAD'|'CLICK'|'IMP'|'CHAT_TAG'|'FRIEND_PATH'|'RESERVATION'|'APP_EVENT'|'VIDEO_VIEW'|'WEBTRAFFIC'|'IMAGE_CLICK'|'RICHMENU_IMP'|'RICHMENU_CLICK'|'POP_AD_IMP'|'TRACKINGTAG_WEBTRAFFIC') # @param description [String,nil] The audience's name. # @param status [String,nil] ('IN_PROGRESS'|'READY'|'FAILED'|'EXPIRED'|'INACTIVE'|'ACTIVATING') - # @param failed_type [String,nil] ('AUDIENCE_GROUP_AUDIENCE_INSUFFICIENT'|'INTERNAL_ERROR'|'') + # @param failed_type [String,nil] ('AUDIENCE_GROUP_AUDIENCE_INSUFFICIENT'|'INTERNAL_ERROR') # @param audience_count [Integer,nil] The number of users included in the audience. # @param created [Integer,nil] When the audience was created (in UNIX time). # @param request_id [String,nil] The request ID that was specified when the audience was created. This is only included when `audienceGroup.type` is CLICK or IMP. diff --git a/line-openapi b/line-openapi index 82f108c6..6e4c2a2a 160000 --- a/line-openapi +++ b/line-openapi @@ -1 +1 @@ -Subproject commit 82f108c6a38f3b71a1bc9673486357d93fdb6597 +Subproject commit 6e4c2a2a1b7b059ea3920456d4f88d03fd8ef0bb diff --git a/sig/line/bot/v2/insight/.openapi-generator/FILES b/sig/line/bot/v2/insight/.openapi-generator/FILES index 1b435213..10dbf63b 100644 --- a/sig/line/bot/v2/insight/.openapi-generator/FILES +++ b/sig/line/bot/v2/insight/.openapi-generator/FILES @@ -13,6 +13,16 @@ model/get_message_event_response_message.rbs model/get_message_event_response_overview.rbs model/get_number_of_followers_response.rbs model/get_number_of_message_deliveries_response.rbs +model/get_rich_menu_insight_daily_response.rbs +model/get_rich_menu_insight_daily_response_bounds.rbs +model/get_rich_menu_insight_daily_response_click.rbs +model/get_rich_menu_insight_daily_response_daily_metrics.rbs +model/get_rich_menu_insight_daily_response_impression.rbs +model/get_rich_menu_insight_summary_response.rbs +model/get_rich_menu_insight_summary_response_bounds.rbs +model/get_rich_menu_insight_summary_response_click.rbs +model/get_rich_menu_insight_summary_response_impression.rbs +model/get_rich_menu_insight_summary_response_metrics.rbs model/get_statistics_per_unit_response.rbs model/get_statistics_per_unit_response_click.rbs model/get_statistics_per_unit_response_message.rbs diff --git a/sig/line/bot/v2/insight/api/insight_client.rbs b/sig/line/bot/v2/insight/api/insight_client.rbs index 1080560d..881d90d2 100644 --- a/sig/line/bot/v2/insight/api/insight_client.rbs +++ b/sig/line/bot/v2/insight/api/insight_client.rbs @@ -152,6 +152,98 @@ module Line | String? # otherwise ) + # Gets rich menu statistics broken down by day for the specified period, for a rich menu created via the Messaging API. Returns the daily impression count for the whole rich menu and the daily click count for each tappable area. When the total number of unique clicks during the period is below the privacy threshold, only `richMenuId` is returned and the other fields are omitted. + # This requests to GET https://api.line.me/v2/bot/insight/richmenu/{richMenuId}/daily + # This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase. + # + # @param rich_menu_id [String] ID of the rich menu created via the Messaging API. + # @param from [String] Start date of the aggregation period (inclusive). Must be within the most recent 3 years. Format: yyyyMMdd (e.g. 20260213) Time zone: UTC+9 + # @param to [String] End date of the aggregation period (inclusive). The end date can be specified for up to 99 days after the start date. Format: yyyyMMdd (e.g. 20260215) Time zone: UTC+9 + # @see https://developers.line.biz/en/reference/messaging-api/#get-rich-menu-insight-daily + # @return [Array(Line::Bot::V2::Insight::GetRichMenuInsightDailyResponse, Integer, Hash{String => String})] when HTTP status code is 200 + # @return [Array(Line::Bot::V2::Insight::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 400 + # @return [Array(Line::Bot::V2::Insight::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 404 + # @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself. + def get_rich_menu_insight_daily_with_http_info: ( + rich_menu_id: String, + from: String, + to: String + ) -> ( + [GetRichMenuInsightDailyResponse, 200, Hash[untyped, untyped]] # when HTTP status code is 200 + | [ErrorResponse, 400, Hash[untyped, untyped]] # when HTTP status code is 400 + | [ErrorResponse, 404, Hash[untyped, untyped]] # when HTTP status code is 404 + | [String?, Integer, Hash[untyped, untyped]] # otherwise + ) + + # Gets rich menu statistics broken down by day for the specified period, for a rich menu created via the Messaging API. Returns the daily impression count for the whole rich menu and the daily click count for each tappable area. When the total number of unique clicks during the period is below the privacy threshold, only `richMenuId` is returned and the other fields are omitted. + # This requests to GET https://api.line.me/v2/bot/insight/richmenu/{richMenuId}/daily + # When you want to get HTTP status code or response headers, use {#get_rich_menu_insight_daily_with_http_info} instead of this. + # + # @param rich_menu_id [String] ID of the rich menu created via the Messaging API. + # @param from [String] Start date of the aggregation period (inclusive). Must be within the most recent 3 years. Format: yyyyMMdd (e.g. 20260213) Time zone: UTC+9 + # @param to [String] End date of the aggregation period (inclusive). The end date can be specified for up to 99 days after the start date. Format: yyyyMMdd (e.g. 20260215) Time zone: UTC+9 + # @see https://developers.line.biz/en/reference/messaging-api/#get-rich-menu-insight-daily + # @return [Line::Bot::V2::Insight::GetRichMenuInsightDailyResponse] when HTTP status code is 200 + # @return [Line::Bot::V2::Insight::ErrorResponse] when HTTP status code is 400 + # @return [Line::Bot::V2::Insight::ErrorResponse] when HTTP status code is 404 + # @return [String, nil] when other HTTP status code is returned. This String is HTTP response body itself. + def get_rich_menu_insight_daily: ( + rich_menu_id: String, + from: String, + to: String + ) -> ( + GetRichMenuInsightDailyResponse # when HTTP status code is 200 + | ErrorResponse # when HTTP status code is 400 + | ErrorResponse # when HTTP status code is 404 + | String? # otherwise + ) + + # Gets a summary of rich menu statistics for the specified period, for a rich menu created via the Messaging API. Returns the total impression count for the whole rich menu and the click count for each tappable area, aggregated over the entire period as a single result. When the total number of unique clicks during the period is below the privacy threshold, only `richMenuId` is returned and the other fields are omitted. + # This requests to GET https://api.line.me/v2/bot/insight/richmenu/{richMenuId}/summary + # This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase. + # + # @param rich_menu_id [String] ID of the rich menu created via the Messaging API. + # @param from [String] Start date of the aggregation period (inclusive). Must be within the most recent 3 years. Format: yyyyMMdd (e.g. 20260213) Time zone: UTC+9 + # @param to [String] End date of the aggregation period (inclusive). The end date can be specified for up to 396 days after the start date. Format: yyyyMMdd (e.g. 20260215) Time zone: UTC+9 + # @see https://developers.line.biz/en/reference/messaging-api/#get-rich-menu-insight-summary + # @return [Array(Line::Bot::V2::Insight::GetRichMenuInsightSummaryResponse, Integer, Hash{String => String})] when HTTP status code is 200 + # @return [Array(Line::Bot::V2::Insight::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 400 + # @return [Array(Line::Bot::V2::Insight::ErrorResponse, Integer, Hash{String => String})] when HTTP status code is 404 + # @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself. + def get_rich_menu_insight_summary_with_http_info: ( + rich_menu_id: String, + from: String, + to: String + ) -> ( + [GetRichMenuInsightSummaryResponse, 200, Hash[untyped, untyped]] # when HTTP status code is 200 + | [ErrorResponse, 400, Hash[untyped, untyped]] # when HTTP status code is 400 + | [ErrorResponse, 404, Hash[untyped, untyped]] # when HTTP status code is 404 + | [String?, Integer, Hash[untyped, untyped]] # otherwise + ) + + # Gets a summary of rich menu statistics for the specified period, for a rich menu created via the Messaging API. Returns the total impression count for the whole rich menu and the click count for each tappable area, aggregated over the entire period as a single result. When the total number of unique clicks during the period is below the privacy threshold, only `richMenuId` is returned and the other fields are omitted. + # This requests to GET https://api.line.me/v2/bot/insight/richmenu/{richMenuId}/summary + # When you want to get HTTP status code or response headers, use {#get_rich_menu_insight_summary_with_http_info} instead of this. + # + # @param rich_menu_id [String] ID of the rich menu created via the Messaging API. + # @param from [String] Start date of the aggregation period (inclusive). Must be within the most recent 3 years. Format: yyyyMMdd (e.g. 20260213) Time zone: UTC+9 + # @param to [String] End date of the aggregation period (inclusive). The end date can be specified for up to 396 days after the start date. Format: yyyyMMdd (e.g. 20260215) Time zone: UTC+9 + # @see https://developers.line.biz/en/reference/messaging-api/#get-rich-menu-insight-summary + # @return [Line::Bot::V2::Insight::GetRichMenuInsightSummaryResponse] when HTTP status code is 200 + # @return [Line::Bot::V2::Insight::ErrorResponse] when HTTP status code is 400 + # @return [Line::Bot::V2::Insight::ErrorResponse] when HTTP status code is 404 + # @return [String, nil] when other HTTP status code is returned. This String is HTTP response body itself. + def get_rich_menu_insight_summary: ( + rich_menu_id: String, + from: String, + to: String + ) -> ( + GetRichMenuInsightSummaryResponse # when HTTP status code is 200 + | ErrorResponse # when HTTP status code is 400 + | ErrorResponse # when HTTP status code is 404 + | String? # otherwise + ) + # You can check the per-unit statistics of how users interact with push messages and multicast messages sent from your LINE Official Account. # This requests to GET https://api.line.me/v2/bot/insight/message/event/aggregation # This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase. diff --git a/sig/line/bot/v2/insight/model/get_rich_menu_insight_daily_response.rbs b/sig/line/bot/v2/insight/model/get_rich_menu_insight_daily_response.rbs new file mode 100644 index 00000000..a4bf6e95 --- /dev/null +++ b/sig/line/bot/v2/insight/model/get_rich_menu_insight_daily_response.rbs @@ -0,0 +1,52 @@ +# LINE Messaging API(Insight) +# This document describes LINE Messaging API(Insight). +# +# The version of the OpenAPI document: 0.0.1 +# +# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). +# https://openapi-generator.tech +# Do not edit the class manually. + +module Line + module Bot + module V2 + module Insight + # Daily impression and click statistics for a rich menu created via the Messaging API. + class GetRichMenuInsightDailyResponse + attr_accessor rich_menu_id: String + attr_accessor metrics_from: String? + attr_accessor metrics_to: String? + attr_accessor impression: GetRichMenuInsightDailyResponseImpression? + attr_accessor clicks: Array[GetRichMenuInsightDailyResponseClick]? + + + # @param rich_menu_id [String] Rich menu ID. + # @param metrics_from [String,nil] Start date (JST) of the period actually covered by the returned metrics. Format: yyyyMMdd (e.g. 20260213). + # @param metrics_to [String,nil] End date (JST) of the period actually covered by the returned metrics. Format: yyyyMMdd (e.g. 20260215). + # @param impression [GetRichMenuInsightDailyResponseImpression, Hash[Symbol, untyped], nil] + # @param clicks [Array[GetRichMenuInsightDailyResponseClick, Hash[Symbol, untyped]],nil] Daily click metrics for each tappable area of the rich menu. + def initialize: ( + rich_menu_id: String, + ?metrics_from: String?, + ?metrics_to: String?, + ?impression: GetRichMenuInsightDailyResponseImpression?| Hash[Symbol, untyped]?, + ?clicks: Array[GetRichMenuInsightDailyResponseClick| Hash[Symbol, untyped]]?, + **untyped dynamic_attributes + ) -> void + + # Create an instance of the class from a hash + # @param args [Hash] Hash containing all the required attributes + # @return [Line::Bot::V2::Insight::GetRichMenuInsightDailyResponse] Instance of the class + def self.create: (Hash[Symbol, untyped]) -> GetRichMenuInsightDailyResponse + + # @param other [Object] Object to compare + # @return [Boolean] true if the objects are equal, false otherwise + def ==: (untyped other) -> bool + + # @return [Integer] Hash code of the object + def hash: () -> Integer + end + end + end + end +end diff --git a/sig/line/bot/v2/insight/model/get_rich_menu_insight_daily_response_bounds.rbs b/sig/line/bot/v2/insight/model/get_rich_menu_insight_daily_response_bounds.rbs new file mode 100644 index 00000000..42bfd05a --- /dev/null +++ b/sig/line/bot/v2/insight/model/get_rich_menu_insight_daily_response_bounds.rbs @@ -0,0 +1,49 @@ +# LINE Messaging API(Insight) +# This document describes LINE Messaging API(Insight). +# +# The version of the OpenAPI document: 0.0.1 +# +# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). +# https://openapi-generator.tech +# Do not edit the class manually. + +module Line + module Bot + module V2 + module Insight + # Target area of the metrics, represented by the top-left coordinate, width, and height. + class GetRichMenuInsightDailyResponseBounds + attr_accessor x: Integer + attr_accessor y: Integer + attr_accessor width: Integer + attr_accessor height: Integer + + + # @param x [Integer] The x coordinate of the top-left corner of the target area. + # @param y [Integer] The y coordinate of the top-left corner of the target area. + # @param width [Integer] The width of the target area. + # @param height [Integer] The height of the target area. + def initialize: ( + x: Integer, + y: Integer, + width: Integer, + height: Integer, + **untyped dynamic_attributes + ) -> void + + # Create an instance of the class from a hash + # @param args [Hash] Hash containing all the required attributes + # @return [Line::Bot::V2::Insight::GetRichMenuInsightDailyResponseBounds] Instance of the class + def self.create: (Hash[Symbol, untyped]) -> GetRichMenuInsightDailyResponseBounds + + # @param other [Object] Object to compare + # @return [Boolean] true if the objects are equal, false otherwise + def ==: (untyped other) -> bool + + # @return [Integer] Hash code of the object + def hash: () -> Integer + end + end + end + end +end diff --git a/sig/line/bot/v2/insight/model/get_rich_menu_insight_daily_response_click.rbs b/sig/line/bot/v2/insight/model/get_rich_menu_insight_daily_response_click.rbs new file mode 100644 index 00000000..b0b26375 --- /dev/null +++ b/sig/line/bot/v2/insight/model/get_rich_menu_insight_daily_response_click.rbs @@ -0,0 +1,43 @@ +# LINE Messaging API(Insight) +# This document describes LINE Messaging API(Insight). +# +# The version of the OpenAPI document: 0.0.1 +# +# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). +# https://openapi-generator.tech +# Do not edit the class manually. + +module Line + module Bot + module V2 + module Insight + # Daily click metrics for a single tappable area of the rich menu. + class GetRichMenuInsightDailyResponseClick + attr_accessor bounds: GetRichMenuInsightDailyResponseBounds + attr_accessor metrics: Array[GetRichMenuInsightDailyResponseDailyMetrics] + + + # @param bounds [GetRichMenuInsightDailyResponseBounds, Hash[Symbol, untyped]] + # @param metrics [Array[GetRichMenuInsightDailyResponseDailyMetrics, Hash[Symbol, untyped]]] Per-day click metrics for the target area. + def initialize: ( + bounds: GetRichMenuInsightDailyResponseBounds| Hash[Symbol, untyped], + metrics: Array[GetRichMenuInsightDailyResponseDailyMetrics| Hash[Symbol, untyped]], + **untyped dynamic_attributes + ) -> void + + # Create an instance of the class from a hash + # @param args [Hash] Hash containing all the required attributes + # @return [Line::Bot::V2::Insight::GetRichMenuInsightDailyResponseClick] Instance of the class + def self.create: (Hash[Symbol, untyped]) -> GetRichMenuInsightDailyResponseClick + + # @param other [Object] Object to compare + # @return [Boolean] true if the objects are equal, false otherwise + def ==: (untyped other) -> bool + + # @return [Integer] Hash code of the object + def hash: () -> Integer + end + end + end + end +end diff --git a/sig/line/bot/v2/insight/model/get_rich_menu_insight_daily_response_daily_metrics.rbs b/sig/line/bot/v2/insight/model/get_rich_menu_insight_daily_response_daily_metrics.rbs new file mode 100644 index 00000000..e7ab8ad1 --- /dev/null +++ b/sig/line/bot/v2/insight/model/get_rich_menu_insight_daily_response_daily_metrics.rbs @@ -0,0 +1,46 @@ +# LINE Messaging API(Insight) +# This document describes LINE Messaging API(Insight). +# +# The version of the OpenAPI document: 0.0.1 +# +# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). +# https://openapi-generator.tech +# Do not edit the class manually. + +module Line + module Bot + module V2 + module Insight + # Aggregated number of events and unique users for a single day. + class GetRichMenuInsightDailyResponseDailyMetrics + attr_accessor date: String + attr_accessor count: Integer + attr_accessor unique_users: Integer + + + # @param date [String] The date (JST) of these metrics. Format: yyyyMMdd (e.g. 20260213). + # @param count [Integer] Number of impressions or clicks on this day. + # @param unique_users [Integer] Approximate number of unique users who triggered an impression or click on this day. + def initialize: ( + date: String, + count: Integer, + unique_users: Integer, + **untyped dynamic_attributes + ) -> void + + # Create an instance of the class from a hash + # @param args [Hash] Hash containing all the required attributes + # @return [Line::Bot::V2::Insight::GetRichMenuInsightDailyResponseDailyMetrics] Instance of the class + def self.create: (Hash[Symbol, untyped]) -> GetRichMenuInsightDailyResponseDailyMetrics + + # @param other [Object] Object to compare + # @return [Boolean] true if the objects are equal, false otherwise + def ==: (untyped other) -> bool + + # @return [Integer] Hash code of the object + def hash: () -> Integer + end + end + end + end +end diff --git a/sig/line/bot/v2/insight/model/get_rich_menu_insight_daily_response_impression.rbs b/sig/line/bot/v2/insight/model/get_rich_menu_insight_daily_response_impression.rbs new file mode 100644 index 00000000..b8b27f01 --- /dev/null +++ b/sig/line/bot/v2/insight/model/get_rich_menu_insight_daily_response_impression.rbs @@ -0,0 +1,40 @@ +# LINE Messaging API(Insight) +# This document describes LINE Messaging API(Insight). +# +# The version of the OpenAPI document: 0.0.1 +# +# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). +# https://openapi-generator.tech +# Do not edit the class manually. + +module Line + module Bot + module V2 + module Insight + # Daily impression metrics for the whole rich menu. + class GetRichMenuInsightDailyResponseImpression + attr_accessor metrics: Array[GetRichMenuInsightDailyResponseDailyMetrics] + + + # @param metrics [Array[GetRichMenuInsightDailyResponseDailyMetrics, Hash[Symbol, untyped]]] Per-day impression metrics. + def initialize: ( + metrics: Array[GetRichMenuInsightDailyResponseDailyMetrics| Hash[Symbol, untyped]], + **untyped dynamic_attributes + ) -> void + + # Create an instance of the class from a hash + # @param args [Hash] Hash containing all the required attributes + # @return [Line::Bot::V2::Insight::GetRichMenuInsightDailyResponseImpression] Instance of the class + def self.create: (Hash[Symbol, untyped]) -> GetRichMenuInsightDailyResponseImpression + + # @param other [Object] Object to compare + # @return [Boolean] true if the objects are equal, false otherwise + def ==: (untyped other) -> bool + + # @return [Integer] Hash code of the object + def hash: () -> Integer + end + end + end + end +end diff --git a/sig/line/bot/v2/insight/model/get_rich_menu_insight_summary_response.rbs b/sig/line/bot/v2/insight/model/get_rich_menu_insight_summary_response.rbs new file mode 100644 index 00000000..bc952157 --- /dev/null +++ b/sig/line/bot/v2/insight/model/get_rich_menu_insight_summary_response.rbs @@ -0,0 +1,52 @@ +# LINE Messaging API(Insight) +# This document describes LINE Messaging API(Insight). +# +# The version of the OpenAPI document: 0.0.1 +# +# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). +# https://openapi-generator.tech +# Do not edit the class manually. + +module Line + module Bot + module V2 + module Insight + # Summary of impression and click statistics for a rich menu created via the Messaging API. + class GetRichMenuInsightSummaryResponse + attr_accessor rich_menu_id: String + attr_accessor metrics_from: String? + attr_accessor metrics_to: String? + attr_accessor impression: GetRichMenuInsightSummaryResponseImpression? + attr_accessor clicks: Array[GetRichMenuInsightSummaryResponseClick]? + + + # @param rich_menu_id [String] Rich menu ID. + # @param metrics_from [String,nil] Start date (JST) of the period actually covered by the returned metrics. Format: yyyyMMdd (e.g. 20260213). + # @param metrics_to [String,nil] End date (JST) of the period actually covered by the returned metrics. Format: yyyyMMdd (e.g. 20260215). + # @param impression [GetRichMenuInsightSummaryResponseImpression, Hash[Symbol, untyped], nil] + # @param clicks [Array[GetRichMenuInsightSummaryResponseClick, Hash[Symbol, untyped]],nil] Click metrics for each tappable area of the rich menu. + def initialize: ( + rich_menu_id: String, + ?metrics_from: String?, + ?metrics_to: String?, + ?impression: GetRichMenuInsightSummaryResponseImpression?| Hash[Symbol, untyped]?, + ?clicks: Array[GetRichMenuInsightSummaryResponseClick| Hash[Symbol, untyped]]?, + **untyped dynamic_attributes + ) -> void + + # Create an instance of the class from a hash + # @param args [Hash] Hash containing all the required attributes + # @return [Line::Bot::V2::Insight::GetRichMenuInsightSummaryResponse] Instance of the class + def self.create: (Hash[Symbol, untyped]) -> GetRichMenuInsightSummaryResponse + + # @param other [Object] Object to compare + # @return [Boolean] true if the objects are equal, false otherwise + def ==: (untyped other) -> bool + + # @return [Integer] Hash code of the object + def hash: () -> Integer + end + end + end + end +end diff --git a/sig/line/bot/v2/insight/model/get_rich_menu_insight_summary_response_bounds.rbs b/sig/line/bot/v2/insight/model/get_rich_menu_insight_summary_response_bounds.rbs new file mode 100644 index 00000000..7705595c --- /dev/null +++ b/sig/line/bot/v2/insight/model/get_rich_menu_insight_summary_response_bounds.rbs @@ -0,0 +1,49 @@ +# LINE Messaging API(Insight) +# This document describes LINE Messaging API(Insight). +# +# The version of the OpenAPI document: 0.0.1 +# +# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). +# https://openapi-generator.tech +# Do not edit the class manually. + +module Line + module Bot + module V2 + module Insight + # Target area of the metrics, represented by the top-left coordinate, width, and height. + class GetRichMenuInsightSummaryResponseBounds + attr_accessor x: Integer + attr_accessor y: Integer + attr_accessor width: Integer + attr_accessor height: Integer + + + # @param x [Integer] The x coordinate of the top-left corner of the target area. + # @param y [Integer] The y coordinate of the top-left corner of the target area. + # @param width [Integer] The width of the target area. + # @param height [Integer] The height of the target area. + def initialize: ( + x: Integer, + y: Integer, + width: Integer, + height: Integer, + **untyped dynamic_attributes + ) -> void + + # Create an instance of the class from a hash + # @param args [Hash] Hash containing all the required attributes + # @return [Line::Bot::V2::Insight::GetRichMenuInsightSummaryResponseBounds] Instance of the class + def self.create: (Hash[Symbol, untyped]) -> GetRichMenuInsightSummaryResponseBounds + + # @param other [Object] Object to compare + # @return [Boolean] true if the objects are equal, false otherwise + def ==: (untyped other) -> bool + + # @return [Integer] Hash code of the object + def hash: () -> Integer + end + end + end + end +end diff --git a/sig/line/bot/v2/insight/model/get_rich_menu_insight_summary_response_click.rbs b/sig/line/bot/v2/insight/model/get_rich_menu_insight_summary_response_click.rbs new file mode 100644 index 00000000..625cec60 --- /dev/null +++ b/sig/line/bot/v2/insight/model/get_rich_menu_insight_summary_response_click.rbs @@ -0,0 +1,43 @@ +# LINE Messaging API(Insight) +# This document describes LINE Messaging API(Insight). +# +# The version of the OpenAPI document: 0.0.1 +# +# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). +# https://openapi-generator.tech +# Do not edit the class manually. + +module Line + module Bot + module V2 + module Insight + # Click metrics for a single tappable area of the rich menu. + class GetRichMenuInsightSummaryResponseClick + attr_accessor bounds: GetRichMenuInsightSummaryResponseBounds + attr_accessor metrics: GetRichMenuInsightSummaryResponseMetrics + + + # @param bounds [GetRichMenuInsightSummaryResponseBounds, Hash[Symbol, untyped]] + # @param metrics [GetRichMenuInsightSummaryResponseMetrics, Hash[Symbol, untyped]] + def initialize: ( + bounds: GetRichMenuInsightSummaryResponseBounds| Hash[Symbol, untyped], + metrics: GetRichMenuInsightSummaryResponseMetrics| Hash[Symbol, untyped], + **untyped dynamic_attributes + ) -> void + + # Create an instance of the class from a hash + # @param args [Hash] Hash containing all the required attributes + # @return [Line::Bot::V2::Insight::GetRichMenuInsightSummaryResponseClick] Instance of the class + def self.create: (Hash[Symbol, untyped]) -> GetRichMenuInsightSummaryResponseClick + + # @param other [Object] Object to compare + # @return [Boolean] true if the objects are equal, false otherwise + def ==: (untyped other) -> bool + + # @return [Integer] Hash code of the object + def hash: () -> Integer + end + end + end + end +end diff --git a/sig/line/bot/v2/insight/model/get_rich_menu_insight_summary_response_impression.rbs b/sig/line/bot/v2/insight/model/get_rich_menu_insight_summary_response_impression.rbs new file mode 100644 index 00000000..ec27b062 --- /dev/null +++ b/sig/line/bot/v2/insight/model/get_rich_menu_insight_summary_response_impression.rbs @@ -0,0 +1,40 @@ +# LINE Messaging API(Insight) +# This document describes LINE Messaging API(Insight). +# +# The version of the OpenAPI document: 0.0.1 +# +# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). +# https://openapi-generator.tech +# Do not edit the class manually. + +module Line + module Bot + module V2 + module Insight + # Impression metrics for the whole rich menu. + class GetRichMenuInsightSummaryResponseImpression + attr_accessor metrics: GetRichMenuInsightSummaryResponseMetrics + + + # @param metrics [GetRichMenuInsightSummaryResponseMetrics, Hash[Symbol, untyped]] + def initialize: ( + metrics: GetRichMenuInsightSummaryResponseMetrics| Hash[Symbol, untyped], + **untyped dynamic_attributes + ) -> void + + # Create an instance of the class from a hash + # @param args [Hash] Hash containing all the required attributes + # @return [Line::Bot::V2::Insight::GetRichMenuInsightSummaryResponseImpression] Instance of the class + def self.create: (Hash[Symbol, untyped]) -> GetRichMenuInsightSummaryResponseImpression + + # @param other [Object] Object to compare + # @return [Boolean] true if the objects are equal, false otherwise + def ==: (untyped other) -> bool + + # @return [Integer] Hash code of the object + def hash: () -> Integer + end + end + end + end +end diff --git a/sig/line/bot/v2/insight/model/get_rich_menu_insight_summary_response_metrics.rbs b/sig/line/bot/v2/insight/model/get_rich_menu_insight_summary_response_metrics.rbs new file mode 100644 index 00000000..47ba4073 --- /dev/null +++ b/sig/line/bot/v2/insight/model/get_rich_menu_insight_summary_response_metrics.rbs @@ -0,0 +1,43 @@ +# LINE Messaging API(Insight) +# This document describes LINE Messaging API(Insight). +# +# The version of the OpenAPI document: 0.0.1 +# +# NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). +# https://openapi-generator.tech +# Do not edit the class manually. + +module Line + module Bot + module V2 + module Insight + # Aggregated number of events and unique users over the whole period. + class GetRichMenuInsightSummaryResponseMetrics + attr_accessor count: Integer + attr_accessor unique_users: Integer + + + # @param count [Integer] Number of impressions or clicks. + # @param unique_users [Integer] Approximate number of unique users who triggered an impression or click. + def initialize: ( + count: Integer, + unique_users: Integer, + **untyped dynamic_attributes + ) -> void + + # Create an instance of the class from a hash + # @param args [Hash] Hash containing all the required attributes + # @return [Line::Bot::V2::Insight::GetRichMenuInsightSummaryResponseMetrics] Instance of the class + def self.create: (Hash[Symbol, untyped]) -> GetRichMenuInsightSummaryResponseMetrics + + # @param other [Object] Object to compare + # @return [Boolean] true if the objects are equal, false otherwise + def ==: (untyped other) -> bool + + # @return [Integer] Hash code of the object + def hash: () -> Integer + end + end + end + end +end diff --git a/sig/line/bot/v2/manage_audience/model/audience_group.rbs b/sig/line/bot/v2/manage_audience/model/audience_group.rbs index d62997bb..0bb2c0de 100644 --- a/sig/line/bot/v2/manage_audience/model/audience_group.rbs +++ b/sig/line/bot/v2/manage_audience/model/audience_group.rbs @@ -17,7 +17,7 @@ module Line attr_accessor type: 'UPLOAD'|'CLICK'|'IMP'|'CHAT_TAG'|'FRIEND_PATH'|'RESERVATION'|'APP_EVENT'|'VIDEO_VIEW'|'WEBTRAFFIC'|'IMAGE_CLICK'|'RICHMENU_IMP'|'RICHMENU_CLICK'|'POP_AD_IMP'|'TRACKINGTAG_WEBTRAFFIC'? attr_accessor description: String? attr_accessor status: 'IN_PROGRESS'|'READY'|'FAILED'|'EXPIRED'|'INACTIVE'|'ACTIVATING'? - attr_accessor failed_type: 'AUDIENCE_GROUP_AUDIENCE_INSUFFICIENT'|'INTERNAL_ERROR'|''? + attr_accessor failed_type: 'AUDIENCE_GROUP_AUDIENCE_INSUFFICIENT'|'INTERNAL_ERROR'? attr_accessor audience_count: Integer? attr_accessor created: Integer? attr_accessor request_id: String? @@ -31,7 +31,7 @@ module Line # @param type [String,nil] ('UPLOAD'|'CLICK'|'IMP'|'CHAT_TAG'|'FRIEND_PATH'|'RESERVATION'|'APP_EVENT'|'VIDEO_VIEW'|'WEBTRAFFIC'|'IMAGE_CLICK'|'RICHMENU_IMP'|'RICHMENU_CLICK'|'POP_AD_IMP'|'TRACKINGTAG_WEBTRAFFIC') # @param description [String,nil] The audience's name. # @param status [String,nil] ('IN_PROGRESS'|'READY'|'FAILED'|'EXPIRED'|'INACTIVE'|'ACTIVATING') - # @param failed_type [String,nil] ('AUDIENCE_GROUP_AUDIENCE_INSUFFICIENT'|'INTERNAL_ERROR'|'') + # @param failed_type [String,nil] ('AUDIENCE_GROUP_AUDIENCE_INSUFFICIENT'|'INTERNAL_ERROR') # @param audience_count [Integer,nil] The number of users included in the audience. # @param created [Integer,nil] When the audience was created (in UNIX time). # @param request_id [String,nil] The request ID that was specified when the audience was created. This is only included when `audienceGroup.type` is CLICK or IMP. @@ -44,7 +44,7 @@ module Line ?type: 'UPLOAD'|'CLICK'|'IMP'|'CHAT_TAG'|'FRIEND_PATH'|'RESERVATION'|'APP_EVENT'|'VIDEO_VIEW'|'WEBTRAFFIC'|'IMAGE_CLICK'|'RICHMENU_IMP'|'RICHMENU_CLICK'|'POP_AD_IMP'|'TRACKINGTAG_WEBTRAFFIC'?, ?description: String?, ?status: 'IN_PROGRESS'|'READY'|'FAILED'|'EXPIRED'|'INACTIVE'|'ACTIVATING'?, - ?failed_type: 'AUDIENCE_GROUP_AUDIENCE_INSUFFICIENT'|'INTERNAL_ERROR'|''?, + ?failed_type: 'AUDIENCE_GROUP_AUDIENCE_INSUFFICIENT'|'INTERNAL_ERROR'?, ?audience_count: Integer?, ?created: Integer?, ?request_id: String?,