messaging_api_line/apis/
messaging_api_api.rs

1/*
2 * LINE Messaging API
3 *
4 * This document describes LINE Messaging API.
5 *
6 * The version of the OpenAPI document: 0.0.1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use std::sync::Arc;
12use std::borrow::Borrow;
13use std::pin::Pin;
14#[allow(unused_imports)]
15use std::option::Option;
16
17use hyper;
18use hyper_util::client::legacy::connect::Connect;
19use futures::Future;
20
21use crate::models;
22use super::{Error, configuration};
23use super::request as __internal_request;
24
25pub struct MessagingApiApiClient<C: Connect>
26    where C: Clone + std::marker::Send + Sync + 'static {
27    configuration: Arc<configuration::Configuration<C>>,
28}
29
30impl<C: Connect> MessagingApiApiClient<C>
31    where C: Clone + std::marker::Send + Sync {
32    pub fn new(configuration: Arc<configuration::Configuration<C>>) -> MessagingApiApiClient<C> {
33        MessagingApiApiClient {
34            configuration,
35        }
36    }
37}
38
39pub trait MessagingApiApi: Send + Sync {
40    fn broadcast(&self, broadcast_request: models::BroadcastRequest, x_line_retry_key: Option<&str>) -> Pin<Box<dyn Future<Output = Result<serde_json::Value, Error>> + Send>>;
41    fn cancel_default_rich_menu(&self, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
42    fn create_rich_menu(&self, rich_menu_request: models::RichMenuRequest) -> Pin<Box<dyn Future<Output = Result<models::RichMenuIdResponse, Error>> + Send>>;
43    fn create_rich_menu_alias(&self, create_rich_menu_alias_request: models::CreateRichMenuAliasRequest) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
44    fn delete_rich_menu(&self, rich_menu_id: &str) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
45    fn delete_rich_menu_alias(&self, rich_menu_alias_id: &str) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
46    fn get_aggregation_unit_name_list(&self, limit: Option<&str>, start: Option<&str>) -> Pin<Box<dyn Future<Output = Result<models::GetAggregationUnitNameListResponse, Error>> + Send>>;
47    fn get_aggregation_unit_usage(&self, ) -> Pin<Box<dyn Future<Output = Result<models::GetAggregationUnitUsageResponse, Error>> + Send>>;
48    fn get_bot_info(&self, ) -> Pin<Box<dyn Future<Output = Result<models::BotInfoResponse, Error>> + Send>>;
49    fn get_default_rich_menu_id(&self, ) -> Pin<Box<dyn Future<Output = Result<models::RichMenuIdResponse, Error>> + Send>>;
50    fn get_followers(&self, start: Option<&str>, limit: Option<i32>) -> Pin<Box<dyn Future<Output = Result<models::GetFollowersResponse, Error>> + Send>>;
51    fn get_group_member_count(&self, group_id: &str) -> Pin<Box<dyn Future<Output = Result<models::GroupMemberCountResponse, Error>> + Send>>;
52    fn get_group_member_profile(&self, group_id: &str, user_id: &str) -> Pin<Box<dyn Future<Output = Result<models::GroupUserProfileResponse, Error>> + Send>>;
53    fn get_group_members_ids(&self, group_id: &str, start: Option<&str>) -> Pin<Box<dyn Future<Output = Result<models::MembersIdsResponse, Error>> + Send>>;
54    fn get_group_summary(&self, group_id: &str) -> Pin<Box<dyn Future<Output = Result<models::GroupSummaryResponse, Error>> + Send>>;
55    fn get_joined_membership_users(&self, membership_id: i32, start: Option<&str>, limit: Option<i32>) -> Pin<Box<dyn Future<Output = Result<models::GetJoinedMembershipUsersResponse, Error>> + Send>>;
56    fn get_membership_list(&self, ) -> Pin<Box<dyn Future<Output = Result<models::MembershipListResponse, Error>> + Send>>;
57    fn get_membership_subscription(&self, user_id: &str) -> Pin<Box<dyn Future<Output = Result<models::GetMembershipSubscriptionResponse, Error>> + Send>>;
58    fn get_message_quota(&self, ) -> Pin<Box<dyn Future<Output = Result<models::MessageQuotaResponse, Error>> + Send>>;
59    fn get_message_quota_consumption(&self, ) -> Pin<Box<dyn Future<Output = Result<models::QuotaConsumptionResponse, Error>> + Send>>;
60    fn get_narrowcast_progress(&self, request_id: &str) -> Pin<Box<dyn Future<Output = Result<models::NarrowcastProgressResponse, Error>> + Send>>;
61    fn get_number_of_sent_broadcast_messages(&self, date: &str) -> Pin<Box<dyn Future<Output = Result<models::NumberOfMessagesResponse, Error>> + Send>>;
62    fn get_number_of_sent_multicast_messages(&self, date: &str) -> Pin<Box<dyn Future<Output = Result<models::NumberOfMessagesResponse, Error>> + Send>>;
63    fn get_number_of_sent_push_messages(&self, date: &str) -> Pin<Box<dyn Future<Output = Result<models::NumberOfMessagesResponse, Error>> + Send>>;
64    fn get_number_of_sent_reply_messages(&self, date: &str) -> Pin<Box<dyn Future<Output = Result<models::NumberOfMessagesResponse, Error>> + Send>>;
65    fn get_pnp_message_statistics(&self, date: &str) -> Pin<Box<dyn Future<Output = Result<models::NumberOfMessagesResponse, Error>> + Send>>;
66    fn get_profile(&self, user_id: &str) -> Pin<Box<dyn Future<Output = Result<models::UserProfileResponse, Error>> + Send>>;
67    fn get_rich_menu(&self, rich_menu_id: &str) -> Pin<Box<dyn Future<Output = Result<models::RichMenuResponse, Error>> + Send>>;
68    fn get_rich_menu_alias(&self, rich_menu_alias_id: &str) -> Pin<Box<dyn Future<Output = Result<models::RichMenuAliasResponse, Error>> + Send>>;
69    fn get_rich_menu_alias_list(&self, ) -> Pin<Box<dyn Future<Output = Result<models::RichMenuAliasListResponse, Error>> + Send>>;
70    fn get_rich_menu_batch_progress(&self, request_id: &str) -> Pin<Box<dyn Future<Output = Result<models::RichMenuBatchProgressResponse, Error>> + Send>>;
71    fn get_rich_menu_id_of_user(&self, user_id: &str) -> Pin<Box<dyn Future<Output = Result<models::RichMenuIdResponse, Error>> + Send>>;
72    fn get_rich_menu_list(&self, ) -> Pin<Box<dyn Future<Output = Result<models::RichMenuListResponse, Error>> + Send>>;
73    fn get_room_member_count(&self, room_id: &str) -> Pin<Box<dyn Future<Output = Result<models::RoomMemberCountResponse, Error>> + Send>>;
74    fn get_room_member_profile(&self, room_id: &str, user_id: &str) -> Pin<Box<dyn Future<Output = Result<models::RoomUserProfileResponse, Error>> + Send>>;
75    fn get_room_members_ids(&self, room_id: &str, start: Option<&str>) -> Pin<Box<dyn Future<Output = Result<models::MembersIdsResponse, Error>> + Send>>;
76    fn get_webhook_endpoint(&self, ) -> Pin<Box<dyn Future<Output = Result<models::GetWebhookEndpointResponse, Error>> + Send>>;
77    fn issue_link_token(&self, user_id: &str) -> Pin<Box<dyn Future<Output = Result<models::IssueLinkTokenResponse, Error>> + Send>>;
78    fn leave_group(&self, group_id: &str) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
79    fn leave_room(&self, room_id: &str) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
80    fn link_rich_menu_id_to_user(&self, user_id: &str, rich_menu_id: &str) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
81    fn link_rich_menu_id_to_users(&self, rich_menu_bulk_link_request: models::RichMenuBulkLinkRequest) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
82    fn mark_messages_as_read(&self, mark_messages_as_read_request: models::MarkMessagesAsReadRequest) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
83    fn multicast(&self, multicast_request: models::MulticastRequest, x_line_retry_key: Option<&str>) -> Pin<Box<dyn Future<Output = Result<serde_json::Value, Error>> + Send>>;
84    fn narrowcast(&self, narrowcast_request: models::NarrowcastRequest, x_line_retry_key: Option<&str>) -> Pin<Box<dyn Future<Output = Result<serde_json::Value, Error>> + Send>>;
85    fn push_message(&self, push_message_request: models::PushMessageRequest, x_line_retry_key: Option<&str>) -> Pin<Box<dyn Future<Output = Result<models::PushMessageResponse, Error>> + Send>>;
86    fn push_messages_by_phone(&self, pnp_messages_request: models::PnpMessagesRequest, x_line_delivery_tag: Option<&str>) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
87    fn reply_message(&self, reply_message_request: models::ReplyMessageRequest) -> Pin<Box<dyn Future<Output = Result<models::ReplyMessageResponse, Error>> + Send>>;
88    fn rich_menu_batch(&self, rich_menu_batch_request: models::RichMenuBatchRequest) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
89    fn set_default_rich_menu(&self, rich_menu_id: &str) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
90    fn set_webhook_endpoint(&self, set_webhook_endpoint_request: models::SetWebhookEndpointRequest) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
91    fn show_loading_animation(&self, show_loading_animation_request: models::ShowLoadingAnimationRequest) -> Pin<Box<dyn Future<Output = Result<serde_json::Value, Error>> + Send>>;
92    fn test_webhook_endpoint(&self, test_webhook_endpoint_request: Option<models::TestWebhookEndpointRequest>) -> Pin<Box<dyn Future<Output = Result<models::TestWebhookEndpointResponse, Error>> + Send>>;
93    fn unlink_rich_menu_id_from_user(&self, user_id: &str) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
94    fn unlink_rich_menu_id_from_users(&self, rich_menu_bulk_unlink_request: models::RichMenuBulkUnlinkRequest) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
95    fn update_rich_menu_alias(&self, rich_menu_alias_id: &str, update_rich_menu_alias_request: models::UpdateRichMenuAliasRequest) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
96    fn validate_broadcast(&self, validate_message_request: models::ValidateMessageRequest) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
97    fn validate_multicast(&self, validate_message_request: models::ValidateMessageRequest) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
98    fn validate_narrowcast(&self, validate_message_request: models::ValidateMessageRequest) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
99    fn validate_push(&self, validate_message_request: models::ValidateMessageRequest) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
100    fn validate_reply(&self, validate_message_request: models::ValidateMessageRequest) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
101    fn validate_rich_menu_batch_request(&self, rich_menu_batch_request: models::RichMenuBatchRequest) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
102    fn validate_rich_menu_object(&self, rich_menu_request: models::RichMenuRequest) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
103}
104
105impl<C: Connect>MessagingApiApi for MessagingApiApiClient<C>
106    where C: Clone + std::marker::Send + Sync {
107    #[allow(unused_mut)]
108    fn broadcast(&self, broadcast_request: models::BroadcastRequest, x_line_retry_key: Option<&str>) -> Pin<Box<dyn Future<Output = Result<serde_json::Value, Error>> + Send>> {
109        let mut req = __internal_request::Request::new(hyper::Method::POST, "/v2/bot/message/broadcast".to_string())
110        ;
111        if let Some(param_value) = x_line_retry_key {
112            req = req.with_header_param("X-Line-Retry-Key".to_string(), param_value.to_string());
113        }
114        req = req.with_body_param(broadcast_request);
115
116        req.execute(self.configuration.borrow())
117    }
118
119    #[allow(unused_mut)]
120    fn cancel_default_rich_menu(&self, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> {
121        let mut req = __internal_request::Request::new(hyper::Method::DELETE, "/v2/bot/user/all/richmenu".to_string())
122        ;
123        req = req.returns_nothing();
124
125        req.execute(self.configuration.borrow())
126    }
127
128    #[allow(unused_mut)]
129    fn create_rich_menu(&self, rich_menu_request: models::RichMenuRequest) -> Pin<Box<dyn Future<Output = Result<models::RichMenuIdResponse, Error>> + Send>> {
130        let mut req = __internal_request::Request::new(hyper::Method::POST, "/v2/bot/richmenu".to_string())
131        ;
132        req = req.with_body_param(rich_menu_request);
133
134        req.execute(self.configuration.borrow())
135    }
136
137    #[allow(unused_mut)]
138    fn create_rich_menu_alias(&self, create_rich_menu_alias_request: models::CreateRichMenuAliasRequest) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> {
139        let mut req = __internal_request::Request::new(hyper::Method::POST, "/v2/bot/richmenu/alias".to_string())
140        ;
141        req = req.with_body_param(create_rich_menu_alias_request);
142        req = req.returns_nothing();
143
144        req.execute(self.configuration.borrow())
145    }
146
147    #[allow(unused_mut)]
148    fn delete_rich_menu(&self, rich_menu_id: &str) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> {
149        let mut req = __internal_request::Request::new(hyper::Method::DELETE, "/v2/bot/richmenu/{richMenuId}".to_string())
150        ;
151        req = req.with_path_param("richMenuId".to_string(), rich_menu_id.to_string());
152        req = req.returns_nothing();
153
154        req.execute(self.configuration.borrow())
155    }
156
157    #[allow(unused_mut)]
158    fn delete_rich_menu_alias(&self, rich_menu_alias_id: &str) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> {
159        let mut req = __internal_request::Request::new(hyper::Method::DELETE, "/v2/bot/richmenu/alias/{richMenuAliasId}".to_string())
160        ;
161        req = req.with_path_param("richMenuAliasId".to_string(), rich_menu_alias_id.to_string());
162        req = req.returns_nothing();
163
164        req.execute(self.configuration.borrow())
165    }
166
167    #[allow(unused_mut)]
168    fn get_aggregation_unit_name_list(&self, limit: Option<&str>, start: Option<&str>) -> Pin<Box<dyn Future<Output = Result<models::GetAggregationUnitNameListResponse, Error>> + Send>> {
169        let mut req = __internal_request::Request::new(hyper::Method::GET, "/v2/bot/message/aggregation/list".to_string())
170        ;
171        if let Some(ref s) = limit {
172            let query_value = s.to_string();
173            req = req.with_query_param("limit".to_string(), query_value);
174        }
175        if let Some(ref s) = start {
176            let query_value = s.to_string();
177            req = req.with_query_param("start".to_string(), query_value);
178        }
179
180        req.execute(self.configuration.borrow())
181    }
182
183    #[allow(unused_mut)]
184    fn get_aggregation_unit_usage(&self, ) -> Pin<Box<dyn Future<Output = Result<models::GetAggregationUnitUsageResponse, Error>> + Send>> {
185        let mut req = __internal_request::Request::new(hyper::Method::GET, "/v2/bot/message/aggregation/info".to_string())
186        ;
187
188        req.execute(self.configuration.borrow())
189    }
190
191    #[allow(unused_mut)]
192    fn get_bot_info(&self, ) -> Pin<Box<dyn Future<Output = Result<models::BotInfoResponse, Error>> + Send>> {
193        let mut req = __internal_request::Request::new(hyper::Method::GET, "/v2/bot/info".to_string())
194        ;
195
196        req.execute(self.configuration.borrow())
197    }
198
199    #[allow(unused_mut)]
200    fn get_default_rich_menu_id(&self, ) -> Pin<Box<dyn Future<Output = Result<models::RichMenuIdResponse, Error>> + Send>> {
201        let mut req = __internal_request::Request::new(hyper::Method::GET, "/v2/bot/user/all/richmenu".to_string())
202        ;
203
204        req.execute(self.configuration.borrow())
205    }
206
207    #[allow(unused_mut)]
208    fn get_followers(&self, start: Option<&str>, limit: Option<i32>) -> Pin<Box<dyn Future<Output = Result<models::GetFollowersResponse, Error>> + Send>> {
209        let mut req = __internal_request::Request::new(hyper::Method::GET, "/v2/bot/followers/ids".to_string())
210        ;
211        if let Some(ref s) = start {
212            let query_value = s.to_string();
213            req = req.with_query_param("start".to_string(), query_value);
214        }
215        if let Some(ref s) = limit {
216            let query_value = s.to_string();
217            req = req.with_query_param("limit".to_string(), query_value);
218        }
219
220        req.execute(self.configuration.borrow())
221    }
222
223    #[allow(unused_mut)]
224    fn get_group_member_count(&self, group_id: &str) -> Pin<Box<dyn Future<Output = Result<models::GroupMemberCountResponse, Error>> + Send>> {
225        let mut req = __internal_request::Request::new(hyper::Method::GET, "/v2/bot/group/{groupId}/members/count".to_string())
226        ;
227        req = req.with_path_param("groupId".to_string(), group_id.to_string());
228
229        req.execute(self.configuration.borrow())
230    }
231
232    #[allow(unused_mut)]
233    fn get_group_member_profile(&self, group_id: &str, user_id: &str) -> Pin<Box<dyn Future<Output = Result<models::GroupUserProfileResponse, Error>> + Send>> {
234        let mut req = __internal_request::Request::new(hyper::Method::GET, "/v2/bot/group/{groupId}/member/{userId}".to_string())
235        ;
236        req = req.with_path_param("groupId".to_string(), group_id.to_string());
237        req = req.with_path_param("userId".to_string(), user_id.to_string());
238
239        req.execute(self.configuration.borrow())
240    }
241
242    #[allow(unused_mut)]
243    fn get_group_members_ids(&self, group_id: &str, start: Option<&str>) -> Pin<Box<dyn Future<Output = Result<models::MembersIdsResponse, Error>> + Send>> {
244        let mut req = __internal_request::Request::new(hyper::Method::GET, "/v2/bot/group/{groupId}/members/ids".to_string())
245        ;
246        if let Some(ref s) = start {
247            let query_value = s.to_string();
248            req = req.with_query_param("start".to_string(), query_value);
249        }
250        req = req.with_path_param("groupId".to_string(), group_id.to_string());
251
252        req.execute(self.configuration.borrow())
253    }
254
255    #[allow(unused_mut)]
256    fn get_group_summary(&self, group_id: &str) -> Pin<Box<dyn Future<Output = Result<models::GroupSummaryResponse, Error>> + Send>> {
257        let mut req = __internal_request::Request::new(hyper::Method::GET, "/v2/bot/group/{groupId}/summary".to_string())
258        ;
259        req = req.with_path_param("groupId".to_string(), group_id.to_string());
260
261        req.execute(self.configuration.borrow())
262    }
263
264    #[allow(unused_mut)]
265    fn get_joined_membership_users(&self, membership_id: i32, start: Option<&str>, limit: Option<i32>) -> Pin<Box<dyn Future<Output = Result<models::GetJoinedMembershipUsersResponse, Error>> + Send>> {
266        let mut req = __internal_request::Request::new(hyper::Method::GET, "/v2/bot/membership/{membershipId}/users/ids".to_string())
267        ;
268        if let Some(ref s) = start {
269            let query_value = s.to_string();
270            req = req.with_query_param("start".to_string(), query_value);
271        }
272        if let Some(ref s) = limit {
273            let query_value = s.to_string();
274            req = req.with_query_param("limit".to_string(), query_value);
275        }
276        req = req.with_path_param("membershipId".to_string(), membership_id.to_string());
277
278        req.execute(self.configuration.borrow())
279    }
280
281    #[allow(unused_mut)]
282    fn get_membership_list(&self, ) -> Pin<Box<dyn Future<Output = Result<models::MembershipListResponse, Error>> + Send>> {
283        let mut req = __internal_request::Request::new(hyper::Method::GET, "/v2/bot/membership/list".to_string())
284        ;
285
286        req.execute(self.configuration.borrow())
287    }
288
289    #[allow(unused_mut)]
290    fn get_membership_subscription(&self, user_id: &str) -> Pin<Box<dyn Future<Output = Result<models::GetMembershipSubscriptionResponse, Error>> + Send>> {
291        let mut req = __internal_request::Request::new(hyper::Method::GET, "/v2/bot/membership/subscription/{userId}".to_string())
292        ;
293        req = req.with_path_param("userId".to_string(), user_id.to_string());
294
295        req.execute(self.configuration.borrow())
296    }
297
298    #[allow(unused_mut)]
299    fn get_message_quota(&self, ) -> Pin<Box<dyn Future<Output = Result<models::MessageQuotaResponse, Error>> + Send>> {
300        let mut req = __internal_request::Request::new(hyper::Method::GET, "/v2/bot/message/quota".to_string())
301        ;
302
303        req.execute(self.configuration.borrow())
304    }
305
306    #[allow(unused_mut)]
307    fn get_message_quota_consumption(&self, ) -> Pin<Box<dyn Future<Output = Result<models::QuotaConsumptionResponse, Error>> + Send>> {
308        let mut req = __internal_request::Request::new(hyper::Method::GET, "/v2/bot/message/quota/consumption".to_string())
309        ;
310
311        req.execute(self.configuration.borrow())
312    }
313
314    #[allow(unused_mut)]
315    fn get_narrowcast_progress(&self, request_id: &str) -> Pin<Box<dyn Future<Output = Result<models::NarrowcastProgressResponse, Error>> + Send>> {
316        let mut req = __internal_request::Request::new(hyper::Method::GET, "/v2/bot/message/progress/narrowcast".to_string())
317        ;
318        req = req.with_query_param("requestId".to_string(), request_id.to_string());
319
320        req.execute(self.configuration.borrow())
321    }
322
323    #[allow(unused_mut)]
324    fn get_number_of_sent_broadcast_messages(&self, date: &str) -> Pin<Box<dyn Future<Output = Result<models::NumberOfMessagesResponse, Error>> + Send>> {
325        let mut req = __internal_request::Request::new(hyper::Method::GET, "/v2/bot/message/delivery/broadcast".to_string())
326        ;
327        req = req.with_query_param("date".to_string(), date.to_string());
328
329        req.execute(self.configuration.borrow())
330    }
331
332    #[allow(unused_mut)]
333    fn get_number_of_sent_multicast_messages(&self, date: &str) -> Pin<Box<dyn Future<Output = Result<models::NumberOfMessagesResponse, Error>> + Send>> {
334        let mut req = __internal_request::Request::new(hyper::Method::GET, "/v2/bot/message/delivery/multicast".to_string())
335        ;
336        req = req.with_query_param("date".to_string(), date.to_string());
337
338        req.execute(self.configuration.borrow())
339    }
340
341    #[allow(unused_mut)]
342    fn get_number_of_sent_push_messages(&self, date: &str) -> Pin<Box<dyn Future<Output = Result<models::NumberOfMessagesResponse, Error>> + Send>> {
343        let mut req = __internal_request::Request::new(hyper::Method::GET, "/v2/bot/message/delivery/push".to_string())
344        ;
345        req = req.with_query_param("date".to_string(), date.to_string());
346
347        req.execute(self.configuration.borrow())
348    }
349
350    #[allow(unused_mut)]
351    fn get_number_of_sent_reply_messages(&self, date: &str) -> Pin<Box<dyn Future<Output = Result<models::NumberOfMessagesResponse, Error>> + Send>> {
352        let mut req = __internal_request::Request::new(hyper::Method::GET, "/v2/bot/message/delivery/reply".to_string())
353        ;
354        req = req.with_query_param("date".to_string(), date.to_string());
355
356        req.execute(self.configuration.borrow())
357    }
358
359    #[allow(unused_mut)]
360    fn get_pnp_message_statistics(&self, date: &str) -> Pin<Box<dyn Future<Output = Result<models::NumberOfMessagesResponse, Error>> + Send>> {
361        let mut req = __internal_request::Request::new(hyper::Method::GET, "/v2/bot/message/delivery/pnp".to_string())
362        ;
363        req = req.with_query_param("date".to_string(), date.to_string());
364
365        req.execute(self.configuration.borrow())
366    }
367
368    #[allow(unused_mut)]
369    fn get_profile(&self, user_id: &str) -> Pin<Box<dyn Future<Output = Result<models::UserProfileResponse, Error>> + Send>> {
370        let mut req = __internal_request::Request::new(hyper::Method::GET, "/v2/bot/profile/{userId}".to_string())
371        ;
372        req = req.with_path_param("userId".to_string(), user_id.to_string());
373
374        req.execute(self.configuration.borrow())
375    }
376
377    #[allow(unused_mut)]
378    fn get_rich_menu(&self, rich_menu_id: &str) -> Pin<Box<dyn Future<Output = Result<models::RichMenuResponse, Error>> + Send>> {
379        let mut req = __internal_request::Request::new(hyper::Method::GET, "/v2/bot/richmenu/{richMenuId}".to_string())
380        ;
381        req = req.with_path_param("richMenuId".to_string(), rich_menu_id.to_string());
382
383        req.execute(self.configuration.borrow())
384    }
385
386    #[allow(unused_mut)]
387    fn get_rich_menu_alias(&self, rich_menu_alias_id: &str) -> Pin<Box<dyn Future<Output = Result<models::RichMenuAliasResponse, Error>> + Send>> {
388        let mut req = __internal_request::Request::new(hyper::Method::GET, "/v2/bot/richmenu/alias/{richMenuAliasId}".to_string())
389        ;
390        req = req.with_path_param("richMenuAliasId".to_string(), rich_menu_alias_id.to_string());
391
392        req.execute(self.configuration.borrow())
393    }
394
395    #[allow(unused_mut)]
396    fn get_rich_menu_alias_list(&self, ) -> Pin<Box<dyn Future<Output = Result<models::RichMenuAliasListResponse, Error>> + Send>> {
397        let mut req = __internal_request::Request::new(hyper::Method::GET, "/v2/bot/richmenu/alias/list".to_string())
398        ;
399
400        req.execute(self.configuration.borrow())
401    }
402
403    #[allow(unused_mut)]
404    fn get_rich_menu_batch_progress(&self, request_id: &str) -> Pin<Box<dyn Future<Output = Result<models::RichMenuBatchProgressResponse, Error>> + Send>> {
405        let mut req = __internal_request::Request::new(hyper::Method::GET, "/v2/bot/richmenu/progress/batch".to_string())
406        ;
407        req = req.with_query_param("requestId".to_string(), request_id.to_string());
408
409        req.execute(self.configuration.borrow())
410    }
411
412    #[allow(unused_mut)]
413    fn get_rich_menu_id_of_user(&self, user_id: &str) -> Pin<Box<dyn Future<Output = Result<models::RichMenuIdResponse, Error>> + Send>> {
414        let mut req = __internal_request::Request::new(hyper::Method::GET, "/v2/bot/user/{userId}/richmenu".to_string())
415        ;
416        req = req.with_path_param("userId".to_string(), user_id.to_string());
417
418        req.execute(self.configuration.borrow())
419    }
420
421    #[allow(unused_mut)]
422    fn get_rich_menu_list(&self, ) -> Pin<Box<dyn Future<Output = Result<models::RichMenuListResponse, Error>> + Send>> {
423        let mut req = __internal_request::Request::new(hyper::Method::GET, "/v2/bot/richmenu/list".to_string())
424        ;
425
426        req.execute(self.configuration.borrow())
427    }
428
429    #[allow(unused_mut)]
430    fn get_room_member_count(&self, room_id: &str) -> Pin<Box<dyn Future<Output = Result<models::RoomMemberCountResponse, Error>> + Send>> {
431        let mut req = __internal_request::Request::new(hyper::Method::GET, "/v2/bot/room/{roomId}/members/count".to_string())
432        ;
433        req = req.with_path_param("roomId".to_string(), room_id.to_string());
434
435        req.execute(self.configuration.borrow())
436    }
437
438    #[allow(unused_mut)]
439    fn get_room_member_profile(&self, room_id: &str, user_id: &str) -> Pin<Box<dyn Future<Output = Result<models::RoomUserProfileResponse, Error>> + Send>> {
440        let mut req = __internal_request::Request::new(hyper::Method::GET, "/v2/bot/room/{roomId}/member/{userId}".to_string())
441        ;
442        req = req.with_path_param("roomId".to_string(), room_id.to_string());
443        req = req.with_path_param("userId".to_string(), user_id.to_string());
444
445        req.execute(self.configuration.borrow())
446    }
447
448    #[allow(unused_mut)]
449    fn get_room_members_ids(&self, room_id: &str, start: Option<&str>) -> Pin<Box<dyn Future<Output = Result<models::MembersIdsResponse, Error>> + Send>> {
450        let mut req = __internal_request::Request::new(hyper::Method::GET, "/v2/bot/room/{roomId}/members/ids".to_string())
451        ;
452        if let Some(ref s) = start {
453            let query_value = s.to_string();
454            req = req.with_query_param("start".to_string(), query_value);
455        }
456        req = req.with_path_param("roomId".to_string(), room_id.to_string());
457
458        req.execute(self.configuration.borrow())
459    }
460
461    #[allow(unused_mut)]
462    fn get_webhook_endpoint(&self, ) -> Pin<Box<dyn Future<Output = Result<models::GetWebhookEndpointResponse, Error>> + Send>> {
463        let mut req = __internal_request::Request::new(hyper::Method::GET, "/v2/bot/channel/webhook/endpoint".to_string())
464        ;
465
466        req.execute(self.configuration.borrow())
467    }
468
469    #[allow(unused_mut)]
470    fn issue_link_token(&self, user_id: &str) -> Pin<Box<dyn Future<Output = Result<models::IssueLinkTokenResponse, Error>> + Send>> {
471        let mut req = __internal_request::Request::new(hyper::Method::POST, "/v2/bot/user/{userId}/linkToken".to_string())
472        ;
473        req = req.with_path_param("userId".to_string(), user_id.to_string());
474
475        req.execute(self.configuration.borrow())
476    }
477
478    #[allow(unused_mut)]
479    fn leave_group(&self, group_id: &str) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> {
480        let mut req = __internal_request::Request::new(hyper::Method::POST, "/v2/bot/group/{groupId}/leave".to_string())
481        ;
482        req = req.with_path_param("groupId".to_string(), group_id.to_string());
483        req = req.returns_nothing();
484
485        req.execute(self.configuration.borrow())
486    }
487
488    #[allow(unused_mut)]
489    fn leave_room(&self, room_id: &str) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> {
490        let mut req = __internal_request::Request::new(hyper::Method::POST, "/v2/bot/room/{roomId}/leave".to_string())
491        ;
492        req = req.with_path_param("roomId".to_string(), room_id.to_string());
493        req = req.returns_nothing();
494
495        req.execute(self.configuration.borrow())
496    }
497
498    #[allow(unused_mut)]
499    fn link_rich_menu_id_to_user(&self, user_id: &str, rich_menu_id: &str) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> {
500        let mut req = __internal_request::Request::new(hyper::Method::POST, "/v2/bot/user/{userId}/richmenu/{richMenuId}".to_string())
501        ;
502        req = req.with_path_param("userId".to_string(), user_id.to_string());
503        req = req.with_path_param("richMenuId".to_string(), rich_menu_id.to_string());
504        req = req.returns_nothing();
505
506        req.execute(self.configuration.borrow())
507    }
508
509    #[allow(unused_mut)]
510    fn link_rich_menu_id_to_users(&self, rich_menu_bulk_link_request: models::RichMenuBulkLinkRequest) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> {
511        let mut req = __internal_request::Request::new(hyper::Method::POST, "/v2/bot/richmenu/bulk/link".to_string())
512        ;
513        req = req.with_body_param(rich_menu_bulk_link_request);
514        req = req.returns_nothing();
515
516        req.execute(self.configuration.borrow())
517    }
518
519    #[allow(unused_mut)]
520    fn mark_messages_as_read(&self, mark_messages_as_read_request: models::MarkMessagesAsReadRequest) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> {
521        let mut req = __internal_request::Request::new(hyper::Method::POST, "/v2/bot/message/markAsRead".to_string())
522        ;
523        req = req.with_body_param(mark_messages_as_read_request);
524        req = req.returns_nothing();
525
526        req.execute(self.configuration.borrow())
527    }
528
529    #[allow(unused_mut)]
530    fn multicast(&self, multicast_request: models::MulticastRequest, x_line_retry_key: Option<&str>) -> Pin<Box<dyn Future<Output = Result<serde_json::Value, Error>> + Send>> {
531        let mut req = __internal_request::Request::new(hyper::Method::POST, "/v2/bot/message/multicast".to_string())
532        ;
533        if let Some(param_value) = x_line_retry_key {
534            req = req.with_header_param("X-Line-Retry-Key".to_string(), param_value.to_string());
535        }
536        req = req.with_body_param(multicast_request);
537
538        req.execute(self.configuration.borrow())
539    }
540
541    #[allow(unused_mut)]
542    fn narrowcast(&self, narrowcast_request: models::NarrowcastRequest, x_line_retry_key: Option<&str>) -> Pin<Box<dyn Future<Output = Result<serde_json::Value, Error>> + Send>> {
543        let mut req = __internal_request::Request::new(hyper::Method::POST, "/v2/bot/message/narrowcast".to_string())
544        ;
545        if let Some(param_value) = x_line_retry_key {
546            req = req.with_header_param("X-Line-Retry-Key".to_string(), param_value.to_string());
547        }
548        req = req.with_body_param(narrowcast_request);
549
550        req.execute(self.configuration.borrow())
551    }
552
553    #[allow(unused_mut)]
554    fn push_message(&self, push_message_request: models::PushMessageRequest, x_line_retry_key: Option<&str>) -> Pin<Box<dyn Future<Output = Result<models::PushMessageResponse, Error>> + Send>> {
555        let mut req = __internal_request::Request::new(hyper::Method::POST, "/v2/bot/message/push".to_string())
556        ;
557        if let Some(param_value) = x_line_retry_key {
558            req = req.with_header_param("X-Line-Retry-Key".to_string(), param_value.to_string());
559        }
560        req = req.with_body_param(push_message_request);
561
562        req.execute(self.configuration.borrow())
563    }
564
565    #[allow(unused_mut)]
566    fn push_messages_by_phone(&self, pnp_messages_request: models::PnpMessagesRequest, x_line_delivery_tag: Option<&str>) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> {
567        let mut req = __internal_request::Request::new(hyper::Method::POST, "/bot/pnp/push".to_string())
568        ;
569        if let Some(param_value) = x_line_delivery_tag {
570            req = req.with_header_param("X-Line-Delivery-Tag".to_string(), param_value.to_string());
571        }
572        req = req.with_body_param(pnp_messages_request);
573        req = req.returns_nothing();
574
575        req.execute(self.configuration.borrow())
576    }
577
578    #[allow(unused_mut)]
579    fn reply_message(&self, reply_message_request: models::ReplyMessageRequest) -> Pin<Box<dyn Future<Output = Result<models::ReplyMessageResponse, Error>> + Send>> {
580        let mut req = __internal_request::Request::new(hyper::Method::POST, "/v2/bot/message/reply".to_string())
581        ;
582        req = req.with_body_param(reply_message_request);
583
584        req.execute(self.configuration.borrow())
585    }
586
587    #[allow(unused_mut)]
588    fn rich_menu_batch(&self, rich_menu_batch_request: models::RichMenuBatchRequest) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> {
589        let mut req = __internal_request::Request::new(hyper::Method::POST, "/v2/bot/richmenu/batch".to_string())
590        ;
591        req = req.with_body_param(rich_menu_batch_request);
592        req = req.returns_nothing();
593
594        req.execute(self.configuration.borrow())
595    }
596
597    #[allow(unused_mut)]
598    fn set_default_rich_menu(&self, rich_menu_id: &str) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> {
599        let mut req = __internal_request::Request::new(hyper::Method::POST, "/v2/bot/user/all/richmenu/{richMenuId}".to_string())
600        ;
601        req = req.with_path_param("richMenuId".to_string(), rich_menu_id.to_string());
602        req = req.returns_nothing();
603
604        req.execute(self.configuration.borrow())
605    }
606
607    #[allow(unused_mut)]
608    fn set_webhook_endpoint(&self, set_webhook_endpoint_request: models::SetWebhookEndpointRequest) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> {
609        let mut req = __internal_request::Request::new(hyper::Method::PUT, "/v2/bot/channel/webhook/endpoint".to_string())
610        ;
611        req = req.with_body_param(set_webhook_endpoint_request);
612        req = req.returns_nothing();
613
614        req.execute(self.configuration.borrow())
615    }
616
617    #[allow(unused_mut)]
618    fn show_loading_animation(&self, show_loading_animation_request: models::ShowLoadingAnimationRequest) -> Pin<Box<dyn Future<Output = Result<serde_json::Value, Error>> + Send>> {
619        let mut req = __internal_request::Request::new(hyper::Method::POST, "/v2/bot/chat/loading/start".to_string())
620        ;
621        req = req.with_body_param(show_loading_animation_request);
622
623        req.execute(self.configuration.borrow())
624    }
625
626    #[allow(unused_mut)]
627    fn test_webhook_endpoint(&self, test_webhook_endpoint_request: Option<models::TestWebhookEndpointRequest>) -> Pin<Box<dyn Future<Output = Result<models::TestWebhookEndpointResponse, Error>> + Send>> {
628        let mut req = __internal_request::Request::new(hyper::Method::POST, "/v2/bot/channel/webhook/test".to_string())
629        ;
630        req = req.with_body_param(test_webhook_endpoint_request);
631
632        req.execute(self.configuration.borrow())
633    }
634
635    #[allow(unused_mut)]
636    fn unlink_rich_menu_id_from_user(&self, user_id: &str) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> {
637        let mut req = __internal_request::Request::new(hyper::Method::DELETE, "/v2/bot/user/{userId}/richmenu".to_string())
638        ;
639        req = req.with_path_param("userId".to_string(), user_id.to_string());
640        req = req.returns_nothing();
641
642        req.execute(self.configuration.borrow())
643    }
644
645    #[allow(unused_mut)]
646    fn unlink_rich_menu_id_from_users(&self, rich_menu_bulk_unlink_request: models::RichMenuBulkUnlinkRequest) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> {
647        let mut req = __internal_request::Request::new(hyper::Method::POST, "/v2/bot/richmenu/bulk/unlink".to_string())
648        ;
649        req = req.with_body_param(rich_menu_bulk_unlink_request);
650        req = req.returns_nothing();
651
652        req.execute(self.configuration.borrow())
653    }
654
655    #[allow(unused_mut)]
656    fn update_rich_menu_alias(&self, rich_menu_alias_id: &str, update_rich_menu_alias_request: models::UpdateRichMenuAliasRequest) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> {
657        let mut req = __internal_request::Request::new(hyper::Method::POST, "/v2/bot/richmenu/alias/{richMenuAliasId}".to_string())
658        ;
659        req = req.with_path_param("richMenuAliasId".to_string(), rich_menu_alias_id.to_string());
660        req = req.with_body_param(update_rich_menu_alias_request);
661        req = req.returns_nothing();
662
663        req.execute(self.configuration.borrow())
664    }
665
666    #[allow(unused_mut)]
667    fn validate_broadcast(&self, validate_message_request: models::ValidateMessageRequest) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> {
668        let mut req = __internal_request::Request::new(hyper::Method::POST, "/v2/bot/message/validate/broadcast".to_string())
669        ;
670        req = req.with_body_param(validate_message_request);
671        req = req.returns_nothing();
672
673        req.execute(self.configuration.borrow())
674    }
675
676    #[allow(unused_mut)]
677    fn validate_multicast(&self, validate_message_request: models::ValidateMessageRequest) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> {
678        let mut req = __internal_request::Request::new(hyper::Method::POST, "/v2/bot/message/validate/multicast".to_string())
679        ;
680        req = req.with_body_param(validate_message_request);
681        req = req.returns_nothing();
682
683        req.execute(self.configuration.borrow())
684    }
685
686    #[allow(unused_mut)]
687    fn validate_narrowcast(&self, validate_message_request: models::ValidateMessageRequest) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> {
688        let mut req = __internal_request::Request::new(hyper::Method::POST, "/v2/bot/message/validate/narrowcast".to_string())
689        ;
690        req = req.with_body_param(validate_message_request);
691        req = req.returns_nothing();
692
693        req.execute(self.configuration.borrow())
694    }
695
696    #[allow(unused_mut)]
697    fn validate_push(&self, validate_message_request: models::ValidateMessageRequest) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> {
698        let mut req = __internal_request::Request::new(hyper::Method::POST, "/v2/bot/message/validate/push".to_string())
699        ;
700        req = req.with_body_param(validate_message_request);
701        req = req.returns_nothing();
702
703        req.execute(self.configuration.borrow())
704    }
705
706    #[allow(unused_mut)]
707    fn validate_reply(&self, validate_message_request: models::ValidateMessageRequest) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> {
708        let mut req = __internal_request::Request::new(hyper::Method::POST, "/v2/bot/message/validate/reply".to_string())
709        ;
710        req = req.with_body_param(validate_message_request);
711        req = req.returns_nothing();
712
713        req.execute(self.configuration.borrow())
714    }
715
716    #[allow(unused_mut)]
717    fn validate_rich_menu_batch_request(&self, rich_menu_batch_request: models::RichMenuBatchRequest) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> {
718        let mut req = __internal_request::Request::new(hyper::Method::POST, "/v2/bot/richmenu/validate/batch".to_string())
719        ;
720        req = req.with_body_param(rich_menu_batch_request);
721        req = req.returns_nothing();
722
723        req.execute(self.configuration.borrow())
724    }
725
726    #[allow(unused_mut)]
727    fn validate_rich_menu_object(&self, rich_menu_request: models::RichMenuRequest) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> {
728        let mut req = __internal_request::Request::new(hyper::Method::POST, "/v2/bot/richmenu/validate".to_string())
729        ;
730        req = req.with_body_param(rich_menu_request);
731        req = req.returns_nothing();
732
733        req.execute(self.configuration.borrow())
734    }
735
736}