line-bot-api 2.8.0 → 2.8.3

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 (124) 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/model/age_tile.rb +1 -0
  6. data/lib/line/bot/v2/insight/model/app_type_tile.rb +1 -0
  7. data/lib/line/bot/v2/insight/model/area_tile.rb +1 -0
  8. data/lib/line/bot/v2/insight/model/error_detail.rb +1 -0
  9. data/lib/line/bot/v2/insight/model/gender_tile.rb +1 -0
  10. data/lib/line/bot/v2/insight/model/get_message_event_response_click.rb +1 -0
  11. data/lib/line/bot/v2/insight/model/get_message_event_response_message.rb +1 -0
  12. data/lib/line/bot/v2/insight/model/get_message_event_response_overview.rb +1 -0
  13. data/lib/line/bot/v2/insight/model/subscription_period_tile.rb +1 -0
  14. data/lib/line/bot/v2/liff/api/liff_client.rb +6 -4
  15. data/lib/line/bot/v2/liff/model/add_liff_app_response.rb +1 -0
  16. data/lib/line/bot/v2/liff/model/get_all_liff_apps_response.rb +1 -0
  17. data/lib/line/bot/v2/liff/model/liff_app.rb +1 -0
  18. data/lib/line/bot/v2/liff/model/liff_features.rb +1 -0
  19. data/lib/line/bot/v2/manage_audience/api/manage_audience_client.rb +12 -8
  20. data/lib/line/bot/v2/messaging_api/api/messaging_api_blob_client.rb +15 -10
  21. data/lib/line/bot/v2/messaging_api/api/messaging_api_client.rb +75 -51
  22. data/lib/line/bot/v2/messaging_api/model/rich_menu_response.rb +1 -0
  23. data/lib/line/bot/v2/module/api/line_module_client.rb +6 -4
  24. data/lib/line/bot/v2/module_attach/model/attach_module_response.rb +1 -0
  25. data/lib/line/bot/v2/utils.rb +25 -0
  26. data/lib/line/bot/v2/webhook/model/account_link_event.rb +1 -0
  27. data/lib/line/bot/v2/webhook/model/activated_event.rb +1 -0
  28. data/lib/line/bot/v2/webhook/model/attached_module_content.rb +1 -0
  29. data/lib/line/bot/v2/webhook/model/audio_message_content.rb +1 -0
  30. data/lib/line/bot/v2/webhook/model/beacon_content.rb +1 -0
  31. data/lib/line/bot/v2/webhook/model/beacon_event.rb +1 -0
  32. data/lib/line/bot/v2/webhook/model/bot_resumed_event.rb +1 -0
  33. data/lib/line/bot/v2/webhook/model/bot_suspended_event.rb +1 -0
  34. data/lib/line/bot/v2/webhook/model/chat_control.rb +1 -0
  35. data/lib/line/bot/v2/webhook/model/deactivated_event.rb +1 -0
  36. data/lib/line/bot/v2/webhook/model/detached_module_content.rb +1 -0
  37. data/lib/line/bot/v2/webhook/model/file_message_content.rb +1 -0
  38. data/lib/line/bot/v2/webhook/model/follow_detail.rb +1 -0
  39. data/lib/line/bot/v2/webhook/model/follow_event.rb +1 -0
  40. data/lib/line/bot/v2/webhook/model/image_message_content.rb +1 -0
  41. data/lib/line/bot/v2/webhook/model/join_event.rb +1 -0
  42. data/lib/line/bot/v2/webhook/model/joined_members.rb +1 -0
  43. data/lib/line/bot/v2/webhook/model/leave_event.rb +1 -0
  44. data/lib/line/bot/v2/webhook/model/left_members.rb +1 -0
  45. data/lib/line/bot/v2/webhook/model/link_content.rb +1 -0
  46. data/lib/line/bot/v2/webhook/model/location_message_content.rb +1 -0
  47. data/lib/line/bot/v2/webhook/model/member_joined_event.rb +1 -0
  48. data/lib/line/bot/v2/webhook/model/member_left_event.rb +1 -0
  49. data/lib/line/bot/v2/webhook/model/membership_content.rb +1 -0
  50. data/lib/line/bot/v2/webhook/model/membership_event.rb +1 -0
  51. data/lib/line/bot/v2/webhook/model/message_event.rb +1 -0
  52. data/lib/line/bot/v2/webhook/model/module_content.rb +1 -0
  53. data/lib/line/bot/v2/webhook/model/module_event.rb +1 -0
  54. data/lib/line/bot/v2/webhook/model/pnp_delivery.rb +1 -0
  55. data/lib/line/bot/v2/webhook/model/pnp_delivery_completion_event.rb +1 -0
  56. data/lib/line/bot/v2/webhook/model/postback_content.rb +1 -0
  57. data/lib/line/bot/v2/webhook/model/postback_event.rb +1 -0
  58. data/lib/line/bot/v2/webhook/model/text_message_content.rb +1 -0
  59. data/lib/line/bot/v2/webhook/model/unfollow_event.rb +1 -0
  60. data/lib/line/bot/v2/webhook/model/unsend_detail.rb +1 -0
  61. data/lib/line/bot/v2/webhook/model/unsend_event.rb +1 -0
  62. data/lib/line/bot/v2/webhook/model/video_message_content.rb +1 -0
  63. data/lib/line/bot/v2/webhook/model/video_play_complete.rb +1 -0
  64. data/lib/line/bot/v2/webhook/model/video_play_complete_event.rb +1 -0
  65. data/lib/line/bot/version.rb +1 -1
  66. data/sig/line/bot/v2/channel_access_token/api/channel_access_token_client.rbs +2 -2
  67. data/sig/line/bot/v2/channel_access_token/model/error_response.rbs +1 -0
  68. data/sig/line/bot/v2/channel_access_token/model/verify_channel_access_token_response.rbs +1 -0
  69. data/sig/line/bot/v2/insight/model/age_tile.rbs +1 -0
  70. data/sig/line/bot/v2/insight/model/app_type_tile.rbs +1 -0
  71. data/sig/line/bot/v2/insight/model/area_tile.rbs +1 -0
  72. data/sig/line/bot/v2/insight/model/error_detail.rbs +1 -0
  73. data/sig/line/bot/v2/insight/model/gender_tile.rbs +1 -0
  74. data/sig/line/bot/v2/insight/model/get_message_event_response_click.rbs +1 -0
  75. data/sig/line/bot/v2/insight/model/get_message_event_response_message.rbs +1 -0
  76. data/sig/line/bot/v2/insight/model/get_message_event_response_overview.rbs +1 -0
  77. data/sig/line/bot/v2/insight/model/subscription_period_tile.rbs +1 -0
  78. data/sig/line/bot/v2/liff/model/add_liff_app_response.rbs +1 -0
  79. data/sig/line/bot/v2/liff/model/get_all_liff_apps_response.rbs +1 -0
  80. data/sig/line/bot/v2/liff/model/liff_app.rbs +1 -0
  81. data/sig/line/bot/v2/liff/model/liff_features.rbs +1 -0
  82. data/sig/line/bot/v2/messaging_api/model/rich_menu_response.rbs +1 -0
  83. data/sig/line/bot/v2/module_attach/model/attach_module_response.rbs +1 -0
  84. data/sig/line/bot/v2/utils.rbs +4 -0
  85. data/sig/line/bot/v2/webhook/model/account_link_event.rbs +1 -0
  86. data/sig/line/bot/v2/webhook/model/activated_event.rbs +1 -0
  87. data/sig/line/bot/v2/webhook/model/attached_module_content.rbs +1 -0
  88. data/sig/line/bot/v2/webhook/model/audio_message_content.rbs +1 -0
  89. data/sig/line/bot/v2/webhook/model/beacon_content.rbs +1 -0
  90. data/sig/line/bot/v2/webhook/model/beacon_event.rbs +1 -0
  91. data/sig/line/bot/v2/webhook/model/bot_resumed_event.rbs +1 -0
  92. data/sig/line/bot/v2/webhook/model/bot_suspended_event.rbs +1 -0
  93. data/sig/line/bot/v2/webhook/model/chat_control.rbs +1 -0
  94. data/sig/line/bot/v2/webhook/model/deactivated_event.rbs +1 -0
  95. data/sig/line/bot/v2/webhook/model/detached_module_content.rbs +1 -0
  96. data/sig/line/bot/v2/webhook/model/file_message_content.rbs +1 -0
  97. data/sig/line/bot/v2/webhook/model/follow_detail.rbs +1 -0
  98. data/sig/line/bot/v2/webhook/model/follow_event.rbs +1 -0
  99. data/sig/line/bot/v2/webhook/model/image_message_content.rbs +1 -0
  100. data/sig/line/bot/v2/webhook/model/join_event.rbs +1 -0
  101. data/sig/line/bot/v2/webhook/model/joined_members.rbs +1 -0
  102. data/sig/line/bot/v2/webhook/model/leave_event.rbs +1 -0
  103. data/sig/line/bot/v2/webhook/model/left_members.rbs +1 -0
  104. data/sig/line/bot/v2/webhook/model/link_content.rbs +1 -0
  105. data/sig/line/bot/v2/webhook/model/location_message_content.rbs +1 -0
  106. data/sig/line/bot/v2/webhook/model/member_joined_event.rbs +1 -0
  107. data/sig/line/bot/v2/webhook/model/member_left_event.rbs +1 -0
  108. data/sig/line/bot/v2/webhook/model/membership_content.rbs +1 -0
  109. data/sig/line/bot/v2/webhook/model/membership_event.rbs +1 -0
  110. data/sig/line/bot/v2/webhook/model/message_event.rbs +1 -0
  111. data/sig/line/bot/v2/webhook/model/module_content.rbs +1 -0
  112. data/sig/line/bot/v2/webhook/model/module_event.rbs +1 -0
  113. data/sig/line/bot/v2/webhook/model/pnp_delivery.rbs +1 -0
  114. data/sig/line/bot/v2/webhook/model/pnp_delivery_completion_event.rbs +1 -0
  115. data/sig/line/bot/v2/webhook/model/postback_content.rbs +1 -0
  116. data/sig/line/bot/v2/webhook/model/postback_event.rbs +1 -0
  117. data/sig/line/bot/v2/webhook/model/text_message_content.rbs +1 -0
  118. data/sig/line/bot/v2/webhook/model/unfollow_event.rbs +1 -0
  119. data/sig/line/bot/v2/webhook/model/unsend_detail.rbs +1 -0
  120. data/sig/line/bot/v2/webhook/model/unsend_event.rbs +1 -0
  121. data/sig/line/bot/v2/webhook/model/video_message_content.rbs +1 -0
  122. data/sig/line/bot/v2/webhook/model/video_play_complete.rbs +1 -0
  123. data/sig/line/bot/v2/webhook/model/video_play_complete_event.rbs +1 -0
  124. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f023fd6c0f958541a976719fb3adb8538746ee19397136b370bbb6165fb6a86b
4
- data.tar.gz: 99660df7df0c5bb83449d688ab5f8f8b8e8a422a3046d214f64a288317a6e24c
3
+ metadata.gz: 1ab8cdcb8950bc7aeec772f0a9b9bf33ee9f88847a6e03cc6494e31f24f32269
4
+ data.tar.gz: 850bff8627ff17a3eda76608481c95062511da1eafd0c2181735663628fcca74
5
5
  SHA512:
6
- metadata.gz: f295390c9f9084fdc15775f775bbb885fc09587abb216bb6d8ed63ae00ad00cf63b237ffd5d5c98de9ad77c6c1c68e6e60a25be3dd9fa2557868f7ac6beeaefe
7
- data.tar.gz: d3b1d62f2bf36242fc42f43a9f24ff736cdffcb3616d111d7df34288456390aad7827dea5e2cb5108a46b81e997566386f8749b9761a267da08507e168965c5e
6
+ metadata.gz: 629ccf7854d4afb30029e2ff46dad7ed0089452874d3539c60dc1a47d4a10a22b23de9912588323e80eff8ee474898bdf5947be3ef4cada5fff4b04c8679cc00
7
+ data.tar.gz: e2be6c4428ebab6071ef247623beb330ea7fda13e893c15c31adee66c1e28efba3ab3ef79365c3c3115ee251d07be9aff03d8a44171ae280e52d342003b23388
@@ -326,7 +326,7 @@ module Line
326
326
  # This requests to <code>POST https://api.line.me/v2/oauth/revoke</code>
327
327
  # This returns an array containing response, HTTP status code, and header in order. Please specify all header keys in lowercase.
328
328
  #
329
- # @param access_token [String] Channel access token
329
+ # @param access_token [String] A short-lived or long-lived channel access token.
330
330
  # @see https://developers.line.biz/en/reference/messaging-api/#revoke-longlived-or-shortlived-channel-access-token
331
331
  # @return [Array((String|nil), Integer, Hash{String => String})] when HTTP status code is 200
332
332
  # @return [Array((String|nil), Integer, Hash{String => String})] when other HTTP status code is returned. String is HTTP response body itself.
@@ -356,7 +356,7 @@ module Line
356
356
  # This requests to <code>POST https://api.line.me/v2/oauth/revoke</code>
357
357
  # When you want to get HTTP status code or response headers, use {#revoke_channel_token_with_http_info} instead of this.
358
358
  #
359
- # @param access_token [String] Channel access token
359
+ # @param access_token [String] A short-lived or long-lived channel access token.
360
360
  # @see https://developers.line.biz/en/reference/messaging-api/#revoke-longlived-or-shortlived-channel-access-token
361
361
  # @return [String, nil] when HTTP status code is 200
362
362
  # @return [String, nil] when other HTTP status code is returned. This String is HTTP response body itself.
@@ -12,6 +12,7 @@ module Line
12
12
  module V2
13
13
  module ChannelAccessToken
14
14
  # Error response of the Channel access token
15
+ # @see https://developers.line.biz/en/reference/messaging-api/#error-responses
15
16
  class ErrorResponse
16
17
  # @!attribute [rw] error
17
18
  # @return [String,nil] Error summary
@@ -12,6 +12,7 @@ module Line
12
12
  module V2
13
13
  module ChannelAccessToken
14
14
  # Verification result
15
+ # @see https://developers.line.biz/en/reference/messaging-api/#verify-channel-access-token-v2-1
15
16
  class VerifyChannelAccessTokenResponse
16
17
  # @!attribute [rw] client_id
17
18
  # @return [String] The channel ID for which the channel access token was issued.
@@ -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 AgeTile
15
16
  # @!attribute [rw] age
16
17
  # @return [String,nil] ('from0to14'|'from15to19'|'from20to24'|'from25to29'|'from30to34'|'from35to39'|'from40to44'|'from45to49'|'from50'|'from50to54'|'from55to59'|'from60to64'|'from65to69'|'from70'|'unknown') users' age
@@ -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 AppTypeTile
15
16
  # @!attribute [rw] app_type
16
17
  # @return [String,nil] ('ios'|'android'|'others') users' OS
@@ -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 AreaTile
15
16
  # @!attribute [rw] area
16
17
  # @return [String,nil] users' country and region
@@ -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/#error-responses
14
15
  class ErrorDetail
15
16
  # @!attribute [rw] message
16
17
  # @return [String,nil] Details of the error. Not included in the response under certain situations.
@@ -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 GenderTile
15
16
  # @!attribute [rw] gender
16
17
  # @return [String,nil] ('male'|'female'|'unknown') users' gender
@@ -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-insight-message-event-response
14
15
  class GetMessageEventResponseClick
15
16
  # @!attribute [rw] seq
16
17
  # @return [Integer,nil] The URL's serial number.
@@ -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-insight-message-event-response
14
15
  class GetMessageEventResponseMessage
15
16
  # @!attribute [rw] seq
16
17
  # @return [Integer,nil] Bubble's serial number.
@@ -12,6 +12,7 @@ module Line
12
12
  module V2
13
13
  module Insight
14
14
  # Summary of message statistics.
15
+ # @see https://developers.line.biz/en/reference/messaging-api/#get-insight-message-event-response
15
16
  class GetMessageEventResponseOverview
16
17
  # @!attribute [rw] request_id
17
18
  # @return [String,nil] Request ID.
@@ -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.
@@ -115,8 +115,9 @@ module Line
115
115
  def delete_liff_app_with_http_info(
116
116
  liff_id:
117
117
  )
118
- path = "/liff/v1/apps/{liffId}"
119
- .gsub(/{liffId}/, liff_id.to_s)
118
+ path = Line::Bot::V2::Utils.build_path("/liff/v1/apps/{liffId}", {
119
+ "liffId": liff_id
120
+ })
120
121
 
121
122
  response = @http_client.delete(
122
123
  path: path,
@@ -221,8 +222,9 @@ module Line
221
222
  liff_id:,
222
223
  update_liff_app_request:
223
224
  )
224
- path = "/liff/v1/apps/{liffId}"
225
- .gsub(/{liffId}/, liff_id.to_s)
225
+ path = Line::Bot::V2::Utils.build_path("/liff/v1/apps/{liffId}", {
226
+ "liffId": liff_id
227
+ })
226
228
 
227
229
  response = @http_client.put(
228
230
  path: path,
@@ -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.
@@ -247,8 +247,9 @@ module Line
247
247
  def delete_audience_group_with_http_info(
248
248
  audience_group_id:
249
249
  )
250
- path = "/v2/bot/audienceGroup/{audienceGroupId}"
251
- .gsub(/{audienceGroupId}/, audience_group_id.to_s)
250
+ path = Line::Bot::V2::Utils.build_path("/v2/bot/audienceGroup/{audienceGroupId}", {
251
+ "audienceGroupId": audience_group_id
252
+ })
252
253
 
253
254
  response = @http_client.delete(
254
255
  path: path,
@@ -292,8 +293,9 @@ module Line
292
293
  def get_audience_data_with_http_info(
293
294
  audience_group_id:
294
295
  )
295
- path = "/v2/bot/audienceGroup/{audienceGroupId}"
296
- .gsub(/{audienceGroupId}/, audience_group_id.to_s)
296
+ path = Line::Bot::V2::Utils.build_path("/v2/bot/audienceGroup/{audienceGroupId}", {
297
+ "audienceGroupId": audience_group_id
298
+ })
297
299
 
298
300
  response = @http_client.get(
299
301
  path: path,
@@ -432,8 +434,9 @@ module Line
432
434
  def get_shared_audience_data_with_http_info(
433
435
  audience_group_id:
434
436
  )
435
- path = "/v2/bot/audienceGroup/shared/{audienceGroupId}"
436
- .gsub(/{audienceGroupId}/, audience_group_id.to_s)
437
+ path = Line::Bot::V2::Utils.build_path("/v2/bot/audienceGroup/shared/{audienceGroupId}", {
438
+ "audienceGroupId": audience_group_id
439
+ })
437
440
 
438
441
  response = @http_client.get(
439
442
  path: path,
@@ -573,8 +576,9 @@ module Line
573
576
  audience_group_id:,
574
577
  update_audience_group_description_request:
575
578
  )
576
- path = "/v2/bot/audienceGroup/{audienceGroupId}/updateDescription"
577
- .gsub(/{audienceGroupId}/, audience_group_id.to_s)
579
+ path = Line::Bot::V2::Utils.build_path("/v2/bot/audienceGroup/{audienceGroupId}/updateDescription", {
580
+ "audienceGroupId": audience_group_id
581
+ })
578
582
 
579
583
  response = @http_client.put(
580
584
  path: path,
@@ -56,8 +56,9 @@ module Line
56
56
  def get_message_content_with_http_info(
57
57
  message_id:
58
58
  )
59
- path = "/v2/bot/message/{messageId}/content"
60
- .gsub(/{messageId}/, message_id.to_s)
59
+ path = Line::Bot::V2::Utils.build_path("/v2/bot/message/{messageId}/content", {
60
+ "messageId": message_id
61
+ })
61
62
 
62
63
  response = @http_client.get(
63
64
  path: path,
@@ -100,8 +101,9 @@ module Line
100
101
  def get_message_content_preview_with_http_info(
101
102
  message_id:
102
103
  )
103
- path = "/v2/bot/message/{messageId}/content/preview"
104
- .gsub(/{messageId}/, message_id.to_s)
104
+ path = Line::Bot::V2::Utils.build_path("/v2/bot/message/{messageId}/content/preview", {
105
+ "messageId": message_id
106
+ })
105
107
 
106
108
  response = @http_client.get(
107
109
  path: path,
@@ -144,8 +146,9 @@ module Line
144
146
  def get_message_content_transcoding_by_message_id_with_http_info(
145
147
  message_id:
146
148
  )
147
- path = "/v2/bot/message/{messageId}/content/transcoding"
148
- .gsub(/{messageId}/, message_id.to_s)
149
+ path = Line::Bot::V2::Utils.build_path("/v2/bot/message/{messageId}/content/transcoding", {
150
+ "messageId": message_id
151
+ })
149
152
 
150
153
  response = @http_client.get(
151
154
  path: path,
@@ -193,8 +196,9 @@ module Line
193
196
  def get_rich_menu_image_with_http_info(
194
197
  rich_menu_id:
195
198
  )
196
- path = "/v2/bot/richmenu/{richMenuId}/content"
197
- .gsub(/{richMenuId}/, rich_menu_id.to_s)
199
+ path = Line::Bot::V2::Utils.build_path("/v2/bot/richmenu/{richMenuId}/content", {
200
+ "richMenuId": rich_menu_id
201
+ })
198
202
 
199
203
  response = @http_client.get(
200
204
  path: path,
@@ -239,8 +243,9 @@ module Line
239
243
  rich_menu_id:,
240
244
  body:
241
245
  )
242
- path = "/v2/bot/richmenu/{richMenuId}/content"
243
- .gsub(/{richMenuId}/, rich_menu_id.to_s)
246
+ path = Line::Bot::V2::Utils.build_path("/v2/bot/richmenu/{richMenuId}/content", {
247
+ "richMenuId": rich_menu_id
248
+ })
244
249
 
245
250
  response = @http_client.post(
246
251
  path: path,
@@ -186,8 +186,9 @@ module Line
186
186
  def close_coupon_with_http_info(
187
187
  coupon_id:
188
188
  )
189
- path = "/v2/bot/coupon/{couponId}/close"
190
- .gsub(/{couponId}/, coupon_id.to_s)
189
+ path = Line::Bot::V2::Utils.build_path("/v2/bot/coupon/{couponId}/close", {
190
+ "couponId": coupon_id
191
+ })
191
192
 
192
193
  response = @http_client.put(
193
194
  path: path,
@@ -414,8 +415,9 @@ module Line
414
415
  def delete_rich_menu_with_http_info(
415
416
  rich_menu_id:
416
417
  )
417
- path = "/v2/bot/richmenu/{richMenuId}"
418
- .gsub(/{richMenuId}/, rich_menu_id.to_s)
418
+ path = Line::Bot::V2::Utils.build_path("/v2/bot/richmenu/{richMenuId}", {
419
+ "richMenuId": rich_menu_id
420
+ })
419
421
 
420
422
  response = @http_client.delete(
421
423
  path: path,
@@ -459,8 +461,9 @@ module Line
459
461
  def delete_rich_menu_alias_with_http_info(
460
462
  rich_menu_alias_id:
461
463
  )
462
- path = "/v2/bot/richmenu/alias/{richMenuAliasId}"
463
- .gsub(/{richMenuAliasId}/, rich_menu_alias_id.to_s)
464
+ path = Line::Bot::V2::Utils.build_path("/v2/bot/richmenu/alias/{richMenuAliasId}", {
465
+ "richMenuAliasId": rich_menu_alias_id
466
+ })
464
467
 
465
468
  response = @http_client.delete(
466
469
  path: path,
@@ -657,8 +660,9 @@ module Line
657
660
  def get_coupon_detail_with_http_info(
658
661
  coupon_id:
659
662
  )
660
- path = "/v2/bot/coupon/{couponId}"
661
- .gsub(/{couponId}/, coupon_id.to_s)
663
+ path = Line::Bot::V2::Utils.build_path("/v2/bot/coupon/{couponId}", {
664
+ "couponId": coupon_id
665
+ })
662
666
 
663
667
  response = @http_client.get(
664
668
  path: path,
@@ -823,8 +827,9 @@ module Line
823
827
  def get_group_member_count_with_http_info(
824
828
  group_id:
825
829
  )
826
- path = "/v2/bot/group/{groupId}/members/count"
827
- .gsub(/{groupId}/, group_id.to_s)
830
+ path = Line::Bot::V2::Utils.build_path("/v2/bot/group/{groupId}/members/count", {
831
+ "groupId": group_id
832
+ })
828
833
 
829
834
  response = @http_client.get(
830
835
  path: path,
@@ -874,9 +879,10 @@ module Line
874
879
  group_id:,
875
880
  user_id:
876
881
  )
877
- path = "/v2/bot/group/{groupId}/member/{userId}"
878
- .gsub(/{groupId}/, group_id.to_s)
879
- .gsub(/{userId}/, user_id.to_s)
882
+ path = Line::Bot::V2::Utils.build_path("/v2/bot/group/{groupId}/member/{userId}", {
883
+ "groupId": group_id,
884
+ "userId": user_id
885
+ })
880
886
 
881
887
  response = @http_client.get(
882
888
  path: path,
@@ -929,8 +935,9 @@ module Line
929
935
  group_id:,
930
936
  start: nil
931
937
  )
932
- path = "/v2/bot/group/{groupId}/members/ids"
933
- .gsub(/{groupId}/, group_id.to_s)
938
+ path = Line::Bot::V2::Utils.build_path("/v2/bot/group/{groupId}/members/ids", {
939
+ "groupId": group_id
940
+ })
934
941
  query_params = {
935
942
  "start": start
936
943
  }.compact
@@ -985,8 +992,9 @@ module Line
985
992
  def get_group_summary_with_http_info(
986
993
  group_id:
987
994
  )
988
- path = "/v2/bot/group/{groupId}/summary"
989
- .gsub(/{groupId}/, group_id.to_s)
995
+ path = Line::Bot::V2::Utils.build_path("/v2/bot/group/{groupId}/summary", {
996
+ "groupId": group_id
997
+ })
990
998
 
991
999
  response = @http_client.get(
992
1000
  path: path,
@@ -1040,8 +1048,9 @@ module Line
1040
1048
  start: nil,
1041
1049
  limit: nil
1042
1050
  )
1043
- path = "/v2/bot/membership/{membershipId}/users/ids"
1044
- .gsub(/{membershipId}/, membership_id.to_s)
1051
+ path = Line::Bot::V2::Utils.build_path("/v2/bot/membership/{membershipId}/users/ids", {
1052
+ "membershipId": membership_id
1053
+ })
1045
1054
  query_params = {
1046
1055
  "start": start,
1047
1056
  "limit": limit
@@ -1170,8 +1179,9 @@ module Line
1170
1179
  def get_membership_subscription_with_http_info(
1171
1180
  user_id:
1172
1181
  )
1173
- path = "/v2/bot/membership/subscription/{userId}"
1174
- .gsub(/{userId}/, user_id.to_s)
1182
+ path = Line::Bot::V2::Utils.build_path("/v2/bot/membership/subscription/{userId}", {
1183
+ "userId": user_id
1184
+ })
1175
1185
 
1176
1186
  response = @http_client.get(
1177
1187
  path: path,
@@ -1633,8 +1643,9 @@ module Line
1633
1643
  def get_profile_with_http_info(
1634
1644
  user_id:
1635
1645
  )
1636
- path = "/v2/bot/profile/{userId}"
1637
- .gsub(/{userId}/, user_id.to_s)
1646
+ path = Line::Bot::V2::Utils.build_path("/v2/bot/profile/{userId}", {
1647
+ "userId": user_id
1648
+ })
1638
1649
 
1639
1650
  response = @http_client.get(
1640
1651
  path: path,
@@ -1682,8 +1693,9 @@ module Line
1682
1693
  def get_rich_menu_with_http_info(
1683
1694
  rich_menu_id:
1684
1695
  )
1685
- path = "/v2/bot/richmenu/{richMenuId}"
1686
- .gsub(/{richMenuId}/, rich_menu_id.to_s)
1696
+ path = Line::Bot::V2::Utils.build_path("/v2/bot/richmenu/{richMenuId}", {
1697
+ "richMenuId": rich_menu_id
1698
+ })
1687
1699
 
1688
1700
  response = @http_client.get(
1689
1701
  path: path,
@@ -1731,8 +1743,9 @@ module Line
1731
1743
  def get_rich_menu_alias_with_http_info(
1732
1744
  rich_menu_alias_id:
1733
1745
  )
1734
- path = "/v2/bot/richmenu/alias/{richMenuAliasId}"
1735
- .gsub(/{richMenuAliasId}/, rich_menu_alias_id.to_s)
1746
+ path = Line::Bot::V2::Utils.build_path("/v2/bot/richmenu/alias/{richMenuAliasId}", {
1747
+ "richMenuAliasId": rich_menu_alias_id
1748
+ })
1736
1749
 
1737
1750
  response = @http_client.get(
1738
1751
  path: path,
@@ -1875,8 +1888,9 @@ module Line
1875
1888
  def get_rich_menu_id_of_user_with_http_info(
1876
1889
  user_id:
1877
1890
  )
1878
- path = "/v2/bot/user/{userId}/richmenu"
1879
- .gsub(/{userId}/, user_id.to_s)
1891
+ path = Line::Bot::V2::Utils.build_path("/v2/bot/user/{userId}/richmenu", {
1892
+ "userId": user_id
1893
+ })
1880
1894
 
1881
1895
  response = @http_client.get(
1882
1896
  path: path,
@@ -1967,8 +1981,9 @@ module Line
1967
1981
  def get_room_member_count_with_http_info(
1968
1982
  room_id:
1969
1983
  )
1970
- path = "/v2/bot/room/{roomId}/members/count"
1971
- .gsub(/{roomId}/, room_id.to_s)
1984
+ path = Line::Bot::V2::Utils.build_path("/v2/bot/room/{roomId}/members/count", {
1985
+ "roomId": room_id
1986
+ })
1972
1987
 
1973
1988
  response = @http_client.get(
1974
1989
  path: path,
@@ -2018,9 +2033,10 @@ module Line
2018
2033
  room_id:,
2019
2034
  user_id:
2020
2035
  )
2021
- path = "/v2/bot/room/{roomId}/member/{userId}"
2022
- .gsub(/{roomId}/, room_id.to_s)
2023
- .gsub(/{userId}/, user_id.to_s)
2036
+ path = Line::Bot::V2::Utils.build_path("/v2/bot/room/{roomId}/member/{userId}", {
2037
+ "roomId": room_id,
2038
+ "userId": user_id
2039
+ })
2024
2040
 
2025
2041
  response = @http_client.get(
2026
2042
  path: path,
@@ -2073,8 +2089,9 @@ module Line
2073
2089
  room_id:,
2074
2090
  start: nil
2075
2091
  )
2076
- path = "/v2/bot/room/{roomId}/members/ids"
2077
- .gsub(/{roomId}/, room_id.to_s)
2092
+ path = Line::Bot::V2::Utils.build_path("/v2/bot/room/{roomId}/members/ids", {
2093
+ "roomId": room_id
2094
+ })
2078
2095
  query_params = {
2079
2096
  "start": start
2080
2097
  }.compact
@@ -2172,8 +2189,9 @@ module Line
2172
2189
  def issue_link_token_with_http_info(
2173
2190
  user_id:
2174
2191
  )
2175
- path = "/v2/bot/user/{userId}/linkToken"
2176
- .gsub(/{userId}/, user_id.to_s)
2192
+ path = Line::Bot::V2::Utils.build_path("/v2/bot/user/{userId}/linkToken", {
2193
+ "userId": user_id
2194
+ })
2177
2195
 
2178
2196
  response = @http_client.post(
2179
2197
  path: path,
@@ -2223,8 +2241,9 @@ module Line
2223
2241
  def leave_group_with_http_info(
2224
2242
  group_id:
2225
2243
  )
2226
- path = "/v2/bot/group/{groupId}/leave"
2227
- .gsub(/{groupId}/, group_id.to_s)
2244
+ path = Line::Bot::V2::Utils.build_path("/v2/bot/group/{groupId}/leave", {
2245
+ "groupId": group_id
2246
+ })
2228
2247
 
2229
2248
  response = @http_client.post(
2230
2249
  path: path,
@@ -2283,8 +2302,9 @@ module Line
2283
2302
  def leave_room_with_http_info(
2284
2303
  room_id:
2285
2304
  )
2286
- path = "/v2/bot/room/{roomId}/leave"
2287
- .gsub(/{roomId}/, room_id.to_s)
2305
+ path = Line::Bot::V2::Utils.build_path("/v2/bot/room/{roomId}/leave", {
2306
+ "roomId": room_id
2307
+ })
2288
2308
 
2289
2309
  response = @http_client.post(
2290
2310
  path: path,
@@ -2329,9 +2349,10 @@ module Line
2329
2349
  user_id:,
2330
2350
  rich_menu_id:
2331
2351
  )
2332
- path = "/v2/bot/user/{userId}/richmenu/{richMenuId}"
2333
- .gsub(/{userId}/, user_id.to_s)
2334
- .gsub(/{richMenuId}/, rich_menu_id.to_s)
2352
+ path = Line::Bot::V2::Utils.build_path("/v2/bot/user/{userId}/richmenu/{richMenuId}", {
2353
+ "userId": user_id,
2354
+ "richMenuId": rich_menu_id
2355
+ })
2335
2356
 
2336
2357
  response = @http_client.post(
2337
2358
  path: path,
@@ -3036,8 +3057,9 @@ module Line
3036
3057
  def set_default_rich_menu_with_http_info(
3037
3058
  rich_menu_id:
3038
3059
  )
3039
- path = "/v2/bot/user/all/richmenu/{richMenuId}"
3040
- .gsub(/{richMenuId}/, rich_menu_id.to_s)
3060
+ path = Line::Bot::V2::Utils.build_path("/v2/bot/user/all/richmenu/{richMenuId}", {
3061
+ "richMenuId": rich_menu_id
3062
+ })
3041
3063
 
3042
3064
  response = @http_client.post(
3043
3065
  path: path,
@@ -3226,8 +3248,9 @@ module Line
3226
3248
  def unlink_rich_menu_id_from_user_with_http_info(
3227
3249
  user_id:
3228
3250
  )
3229
- path = "/v2/bot/user/{userId}/richmenu"
3230
- .gsub(/{userId}/, user_id.to_s)
3251
+ path = Line::Bot::V2::Utils.build_path("/v2/bot/user/{userId}/richmenu", {
3252
+ "userId": user_id
3253
+ })
3231
3254
 
3232
3255
  response = @http_client.delete(
3233
3256
  path: path,
@@ -3317,8 +3340,9 @@ module Line
3317
3340
  rich_menu_alias_id:,
3318
3341
  update_rich_menu_alias_request:
3319
3342
  )
3320
- path = "/v2/bot/richmenu/alias/{richMenuAliasId}"
3321
- .gsub(/{richMenuAliasId}/, rich_menu_alias_id.to_s)
3343
+ path = Line::Bot::V2::Utils.build_path("/v2/bot/richmenu/alias/{richMenuAliasId}", {
3344
+ "richMenuAliasId": rich_menu_alias_id
3345
+ })
3322
3346
 
3323
3347
  response = @http_client.post(
3324
3348
  path: path,
@@ -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
@@ -58,8 +58,9 @@ module Line
58
58
  chat_id:,
59
59
  acquire_chat_control_request: nil
60
60
  )
61
- path = "/v2/bot/chat/{chatId}/control/acquire"
62
- .gsub(/{chatId}/, chat_id.to_s)
61
+ path = Line::Bot::V2::Utils.build_path("/v2/bot/chat/{chatId}/control/acquire", {
62
+ "chatId": chat_id
63
+ })
63
64
 
64
65
  response = @http_client.post(
65
66
  path: path,
@@ -208,8 +209,9 @@ module Line
208
209
  def release_chat_control_with_http_info(
209
210
  chat_id:
210
211
  )
211
- path = "/v2/bot/chat/{chatId}/control/release"
212
- .gsub(/{chatId}/, chat_id.to_s)
212
+ path = Line::Bot::V2::Utils.build_path("/v2/bot/chat/{chatId}/control/release", {
213
+ "chatId": chat_id
214
+ })
213
215
 
214
216
  response = @http_client.post(
215
217
  path: path,
@@ -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.