line-bot-api 2.8.1 → 2.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (142) hide show
  1. checksums.yaml +4 -4
  2. data/lib/line/bot/v2/channel_access_token/api/channel_access_token_client.rb +2 -2
  3. data/lib/line/bot/v2/channel_access_token/model/error_response.rb +1 -0
  4. data/lib/line/bot/v2/channel_access_token/model/verify_channel_access_token_response.rb +1 -0
  5. data/lib/line/bot/v2/insight/api/insight_client.rb +166 -0
  6. data/lib/line/bot/v2/insight/core.rb +10 -0
  7. data/lib/line/bot/v2/insight/model/age_tile.rb +1 -0
  8. data/lib/line/bot/v2/insight/model/app_type_tile.rb +1 -0
  9. data/lib/line/bot/v2/insight/model/area_tile.rb +1 -0
  10. data/lib/line/bot/v2/insight/model/error_detail.rb +1 -0
  11. data/lib/line/bot/v2/insight/model/gender_tile.rb +1 -0
  12. data/lib/line/bot/v2/insight/model/get_message_event_response_click.rb +1 -0
  13. data/lib/line/bot/v2/insight/model/get_message_event_response_message.rb +1 -0
  14. data/lib/line/bot/v2/insight/model/get_message_event_response_overview.rb +1 -0
  15. data/lib/line/bot/v2/insight/model/get_rich_menu_insight_daily_response.rb +97 -0
  16. data/lib/line/bot/v2/insight/model/get_rich_menu_insight_daily_response_bounds.rb +85 -0
  17. data/lib/line/bot/v2/insight/model/get_rich_menu_insight_daily_response_click.rb +79 -0
  18. data/lib/line/bot/v2/insight/model/get_rich_menu_insight_daily_response_daily_metrics.rb +79 -0
  19. data/lib/line/bot/v2/insight/model/get_rich_menu_insight_daily_response_impression.rb +73 -0
  20. data/lib/line/bot/v2/insight/model/get_rich_menu_insight_summary_response.rb +97 -0
  21. data/lib/line/bot/v2/insight/model/get_rich_menu_insight_summary_response_bounds.rb +85 -0
  22. data/lib/line/bot/v2/insight/model/get_rich_menu_insight_summary_response_click.rb +73 -0
  23. data/lib/line/bot/v2/insight/model/get_rich_menu_insight_summary_response_impression.rb +67 -0
  24. data/lib/line/bot/v2/insight/model/get_rich_menu_insight_summary_response_metrics.rb +73 -0
  25. data/lib/line/bot/v2/insight/model/subscription_period_tile.rb +1 -0
  26. data/lib/line/bot/v2/liff/model/add_liff_app_response.rb +1 -0
  27. data/lib/line/bot/v2/liff/model/get_all_liff_apps_response.rb +1 -0
  28. data/lib/line/bot/v2/liff/model/liff_app.rb +1 -0
  29. data/lib/line/bot/v2/liff/model/liff_features.rb +1 -0
  30. data/lib/line/bot/v2/manage_audience/model/audience_group.rb +2 -2
  31. data/lib/line/bot/v2/messaging_api/model/rich_menu_response.rb +1 -0
  32. data/lib/line/bot/v2/module_attach/model/attach_module_response.rb +1 -0
  33. data/lib/line/bot/v2/webhook/model/account_link_event.rb +1 -0
  34. data/lib/line/bot/v2/webhook/model/activated_event.rb +1 -0
  35. data/lib/line/bot/v2/webhook/model/attached_module_content.rb +1 -0
  36. data/lib/line/bot/v2/webhook/model/audio_message_content.rb +1 -0
  37. data/lib/line/bot/v2/webhook/model/beacon_content.rb +1 -0
  38. data/lib/line/bot/v2/webhook/model/beacon_event.rb +1 -0
  39. data/lib/line/bot/v2/webhook/model/bot_resumed_event.rb +1 -0
  40. data/lib/line/bot/v2/webhook/model/bot_suspended_event.rb +1 -0
  41. data/lib/line/bot/v2/webhook/model/chat_control.rb +1 -0
  42. data/lib/line/bot/v2/webhook/model/deactivated_event.rb +1 -0
  43. data/lib/line/bot/v2/webhook/model/detached_module_content.rb +1 -0
  44. data/lib/line/bot/v2/webhook/model/file_message_content.rb +1 -0
  45. data/lib/line/bot/v2/webhook/model/follow_detail.rb +1 -0
  46. data/lib/line/bot/v2/webhook/model/follow_event.rb +1 -0
  47. data/lib/line/bot/v2/webhook/model/image_message_content.rb +1 -0
  48. data/lib/line/bot/v2/webhook/model/join_event.rb +1 -0
  49. data/lib/line/bot/v2/webhook/model/joined_members.rb +1 -0
  50. data/lib/line/bot/v2/webhook/model/leave_event.rb +1 -0
  51. data/lib/line/bot/v2/webhook/model/left_members.rb +1 -0
  52. data/lib/line/bot/v2/webhook/model/link_content.rb +1 -0
  53. data/lib/line/bot/v2/webhook/model/location_message_content.rb +1 -0
  54. data/lib/line/bot/v2/webhook/model/member_joined_event.rb +1 -0
  55. data/lib/line/bot/v2/webhook/model/member_left_event.rb +1 -0
  56. data/lib/line/bot/v2/webhook/model/membership_content.rb +1 -0
  57. data/lib/line/bot/v2/webhook/model/membership_event.rb +1 -0
  58. data/lib/line/bot/v2/webhook/model/message_event.rb +1 -0
  59. data/lib/line/bot/v2/webhook/model/module_content.rb +1 -0
  60. data/lib/line/bot/v2/webhook/model/module_event.rb +1 -0
  61. data/lib/line/bot/v2/webhook/model/pnp_delivery.rb +1 -0
  62. data/lib/line/bot/v2/webhook/model/pnp_delivery_completion_event.rb +1 -0
  63. data/lib/line/bot/v2/webhook/model/postback_content.rb +1 -0
  64. data/lib/line/bot/v2/webhook/model/postback_event.rb +1 -0
  65. data/lib/line/bot/v2/webhook/model/text_message_content.rb +1 -0
  66. data/lib/line/bot/v2/webhook/model/unfollow_event.rb +1 -0
  67. data/lib/line/bot/v2/webhook/model/unsend_detail.rb +1 -0
  68. data/lib/line/bot/v2/webhook/model/unsend_event.rb +1 -0
  69. data/lib/line/bot/v2/webhook/model/video_message_content.rb +1 -0
  70. data/lib/line/bot/v2/webhook/model/video_play_complete.rb +1 -0
  71. data/lib/line/bot/v2/webhook/model/video_play_complete_event.rb +1 -0
  72. data/lib/line/bot/version.rb +1 -1
  73. data/sig/line/bot/v2/channel_access_token/api/channel_access_token_client.rbs +2 -2
  74. data/sig/line/bot/v2/channel_access_token/model/error_response.rbs +1 -0
  75. data/sig/line/bot/v2/channel_access_token/model/verify_channel_access_token_response.rbs +1 -0
  76. data/sig/line/bot/v2/insight/api/insight_client.rbs +92 -0
  77. data/sig/line/bot/v2/insight/model/age_tile.rbs +1 -0
  78. data/sig/line/bot/v2/insight/model/app_type_tile.rbs +1 -0
  79. data/sig/line/bot/v2/insight/model/area_tile.rbs +1 -0
  80. data/sig/line/bot/v2/insight/model/error_detail.rbs +1 -0
  81. data/sig/line/bot/v2/insight/model/gender_tile.rbs +1 -0
  82. data/sig/line/bot/v2/insight/model/get_message_event_response_click.rbs +1 -0
  83. data/sig/line/bot/v2/insight/model/get_message_event_response_message.rbs +1 -0
  84. data/sig/line/bot/v2/insight/model/get_message_event_response_overview.rbs +1 -0
  85. data/sig/line/bot/v2/insight/model/get_rich_menu_insight_daily_response.rbs +52 -0
  86. data/sig/line/bot/v2/insight/model/get_rich_menu_insight_daily_response_bounds.rbs +49 -0
  87. data/sig/line/bot/v2/insight/model/get_rich_menu_insight_daily_response_click.rbs +43 -0
  88. data/sig/line/bot/v2/insight/model/get_rich_menu_insight_daily_response_daily_metrics.rbs +46 -0
  89. data/sig/line/bot/v2/insight/model/get_rich_menu_insight_daily_response_impression.rbs +40 -0
  90. data/sig/line/bot/v2/insight/model/get_rich_menu_insight_summary_response.rbs +52 -0
  91. data/sig/line/bot/v2/insight/model/get_rich_menu_insight_summary_response_bounds.rbs +49 -0
  92. data/sig/line/bot/v2/insight/model/get_rich_menu_insight_summary_response_click.rbs +43 -0
  93. data/sig/line/bot/v2/insight/model/get_rich_menu_insight_summary_response_impression.rbs +40 -0
  94. data/sig/line/bot/v2/insight/model/get_rich_menu_insight_summary_response_metrics.rbs +43 -0
  95. data/sig/line/bot/v2/insight/model/subscription_period_tile.rbs +1 -0
  96. data/sig/line/bot/v2/liff/model/add_liff_app_response.rbs +1 -0
  97. data/sig/line/bot/v2/liff/model/get_all_liff_apps_response.rbs +1 -0
  98. data/sig/line/bot/v2/liff/model/liff_app.rbs +1 -0
  99. data/sig/line/bot/v2/liff/model/liff_features.rbs +1 -0
  100. data/sig/line/bot/v2/manage_audience/model/audience_group.rbs +3 -3
  101. data/sig/line/bot/v2/messaging_api/model/rich_menu_response.rbs +1 -0
  102. data/sig/line/bot/v2/module_attach/model/attach_module_response.rbs +1 -0
  103. data/sig/line/bot/v2/webhook/model/account_link_event.rbs +1 -0
  104. data/sig/line/bot/v2/webhook/model/activated_event.rbs +1 -0
  105. data/sig/line/bot/v2/webhook/model/attached_module_content.rbs +1 -0
  106. data/sig/line/bot/v2/webhook/model/audio_message_content.rbs +1 -0
  107. data/sig/line/bot/v2/webhook/model/beacon_content.rbs +1 -0
  108. data/sig/line/bot/v2/webhook/model/beacon_event.rbs +1 -0
  109. data/sig/line/bot/v2/webhook/model/bot_resumed_event.rbs +1 -0
  110. data/sig/line/bot/v2/webhook/model/bot_suspended_event.rbs +1 -0
  111. data/sig/line/bot/v2/webhook/model/chat_control.rbs +1 -0
  112. data/sig/line/bot/v2/webhook/model/deactivated_event.rbs +1 -0
  113. data/sig/line/bot/v2/webhook/model/detached_module_content.rbs +1 -0
  114. data/sig/line/bot/v2/webhook/model/file_message_content.rbs +1 -0
  115. data/sig/line/bot/v2/webhook/model/follow_detail.rbs +1 -0
  116. data/sig/line/bot/v2/webhook/model/follow_event.rbs +1 -0
  117. data/sig/line/bot/v2/webhook/model/image_message_content.rbs +1 -0
  118. data/sig/line/bot/v2/webhook/model/join_event.rbs +1 -0
  119. data/sig/line/bot/v2/webhook/model/joined_members.rbs +1 -0
  120. data/sig/line/bot/v2/webhook/model/leave_event.rbs +1 -0
  121. data/sig/line/bot/v2/webhook/model/left_members.rbs +1 -0
  122. data/sig/line/bot/v2/webhook/model/link_content.rbs +1 -0
  123. data/sig/line/bot/v2/webhook/model/location_message_content.rbs +1 -0
  124. data/sig/line/bot/v2/webhook/model/member_joined_event.rbs +1 -0
  125. data/sig/line/bot/v2/webhook/model/member_left_event.rbs +1 -0
  126. data/sig/line/bot/v2/webhook/model/membership_content.rbs +1 -0
  127. data/sig/line/bot/v2/webhook/model/membership_event.rbs +1 -0
  128. data/sig/line/bot/v2/webhook/model/message_event.rbs +1 -0
  129. data/sig/line/bot/v2/webhook/model/module_content.rbs +1 -0
  130. data/sig/line/bot/v2/webhook/model/module_event.rbs +1 -0
  131. data/sig/line/bot/v2/webhook/model/pnp_delivery.rbs +1 -0
  132. data/sig/line/bot/v2/webhook/model/pnp_delivery_completion_event.rbs +1 -0
  133. data/sig/line/bot/v2/webhook/model/postback_content.rbs +1 -0
  134. data/sig/line/bot/v2/webhook/model/postback_event.rbs +1 -0
  135. data/sig/line/bot/v2/webhook/model/text_message_content.rbs +1 -0
  136. data/sig/line/bot/v2/webhook/model/unfollow_event.rbs +1 -0
  137. data/sig/line/bot/v2/webhook/model/unsend_detail.rbs +1 -0
  138. data/sig/line/bot/v2/webhook/model/unsend_event.rbs +1 -0
  139. data/sig/line/bot/v2/webhook/model/video_message_content.rbs +1 -0
  140. data/sig/line/bot/v2/webhook/model/video_play_complete.rbs +1 -0
  141. data/sig/line/bot/v2/webhook/model/video_play_complete_event.rbs +1 -0
  142. metadata +21 -1
@@ -0,0 +1,73 @@
1
+ # LINE Messaging API(Insight)
2
+ # This document describes LINE Messaging API(Insight).
3
+ #
4
+ # The version of the OpenAPI document: 0.0.1
5
+ #
6
+ # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
7
+ # https://openapi-generator.tech
8
+ # Do not edit the class manually.
9
+
10
+ module Line
11
+ module Bot
12
+ module V2
13
+ module Insight
14
+ # Daily impression metrics for the whole rich menu.
15
+ class GetRichMenuInsightDailyResponseImpression
16
+ # @!attribute [rw] metrics
17
+ # @return [Array[GetRichMenuInsightDailyResponseDailyMetrics]] Per-day impression metrics.
18
+ attr_accessor :metrics
19
+
20
+ # @param metrics [Array[GetRichMenuInsightDailyResponseDailyMetrics, Hash[Symbol, untyped]]] Per-day impression metrics.
21
+ def initialize(
22
+ metrics:,
23
+ **dynamic_attributes
24
+ )
25
+
26
+ @metrics = metrics.map do |item|
27
+ if item.is_a?(Hash)
28
+ Line::Bot::V2::Insight::GetRichMenuInsightDailyResponseDailyMetrics.create(**item)
29
+ else
30
+ item
31
+ end
32
+ end
33
+
34
+ dynamic_attributes.each do |key, value|
35
+ self.class.attr_accessor key
36
+
37
+ if value.is_a?(Hash)
38
+ struct_klass = Struct.new(*value.keys.map(&:to_sym))
39
+ struct_values = value.map { |_k, v| v.is_a?(Hash) ? Line::Bot::V2::Utils.hash_to_struct(v) : v }
40
+ instance_variable_set("@#{key}", struct_klass.new(*struct_values))
41
+ else
42
+ instance_variable_set("@#{key}", value)
43
+ end
44
+ end
45
+ end
46
+
47
+ # Create an instance of the class from a hash
48
+ # @param args [Hash] Hash containing all the required attributes
49
+ # @return [Line::Bot::V2::Insight::GetRichMenuInsightDailyResponseImpression] Instance of the class
50
+ def self.create(args)
51
+ symbolized_args = Line::Bot::V2::Utils.deep_symbolize(args)
52
+ return new(**symbolized_args) # steep:ignore InsufficientKeywordArguments
53
+ end
54
+
55
+ # @param other [Object] Object to compare
56
+ # @return [Boolean] true if the objects are equal, false otherwise
57
+ def ==(other)
58
+ return false unless self.class == other.class
59
+
60
+ instance_variables.all? do |var|
61
+ instance_variable_get(var) == other.instance_variable_get(var)
62
+ end
63
+ end
64
+
65
+ # @return [Integer] Hash code of the object
66
+ def hash
67
+ [self.class, *instance_variables.map { |var| instance_variable_get(var) }].hash
68
+ end
69
+ end
70
+ end
71
+ end
72
+ end
73
+ end
@@ -0,0 +1,97 @@
1
+ # LINE Messaging API(Insight)
2
+ # This document describes LINE Messaging API(Insight).
3
+ #
4
+ # The version of the OpenAPI document: 0.0.1
5
+ #
6
+ # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
7
+ # https://openapi-generator.tech
8
+ # Do not edit the class manually.
9
+
10
+ module Line
11
+ module Bot
12
+ module V2
13
+ module Insight
14
+ # Summary of impression and click statistics for a rich menu created via the Messaging API.
15
+ class GetRichMenuInsightSummaryResponse
16
+ # @!attribute [rw] rich_menu_id
17
+ # @return [String] Rich menu ID.
18
+ attr_accessor :rich_menu_id
19
+ # @!attribute [rw] metrics_from
20
+ # @return [String,nil] Start date (JST) of the period actually covered by the returned metrics. Format: yyyyMMdd (e.g. 20260213).
21
+ attr_accessor :metrics_from
22
+ # @!attribute [rw] metrics_to
23
+ # @return [String,nil] End date (JST) of the period actually covered by the returned metrics. Format: yyyyMMdd (e.g. 20260215).
24
+ attr_accessor :metrics_to
25
+ # @!attribute [rw] impression
26
+ # @return [GetRichMenuInsightSummaryResponseImpression,nil]
27
+ attr_accessor :impression
28
+ # @!attribute [rw] clicks
29
+ # @return [Array[GetRichMenuInsightSummaryResponseClick],nil] Click metrics for each tappable area of the rich menu.
30
+ attr_accessor :clicks
31
+
32
+ # @param rich_menu_id [String] Rich menu ID.
33
+ # @param metrics_from [String,nil] Start date (JST) of the period actually covered by the returned metrics. Format: yyyyMMdd (e.g. 20260213).
34
+ # @param metrics_to [String,nil] End date (JST) of the period actually covered by the returned metrics. Format: yyyyMMdd (e.g. 20260215).
35
+ # @param impression [GetRichMenuInsightSummaryResponseImpression, Hash[Symbol, untyped], nil]
36
+ # @param clicks [Array[GetRichMenuInsightSummaryResponseClick, Hash[Symbol, untyped]],nil] Click metrics for each tappable area of the rich menu.
37
+ def initialize(
38
+ rich_menu_id:,
39
+ metrics_from: nil,
40
+ metrics_to: nil,
41
+ impression: nil,
42
+ clicks: nil,
43
+ **dynamic_attributes
44
+ )
45
+
46
+ @rich_menu_id = rich_menu_id
47
+ @metrics_from = metrics_from
48
+ @metrics_to = metrics_to
49
+ @impression = impression.is_a?(Line::Bot::V2::Insight::GetRichMenuInsightSummaryResponseImpression) || impression.nil? ? impression : Line::Bot::V2::Insight::GetRichMenuInsightSummaryResponseImpression.create(**impression)
50
+ @clicks = clicks&.map do |item|
51
+ if item.is_a?(Hash)
52
+ Line::Bot::V2::Insight::GetRichMenuInsightSummaryResponseClick.create(**item)
53
+ else
54
+ item
55
+ end
56
+ end
57
+
58
+ dynamic_attributes.each do |key, value|
59
+ self.class.attr_accessor key
60
+
61
+ if value.is_a?(Hash)
62
+ struct_klass = Struct.new(*value.keys.map(&:to_sym))
63
+ struct_values = value.map { |_k, v| v.is_a?(Hash) ? Line::Bot::V2::Utils.hash_to_struct(v) : v }
64
+ instance_variable_set("@#{key}", struct_klass.new(*struct_values))
65
+ else
66
+ instance_variable_set("@#{key}", value)
67
+ end
68
+ end
69
+ end
70
+
71
+ # Create an instance of the class from a hash
72
+ # @param args [Hash] Hash containing all the required attributes
73
+ # @return [Line::Bot::V2::Insight::GetRichMenuInsightSummaryResponse] Instance of the class
74
+ def self.create(args)
75
+ symbolized_args = Line::Bot::V2::Utils.deep_symbolize(args)
76
+ return new(**symbolized_args) # steep:ignore InsufficientKeywordArguments
77
+ end
78
+
79
+ # @param other [Object] Object to compare
80
+ # @return [Boolean] true if the objects are equal, false otherwise
81
+ def ==(other)
82
+ return false unless self.class == other.class
83
+
84
+ instance_variables.all? do |var|
85
+ instance_variable_get(var) == other.instance_variable_get(var)
86
+ end
87
+ end
88
+
89
+ # @return [Integer] Hash code of the object
90
+ def hash
91
+ [self.class, *instance_variables.map { |var| instance_variable_get(var) }].hash
92
+ end
93
+ end
94
+ end
95
+ end
96
+ end
97
+ end
@@ -0,0 +1,85 @@
1
+ # LINE Messaging API(Insight)
2
+ # This document describes LINE Messaging API(Insight).
3
+ #
4
+ # The version of the OpenAPI document: 0.0.1
5
+ #
6
+ # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
7
+ # https://openapi-generator.tech
8
+ # Do not edit the class manually.
9
+
10
+ module Line
11
+ module Bot
12
+ module V2
13
+ module Insight
14
+ # Target area of the metrics, represented by the top-left coordinate, width, and height.
15
+ class GetRichMenuInsightSummaryResponseBounds
16
+ # @!attribute [rw] x
17
+ # @return [Integer] The x coordinate of the top-left corner of the target area.
18
+ attr_accessor :x
19
+ # @!attribute [rw] y
20
+ # @return [Integer] The y coordinate of the top-left corner of the target area.
21
+ attr_accessor :y
22
+ # @!attribute [rw] width
23
+ # @return [Integer] The width of the target area.
24
+ attr_accessor :width
25
+ # @!attribute [rw] height
26
+ # @return [Integer] The height of the target area.
27
+ attr_accessor :height
28
+
29
+ # @param x [Integer] The x coordinate of the top-left corner of the target area.
30
+ # @param y [Integer] The y coordinate of the top-left corner of the target area.
31
+ # @param width [Integer] The width of the target area.
32
+ # @param height [Integer] The height of the target area.
33
+ def initialize(
34
+ x:,
35
+ y:,
36
+ width:,
37
+ height:,
38
+ **dynamic_attributes
39
+ )
40
+
41
+ @x = x
42
+ @y = y
43
+ @width = width
44
+ @height = height
45
+
46
+ dynamic_attributes.each do |key, value|
47
+ self.class.attr_accessor key
48
+
49
+ if value.is_a?(Hash)
50
+ struct_klass = Struct.new(*value.keys.map(&:to_sym))
51
+ struct_values = value.map { |_k, v| v.is_a?(Hash) ? Line::Bot::V2::Utils.hash_to_struct(v) : v }
52
+ instance_variable_set("@#{key}", struct_klass.new(*struct_values))
53
+ else
54
+ instance_variable_set("@#{key}", value)
55
+ end
56
+ end
57
+ end
58
+
59
+ # Create an instance of the class from a hash
60
+ # @param args [Hash] Hash containing all the required attributes
61
+ # @return [Line::Bot::V2::Insight::GetRichMenuInsightSummaryResponseBounds] Instance of the class
62
+ def self.create(args)
63
+ symbolized_args = Line::Bot::V2::Utils.deep_symbolize(args)
64
+ return new(**symbolized_args) # steep:ignore InsufficientKeywordArguments
65
+ end
66
+
67
+ # @param other [Object] Object to compare
68
+ # @return [Boolean] true if the objects are equal, false otherwise
69
+ def ==(other)
70
+ return false unless self.class == other.class
71
+
72
+ instance_variables.all? do |var|
73
+ instance_variable_get(var) == other.instance_variable_get(var)
74
+ end
75
+ end
76
+
77
+ # @return [Integer] Hash code of the object
78
+ def hash
79
+ [self.class, *instance_variables.map { |var| instance_variable_get(var) }].hash
80
+ end
81
+ end
82
+ end
83
+ end
84
+ end
85
+ end
@@ -0,0 +1,73 @@
1
+ # LINE Messaging API(Insight)
2
+ # This document describes LINE Messaging API(Insight).
3
+ #
4
+ # The version of the OpenAPI document: 0.0.1
5
+ #
6
+ # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
7
+ # https://openapi-generator.tech
8
+ # Do not edit the class manually.
9
+
10
+ module Line
11
+ module Bot
12
+ module V2
13
+ module Insight
14
+ # Click metrics for a single tappable area of the rich menu.
15
+ class GetRichMenuInsightSummaryResponseClick
16
+ # @!attribute [rw] bounds
17
+ # @return [GetRichMenuInsightSummaryResponseBounds]
18
+ attr_accessor :bounds
19
+ # @!attribute [rw] metrics
20
+ # @return [GetRichMenuInsightSummaryResponseMetrics]
21
+ attr_accessor :metrics
22
+
23
+ # @param bounds [GetRichMenuInsightSummaryResponseBounds, Hash[Symbol, untyped]]
24
+ # @param metrics [GetRichMenuInsightSummaryResponseMetrics, Hash[Symbol, untyped]]
25
+ def initialize(
26
+ bounds:,
27
+ metrics:,
28
+ **dynamic_attributes
29
+ )
30
+
31
+ @bounds = bounds.is_a?(Line::Bot::V2::Insight::GetRichMenuInsightSummaryResponseBounds) ? bounds : Line::Bot::V2::Insight::GetRichMenuInsightSummaryResponseBounds.create(**bounds)
32
+ @metrics = metrics.is_a?(Line::Bot::V2::Insight::GetRichMenuInsightSummaryResponseMetrics) ? metrics : Line::Bot::V2::Insight::GetRichMenuInsightSummaryResponseMetrics.create(**metrics)
33
+
34
+ dynamic_attributes.each do |key, value|
35
+ self.class.attr_accessor key
36
+
37
+ if value.is_a?(Hash)
38
+ struct_klass = Struct.new(*value.keys.map(&:to_sym))
39
+ struct_values = value.map { |_k, v| v.is_a?(Hash) ? Line::Bot::V2::Utils.hash_to_struct(v) : v }
40
+ instance_variable_set("@#{key}", struct_klass.new(*struct_values))
41
+ else
42
+ instance_variable_set("@#{key}", value)
43
+ end
44
+ end
45
+ end
46
+
47
+ # Create an instance of the class from a hash
48
+ # @param args [Hash] Hash containing all the required attributes
49
+ # @return [Line::Bot::V2::Insight::GetRichMenuInsightSummaryResponseClick] Instance of the class
50
+ def self.create(args)
51
+ symbolized_args = Line::Bot::V2::Utils.deep_symbolize(args)
52
+ return new(**symbolized_args) # steep:ignore InsufficientKeywordArguments
53
+ end
54
+
55
+ # @param other [Object] Object to compare
56
+ # @return [Boolean] true if the objects are equal, false otherwise
57
+ def ==(other)
58
+ return false unless self.class == other.class
59
+
60
+ instance_variables.all? do |var|
61
+ instance_variable_get(var) == other.instance_variable_get(var)
62
+ end
63
+ end
64
+
65
+ # @return [Integer] Hash code of the object
66
+ def hash
67
+ [self.class, *instance_variables.map { |var| instance_variable_get(var) }].hash
68
+ end
69
+ end
70
+ end
71
+ end
72
+ end
73
+ end
@@ -0,0 +1,67 @@
1
+ # LINE Messaging API(Insight)
2
+ # This document describes LINE Messaging API(Insight).
3
+ #
4
+ # The version of the OpenAPI document: 0.0.1
5
+ #
6
+ # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
7
+ # https://openapi-generator.tech
8
+ # Do not edit the class manually.
9
+
10
+ module Line
11
+ module Bot
12
+ module V2
13
+ module Insight
14
+ # Impression metrics for the whole rich menu.
15
+ class GetRichMenuInsightSummaryResponseImpression
16
+ # @!attribute [rw] metrics
17
+ # @return [GetRichMenuInsightSummaryResponseMetrics]
18
+ attr_accessor :metrics
19
+
20
+ # @param metrics [GetRichMenuInsightSummaryResponseMetrics, Hash[Symbol, untyped]]
21
+ def initialize(
22
+ metrics:,
23
+ **dynamic_attributes
24
+ )
25
+
26
+ @metrics = metrics.is_a?(Line::Bot::V2::Insight::GetRichMenuInsightSummaryResponseMetrics) ? metrics : Line::Bot::V2::Insight::GetRichMenuInsightSummaryResponseMetrics.create(**metrics)
27
+
28
+ dynamic_attributes.each do |key, value|
29
+ self.class.attr_accessor key
30
+
31
+ if value.is_a?(Hash)
32
+ struct_klass = Struct.new(*value.keys.map(&:to_sym))
33
+ struct_values = value.map { |_k, v| v.is_a?(Hash) ? Line::Bot::V2::Utils.hash_to_struct(v) : v }
34
+ instance_variable_set("@#{key}", struct_klass.new(*struct_values))
35
+ else
36
+ instance_variable_set("@#{key}", value)
37
+ end
38
+ end
39
+ end
40
+
41
+ # Create an instance of the class from a hash
42
+ # @param args [Hash] Hash containing all the required attributes
43
+ # @return [Line::Bot::V2::Insight::GetRichMenuInsightSummaryResponseImpression] Instance of the class
44
+ def self.create(args)
45
+ symbolized_args = Line::Bot::V2::Utils.deep_symbolize(args)
46
+ return new(**symbolized_args) # steep:ignore InsufficientKeywordArguments
47
+ end
48
+
49
+ # @param other [Object] Object to compare
50
+ # @return [Boolean] true if the objects are equal, false otherwise
51
+ def ==(other)
52
+ return false unless self.class == other.class
53
+
54
+ instance_variables.all? do |var|
55
+ instance_variable_get(var) == other.instance_variable_get(var)
56
+ end
57
+ end
58
+
59
+ # @return [Integer] Hash code of the object
60
+ def hash
61
+ [self.class, *instance_variables.map { |var| instance_variable_get(var) }].hash
62
+ end
63
+ end
64
+ end
65
+ end
66
+ end
67
+ end
@@ -0,0 +1,73 @@
1
+ # LINE Messaging API(Insight)
2
+ # This document describes LINE Messaging API(Insight).
3
+ #
4
+ # The version of the OpenAPI document: 0.0.1
5
+ #
6
+ # NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
7
+ # https://openapi-generator.tech
8
+ # Do not edit the class manually.
9
+
10
+ module Line
11
+ module Bot
12
+ module V2
13
+ module Insight
14
+ # Aggregated number of events and unique users over the whole period.
15
+ class GetRichMenuInsightSummaryResponseMetrics
16
+ # @!attribute [rw] count
17
+ # @return [Integer] Number of impressions or clicks.
18
+ attr_accessor :count
19
+ # @!attribute [rw] unique_users
20
+ # @return [Integer] Approximate number of unique users who triggered an impression or click.
21
+ attr_accessor :unique_users
22
+
23
+ # @param count [Integer] Number of impressions or clicks.
24
+ # @param unique_users [Integer] Approximate number of unique users who triggered an impression or click.
25
+ def initialize(
26
+ count:,
27
+ unique_users:,
28
+ **dynamic_attributes
29
+ )
30
+
31
+ @count = count
32
+ @unique_users = unique_users
33
+
34
+ dynamic_attributes.each do |key, value|
35
+ self.class.attr_accessor key
36
+
37
+ if value.is_a?(Hash)
38
+ struct_klass = Struct.new(*value.keys.map(&:to_sym))
39
+ struct_values = value.map { |_k, v| v.is_a?(Hash) ? Line::Bot::V2::Utils.hash_to_struct(v) : v }
40
+ instance_variable_set("@#{key}", struct_klass.new(*struct_values))
41
+ else
42
+ instance_variable_set("@#{key}", value)
43
+ end
44
+ end
45
+ end
46
+
47
+ # Create an instance of the class from a hash
48
+ # @param args [Hash] Hash containing all the required attributes
49
+ # @return [Line::Bot::V2::Insight::GetRichMenuInsightSummaryResponseMetrics] Instance of the class
50
+ def self.create(args)
51
+ symbolized_args = Line::Bot::V2::Utils.deep_symbolize(args)
52
+ return new(**symbolized_args) # steep:ignore InsufficientKeywordArguments
53
+ end
54
+
55
+ # @param other [Object] Object to compare
56
+ # @return [Boolean] true if the objects are equal, false otherwise
57
+ def ==(other)
58
+ return false unless self.class == other.class
59
+
60
+ instance_variables.all? do |var|
61
+ instance_variable_get(var) == other.instance_variable_get(var)
62
+ end
63
+ end
64
+
65
+ # @return [Integer] Hash code of the object
66
+ def hash
67
+ [self.class, *instance_variables.map { |var| instance_variable_get(var) }].hash
68
+ end
69
+ end
70
+ end
71
+ end
72
+ end
73
+ end
@@ -11,6 +11,7 @@ module Line
11
11
  module Bot
12
12
  module V2
13
13
  module Insight
14
+ # @see https://developers.line.biz/en/reference/messaging-api/#get-demographic
14
15
  class SubscriptionPeriodTile
15
16
  # @!attribute [rw] subscription_period
16
17
  # @return [String,nil] ('within7days'|'within30days'|'within90days'|'within180days'|'within365days'|'over365days'|'unknown') Subscription period. Possible values: `within7days`, `within90days`, `unknown` etc.
@@ -11,6 +11,7 @@ module Line
11
11
  module Bot
12
12
  module V2
13
13
  module Liff
14
+ # @see https://developers.line.biz/en/reference/liff-server/#add-liff-app
14
15
  class AddLiffAppResponse
15
16
  # @!attribute [rw] liff_id
16
17
  # @return [String]
@@ -11,6 +11,7 @@ module Line
11
11
  module Bot
12
12
  module V2
13
13
  module Liff
14
+ # @see https://developers.line.biz/en/reference/liff-server/#get-all-liff-apps
14
15
  class GetAllLiffAppsResponse
15
16
  # @!attribute [rw] apps
16
17
  # @return [Array[LiffApp],nil]
@@ -11,6 +11,7 @@ module Line
11
11
  module Bot
12
12
  module V2
13
13
  module Liff
14
+ # @see https://developers.line.biz/en/reference/liff-server/#get-all-liff-apps
14
15
  class LiffApp
15
16
  # @!attribute [rw] liff_id
16
17
  # @return [String,nil] LIFF app ID
@@ -11,6 +11,7 @@ module Line
11
11
  module Bot
12
12
  module V2
13
13
  module Liff
14
+ # @see https://developers.line.biz/en/reference/liff-server/#get-all-liff-apps
14
15
  class LiffFeatures
15
16
  # @!attribute [rw] ble
16
17
  # @return [Boolean,nil] `true` if the LIFF app supports Bluetooth® Low Energy for LINE Things. `false` otherwise.
@@ -26,7 +26,7 @@ module Line
26
26
  # @return [String,nil] ('IN_PROGRESS'|'READY'|'FAILED'|'EXPIRED'|'INACTIVE'|'ACTIVATING')
27
27
  attr_accessor :status
28
28
  # @!attribute [rw] failed_type
29
- # @return [String,nil] ('AUDIENCE_GROUP_AUDIENCE_INSUFFICIENT'|'INTERNAL_ERROR'|'')
29
+ # @return [String,nil] ('AUDIENCE_GROUP_AUDIENCE_INSUFFICIENT'|'INTERNAL_ERROR')
30
30
  attr_accessor :failed_type
31
31
  # @!attribute [rw] audience_count
32
32
  # @return [Integer,nil] The number of users included in the audience.
@@ -54,7 +54,7 @@ module Line
54
54
  # @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')
55
55
  # @param description [String,nil] The audience's name.
56
56
  # @param status [String,nil] ('IN_PROGRESS'|'READY'|'FAILED'|'EXPIRED'|'INACTIVE'|'ACTIVATING')
57
- # @param failed_type [String,nil] ('AUDIENCE_GROUP_AUDIENCE_INSUFFICIENT'|'INTERNAL_ERROR'|'')
57
+ # @param failed_type [String,nil] ('AUDIENCE_GROUP_AUDIENCE_INSUFFICIENT'|'INTERNAL_ERROR')
58
58
  # @param audience_count [Integer,nil] The number of users included in the audience.
59
59
  # @param created [Integer,nil] When the audience was created (in UNIX time).
60
60
  # @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.
@@ -11,6 +11,7 @@ module Line
11
11
  module Bot
12
12
  module V2
13
13
  module MessagingApi
14
+ # @see https://developers.line.biz/en/reference/messaging-api/#rich-menu-response-object
14
15
  class RichMenuResponse
15
16
  # @!attribute [rw] rich_menu_id
16
17
  # @return [String] ID of a rich menu
@@ -12,6 +12,7 @@ module Line
12
12
  module V2
13
13
  module ModuleAttach
14
14
  # Attach by operation of the module channel provider
15
+ # @see https://developers.line.biz/en/reference/partner-docs/#link-attach-by-operation-module-channel-provider
15
16
  class AttachModuleResponse
16
17
  # @!attribute [rw] bot_id
17
18
  # @return [String] User ID of the bot on the LINE Official Account.
@@ -14,6 +14,7 @@ module Line
14
14
  module V2
15
15
  module Webhook
16
16
  # Event object for when a user has linked their LINE account with a provider's service account. You can reply to account link events.
17
+ # @see https://developers.line.biz/en/reference/messaging-api/#account-link-event
17
18
  class AccountLinkEvent < Event
18
19
  # @!attribute [r] type
19
20
  # @return [String] Type of the event
@@ -14,6 +14,7 @@ module Line
14
14
  module V2
15
15
  module Webhook
16
16
  # This event indicates that the module channel has been switched to Active Channel by calling the Acquire Control API. Sent to the webhook URL server of the module channel.
17
+ # @see https://developers.line.biz/en/reference/partner-docs/#activated-event
17
18
  class ActivatedEvent < Event
18
19
  # @!attribute [r] type
19
20
  # @return [String] Type of the event
@@ -13,6 +13,7 @@ module Line
13
13
  module Bot
14
14
  module V2
15
15
  module Webhook
16
+ # @see https://developers.line.biz/en/reference/partner-docs/#attached-event
16
17
  class AttachedModuleContent < ModuleContent
17
18
  # @!attribute [r] type
18
19
  # @return [String] Type
@@ -13,6 +13,7 @@ module Line
13
13
  module Bot
14
14
  module V2
15
15
  module Webhook
16
+ # @see https://developers.line.biz/en/reference/messaging-api/#wh-audio
16
17
  class AudioMessageContent < MessageContent
17
18
  # @!attribute [r] type
18
19
  # @return [String] Type
@@ -11,6 +11,7 @@ module Line
11
11
  module Bot
12
12
  module V2
13
13
  module Webhook
14
+ # @see https://developers.line.biz/en/reference/messaging-api/#beacon-event
14
15
  class BeaconContent
15
16
  # @!attribute [rw] hwid
16
17
  # @return [String] Hardware ID of the beacon that was detected
@@ -14,6 +14,7 @@ module Line
14
14
  module V2
15
15
  module Webhook
16
16
  # Event object for when a user enters the range of a LINE Beacon. You can reply to beacon events.
17
+ # @see https://developers.line.biz/en/reference/messaging-api/#beacon-event
17
18
  class BeaconEvent < Event
18
19
  # @!attribute [r] type
19
20
  # @return [String] Type of the event
@@ -14,6 +14,7 @@ module Line
14
14
  module V2
15
15
  module Webhook
16
16
  # This event indicates that the LINE Official Account has returned from the suspended state. Sent to the webhook URL server of the module channel.
17
+ # @see https://developers.line.biz/en/reference/partner-docs/#botresumed-event
17
18
  class BotResumedEvent < Event
18
19
  # @!attribute [r] type
19
20
  # @return [String] Type of the event
@@ -14,6 +14,7 @@ module Line
14
14
  module V2
15
15
  module Webhook
16
16
  # This event indicates that the LINE Official Account has been suspended (Suspend). Sent to the webhook URL server of the module channel.
17
+ # @see https://developers.line.biz/en/reference/partner-docs/#botsuspend-event
17
18
  class BotSuspendedEvent < Event
18
19
  # @!attribute [r] type
19
20
  # @return [String] Type of the event
@@ -11,6 +11,7 @@ module Line
11
11
  module Bot
12
12
  module V2
13
13
  module Webhook
14
+ # @see https://developers.line.biz/en/reference/partner-docs/#activated-event
14
15
  class ChatControl
15
16
  # @!attribute [rw] expire_at
16
17
  # @return [Integer]
@@ -14,6 +14,7 @@ module Line
14
14
  module V2
15
15
  module Webhook
16
16
  # This event indicates that the module channel has been switched to Standby Channel by calling Acquire Control API or Release Control API. Sent to the webhook URL server of the module channel.
17
+ # @see https://developers.line.biz/en/reference/partner-docs/#deactivated-event
17
18
  class DeactivatedEvent < Event
18
19
  # @!attribute [r] type
19
20
  # @return [String] Type of the event
@@ -13,6 +13,7 @@ module Line
13
13
  module Bot
14
14
  module V2
15
15
  module Webhook
16
+ # @see https://developers.line.biz/en/reference/partner-docs/#detached-event
16
17
  class DetachedModuleContent < ModuleContent
17
18
  # @!attribute [r] type
18
19
  # @return [String] Type
@@ -13,6 +13,7 @@ module Line
13
13
  module Bot
14
14
  module V2
15
15
  module Webhook
16
+ # @see https://developers.line.biz/en/reference/messaging-api/#wh-file
16
17
  class FileMessageContent < MessageContent
17
18
  # @!attribute [r] type
18
19
  # @return [String] Type