From 1be17102d5aeddc2625c7f1818b82a99f923d0fb Mon Sep 17 00:00:00 2001 From: Kayxue Date: Thu, 27 Feb 2025 23:54:57 +0800 Subject: [PATCH 1/4] Finish some flexbox api --- core/line_messaging_api/src/models/action.rs | 25 ++- .../line_messaging_api/src/models/flex_box.rs | 2 +- .../src/models/flex_bubble.rs | 3 +- .../src/models/flex_button.rs | 2 +- .../src/models/flex_component.rs | 19 +- .../src/models/flex_container.rs | 9 +- .../src/models/flex_text.rs | 2 +- .../src/models/uri_action.rs | 2 +- examples/actix_web_example/src/main.rs | 175 +++++++++++++++++- 9 files changed, 223 insertions(+), 16 deletions(-) diff --git a/core/line_messaging_api/src/models/action.rs b/core/line_messaging_api/src/models/action.rs index 0ba9d62..d21e97a 100644 --- a/core/line_messaging_api/src/models/action.rs +++ b/core/line_messaging_api/src/models/action.rs @@ -24,8 +24,29 @@ * Generated by: https://openapi-generator.tech */ +use super::{ + CameraAction, CameraRollAction, ClipboardAction, DatetimePickerAction, LocationAction, + MessageAction, PostbackAction, RichMenuSwitchAction, UriAction, +}; + /// Action : Action #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -#[serde(tag = "")] -pub enum Action {} +#[serde(untagged)] +pub enum Action { + Camera(CameraAction), + CameraRoll(CameraRollAction), + Clipboard(ClipboardAction), + DateTimePicker(DatetimePickerAction), + Location(LocationAction), + Message(MessageAction), + Postback(PostbackAction), + RichMenuSwitch(RichMenuSwitchAction), + URI(UriAction), +} + +impl Default for Action { + fn default() -> Self { + Action::URI(UriAction::default()) + } +} diff --git a/core/line_messaging_api/src/models/flex_box.rs b/core/line_messaging_api/src/models/flex_box.rs index a0b911e..2708e35 100644 --- a/core/line_messaging_api/src/models/flex_box.rs +++ b/core/line_messaging_api/src/models/flex_box.rs @@ -24,7 +24,7 @@ * Generated by: https://openapi-generator.tech */ -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct FlexBox { #[serde(rename = "type")] pub r#type: String, diff --git a/core/line_messaging_api/src/models/flex_bubble.rs b/core/line_messaging_api/src/models/flex_bubble.rs index 915b588..25cb676 100644 --- a/core/line_messaging_api/src/models/flex_bubble.rs +++ b/core/line_messaging_api/src/models/flex_bubble.rs @@ -24,7 +24,7 @@ * Generated by: https://openapi-generator.tech */ -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct FlexBubble { #[serde(rename = "type")] pub r#type: String, @@ -64,6 +64,7 @@ impl FlexBubble { /// #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +#[serde(untagged)] pub enum Direction { #[serde(rename = "ltr")] Ltr, diff --git a/core/line_messaging_api/src/models/flex_button.rs b/core/line_messaging_api/src/models/flex_button.rs index 4cb8780..9127066 100644 --- a/core/line_messaging_api/src/models/flex_button.rs +++ b/core/line_messaging_api/src/models/flex_button.rs @@ -24,7 +24,7 @@ * Generated by: https://openapi-generator.tech */ -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct FlexButton { #[serde(rename = "type")] pub r#type: String, diff --git a/core/line_messaging_api/src/models/flex_component.rs b/core/line_messaging_api/src/models/flex_component.rs index 63b9e94..2293c26 100644 --- a/core/line_messaging_api/src/models/flex_component.rs +++ b/core/line_messaging_api/src/models/flex_component.rs @@ -24,6 +24,21 @@ * Generated by: https://openapi-generator.tech */ +use super::{ + FlexBox, FlexButton, FlexFiller, FlexIcon, FlexImage, FlexSeparator, FlexSpan, FlexText, + FlexVideo, +}; + #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -#[serde(tag = "")] -pub enum FlexComponent {} +#[serde(untagged)] +pub enum FlexComponent { + FlexBox(FlexBox), + FlexButton(FlexButton), + FlexFiller(FlexFiller), + FlexIcon(FlexIcon), + FlexImage(FlexImage), + FlexSeparator(FlexSeparator), + FlexSpan(FlexSpan), + FlexText(FlexText), + FlexVideo(FlexVideo), +} diff --git a/core/line_messaging_api/src/models/flex_container.rs b/core/line_messaging_api/src/models/flex_container.rs index d271374..2d96834 100644 --- a/core/line_messaging_api/src/models/flex_container.rs +++ b/core/line_messaging_api/src/models/flex_container.rs @@ -24,6 +24,11 @@ * Generated by: https://openapi-generator.tech */ +use super::{FlexBubble, FlexCarousel}; + #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -#[serde(tag = "")] -pub enum FlexContainer {} +#[serde(untagged)] +pub enum FlexContainer { + Bubble(FlexBubble), + Carousel(FlexCarousel), +} diff --git a/core/line_messaging_api/src/models/flex_text.rs b/core/line_messaging_api/src/models/flex_text.rs index c45d33d..27a673b 100644 --- a/core/line_messaging_api/src/models/flex_text.rs +++ b/core/line_messaging_api/src/models/flex_text.rs @@ -24,7 +24,7 @@ * Generated by: https://openapi-generator.tech */ -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct FlexText { #[serde(rename = "type")] pub r#type: String, diff --git a/core/line_messaging_api/src/models/uri_action.rs b/core/line_messaging_api/src/models/uri_action.rs index b80ac94..fd14841 100644 --- a/core/line_messaging_api/src/models/uri_action.rs +++ b/core/line_messaging_api/src/models/uri_action.rs @@ -24,7 +24,7 @@ * Generated by: https://openapi-generator.tech */ -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct UriAction { /// Type of action #[serde(rename = "type", skip_serializing_if = "Option::is_none")] diff --git a/examples/actix_web_example/src/main.rs b/examples/actix_web_example/src/main.rs index 57b79cc..0204a84 100644 --- a/examples/actix_web_example/src/main.rs +++ b/examples/actix_web_example/src/main.rs @@ -6,11 +6,13 @@ use line_bot_sdk_rust::{ client::LINE, line_messaging_api::{ apis::MessagingApiApi, - models::{Message, ReplyMessageRequest, TextMessage}, + models::{ + flex_box::Layout, flex_button::{Height, Style}, flex_text::Weight, Action, FlexBox, FlexBubble, FlexButton, FlexComponent, FlexContainer, FlexMessage, FlexText, Message, ReplyMessageRequest, TextMessage, UriAction + }, }, + line_webhook::models::{CallbackRequest, Event, MessageContent}, parser::signature::validate_signature, support::actix::Signature, - line_webhook::models::{CallbackRequest, Event, MessageContent}, }; use std::env; @@ -34,16 +36,179 @@ async fn callback(signature: Signature, bytes: web::Bytes) -> Result return Err(ErrorBadRequest(err.to_string())), Ok(req) => { - println!("req: {req:#?}"); + // println!("req: {req:#?}"); for e in req.events { if let Event::MessageEvent(message_event) = e { if let MessageContent::TextMessageContent(text_message) = *message_event.message { let reply_message_request = ReplyMessageRequest { reply_token: message_event.reply_token.unwrap(), - messages: vec![Message::Text(TextMessage::new(text_message.text))], + messages: vec![Message::Flex(FlexMessage::new( + "New Changes".to_owned(), + FlexContainer::Bubble(FlexBubble { + r#type: "bubble".to_owned(), + body: Some(Box::new(FlexBox::new( + "box".to_owned(), + Layout::Vertical, + vec![ + FlexComponent::FlexText(FlexText { + r#type: "text".to_owned(), + text: Some("Commit Pushed".to_owned()), + weight: Some(Weight::Bold), + size: Some("xl".to_owned()), + wrap: Some(true), + ..Default::default() + }), + FlexComponent::FlexBox(FlexBox { + r#type: "box".to_owned(), + layout: Layout::Vertical, + margin: Some("lg".to_owned()), + spacing: Some("sm".to_owned()), + contents: vec![ + FlexComponent::FlexText(FlexText { + r#type: "text".to_owned(), + text: Some( + "Commit pushed to main branch" + .to_owned(), + ), + wrap: Some(true), + ..Default::default() + }), + FlexComponent::FlexBox(FlexBox { + r#type: "box".to_owned(), + layout: Layout::Baseline, + spacing: Some("sm".to_owned()), + contents: vec![ + FlexComponent::FlexText(FlexText { + r#type: "text".to_owned(), + text: Some("ID".to_owned()), + color: Some("#aaaaaa".to_owned()), + size: Some("sm".to_owned()), + flex: Some(2), + ..Default::default() + }), + FlexComponent::FlexText(FlexText { + r#type: "text".to_owned(), + text: Some("1234567".to_owned()), + wrap: Some(false), + color: Some("#666666".to_owned()), + size: Some("sm".to_owned()), + flex: Some(6), + ..Default::default() + }), + ], + ..Default::default() + }), + FlexComponent::FlexBox(FlexBox{ + r#type: "box".to_owned(), + layout: Layout::Baseline, + spacing: Some("sm".to_owned()), + contents: vec![ + FlexComponent::FlexText(FlexText{ + r#type: "text".to_owned(), + text: Some("Committer".to_owned()), + color: Some("#aaaaaa".to_owned()), + size: Some("sm".to_owned()), + flex: Some(0), + wrap: Some(true), + ..Default::default() + }), + FlexComponent::FlexText(FlexText{ + r#type: "text".to_owned(), + text: Some("KayXue".to_owned()), + color:Some("#666666".to_owned()), + size: Some("sm".to_owned()), + flex: Some(5), + ..Default::default() + }) + ], + ..Default::default() + }), + FlexComponent::FlexBox(FlexBox{ + r#type: "box".to_owned(), + layout: Layout::Baseline, + spacing: Some("sm".to_owned()), + contents:vec![ + FlexComponent::FlexText(FlexText{ + r#type:"text".to_owned(), + text: Some("Message".to_owned()), + color: Some("#aaaaaa".to_owned()), + size: Some("sm".to_owned()), + flex: Some(1), + wrap: Some(true), + ..Default::default() + }), + FlexComponent::FlexText(FlexText{ + r#type:"text".to_owned(), + text: Some("Commit Msg".to_owned()), + color: Some("#666666".to_owned()), + size: Some("sm".to_owned()), + flex: Some(3), + wrap: Some(false), + ..Default::default() + }) + ], + ..Default::default() + }), + FlexComponent::FlexBox(FlexBox{ + r#type:"box".to_owned(), + layout: Layout::Baseline, + spacing: Some("sm".to_owned()), + contents: vec![ + FlexComponent::FlexText(FlexText{ + r#type:"text".to_owned(), + text:Some("Time".to_owned()), + color: Some("#aaaaaa".to_owned()), + size: Some("sm".to_owned()), + flex: Some(1), + wrap: Some(true), + ..Default::default() + }), + FlexComponent::FlexText(FlexText{ + r#type:"text".to_owned(), + text: Some("2023-10-01 12:00:00".to_owned()), + color: Some("#666666".to_owned()), + size: Some("sm".to_owned()), + flex: Some(3), + wrap: Some(true), + ..Default::default() + }) + ], + ..Default::default() + }) + ], + ..Default::default() + }), + ], + ))), + footer: Some(Box::new(FlexBox{ + r#type:"box".to_owned(), + layout:Layout::Vertical, + spacing:Some("sm".to_owned()), + contents: vec![ + FlexComponent::FlexButton(FlexButton{ + r#type:"button".to_owned(), + style: Some(Style::Link), + height: Some(Height::Sm), + action:Box::new(Action::URI(UriAction{ + r#type:Some("uri".to_owned()), + label: Some("Check the commit".to_owned()), + uri: Some("https://www.google.com".to_owned()), + ..Default::default() + })), + ..Default::default() + }) + ], + ..Default::default() + })), + ..Default::default() + }), + ))], notification_disabled: Some(false), }; + let res=serde_json::to_string_pretty(&reply_message_request.messages[0]) + .map_err(|e| ErrorBadRequest(e.to_string()))?; + println!("res: {res}"); let result = line .messaging_api_client .reply_message(reply_message_request) @@ -69,7 +234,7 @@ async fn main() -> std::io::Result<()> { .wrap(middleware::Logger::default()) .service(callback) }) - .bind(("127.0.0.1", 8080))? + .bind(("0.0.0.0", 3000))? .run() .await } From fdc0495757b39a5230e21518ceb7f08dda81b0eb Mon Sep 17 00:00:00 2001 From: Kayxue Date: Fri, 28 Feb 2025 00:00:28 +0800 Subject: [PATCH 2/4] Change example back to default --- examples/actix_web_example/src/main.rs | 177 +------------------------ 1 file changed, 6 insertions(+), 171 deletions(-) diff --git a/examples/actix_web_example/src/main.rs b/examples/actix_web_example/src/main.rs index 0204a84..8e25b6c 100644 --- a/examples/actix_web_example/src/main.rs +++ b/examples/actix_web_example/src/main.rs @@ -6,13 +6,11 @@ use line_bot_sdk_rust::{ client::LINE, line_messaging_api::{ apis::MessagingApiApi, - models::{ - flex_box::Layout, flex_button::{Height, Style}, flex_text::Weight, Action, FlexBox, FlexBubble, FlexButton, FlexComponent, FlexContainer, FlexMessage, FlexText, Message, ReplyMessageRequest, TextMessage, UriAction - }, + models::{Message, ReplyMessageRequest, TextMessage}, }, - line_webhook::models::{CallbackRequest, Event, MessageContent}, parser::signature::validate_signature, support::actix::Signature, + line_webhook::models::{CallbackRequest, Event, MessageContent}, }; use std::env; @@ -36,179 +34,16 @@ async fn callback(signature: Signature, bytes: web::Bytes) -> Result return Err(ErrorBadRequest(err.to_string())), Ok(req) => { - // println!("req: {req:#?}"); + println!("req: {req:#?}"); for e in req.events { if let Event::MessageEvent(message_event) = e { if let MessageContent::TextMessageContent(text_message) = *message_event.message { let reply_message_request = ReplyMessageRequest { reply_token: message_event.reply_token.unwrap(), - messages: vec![Message::Flex(FlexMessage::new( - "New Changes".to_owned(), - FlexContainer::Bubble(FlexBubble { - r#type: "bubble".to_owned(), - body: Some(Box::new(FlexBox::new( - "box".to_owned(), - Layout::Vertical, - vec![ - FlexComponent::FlexText(FlexText { - r#type: "text".to_owned(), - text: Some("Commit Pushed".to_owned()), - weight: Some(Weight::Bold), - size: Some("xl".to_owned()), - wrap: Some(true), - ..Default::default() - }), - FlexComponent::FlexBox(FlexBox { - r#type: "box".to_owned(), - layout: Layout::Vertical, - margin: Some("lg".to_owned()), - spacing: Some("sm".to_owned()), - contents: vec![ - FlexComponent::FlexText(FlexText { - r#type: "text".to_owned(), - text: Some( - "Commit pushed to main branch" - .to_owned(), - ), - wrap: Some(true), - ..Default::default() - }), - FlexComponent::FlexBox(FlexBox { - r#type: "box".to_owned(), - layout: Layout::Baseline, - spacing: Some("sm".to_owned()), - contents: vec![ - FlexComponent::FlexText(FlexText { - r#type: "text".to_owned(), - text: Some("ID".to_owned()), - color: Some("#aaaaaa".to_owned()), - size: Some("sm".to_owned()), - flex: Some(2), - ..Default::default() - }), - FlexComponent::FlexText(FlexText { - r#type: "text".to_owned(), - text: Some("1234567".to_owned()), - wrap: Some(false), - color: Some("#666666".to_owned()), - size: Some("sm".to_owned()), - flex: Some(6), - ..Default::default() - }), - ], - ..Default::default() - }), - FlexComponent::FlexBox(FlexBox{ - r#type: "box".to_owned(), - layout: Layout::Baseline, - spacing: Some("sm".to_owned()), - contents: vec![ - FlexComponent::FlexText(FlexText{ - r#type: "text".to_owned(), - text: Some("Committer".to_owned()), - color: Some("#aaaaaa".to_owned()), - size: Some("sm".to_owned()), - flex: Some(0), - wrap: Some(true), - ..Default::default() - }), - FlexComponent::FlexText(FlexText{ - r#type: "text".to_owned(), - text: Some("KayXue".to_owned()), - color:Some("#666666".to_owned()), - size: Some("sm".to_owned()), - flex: Some(5), - ..Default::default() - }) - ], - ..Default::default() - }), - FlexComponent::FlexBox(FlexBox{ - r#type: "box".to_owned(), - layout: Layout::Baseline, - spacing: Some("sm".to_owned()), - contents:vec![ - FlexComponent::FlexText(FlexText{ - r#type:"text".to_owned(), - text: Some("Message".to_owned()), - color: Some("#aaaaaa".to_owned()), - size: Some("sm".to_owned()), - flex: Some(1), - wrap: Some(true), - ..Default::default() - }), - FlexComponent::FlexText(FlexText{ - r#type:"text".to_owned(), - text: Some("Commit Msg".to_owned()), - color: Some("#666666".to_owned()), - size: Some("sm".to_owned()), - flex: Some(3), - wrap: Some(false), - ..Default::default() - }) - ], - ..Default::default() - }), - FlexComponent::FlexBox(FlexBox{ - r#type:"box".to_owned(), - layout: Layout::Baseline, - spacing: Some("sm".to_owned()), - contents: vec![ - FlexComponent::FlexText(FlexText{ - r#type:"text".to_owned(), - text:Some("Time".to_owned()), - color: Some("#aaaaaa".to_owned()), - size: Some("sm".to_owned()), - flex: Some(1), - wrap: Some(true), - ..Default::default() - }), - FlexComponent::FlexText(FlexText{ - r#type:"text".to_owned(), - text: Some("2023-10-01 12:00:00".to_owned()), - color: Some("#666666".to_owned()), - size: Some("sm".to_owned()), - flex: Some(3), - wrap: Some(true), - ..Default::default() - }) - ], - ..Default::default() - }) - ], - ..Default::default() - }), - ], - ))), - footer: Some(Box::new(FlexBox{ - r#type:"box".to_owned(), - layout:Layout::Vertical, - spacing:Some("sm".to_owned()), - contents: vec![ - FlexComponent::FlexButton(FlexButton{ - r#type:"button".to_owned(), - style: Some(Style::Link), - height: Some(Height::Sm), - action:Box::new(Action::URI(UriAction{ - r#type:Some("uri".to_owned()), - label: Some("Check the commit".to_owned()), - uri: Some("https://www.google.com".to_owned()), - ..Default::default() - })), - ..Default::default() - }) - ], - ..Default::default() - })), - ..Default::default() - }), - ))], + messages: vec![Message::Text(TextMessage::new(text_message.text))], notification_disabled: Some(false), }; - let res=serde_json::to_string_pretty(&reply_message_request.messages[0]) - .map_err(|e| ErrorBadRequest(e.to_string()))?; - println!("res: {res}"); let result = line .messaging_api_client .reply_message(reply_message_request) @@ -234,7 +69,7 @@ async fn main() -> std::io::Result<()> { .wrap(middleware::Logger::default()) .service(callback) }) - .bind(("0.0.0.0", 3000))? + .bind(("127.0.0.1", 8080))? .run() .await -} +} \ No newline at end of file From 7304b342711c6194f8cadb6fe1373929424a8f94 Mon Sep 17 00:00:00 2001 From: Kayxue Date: Fri, 28 Feb 2025 00:03:05 +0800 Subject: [PATCH 3/4] Remove unused untagged --- core/line_messaging_api/src/models/flex_bubble.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/core/line_messaging_api/src/models/flex_bubble.rs b/core/line_messaging_api/src/models/flex_bubble.rs index 25cb676..8115739 100644 --- a/core/line_messaging_api/src/models/flex_bubble.rs +++ b/core/line_messaging_api/src/models/flex_bubble.rs @@ -64,7 +64,6 @@ impl FlexBubble { /// #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -#[serde(untagged)] pub enum Direction { #[serde(rename = "ltr")] Ltr, From 3f73ba0fcb055231893f45ebc77ffacd8a12b564 Mon Sep 17 00:00:00 2001 From: Kayxue Date: Fri, 28 Feb 2025 23:06:27 +0800 Subject: [PATCH 4/4] Upgrade messaging api --- core/line_messaging_api/README.md | 13 +- core/line_messaging_api/docs/Action.md | 8 +- .../line_messaging_api/docs/AgeDemographic.md | 19 +- .../docs/AgeDemographicFilter.md | 4 +- .../docs/AllMentionTarget.md | 11 + .../docs/AppTypeDemographic.md | 9 +- .../docs/AppTypeDemographicFilter.md | 2 +- .../docs/AreaDemographic.md | 96 ++++++- .../docs/AreaDemographicFilter.md | 2 +- core/line_messaging_api/docs/AudioMessage.md | 4 +- .../docs/BroadcastRequest.md | 2 +- .../docs/ButtonsTemplate.md | 4 +- .../line_messaging_api/docs/CarouselColumn.md | 4 +- .../docs/CarouselTemplate.md | 2 +- .../docs/ClipboardImagemapAction.md | 2 +- .../docs/ConfirmTemplate.md | 2 +- .../docs/DemographicFilter.md | 7 +- .../docs/EmojiSubstitutionObject.md | 13 + core/line_messaging_api/docs/ErrorResponse.md | 4 +- core/line_messaging_api/docs/Filter.md | 2 +- core/line_messaging_api/docs/FlexBox.md | 6 +- .../docs/FlexBoxBackground.md | 7 +- .../docs/FlexBoxBorderWidth.md | 13 +- .../docs/FlexBoxCornerRadius.md | 14 +- .../line_messaging_api/docs/FlexBoxPadding.md | 14 +- .../line_messaging_api/docs/FlexBoxSpacing.md | 14 +- core/line_messaging_api/docs/FlexBubble.md | 12 +- .../docs/FlexBubbleStyles.md | 8 +- core/line_messaging_api/docs/FlexButton.md | 2 +- core/line_messaging_api/docs/FlexCarousel.md | 2 +- core/line_messaging_api/docs/FlexComponent.md | 7 +- core/line_messaging_api/docs/FlexContainer.md | 7 +- core/line_messaging_api/docs/FlexIconSize.md | 17 +- core/line_messaging_api/docs/FlexImage.md | 2 +- core/line_messaging_api/docs/FlexImageSize.md | 18 +- core/line_messaging_api/docs/FlexMargin.md | 14 +- core/line_messaging_api/docs/FlexMessage.md | 6 +- core/line_messaging_api/docs/FlexOffset.md | 14 +- core/line_messaging_api/docs/FlexSpanSize.md | 17 +- core/line_messaging_api/docs/FlexText.md | 4 +- .../docs/FlexTextFontSize.md | 17 +- core/line_messaging_api/docs/FlexVideo.md | 4 +- .../docs/GenderDemographic.md | 9 +- .../docs/GenderDemographicFilter.md | 2 +- .../docs/GetJoinedMembershipUsersResponse.md | 12 + .../docs/GetMembershipSubscriptionResponse.md | 2 +- .../docs/ImageCarouselColumn.md | 2 +- .../docs/ImageCarouselTemplate.md | 2 +- core/line_messaging_api/docs/ImageMessage.md | 4 +- .../line_messaging_api/docs/ImagemapAction.md | 8 +- .../docs/ImagemapMessage.md | 10 +- core/line_messaging_api/docs/ImagemapVideo.md | 4 +- .../docs/LocationMessage.md | 4 +- .../docs/MarkMessagesAsReadRequest.md | 2 +- .../docs/MembershipListResponse.md | 2 +- .../docs/MentionSubstitutionObject.md | 12 + core/line_messaging_api/docs/MentionTarget.md | 10 + core/line_messaging_api/docs/Message.md | 9 +- .../docs/MessageImagemapAction.md | 2 +- .../docs/MessageQuotaResponse.md | 2 +- .../docs/MessagingApiApi.md | 235 ++++++++---------- .../docs/MessagingApiBlobApi.md | 4 +- .../docs/MulticastRequest.md | 2 +- .../docs/NarrowcastProgressResponse.md | 2 +- .../docs/NarrowcastRequest.md | 8 +- .../docs/OperatorDemographicFilter.md | 6 +- .../docs/OperatorRecipient.md | 6 +- .../docs/PnpMessagesRequest.md | 2 +- .../docs/PushMessageRequest.md | 2 +- .../docs/PushMessageResponse.md | 2 +- core/line_messaging_api/docs/QuickReply.md | 2 +- .../line_messaging_api/docs/QuickReplyItem.md | 2 +- core/line_messaging_api/docs/QuotaType.md | 9 +- core/line_messaging_api/docs/Recipient.md | 7 +- .../docs/ReplyMessageRequest.md | 2 +- .../docs/ReplyMessageResponse.md | 2 +- .../docs/RichMenuAliasListResponse.md | 2 +- core/line_messaging_api/docs/RichMenuArea.md | 4 +- .../docs/RichMenuBatchOperation.md | 7 +- .../docs/RichMenuBatchProgressPhase.md | 10 +- .../docs/RichMenuBatchProgressResponse.md | 2 +- .../docs/RichMenuBatchRequest.md | 2 +- .../docs/RichMenuListResponse.md | 2 +- .../docs/RichMenuRequest.md | 4 +- .../docs/RichMenuResponse.md | 4 +- .../line_messaging_api/docs/StickerMessage.md | 4 +- core/line_messaging_api/docs/Subscription.md | 4 +- .../docs/SubscriptionPeriodDemographic.md | 12 +- .../SubscriptionPeriodDemographicFilter.md | 4 +- .../docs/SubstitutionObject.md | 10 + core/line_messaging_api/docs/Template.md | 7 +- .../docs/TemplateImageAspectRatio.md | 9 +- .../docs/TemplateImageSize.md | 9 +- .../docs/TemplateMessage.md | 6 +- core/line_messaging_api/docs/TextMessage.md | 6 +- core/line_messaging_api/docs/TextMessageV2.md | 16 ++ core/line_messaging_api/docs/UriAction.md | 2 +- .../docs/UriImagemapAction.md | 2 +- .../docs/UserMentionTarget.md | 12 + .../docs/ValidateMessageRequest.md | 2 +- core/line_messaging_api/docs/VideoMessage.md | 4 +- .../src/apis/messaging_api_api.rs | 19 -- core/line_messaging_api/src/apis/mod.rs | 2 +- core/line_messaging_api/src/apis/request.rs | 2 +- core/line_messaging_api/src/lib.rs | 24 +- core/line_messaging_api/src/models/action.rs | 46 ++-- .../src/models/age_demographic.rs | 75 +++--- .../src/models/age_demographic_filter.rs | 30 +-- .../src/models/all_mention_target.rs | 28 +++ core/line_messaging_api/src/models/alt_uri.rs | 28 +-- .../src/models/app_type_demographic.rs | 33 +-- .../src/models/app_type_demographic_filter.rs | 28 +-- .../src/models/area_demographic.rs | 208 ++++++++-------- .../src/models/area_demographic_filter.rs | 28 +-- .../src/models/audience_recipient.rs | 26 +- .../src/models/audio_message.rs | 32 +-- .../src/models/bot_info_response.rs | 37 +-- .../src/models/broadcast_request.rs | 35 +-- .../src/models/buttons_template.rs | 45 +--- .../src/models/camera_action.rs | 26 +- .../src/models/camera_roll_action.rs | 26 +- .../src/models/carousel_column.rs | 36 +-- .../src/models/carousel_template.rs | 34 +-- .../src/models/chat_reference.rs | 29 +-- .../src/models/clipboard_action.rs | 28 +-- .../src/models/clipboard_imagemap_action.rs | 40 +-- .../src/models/confirm_template.rs | 38 +-- .../models/create_rich_menu_alias_request.rs | 24 +- .../src/models/datetime_picker_action.rs | 29 +-- .../src/models/demographic_filter.rs | 49 ++-- core/line_messaging_api/src/models/emoji.rs | 24 +- .../src/models/emoji_substitution_object.rs | 36 +++ .../src/models/error_detail.rs | 24 +- .../src/models/error_response.rs | 28 +-- core/line_messaging_api/src/models/filter.rs | 31 +-- .../src/models/flex_block_style.rs | 24 +- .../line_messaging_api/src/models/flex_box.rs | 52 ++-- .../src/models/flex_box_background.rs | 38 +-- .../src/models/flex_box_border_width.rs | 42 ++-- .../src/models/flex_box_corner_radius.rs | 44 ++-- .../src/models/flex_box_linear_gradient.rs | 32 +-- .../src/models/flex_box_padding.rs | 44 ++-- .../src/models/flex_box_spacing.rs | 44 ++-- .../src/models/flex_bubble.rs | 49 ++-- .../src/models/flex_bubble_styles.rs | 32 +-- .../src/models/flex_button.rs | 45 ++-- .../src/models/flex_carousel.rs | 37 ++- .../src/models/flex_component.rs | 63 ++--- .../src/models/flex_container.rs | 33 ++- .../src/models/flex_filler.rs | 35 +-- .../src/models/flex_icon.rs | 35 +-- .../src/models/flex_icon_size.rs | 50 ++-- .../src/models/flex_image.rs | 57 ++--- .../src/models/flex_image_size.rs | 52 ++-- .../src/models/flex_margin.rs | 44 ++-- .../src/models/flex_message.rs | 36 ++- .../src/models/flex_offset.rs | 44 ++-- .../src/models/flex_separator.rs | 32 +-- .../src/models/flex_span.rs | 39 +-- .../src/models/flex_span_size.rs | 50 ++-- .../src/models/flex_text.rs | 50 ++-- .../src/models/flex_text_font_size.rs | 50 ++-- .../src/models/flex_video.rs | 41 +-- .../src/models/gender_demographic.rs | 33 +-- .../src/models/gender_demographic_filter.rs | 28 +-- ...get_aggregation_unit_name_list_response.rs | 24 +- .../get_aggregation_unit_usage_response.rs | 24 +- .../src/models/get_followers_response.rs | 26 +- .../get_joined_membership_users_response.rs | 34 +++ .../get_membership_subscription_response.rs | 35 +-- ...et_message_content_transcoding_response.rs | 34 +-- .../models/get_webhook_endpoint_response.rs | 31 +-- .../src/models/group_member_count_response.rs | 28 +-- .../src/models/group_summary_response.rs | 24 +- .../src/models/group_user_profile_response.rs | 24 +- .../src/models/image_carousel_column.rs | 28 +-- .../src/models/image_carousel_template.rs | 40 ++- .../src/models/image_message.rs | 32 +-- .../src/models/imagemap_action.rs | 38 +-- .../src/models/imagemap_area.rs | 24 +- .../src/models/imagemap_base_size.rs | 29 +-- .../src/models/imagemap_external_link.rs | 24 +- .../src/models/imagemap_message.rs | 45 ++-- .../src/models/imagemap_video.rs | 28 +-- .../src/models/issue_link_token_response.rs | 28 +-- core/line_messaging_api/src/models/limit.rs | 29 +-- .../src/models/location_action.rs | 26 +- .../src/models/location_message.rs | 32 +-- .../models/mark_messages_as_read_request.rs | 28 +-- .../src/models/members_ids_response.rs | 26 +- .../src/models/membership.rs | 38 +-- .../src/models/membership_list_response.rs | 33 +-- .../src/models/mention_substitution_object.rs | 33 +++ .../src/models/mention_target.rs | 31 +++ core/line_messaging_api/src/models/message.rs | 75 +++--- .../src/models/message_action.rs | 26 +- .../src/models/message_imagemap_action.rs | 38 +-- .../src/models/message_quota_response.rs | 30 +-- core/line_messaging_api/src/models/mod.rs | 34 ++- .../src/models/multicast_request.rs | 40 +-- .../models/narrowcast_progress_response.rs | 35 +-- .../src/models/narrowcast_request.rs | 41 +-- .../src/models/number_of_messages_response.rs | 29 +-- .../src/models/operator_demographic_filter.rs | 32 +-- .../src/models/operator_recipient.rs | 36 +-- .../src/models/pnp_messages_request.rs | 35 +-- .../src/models/postback_action.rs | 29 +-- .../src/models/push_message_request.rs | 42 +--- .../src/models/push_message_response.rs | 32 +-- .../src/models/quick_reply.rs | 31 +-- .../src/models/quick_reply_item.rs | 26 +- .../src/models/quota_consumption_response.rs | 28 +-- .../src/models/quota_type.rs | 32 +-- .../src/models/recipient.rs | 43 ++-- .../src/models/redelivery_recipient.rs | 26 +- .../src/models/reply_message_request.rs | 35 +-- .../src/models/reply_message_response.rs | 32 +-- .../models/rich_menu_alias_list_response.rs | 32 +-- .../src/models/rich_menu_alias_response.rs | 24 +- .../src/models/rich_menu_area.rs | 29 +-- .../models/rich_menu_batch_link_operation.rs | 37 ++- .../src/models/rich_menu_batch_operation.rs | 43 ++-- .../models/rich_menu_batch_progress_phase.rs | 36 +-- .../rich_menu_batch_progress_response.rs | 35 +-- .../src/models/rich_menu_batch_request.rs | 28 +-- .../rich_menu_batch_unlink_all_operation.rs | 35 +-- .../rich_menu_batch_unlink_operation.rs | 36 +-- .../src/models/rich_menu_bounds.rs | 25 +- .../src/models/rich_menu_bulk_link_request.rs | 24 +- .../models/rich_menu_bulk_unlink_request.rs | 28 +-- .../src/models/rich_menu_id_response.rs | 28 +-- .../src/models/rich_menu_list_response.rs | 32 +-- .../src/models/rich_menu_request.rs | 28 +-- .../src/models/rich_menu_response.rs | 37 +-- .../src/models/rich_menu_size.rs | 25 +- .../src/models/rich_menu_switch_action.rs | 26 +- .../src/models/room_member_count_response.rs | 28 +-- .../src/models/room_user_profile_response.rs | 24 +- core/line_messaging_api/src/models/sender.rs | 25 +- .../src/models/sent_message.rs | 26 +- .../models/set_webhook_endpoint_request.rs | 28 +-- .../models/show_loading_animation_request.rs | 26 +- .../src/models/sticker_message.rs | 32 +-- .../src/models/subscribed_membership_plan.rs | 35 +-- .../src/models/subscribed_membership_user.rs | 34 +-- .../src/models/subscription.rs | 34 +-- .../models/subscription_period_demographic.rs | 51 ++-- .../subscription_period_demographic_filter.rs | 30 +-- .../src/models/substitution_object.rs | 32 +++ .../line_messaging_api/src/models/template.rs | 44 ++-- .../src/models/template_image_aspect_ratio.rs | 34 +-- .../src/models/template_image_size.rs | 34 +-- .../src/models/template_message.rs | 36 ++- .../models/test_webhook_endpoint_request.rs | 28 +-- .../models/test_webhook_endpoint_response.rs | 33 +-- .../src/models/text_message.rs | 34 +-- .../src/models/text_message_v2.rs | 45 ++++ .../models/update_rich_menu_alias_request.rs | 28 +-- .../src/models/uri_action.rs | 28 +-- .../src/models/uri_imagemap_action.rs | 35 +-- .../src/models/user_mention_target.rs | 31 +++ .../src/models/user_profile_response.rs | 24 +- .../src/models/validate_message_request.rs | 32 +-- .../src/models/video_message.rs | 32 +-- line-openapi | 1 - 265 files changed, 2718 insertions(+), 3906 deletions(-) create mode 100644 core/line_messaging_api/docs/AllMentionTarget.md create mode 100644 core/line_messaging_api/docs/EmojiSubstitutionObject.md create mode 100644 core/line_messaging_api/docs/GetJoinedMembershipUsersResponse.md create mode 100644 core/line_messaging_api/docs/MentionSubstitutionObject.md create mode 100644 core/line_messaging_api/docs/MentionTarget.md create mode 100644 core/line_messaging_api/docs/SubstitutionObject.md create mode 100644 core/line_messaging_api/docs/TextMessageV2.md create mode 100644 core/line_messaging_api/docs/UserMentionTarget.md create mode 100644 core/line_messaging_api/src/models/all_mention_target.rs create mode 100644 core/line_messaging_api/src/models/emoji_substitution_object.rs create mode 100644 core/line_messaging_api/src/models/get_joined_membership_users_response.rs create mode 100644 core/line_messaging_api/src/models/mention_substitution_object.rs create mode 100644 core/line_messaging_api/src/models/mention_target.rs create mode 100644 core/line_messaging_api/src/models/substitution_object.rs create mode 100644 core/line_messaging_api/src/models/text_message_v2.rs create mode 100644 core/line_messaging_api/src/models/user_mention_target.rs delete mode 160000 line-openapi diff --git a/core/line_messaging_api/README.md b/core/line_messaging_api/README.md index 0c07be0..ab365ee 100644 --- a/core/line_messaging_api/README.md +++ b/core/line_messaging_api/README.md @@ -9,6 +9,7 @@ This API client was generated by the [OpenAPI Generator](https://openapi-generat - API version: 0.0.3 - Package version: 0.0.3 +- Generator version: 7.11.0 - Build package: `org.openapitools.codegen.languages.RustClientCodegen` ## Installation @@ -25,14 +26,12 @@ All URIs are relative to *https://api.line.me* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- -*MessagingApiApi* | [**audience_match**](docs/MessagingApiApi.md#audience_match) | **Post** /bot/ad/multicast/phone | *MessagingApiApi* | [**broadcast**](docs/MessagingApiApi.md#broadcast) | **Post** /v2/bot/message/broadcast | *MessagingApiApi* | [**cancel_default_rich_menu**](docs/MessagingApiApi.md#cancel_default_rich_menu) | **Delete** /v2/bot/user/all/richmenu | *MessagingApiApi* | [**create_rich_menu**](docs/MessagingApiApi.md#create_rich_menu) | **Post** /v2/bot/richmenu | *MessagingApiApi* | [**create_rich_menu_alias**](docs/MessagingApiApi.md#create_rich_menu_alias) | **Post** /v2/bot/richmenu/alias | *MessagingApiApi* | [**delete_rich_menu**](docs/MessagingApiApi.md#delete_rich_menu) | **Delete** /v2/bot/richmenu/{richMenuId} | *MessagingApiApi* | [**delete_rich_menu_alias**](docs/MessagingApiApi.md#delete_rich_menu_alias) | **Delete** /v2/bot/richmenu/alias/{richMenuAliasId} | -*MessagingApiApi* | [**get_ad_phone_message_statistics**](docs/MessagingApiApi.md#get_ad_phone_message_statistics) | **Get** /v2/bot/message/delivery/ad_phone | *MessagingApiApi* | [**get_aggregation_unit_name_list**](docs/MessagingApiApi.md#get_aggregation_unit_name_list) | **Get** /v2/bot/message/aggregation/list | *MessagingApiApi* | [**get_aggregation_unit_usage**](docs/MessagingApiApi.md#get_aggregation_unit_usage) | **Get** /v2/bot/message/aggregation/info | *MessagingApiApi* | [**get_bot_info**](docs/MessagingApiApi.md#get_bot_info) | **Get** /v2/bot/info | @@ -42,6 +41,7 @@ Class | Method | HTTP request | Description *MessagingApiApi* | [**get_group_member_profile**](docs/MessagingApiApi.md#get_group_member_profile) | **Get** /v2/bot/group/{groupId}/member/{userId} | *MessagingApiApi* | [**get_group_members_ids**](docs/MessagingApiApi.md#get_group_members_ids) | **Get** /v2/bot/group/{groupId}/members/ids | *MessagingApiApi* | [**get_group_summary**](docs/MessagingApiApi.md#get_group_summary) | **Get** /v2/bot/group/{groupId}/summary | +*MessagingApiApi* | [**get_joined_membership_users**](docs/MessagingApiApi.md#get_joined_membership_users) | **Get** /v2/bot/membership/{membershipId}/users/ids | *MessagingApiApi* | [**get_membership_list**](docs/MessagingApiApi.md#get_membership_list) | **Get** /v2/bot/membership/list | *MessagingApiApi* | [**get_membership_subscription**](docs/MessagingApiApi.md#get_membership_subscription) | **Get** /v2/bot/membership/subscription/{userId} | *MessagingApiApi* | [**get_message_quota**](docs/MessagingApiApi.md#get_message_quota) | **Get** /v2/bot/message/quota | @@ -101,12 +101,12 @@ Class | Method | HTTP request | Description - [Action](docs/Action.md) - [AgeDemographic](docs/AgeDemographic.md) - [AgeDemographicFilter](docs/AgeDemographicFilter.md) + - [AllMentionTarget](docs/AllMentionTarget.md) - [AltUri](docs/AltUri.md) - [AppTypeDemographic](docs/AppTypeDemographic.md) - [AppTypeDemographicFilter](docs/AppTypeDemographicFilter.md) - [AreaDemographic](docs/AreaDemographic.md) - [AreaDemographicFilter](docs/AreaDemographicFilter.md) - - [AudienceMatchMessagesRequest](docs/AudienceMatchMessagesRequest.md) - [AudienceRecipient](docs/AudienceRecipient.md) - [AudioMessage](docs/AudioMessage.md) - [BotInfoResponse](docs/BotInfoResponse.md) @@ -124,6 +124,7 @@ Class | Method | HTTP request | Description - [DatetimePickerAction](docs/DatetimePickerAction.md) - [DemographicFilter](docs/DemographicFilter.md) - [Emoji](docs/Emoji.md) + - [EmojiSubstitutionObject](docs/EmojiSubstitutionObject.md) - [ErrorDetail](docs/ErrorDetail.md) - [ErrorResponse](docs/ErrorResponse.md) - [Filter](docs/Filter.md) @@ -160,6 +161,7 @@ Class | Method | HTTP request | Description - [GetAggregationUnitNameListResponse](docs/GetAggregationUnitNameListResponse.md) - [GetAggregationUnitUsageResponse](docs/GetAggregationUnitUsageResponse.md) - [GetFollowersResponse](docs/GetFollowersResponse.md) + - [GetJoinedMembershipUsersResponse](docs/GetJoinedMembershipUsersResponse.md) - [GetMembershipSubscriptionResponse](docs/GetMembershipSubscriptionResponse.md) - [GetMessageContentTranscodingResponse](docs/GetMessageContentTranscodingResponse.md) - [GetWebhookEndpointResponse](docs/GetWebhookEndpointResponse.md) @@ -183,6 +185,8 @@ Class | Method | HTTP request | Description - [MembersIdsResponse](docs/MembersIdsResponse.md) - [Membership](docs/Membership.md) - [MembershipListResponse](docs/MembershipListResponse.md) + - [MentionSubstitutionObject](docs/MentionSubstitutionObject.md) + - [MentionTarget](docs/MentionTarget.md) - [Message](docs/Message.md) - [MessageAction](docs/MessageAction.md) - [MessageImagemapAction](docs/MessageImagemapAction.md) @@ -236,6 +240,7 @@ Class | Method | HTTP request | Description - [Subscription](docs/Subscription.md) - [SubscriptionPeriodDemographic](docs/SubscriptionPeriodDemographic.md) - [SubscriptionPeriodDemographicFilter](docs/SubscriptionPeriodDemographicFilter.md) + - [SubstitutionObject](docs/SubstitutionObject.md) - [Template](docs/Template.md) - [TemplateImageAspectRatio](docs/TemplateImageAspectRatio.md) - [TemplateImageSize](docs/TemplateImageSize.md) @@ -243,9 +248,11 @@ Class | Method | HTTP request | Description - [TestWebhookEndpointRequest](docs/TestWebhookEndpointRequest.md) - [TestWebhookEndpointResponse](docs/TestWebhookEndpointResponse.md) - [TextMessage](docs/TextMessage.md) + - [TextMessageV2](docs/TextMessageV2.md) - [UpdateRichMenuAliasRequest](docs/UpdateRichMenuAliasRequest.md) - [UriAction](docs/UriAction.md) - [UriImagemapAction](docs/UriImagemapAction.md) + - [UserMentionTarget](docs/UserMentionTarget.md) - [UserProfileResponse](docs/UserProfileResponse.md) - [ValidateMessageRequest](docs/ValidateMessageRequest.md) - [VideoMessage](docs/VideoMessage.md) diff --git a/core/line_messaging_api/docs/Action.md b/core/line_messaging_api/docs/Action.md index 24c76f4..4957712 100644 --- a/core/line_messaging_api/docs/Action.md +++ b/core/line_messaging_api/docs/Action.md @@ -1,11 +1,9 @@ # Action -## Properties +## Enum Variants -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**r#type** | Option<**String**> | Type of action | [optional] -**label** | Option<**String**> | Label for the action. | [optional] +| Name | Value | +|---- | -----| [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/AgeDemographic.md b/core/line_messaging_api/docs/AgeDemographic.md index 6127c53..541dd84 100644 --- a/core/line_messaging_api/docs/AgeDemographic.md +++ b/core/line_messaging_api/docs/AgeDemographic.md @@ -1,9 +1,22 @@ # AgeDemographic -## Properties +## Enum Variants + +| Name | Value | +|---- | -----| +| Age15 | age_15 | +| Age20 | age_20 | +| Age25 | age_25 | +| Age30 | age_30 | +| Age35 | age_35 | +| Age40 | age_40 | +| Age45 | age_45 | +| Age50 | age_50 | +| Age55 | age_55 | +| Age60 | age_60 | +| Age65 | age_65 | +| Age70 | age_70 | -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/AgeDemographicFilter.md b/core/line_messaging_api/docs/AgeDemographicFilter.md index 387ac8d..6377573 100644 --- a/core/line_messaging_api/docs/AgeDemographicFilter.md +++ b/core/line_messaging_api/docs/AgeDemographicFilter.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **r#type** | Option<**String**> | Type of demographic filter | [optional] -**gte** | Option<[**crate::models::AgeDemographic**](AgeDemographic.md)> | | [optional] -**lt** | Option<[**crate::models::AgeDemographic**](AgeDemographic.md)> | | [optional] +**gte** | Option<[**models::AgeDemographic**](AgeDemographic.md)> | | [optional] +**lt** | Option<[**models::AgeDemographic**](AgeDemographic.md)> | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/AllMentionTarget.md b/core/line_messaging_api/docs/AllMentionTarget.md new file mode 100644 index 0000000..8691595 --- /dev/null +++ b/core/line_messaging_api/docs/AllMentionTarget.md @@ -0,0 +1,11 @@ +# AllMentionTarget + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **String** | Target to be mentioned | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/core/line_messaging_api/docs/AppTypeDemographic.md b/core/line_messaging_api/docs/AppTypeDemographic.md index 66ffae6..ff5e3ff 100644 --- a/core/line_messaging_api/docs/AppTypeDemographic.md +++ b/core/line_messaging_api/docs/AppTypeDemographic.md @@ -1,9 +1,12 @@ # AppTypeDemographic -## Properties +## Enum Variants + +| Name | Value | +|---- | -----| +| Ios | ios | +| Android | android | -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/AppTypeDemographicFilter.md b/core/line_messaging_api/docs/AppTypeDemographicFilter.md index 6c3026a..ba95f3f 100644 --- a/core/line_messaging_api/docs/AppTypeDemographicFilter.md +++ b/core/line_messaging_api/docs/AppTypeDemographicFilter.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **r#type** | Option<**String**> | Type of demographic filter | [optional] -**one_of** | Option<[**Vec**](AppTypeDemographic.md)> | | [optional] +**one_of** | Option<[**Vec**](AppTypeDemographic.md)> | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/AreaDemographic.md b/core/line_messaging_api/docs/AreaDemographic.md index f79d111..f898d7c 100644 --- a/core/line_messaging_api/docs/AreaDemographic.md +++ b/core/line_messaging_api/docs/AreaDemographic.md @@ -1,9 +1,99 @@ # AreaDemographic -## Properties +## Enum Variants + +| Name | Value | +|---- | -----| +| HOKKAIDO | jp_01 | +| AOMORI | jp_02 | +| IWATE | jp_03 | +| MIYAGI | jp_04 | +| AKITA | jp_05 | +| YAMAGATA | jp_06 | +| FUKUSHIMA | jp_07 | +| IBARAKI | jp_08 | +| TOCHIGI | jp_09 | +| GUNMA | jp_10 | +| SAITAMA | jp_11 | +| CHIBA | jp_12 | +| TOKYO | jp_13 | +| KANAGAWA | jp_14 | +| NIIGATA | jp_15 | +| TOYAMA | jp_16 | +| ISHIKAWA | jp_17 | +| FUKUI | jp_18 | +| YAMANASHI | jp_19 | +| NAGANO | jp_20 | +| GIFU | jp_21 | +| SHIZUOKA | jp_22 | +| AICHI | jp_23 | +| MIE | jp_24 | +| SHIGA | jp_25 | +| KYOTO | jp_26 | +| OSAKA | jp_27 | +| HYOUGO | jp_28 | +| NARA | jp_29 | +| WAKAYAMA | jp_30 | +| TOTTORI | jp_31 | +| SHIMANE | jp_32 | +| OKAYAMA | jp_33 | +| HIROSHIMA | jp_34 | +| YAMAGUCHI | jp_35 | +| TOKUSHIMA | jp_36 | +| KAGAWA | jp_37 | +| EHIME | jp_38 | +| KOUCHI | jp_39 | +| FUKUOKA | jp_40 | +| SAGA | jp_41 | +| NAGASAKI | jp_42 | +| KUMAMOTO | jp_43 | +| OITA | jp_44 | +| MIYAZAKI | jp_45 | +| KAGOSHIMA | jp_46 | +| OKINAWA | jp_47 | +| TAIPEI_CITY | tw_01 | +| NEW_TAIPEI_CITY | tw_02 | +| TAOYUAN_CITY | tw_03 | +| TAICHUNG_CITY | tw_04 | +| TAINAN_CITY | tw_05 | +| KAOHSIUNG_CITY | tw_06 | +| KEELUNG_CITY | tw_07 | +| HSINCHU_CITY | tw_08 | +| CHIAYI_CITY | tw_09 | +| HSINCHU_COUNTY | tw_10 | +| MIAOLI_COUNTY | tw_11 | +| CHANGHUA_COUNTY | tw_12 | +| NANTOU_COUNTY | tw_13 | +| YUNLIN_COUNTY | tw_14 | +| CHIAYI_COUNTY | tw_15 | +| PINGTUNG_COUNTY | tw_16 | +| YILAN_COUNTY | tw_17 | +| HUALIEN_COUNTY | tw_18 | +| TAITUNG_COUNTY | tw_19 | +| PENGHU_COUNTY | tw_20 | +| KINMEN_COUNTY | tw_21 | +| LIENCHIANG_COUNTY | tw_22 | +| BANGKOK | th_01 | +| PATTAYA | th_02 | +| NORTHERN | th_03 | +| CENTRAL | th_04 | +| SOUTHERN | th_05 | +| EASTERN | th_06 | +| NORTHEASTERN | th_07 | +| WESTERN | th_08 | +| BALI | id_01 | +| BANDUNG | id_02 | +| BANJARMASIN | id_03 | +| JABODETABEK | id_04 | +| MAKASSAR | id_05 | +| MEDAN | id_06 | +| PALEMBANG | id_07 | +| SAMARINDA | id_08 | +| SEMARANG | id_09 | +| SURABAYA | id_10 | +| YOGYAKARTA | id_11 | +| LAINNYA | id_12 | -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/AreaDemographicFilter.md b/core/line_messaging_api/docs/AreaDemographicFilter.md index b7c8710..abcb693 100644 --- a/core/line_messaging_api/docs/AreaDemographicFilter.md +++ b/core/line_messaging_api/docs/AreaDemographicFilter.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **r#type** | Option<**String**> | Type of demographic filter | [optional] -**one_of** | Option<[**Vec**](AreaDemographic.md)> | | [optional] +**one_of** | Option<[**Vec**](AreaDemographic.md)> | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/AudioMessage.md b/core/line_messaging_api/docs/AudioMessage.md index e8fa9e6..a4684e8 100644 --- a/core/line_messaging_api/docs/AudioMessage.md +++ b/core/line_messaging_api/docs/AudioMessage.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **r#type** | **String** | Type of message | -**quick_reply** | Option<[**crate::models::QuickReply**](QuickReply.md)> | | [optional] -**sender** | Option<[**crate::models::Sender**](Sender.md)> | | [optional] +**quick_reply** | Option<[**models::QuickReply**](QuickReply.md)> | | [optional] +**sender** | Option<[**models::Sender**](Sender.md)> | | [optional] **original_content_url** | **String** | | **duration** | **i64** | | diff --git a/core/line_messaging_api/docs/BroadcastRequest.md b/core/line_messaging_api/docs/BroadcastRequest.md index f55ebab..96e2404 100644 --- a/core/line_messaging_api/docs/BroadcastRequest.md +++ b/core/line_messaging_api/docs/BroadcastRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**messages** | [**Vec**](Message.md) | List of Message objects. | +**messages** | [**Vec**](Message.md) | List of Message objects. | **notification_disabled** | Option<**bool**> | `true`: The user doesn’t receive a push notification when a message is sent. `false`: The user receives a push notification when the message is sent (unless they have disabled push notifications in LINE and/or their device). The default value is false. | [optional][default to false] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/ButtonsTemplate.md b/core/line_messaging_api/docs/ButtonsTemplate.md index c7890eb..375763f 100644 --- a/core/line_messaging_api/docs/ButtonsTemplate.md +++ b/core/line_messaging_api/docs/ButtonsTemplate.md @@ -11,8 +11,8 @@ Name | Type | Description | Notes **image_background_color** | Option<**String**> | | [optional] **title** | Option<**String**> | | [optional] **text** | **String** | | -**default_action** | Option<[**crate::models::Action**](Action.md)> | | [optional] -**actions** | [**Vec**](Action.md) | | +**default_action** | Option<[**models::Action**](Action.md)> | | [optional] +**actions** | [**Vec**](Action.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/CarouselColumn.md b/core/line_messaging_api/docs/CarouselColumn.md index e9d6272..ce1b78b 100644 --- a/core/line_messaging_api/docs/CarouselColumn.md +++ b/core/line_messaging_api/docs/CarouselColumn.md @@ -8,8 +8,8 @@ Name | Type | Description | Notes **image_background_color** | Option<**String**> | | [optional] **title** | Option<**String**> | | [optional] **text** | **String** | | -**default_action** | Option<[**crate::models::Action**](Action.md)> | | [optional] -**actions** | [**Vec**](Action.md) | | +**default_action** | Option<[**models::Action**](Action.md)> | | [optional] +**actions** | [**Vec**](Action.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/CarouselTemplate.md b/core/line_messaging_api/docs/CarouselTemplate.md index 32b18a8..28b336f 100644 --- a/core/line_messaging_api/docs/CarouselTemplate.md +++ b/core/line_messaging_api/docs/CarouselTemplate.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **r#type** | **String** | | -**columns** | [**Vec**](CarouselColumn.md) | | +**columns** | [**Vec**](CarouselColumn.md) | | **image_aspect_ratio** | Option<**String**> | | [optional] **image_size** | Option<**String**> | | [optional] diff --git a/core/line_messaging_api/docs/ClipboardImagemapAction.md b/core/line_messaging_api/docs/ClipboardImagemapAction.md index 93ee8ac..9f28b97 100644 --- a/core/line_messaging_api/docs/ClipboardImagemapAction.md +++ b/core/line_messaging_api/docs/ClipboardImagemapAction.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **r#type** | **String** | | -**area** | [**crate::models::ImagemapArea**](ImagemapArea.md) | | +**area** | [**models::ImagemapArea**](ImagemapArea.md) | | **clipboard_text** | **String** | Text that is copied to the clipboard. Max character limit: 1000 | **label** | Option<**String**> | | [optional] diff --git a/core/line_messaging_api/docs/ConfirmTemplate.md b/core/line_messaging_api/docs/ConfirmTemplate.md index c1251a9..97d6ee9 100644 --- a/core/line_messaging_api/docs/ConfirmTemplate.md +++ b/core/line_messaging_api/docs/ConfirmTemplate.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **r#type** | **String** | | **text** | **String** | | -**actions** | [**Vec**](Action.md) | | +**actions** | [**Vec**](Action.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/DemographicFilter.md b/core/line_messaging_api/docs/DemographicFilter.md index 65c3393..5c6a684 100644 --- a/core/line_messaging_api/docs/DemographicFilter.md +++ b/core/line_messaging_api/docs/DemographicFilter.md @@ -1,10 +1,9 @@ # DemographicFilter -## Properties +## Enum Variants -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**r#type** | Option<**String**> | Type of demographic filter | [optional] +| Name | Value | +|---- | -----| [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/EmojiSubstitutionObject.md b/core/line_messaging_api/docs/EmojiSubstitutionObject.md new file mode 100644 index 0000000..e771c55 --- /dev/null +++ b/core/line_messaging_api/docs/EmojiSubstitutionObject.md @@ -0,0 +1,13 @@ +# EmojiSubstitutionObject + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **String** | Type of substitution object | +**product_id** | **String** | | +**emoji_id** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/core/line_messaging_api/docs/ErrorResponse.md b/core/line_messaging_api/docs/ErrorResponse.md index fa8858d..8d8b9ef 100644 --- a/core/line_messaging_api/docs/ErrorResponse.md +++ b/core/line_messaging_api/docs/ErrorResponse.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **message** | **String** | Message containing information about the error. | -**details** | Option<[**Vec**](ErrorDetail.md)> | An array of error details. If the array is empty, this property will not be included in the response. | [optional] -**sent_messages** | Option<[**Vec**](SentMessage.md)> | Array of sent messages. | [optional] +**details** | Option<[**Vec**](ErrorDetail.md)> | An array of error details. If the array is empty, this property will not be included in the response. | [optional] +**sent_messages** | Option<[**Vec**](SentMessage.md)> | Array of sent messages. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/Filter.md b/core/line_messaging_api/docs/Filter.md index c65cae6..7f34611 100644 --- a/core/line_messaging_api/docs/Filter.md +++ b/core/line_messaging_api/docs/Filter.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**demographic** | Option<[**crate::models::DemographicFilter**](DemographicFilter.md)> | | [optional] +**demographic** | Option<[**models::DemographicFilter**](DemographicFilter.md)> | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/FlexBox.md b/core/line_messaging_api/docs/FlexBox.md index e28aaf0..911b4b1 100644 --- a/core/line_messaging_api/docs/FlexBox.md +++ b/core/line_messaging_api/docs/FlexBox.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **r#type** | **String** | | **layout** | **String** | | **flex** | Option<**i32**> | | [optional] -**contents** | [**Vec**](FlexComponent.md) | | +**contents** | [**Vec**](FlexComponent.md) | | **spacing** | Option<**String**> | | [optional] **margin** | Option<**String**> | | [optional] **position** | Option<**String**> | | [optional] @@ -28,10 +28,10 @@ Name | Type | Description | Notes **padding_bottom** | Option<**String**> | | [optional] **padding_start** | Option<**String**> | | [optional] **padding_end** | Option<**String**> | | [optional] -**action** | Option<[**crate::models::Action**](Action.md)> | | [optional] +**action** | Option<[**models::Action**](Action.md)> | | [optional] **justify_content** | Option<**String**> | | [optional] **align_items** | Option<**String**> | | [optional] -**background** | Option<[**crate::models::FlexBoxBackground**](FlexBoxBackground.md)> | | [optional] +**background** | Option<[**models::FlexBoxBackground**](FlexBoxBackground.md)> | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/FlexBoxBackground.md b/core/line_messaging_api/docs/FlexBoxBackground.md index fa0c94a..374e4cb 100644 --- a/core/line_messaging_api/docs/FlexBoxBackground.md +++ b/core/line_messaging_api/docs/FlexBoxBackground.md @@ -1,10 +1,9 @@ # FlexBoxBackground -## Properties +## Enum Variants -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**r#type** | **String** | | +| Name | Value | +|---- | -----| [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/FlexBoxBorderWidth.md b/core/line_messaging_api/docs/FlexBoxBorderWidth.md index 0e0fc4c..82b2b72 100644 --- a/core/line_messaging_api/docs/FlexBoxBorderWidth.md +++ b/core/line_messaging_api/docs/FlexBoxBorderWidth.md @@ -1,9 +1,16 @@ # FlexBoxBorderWidth -## Properties +## Enum Variants + +| Name | Value | +|---- | -----| +| None | none | +| Light | light | +| Normal | normal | +| Medium | medium | +| SemiBold | semi-bold | +| Bold | bold | -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/FlexBoxCornerRadius.md b/core/line_messaging_api/docs/FlexBoxCornerRadius.md index a6de507..a75af91 100644 --- a/core/line_messaging_api/docs/FlexBoxCornerRadius.md +++ b/core/line_messaging_api/docs/FlexBoxCornerRadius.md @@ -1,9 +1,17 @@ # FlexBoxCornerRadius -## Properties +## Enum Variants + +| Name | Value | +|---- | -----| +| None | none | +| Xs | xs | +| Sm | sm | +| Md | md | +| Lg | lg | +| Xl | xl | +| Xxl | xxl | -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/FlexBoxPadding.md b/core/line_messaging_api/docs/FlexBoxPadding.md index 0fd7084..bee4143 100644 --- a/core/line_messaging_api/docs/FlexBoxPadding.md +++ b/core/line_messaging_api/docs/FlexBoxPadding.md @@ -1,9 +1,17 @@ # FlexBoxPadding -## Properties +## Enum Variants + +| Name | Value | +|---- | -----| +| None | none | +| Xs | xs | +| Sm | sm | +| Md | md | +| Lg | lg | +| Xl | xl | +| Xxl | xxl | -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/FlexBoxSpacing.md b/core/line_messaging_api/docs/FlexBoxSpacing.md index e25b1e3..175fd20 100644 --- a/core/line_messaging_api/docs/FlexBoxSpacing.md +++ b/core/line_messaging_api/docs/FlexBoxSpacing.md @@ -1,9 +1,17 @@ # FlexBoxSpacing -## Properties +## Enum Variants + +| Name | Value | +|---- | -----| +| None | none | +| Xs | xs | +| Sm | sm | +| Md | md | +| Lg | lg | +| Xl | xl | +| Xxl | xxl | -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/FlexBubble.md b/core/line_messaging_api/docs/FlexBubble.md index 9641cf9..d48a585 100644 --- a/core/line_messaging_api/docs/FlexBubble.md +++ b/core/line_messaging_api/docs/FlexBubble.md @@ -6,13 +6,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **r#type** | **String** | | **direction** | Option<**String**> | | [optional] -**styles** | Option<[**crate::models::FlexBubbleStyles**](FlexBubbleStyles.md)> | | [optional] -**header** | Option<[**crate::models::FlexBox**](FlexBox.md)> | | [optional] -**hero** | Option<[**crate::models::FlexComponent**](FlexComponent.md)> | | [optional] -**body** | Option<[**crate::models::FlexBox**](FlexBox.md)> | | [optional] -**footer** | Option<[**crate::models::FlexBox**](FlexBox.md)> | | [optional] +**styles** | Option<[**models::FlexBubbleStyles**](FlexBubbleStyles.md)> | | [optional] +**header** | Option<[**models::FlexBox**](FlexBox.md)> | | [optional] +**hero** | Option<[**models::FlexComponent**](FlexComponent.md)> | | [optional] +**body** | Option<[**models::FlexBox**](FlexBox.md)> | | [optional] +**footer** | Option<[**models::FlexBox**](FlexBox.md)> | | [optional] **size** | Option<**String**> | | [optional] -**action** | Option<[**crate::models::Action**](Action.md)> | | [optional] +**action** | Option<[**models::Action**](Action.md)> | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/FlexBubbleStyles.md b/core/line_messaging_api/docs/FlexBubbleStyles.md index 509417f..0314bb3 100644 --- a/core/line_messaging_api/docs/FlexBubbleStyles.md +++ b/core/line_messaging_api/docs/FlexBubbleStyles.md @@ -4,10 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**header** | Option<[**crate::models::FlexBlockStyle**](FlexBlockStyle.md)> | | [optional] -**hero** | Option<[**crate::models::FlexBlockStyle**](FlexBlockStyle.md)> | | [optional] -**body** | Option<[**crate::models::FlexBlockStyle**](FlexBlockStyle.md)> | | [optional] -**footer** | Option<[**crate::models::FlexBlockStyle**](FlexBlockStyle.md)> | | [optional] +**header** | Option<[**models::FlexBlockStyle**](FlexBlockStyle.md)> | | [optional] +**hero** | Option<[**models::FlexBlockStyle**](FlexBlockStyle.md)> | | [optional] +**body** | Option<[**models::FlexBlockStyle**](FlexBlockStyle.md)> | | [optional] +**footer** | Option<[**models::FlexBlockStyle**](FlexBlockStyle.md)> | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/FlexButton.md b/core/line_messaging_api/docs/FlexButton.md index ee6758c..18c9bbc 100644 --- a/core/line_messaging_api/docs/FlexButton.md +++ b/core/line_messaging_api/docs/FlexButton.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **flex** | Option<**i32**> | | [optional] **color** | Option<**String**> | | [optional] **style** | Option<**String**> | | [optional] -**action** | [**crate::models::Action**](Action.md) | | +**action** | [**models::Action**](Action.md) | | **gravity** | Option<**String**> | | [optional] **margin** | Option<**String**> | | [optional] **position** | Option<**String**> | | [optional] diff --git a/core/line_messaging_api/docs/FlexCarousel.md b/core/line_messaging_api/docs/FlexCarousel.md index 213fc81..8d086bb 100644 --- a/core/line_messaging_api/docs/FlexCarousel.md +++ b/core/line_messaging_api/docs/FlexCarousel.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **r#type** | **String** | | -**contents** | [**Vec**](FlexBubble.md) | | +**contents** | [**Vec**](FlexBubble.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/FlexComponent.md b/core/line_messaging_api/docs/FlexComponent.md index 9d3d079..c638877 100644 --- a/core/line_messaging_api/docs/FlexComponent.md +++ b/core/line_messaging_api/docs/FlexComponent.md @@ -1,10 +1,9 @@ # FlexComponent -## Properties +## Enum Variants -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**r#type** | **String** | | +| Name | Value | +|---- | -----| [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/FlexContainer.md b/core/line_messaging_api/docs/FlexContainer.md index 5842a3a..2d6c256 100644 --- a/core/line_messaging_api/docs/FlexContainer.md +++ b/core/line_messaging_api/docs/FlexContainer.md @@ -1,10 +1,9 @@ # FlexContainer -## Properties +## Enum Variants -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**r#type** | **String** | | +| Name | Value | +|---- | -----| [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/FlexIconSize.md b/core/line_messaging_api/docs/FlexIconSize.md index 66119eb..0d14a3c 100644 --- a/core/line_messaging_api/docs/FlexIconSize.md +++ b/core/line_messaging_api/docs/FlexIconSize.md @@ -1,9 +1,20 @@ # FlexIconSize -## Properties +## Enum Variants + +| Name | Value | +|---- | -----| +| Xxs | xxs | +| Xs | xs | +| Sm | sm | +| Md | md | +| Lg | lg | +| Xl | xl | +| Xxl | xxl | +| Variant3xl | 3xl | +| Variant4xl | 4xl | +| Variant5xl | 5xl | -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/FlexImage.md b/core/line_messaging_api/docs/FlexImage.md index f652e13..2544ad4 100644 --- a/core/line_messaging_api/docs/FlexImage.md +++ b/core/line_messaging_api/docs/FlexImage.md @@ -19,7 +19,7 @@ Name | Type | Description | Notes **aspect_ratio** | Option<**String**> | Aspect ratio of the image. `{width}:{height}` format. Specify the value of `{width}` and `{height}` in the range from `1` to `100000`. However, you cannot set `{height}` to a value that is more than three times the value of `{width}`. The default value is `1:1`. | [optional] **aspect_mode** | Option<**String**> | The display style of the image if the aspect ratio of the image and that specified by the aspectRatio property do not match. | [optional] **background_color** | Option<**String**> | Background color of the image. Use a hexadecimal color code. | [optional] -**action** | Option<[**crate::models::Action**](Action.md)> | | [optional] +**action** | Option<[**models::Action**](Action.md)> | | [optional] **animated** | Option<**bool**> | When this is `true`, an animated image (APNG) plays. You can specify a value of true up to 10 images in a single message. You can't send messages that exceed this limit. This is `false` by default. Animated images larger than 300 KB aren't played back. | [optional][default to false] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/FlexImageSize.md b/core/line_messaging_api/docs/FlexImageSize.md index 1ba7897..f3aa6b1 100644 --- a/core/line_messaging_api/docs/FlexImageSize.md +++ b/core/line_messaging_api/docs/FlexImageSize.md @@ -1,9 +1,21 @@ # FlexImageSize -## Properties +## Enum Variants + +| Name | Value | +|---- | -----| +| Xxs | xxs | +| Xs | xs | +| Sm | sm | +| Md | md | +| Lg | lg | +| Xl | xl | +| Xxl | xxl | +| Variant3xl | 3xl | +| Variant4xl | 4xl | +| Variant5xl | 5xl | +| Full | full | -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/FlexMargin.md b/core/line_messaging_api/docs/FlexMargin.md index 62d8c06..71da91e 100644 --- a/core/line_messaging_api/docs/FlexMargin.md +++ b/core/line_messaging_api/docs/FlexMargin.md @@ -1,9 +1,17 @@ # FlexMargin -## Properties +## Enum Variants + +| Name | Value | +|---- | -----| +| None | none | +| Xs | xs | +| Sm | sm | +| Md | md | +| Lg | lg | +| Xl | xl | +| Xxl | xxl | -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/FlexMessage.md b/core/line_messaging_api/docs/FlexMessage.md index dfeb5df..1623ecb 100644 --- a/core/line_messaging_api/docs/FlexMessage.md +++ b/core/line_messaging_api/docs/FlexMessage.md @@ -5,10 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **r#type** | **String** | Type of message | -**quick_reply** | Option<[**crate::models::QuickReply**](QuickReply.md)> | | [optional] -**sender** | Option<[**crate::models::Sender**](Sender.md)> | | [optional] +**quick_reply** | Option<[**models::QuickReply**](QuickReply.md)> | | [optional] +**sender** | Option<[**models::Sender**](Sender.md)> | | [optional] **alt_text** | **String** | | -**contents** | [**crate::models::FlexContainer**](FlexContainer.md) | | +**contents** | [**models::FlexContainer**](FlexContainer.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/FlexOffset.md b/core/line_messaging_api/docs/FlexOffset.md index ad84b55..f95cc67 100644 --- a/core/line_messaging_api/docs/FlexOffset.md +++ b/core/line_messaging_api/docs/FlexOffset.md @@ -1,9 +1,17 @@ # FlexOffset -## Properties +## Enum Variants + +| Name | Value | +|---- | -----| +| None | none | +| Xs | xs | +| Sm | sm | +| Md | md | +| Lg | lg | +| Xl | xl | +| Xxl | xxl | -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/FlexSpanSize.md b/core/line_messaging_api/docs/FlexSpanSize.md index 1e209a4..5af792f 100644 --- a/core/line_messaging_api/docs/FlexSpanSize.md +++ b/core/line_messaging_api/docs/FlexSpanSize.md @@ -1,9 +1,20 @@ # FlexSpanSize -## Properties +## Enum Variants + +| Name | Value | +|---- | -----| +| Xxs | xxs | +| Xs | xs | +| Sm | sm | +| Md | md | +| Lg | lg | +| Xl | xl | +| Xxl | xxl | +| Variant3xl | 3xl | +| Variant4xl | 4xl | +| Variant5xl | 5xl | -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/FlexText.md b/core/line_messaging_api/docs/FlexText.md index a73ca70..32e7470 100644 --- a/core/line_messaging_api/docs/FlexText.md +++ b/core/line_messaging_api/docs/FlexText.md @@ -22,9 +22,9 @@ Name | Type | Description | Notes **offset_bottom** | Option<**String**> | | [optional] **offset_start** | Option<**String**> | | [optional] **offset_end** | Option<**String**> | | [optional] -**action** | Option<[**crate::models::Action**](Action.md)> | | [optional] +**action** | Option<[**models::Action**](Action.md)> | | [optional] **max_lines** | Option<**i32**> | | [optional] -**contents** | Option<[**Vec**](FlexSpan.md)> | | [optional] +**contents** | Option<[**Vec**](FlexSpan.md)> | | [optional] **adjust_mode** | Option<**String**> | | [optional] **scaling** | Option<**bool**> | | [optional] diff --git a/core/line_messaging_api/docs/FlexTextFontSize.md b/core/line_messaging_api/docs/FlexTextFontSize.md index 97eac8b..0ddc1c3 100644 --- a/core/line_messaging_api/docs/FlexTextFontSize.md +++ b/core/line_messaging_api/docs/FlexTextFontSize.md @@ -1,9 +1,20 @@ # FlexTextFontSize -## Properties +## Enum Variants + +| Name | Value | +|---- | -----| +| Xxs | xxs | +| Xs | xs | +| Sm | sm | +| Md | md | +| Lg | lg | +| Xl | xl | +| Xxl | xxl | +| Variant3xl | 3xl | +| Variant4xl | 4xl | +| Variant5xl | 5xl | -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/FlexVideo.md b/core/line_messaging_api/docs/FlexVideo.md index e6f25db..6ea3e08 100644 --- a/core/line_messaging_api/docs/FlexVideo.md +++ b/core/line_messaging_api/docs/FlexVideo.md @@ -7,9 +7,9 @@ Name | Type | Description | Notes **r#type** | **String** | | **url** | **String** | | **preview_url** | **String** | | -**alt_content** | [**crate::models::FlexComponent**](FlexComponent.md) | | +**alt_content** | [**models::FlexComponent**](FlexComponent.md) | | **aspect_ratio** | Option<**String**> | | [optional] -**action** | Option<[**crate::models::Action**](Action.md)> | | [optional] +**action** | Option<[**models::Action**](Action.md)> | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/GenderDemographic.md b/core/line_messaging_api/docs/GenderDemographic.md index 59523bc..424a10e 100644 --- a/core/line_messaging_api/docs/GenderDemographic.md +++ b/core/line_messaging_api/docs/GenderDemographic.md @@ -1,9 +1,12 @@ # GenderDemographic -## Properties +## Enum Variants + +| Name | Value | +|---- | -----| +| Male | male | +| Female | female | -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/GenderDemographicFilter.md b/core/line_messaging_api/docs/GenderDemographicFilter.md index 773fb1d..9b84a4d 100644 --- a/core/line_messaging_api/docs/GenderDemographicFilter.md +++ b/core/line_messaging_api/docs/GenderDemographicFilter.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **r#type** | Option<**String**> | Type of demographic filter | [optional] -**one_of** | Option<[**Vec**](GenderDemographic.md)> | | [optional] +**one_of** | Option<[**Vec**](GenderDemographic.md)> | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/GetJoinedMembershipUsersResponse.md b/core/line_messaging_api/docs/GetJoinedMembershipUsersResponse.md new file mode 100644 index 0000000..262760e --- /dev/null +++ b/core/line_messaging_api/docs/GetJoinedMembershipUsersResponse.md @@ -0,0 +1,12 @@ +# GetJoinedMembershipUsersResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**user_ids** | **Vec** | A list of user IDs who joined the membership. Users who have not agreed to the bot user agreement, are not following the bot, or are not active will be excluded. If there are no users in the membership, an empty list will be returned. | +**next** | Option<**String**> | A continuation token to get next remaining membership user IDs. Returned only when there are remaining user IDs that weren't returned in the userIds property in the previous request. The continuation token expires in 24 hours (86,400 seconds). | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/core/line_messaging_api/docs/GetMembershipSubscriptionResponse.md b/core/line_messaging_api/docs/GetMembershipSubscriptionResponse.md index b94913d..7d0d8f7 100644 --- a/core/line_messaging_api/docs/GetMembershipSubscriptionResponse.md +++ b/core/line_messaging_api/docs/GetMembershipSubscriptionResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**subscriptions** | [**Vec**](Subscription.md) | List of subscription information | +**subscriptions** | [**Vec**](Subscription.md) | List of subscription information | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/ImageCarouselColumn.md b/core/line_messaging_api/docs/ImageCarouselColumn.md index fa8bf9e..7186660 100644 --- a/core/line_messaging_api/docs/ImageCarouselColumn.md +++ b/core/line_messaging_api/docs/ImageCarouselColumn.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **image_url** | **String** | | -**action** | [**crate::models::Action**](Action.md) | | +**action** | [**models::Action**](Action.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/ImageCarouselTemplate.md b/core/line_messaging_api/docs/ImageCarouselTemplate.md index 64a9ad6..563efa8 100644 --- a/core/line_messaging_api/docs/ImageCarouselTemplate.md +++ b/core/line_messaging_api/docs/ImageCarouselTemplate.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **r#type** | **String** | | -**columns** | [**Vec**](ImageCarouselColumn.md) | | +**columns** | [**Vec**](ImageCarouselColumn.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/ImageMessage.md b/core/line_messaging_api/docs/ImageMessage.md index 946d29d..d354dcb 100644 --- a/core/line_messaging_api/docs/ImageMessage.md +++ b/core/line_messaging_api/docs/ImageMessage.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **r#type** | **String** | Type of message | -**quick_reply** | Option<[**crate::models::QuickReply**](QuickReply.md)> | | [optional] -**sender** | Option<[**crate::models::Sender**](Sender.md)> | | [optional] +**quick_reply** | Option<[**models::QuickReply**](QuickReply.md)> | | [optional] +**sender** | Option<[**models::Sender**](Sender.md)> | | [optional] **original_content_url** | **String** | | **preview_image_url** | **String** | | diff --git a/core/line_messaging_api/docs/ImagemapAction.md b/core/line_messaging_api/docs/ImagemapAction.md index 55ba5f2..da41a67 100644 --- a/core/line_messaging_api/docs/ImagemapAction.md +++ b/core/line_messaging_api/docs/ImagemapAction.md @@ -1,11 +1,9 @@ # ImagemapAction -## Properties +## Enum Variants -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**r#type** | **String** | | -**area** | [**crate::models::ImagemapArea**](ImagemapArea.md) | | +| Name | Value | +|---- | -----| [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/ImagemapMessage.md b/core/line_messaging_api/docs/ImagemapMessage.md index 353a9d1..497bfa9 100644 --- a/core/line_messaging_api/docs/ImagemapMessage.md +++ b/core/line_messaging_api/docs/ImagemapMessage.md @@ -5,13 +5,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **r#type** | **String** | Type of message | -**quick_reply** | Option<[**crate::models::QuickReply**](QuickReply.md)> | | [optional] -**sender** | Option<[**crate::models::Sender**](Sender.md)> | | [optional] +**quick_reply** | Option<[**models::QuickReply**](QuickReply.md)> | | [optional] +**sender** | Option<[**models::Sender**](Sender.md)> | | [optional] **base_url** | **String** | | **alt_text** | **String** | | -**base_size** | [**crate::models::ImagemapBaseSize**](ImagemapBaseSize.md) | | -**actions** | [**Vec**](ImagemapAction.md) | | -**video** | Option<[**crate::models::ImagemapVideo**](ImagemapVideo.md)> | | [optional] +**base_size** | [**models::ImagemapBaseSize**](ImagemapBaseSize.md) | | +**actions** | [**Vec**](ImagemapAction.md) | | +**video** | Option<[**models::ImagemapVideo**](ImagemapVideo.md)> | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/ImagemapVideo.md b/core/line_messaging_api/docs/ImagemapVideo.md index 1891ae7..760e417 100644 --- a/core/line_messaging_api/docs/ImagemapVideo.md +++ b/core/line_messaging_api/docs/ImagemapVideo.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **original_content_url** | Option<**String**> | | [optional] **preview_image_url** | Option<**String**> | | [optional] -**area** | Option<[**crate::models::ImagemapArea**](ImagemapArea.md)> | | [optional] -**external_link** | Option<[**crate::models::ImagemapExternalLink**](ImagemapExternalLink.md)> | | [optional] +**area** | Option<[**models::ImagemapArea**](ImagemapArea.md)> | | [optional] +**external_link** | Option<[**models::ImagemapExternalLink**](ImagemapExternalLink.md)> | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/LocationMessage.md b/core/line_messaging_api/docs/LocationMessage.md index 2a9d0d9..8c5747b 100644 --- a/core/line_messaging_api/docs/LocationMessage.md +++ b/core/line_messaging_api/docs/LocationMessage.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **r#type** | **String** | Type of message | -**quick_reply** | Option<[**crate::models::QuickReply**](QuickReply.md)> | | [optional] -**sender** | Option<[**crate::models::Sender**](Sender.md)> | | [optional] +**quick_reply** | Option<[**models::QuickReply**](QuickReply.md)> | | [optional] +**sender** | Option<[**models::Sender**](Sender.md)> | | [optional] **title** | **String** | | **address** | **String** | | **latitude** | **f64** | | diff --git a/core/line_messaging_api/docs/MarkMessagesAsReadRequest.md b/core/line_messaging_api/docs/MarkMessagesAsReadRequest.md index 90db598..b406d7a 100644 --- a/core/line_messaging_api/docs/MarkMessagesAsReadRequest.md +++ b/core/line_messaging_api/docs/MarkMessagesAsReadRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**chat** | [**crate::models::ChatReference**](ChatReference.md) | | +**chat** | [**models::ChatReference**](ChatReference.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/MembershipListResponse.md b/core/line_messaging_api/docs/MembershipListResponse.md index 97d557e..8930e2e 100644 --- a/core/line_messaging_api/docs/MembershipListResponse.md +++ b/core/line_messaging_api/docs/MembershipListResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**memberships** | [**Vec**](Membership.md) | List of membership information | +**memberships** | [**Vec**](Membership.md) | List of membership information | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/MentionSubstitutionObject.md b/core/line_messaging_api/docs/MentionSubstitutionObject.md new file mode 100644 index 0000000..46fcc4e --- /dev/null +++ b/core/line_messaging_api/docs/MentionSubstitutionObject.md @@ -0,0 +1,12 @@ +# MentionSubstitutionObject + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **String** | Type of substitution object | +**mentionee** | [**models::MentionTarget**](MentionTarget.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/core/line_messaging_api/docs/MentionTarget.md b/core/line_messaging_api/docs/MentionTarget.md new file mode 100644 index 0000000..9c5e382 --- /dev/null +++ b/core/line_messaging_api/docs/MentionTarget.md @@ -0,0 +1,10 @@ +# MentionTarget + +## Enum Variants + +| Name | Value | +|---- | -----| + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/core/line_messaging_api/docs/Message.md b/core/line_messaging_api/docs/Message.md index 18d1f91..df76c4e 100644 --- a/core/line_messaging_api/docs/Message.md +++ b/core/line_messaging_api/docs/Message.md @@ -1,12 +1,9 @@ # Message -## Properties +## Enum Variants -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**r#type** | **String** | Type of message | -**quick_reply** | Option<[**crate::models::QuickReply**](QuickReply.md)> | | [optional] -**sender** | Option<[**crate::models::Sender**](Sender.md)> | | [optional] +| Name | Value | +|---- | -----| [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/MessageImagemapAction.md b/core/line_messaging_api/docs/MessageImagemapAction.md index fbebc9a..93f3027 100644 --- a/core/line_messaging_api/docs/MessageImagemapAction.md +++ b/core/line_messaging_api/docs/MessageImagemapAction.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **r#type** | **String** | | -**area** | [**crate::models::ImagemapArea**](ImagemapArea.md) | | +**area** | [**models::ImagemapArea**](ImagemapArea.md) | | **text** | **String** | | **label** | Option<**String**> | | [optional] diff --git a/core/line_messaging_api/docs/MessageQuotaResponse.md b/core/line_messaging_api/docs/MessageQuotaResponse.md index 74d2707..fd62786 100644 --- a/core/line_messaging_api/docs/MessageQuotaResponse.md +++ b/core/line_messaging_api/docs/MessageQuotaResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**r#type** | [**crate::models::QuotaType**](QuotaType.md) | | +**r#type** | [**models::QuotaType**](QuotaType.md) | | **value** | Option<**i64**> | The target limit for sending messages in the current month. This property is returned when the `type` property has a value of `limited`. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/MessagingApiApi.md b/core/line_messaging_api/docs/MessagingApiApi.md index 69c6cd8..d0cf54a 100644 --- a/core/line_messaging_api/docs/MessagingApiApi.md +++ b/core/line_messaging_api/docs/MessagingApiApi.md @@ -4,14 +4,12 @@ All URIs are relative to *https://api.line.me* Method | HTTP request | Description ------------- | ------------- | ------------- -[**audience_match**](MessagingApiApi.md#audience_match) | **Post** /bot/ad/multicast/phone | [**broadcast**](MessagingApiApi.md#broadcast) | **Post** /v2/bot/message/broadcast | [**cancel_default_rich_menu**](MessagingApiApi.md#cancel_default_rich_menu) | **Delete** /v2/bot/user/all/richmenu | [**create_rich_menu**](MessagingApiApi.md#create_rich_menu) | **Post** /v2/bot/richmenu | [**create_rich_menu_alias**](MessagingApiApi.md#create_rich_menu_alias) | **Post** /v2/bot/richmenu/alias | [**delete_rich_menu**](MessagingApiApi.md#delete_rich_menu) | **Delete** /v2/bot/richmenu/{richMenuId} | [**delete_rich_menu_alias**](MessagingApiApi.md#delete_rich_menu_alias) | **Delete** /v2/bot/richmenu/alias/{richMenuAliasId} | -[**get_ad_phone_message_statistics**](MessagingApiApi.md#get_ad_phone_message_statistics) | **Get** /v2/bot/message/delivery/ad_phone | [**get_aggregation_unit_name_list**](MessagingApiApi.md#get_aggregation_unit_name_list) | **Get** /v2/bot/message/aggregation/list | [**get_aggregation_unit_usage**](MessagingApiApi.md#get_aggregation_unit_usage) | **Get** /v2/bot/message/aggregation/info | [**get_bot_info**](MessagingApiApi.md#get_bot_info) | **Get** /v2/bot/info | @@ -21,6 +19,7 @@ Method | HTTP request | Description [**get_group_member_profile**](MessagingApiApi.md#get_group_member_profile) | **Get** /v2/bot/group/{groupId}/member/{userId} | [**get_group_members_ids**](MessagingApiApi.md#get_group_members_ids) | **Get** /v2/bot/group/{groupId}/members/ids | [**get_group_summary**](MessagingApiApi.md#get_group_summary) | **Get** /v2/bot/group/{groupId}/summary | +[**get_joined_membership_users**](MessagingApiApi.md#get_joined_membership_users) | **Get** /v2/bot/membership/{membershipId}/users/ids | [**get_membership_list**](MessagingApiApi.md#get_membership_list) | **Get** /v2/bot/membership/list | [**get_membership_subscription**](MessagingApiApi.md#get_membership_subscription) | **Get** /v2/bot/membership/subscription/{userId} | [**get_message_quota**](MessagingApiApi.md#get_message_quota) | **Get** /v2/bot/message/quota | @@ -71,36 +70,6 @@ Method | HTTP request | Description -## audience_match - -> audience_match(audience_match_messages_request) - - -Send a message using phone number - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**audience_match_messages_request** | [**AudienceMatchMessagesRequest**](AudienceMatchMessagesRequest.md) | | [required] | - -### Return type - - (empty response body) - -### Authorization - -[Bearer](../README.md#Bearer) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: Not defined - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - ## broadcast > serde_json::Value broadcast(broadcast_request, x_line_retry_key) @@ -161,7 +130,7 @@ This endpoint does not need any parameter. ## create_rich_menu -> crate::models::RichMenuIdResponse create_rich_menu(rich_menu_request) +> models::RichMenuIdResponse create_rich_menu(rich_menu_request) Create rich menu @@ -175,7 +144,7 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::RichMenuIdResponse**](RichMenuIdResponse.md) +[**models::RichMenuIdResponse**](RichMenuIdResponse.md) ### Authorization @@ -279,39 +248,9 @@ Name | Type | Description | Required | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -## get_ad_phone_message_statistics - -> crate::models::NumberOfMessagesResponse get_ad_phone_message_statistics(date) - - -Get result of message delivery using phone number - -### Parameters - - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**date** | **String** | Date the message was sent Format: `yyyyMMdd` (e.g. `20190831`) Time Zone: UTC+9 | [required] | - -### Return type - -[**crate::models::NumberOfMessagesResponse**](NumberOfMessagesResponse.md) - -### Authorization - -[Bearer](../README.md#Bearer) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - ## get_aggregation_unit_name_list -> crate::models::GetAggregationUnitNameListResponse get_aggregation_unit_name_list(limit, start) +> models::GetAggregationUnitNameListResponse get_aggregation_unit_name_list(limit, start) Get name list of units used this month @@ -326,7 +265,7 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::GetAggregationUnitNameListResponse**](GetAggregationUnitNameListResponse.md) +[**models::GetAggregationUnitNameListResponse**](GetAggregationUnitNameListResponse.md) ### Authorization @@ -342,7 +281,7 @@ Name | Type | Description | Required | Notes ## get_aggregation_unit_usage -> crate::models::GetAggregationUnitUsageResponse get_aggregation_unit_usage() +> models::GetAggregationUnitUsageResponse get_aggregation_unit_usage() Get number of units used this month @@ -353,7 +292,7 @@ This endpoint does not need any parameter. ### Return type -[**crate::models::GetAggregationUnitUsageResponse**](GetAggregationUnitUsageResponse.md) +[**models::GetAggregationUnitUsageResponse**](GetAggregationUnitUsageResponse.md) ### Authorization @@ -369,7 +308,7 @@ This endpoint does not need any parameter. ## get_bot_info -> crate::models::BotInfoResponse get_bot_info() +> models::BotInfoResponse get_bot_info() Get bot info @@ -380,7 +319,7 @@ This endpoint does not need any parameter. ### Return type -[**crate::models::BotInfoResponse**](BotInfoResponse.md) +[**models::BotInfoResponse**](BotInfoResponse.md) ### Authorization @@ -396,7 +335,7 @@ This endpoint does not need any parameter. ## get_default_rich_menu_id -> crate::models::RichMenuIdResponse get_default_rich_menu_id() +> models::RichMenuIdResponse get_default_rich_menu_id() Gets the ID of the default rich menu set with the Messaging API. @@ -407,7 +346,7 @@ This endpoint does not need any parameter. ### Return type -[**crate::models::RichMenuIdResponse**](RichMenuIdResponse.md) +[**models::RichMenuIdResponse**](RichMenuIdResponse.md) ### Authorization @@ -423,7 +362,7 @@ This endpoint does not need any parameter. ## get_followers -> crate::models::GetFollowersResponse get_followers(start, limit) +> models::GetFollowersResponse get_followers(start, limit) Get a list of users who added your LINE Official Account as a friend @@ -438,7 +377,7 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::GetFollowersResponse**](GetFollowersResponse.md) +[**models::GetFollowersResponse**](GetFollowersResponse.md) ### Authorization @@ -454,7 +393,7 @@ Name | Type | Description | Required | Notes ## get_group_member_count -> crate::models::GroupMemberCountResponse get_group_member_count(group_id) +> models::GroupMemberCountResponse get_group_member_count(group_id) Get number of users in a group chat @@ -468,7 +407,7 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::GroupMemberCountResponse**](GroupMemberCountResponse.md) +[**models::GroupMemberCountResponse**](GroupMemberCountResponse.md) ### Authorization @@ -484,7 +423,7 @@ Name | Type | Description | Required | Notes ## get_group_member_profile -> crate::models::GroupUserProfileResponse get_group_member_profile(group_id, user_id) +> models::GroupUserProfileResponse get_group_member_profile(group_id, user_id) Get group chat member profile @@ -499,7 +438,7 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::GroupUserProfileResponse**](GroupUserProfileResponse.md) +[**models::GroupUserProfileResponse**](GroupUserProfileResponse.md) ### Authorization @@ -515,7 +454,7 @@ Name | Type | Description | Required | Notes ## get_group_members_ids -> crate::models::MembersIdsResponse get_group_members_ids(group_id, start) +> models::MembersIdsResponse get_group_members_ids(group_id, start) Get group chat member user IDs @@ -530,7 +469,7 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::MembersIdsResponse**](MembersIdsResponse.md) +[**models::MembersIdsResponse**](MembersIdsResponse.md) ### Authorization @@ -546,7 +485,7 @@ Name | Type | Description | Required | Notes ## get_group_summary -> crate::models::GroupSummaryResponse get_group_summary(group_id) +> models::GroupSummaryResponse get_group_summary(group_id) Get group chat summary @@ -560,7 +499,39 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::GroupSummaryResponse**](GroupSummaryResponse.md) +[**models::GroupSummaryResponse**](GroupSummaryResponse.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_joined_membership_users + +> models::GetJoinedMembershipUsersResponse get_joined_membership_users(membership_id, start, limit) + + +Get a list of user IDs who joined the membership. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**membership_id** | **i32** | Membership plan ID. | [required] | +**start** | Option<**String**> | A continuation token to get next remaining membership user IDs. Returned only when there are remaining user IDs that weren't returned in the userIds property in the previous request. The continuation token expires in 24 hours (86,400 seconds). | | +**limit** | Option<**i32**> | The max number of items to return for this API call. The value is set to 300 by default, but the max acceptable value is 1000. | |[default to 300] + +### Return type + +[**models::GetJoinedMembershipUsersResponse**](GetJoinedMembershipUsersResponse.md) ### Authorization @@ -576,7 +547,7 @@ Name | Type | Description | Required | Notes ## get_membership_list -> crate::models::MembershipListResponse get_membership_list() +> models::MembershipListResponse get_membership_list() Get a list of memberships. @@ -587,7 +558,7 @@ This endpoint does not need any parameter. ### Return type -[**crate::models::MembershipListResponse**](MembershipListResponse.md) +[**models::MembershipListResponse**](MembershipListResponse.md) ### Authorization @@ -603,7 +574,7 @@ This endpoint does not need any parameter. ## get_membership_subscription -> crate::models::GetMembershipSubscriptionResponse get_membership_subscription(user_id) +> models::GetMembershipSubscriptionResponse get_membership_subscription(user_id) Get a user's membership subscription. @@ -617,7 +588,7 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::GetMembershipSubscriptionResponse**](GetMembershipSubscriptionResponse.md) +[**models::GetMembershipSubscriptionResponse**](GetMembershipSubscriptionResponse.md) ### Authorization @@ -633,7 +604,7 @@ Name | Type | Description | Required | Notes ## get_message_quota -> crate::models::MessageQuotaResponse get_message_quota() +> models::MessageQuotaResponse get_message_quota() Gets the target limit for sending messages in the current month. The total number of the free messages and the additional messages is returned. @@ -644,7 +615,7 @@ This endpoint does not need any parameter. ### Return type -[**crate::models::MessageQuotaResponse**](MessageQuotaResponse.md) +[**models::MessageQuotaResponse**](MessageQuotaResponse.md) ### Authorization @@ -660,7 +631,7 @@ This endpoint does not need any parameter. ## get_message_quota_consumption -> crate::models::QuotaConsumptionResponse get_message_quota_consumption() +> models::QuotaConsumptionResponse get_message_quota_consumption() Gets the number of messages sent in the current month. @@ -671,7 +642,7 @@ This endpoint does not need any parameter. ### Return type -[**crate::models::QuotaConsumptionResponse**](QuotaConsumptionResponse.md) +[**models::QuotaConsumptionResponse**](QuotaConsumptionResponse.md) ### Authorization @@ -687,7 +658,7 @@ This endpoint does not need any parameter. ## get_narrowcast_progress -> crate::models::NarrowcastProgressResponse get_narrowcast_progress(request_id) +> models::NarrowcastProgressResponse get_narrowcast_progress(request_id) Gets the status of a narrowcast message. @@ -701,7 +672,7 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::NarrowcastProgressResponse**](NarrowcastProgressResponse.md) +[**models::NarrowcastProgressResponse**](NarrowcastProgressResponse.md) ### Authorization @@ -717,7 +688,7 @@ Name | Type | Description | Required | Notes ## get_number_of_sent_broadcast_messages -> crate::models::NumberOfMessagesResponse get_number_of_sent_broadcast_messages(date) +> models::NumberOfMessagesResponse get_number_of_sent_broadcast_messages(date) Get number of sent broadcast messages @@ -731,7 +702,7 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::NumberOfMessagesResponse**](NumberOfMessagesResponse.md) +[**models::NumberOfMessagesResponse**](NumberOfMessagesResponse.md) ### Authorization @@ -747,7 +718,7 @@ Name | Type | Description | Required | Notes ## get_number_of_sent_multicast_messages -> crate::models::NumberOfMessagesResponse get_number_of_sent_multicast_messages(date) +> models::NumberOfMessagesResponse get_number_of_sent_multicast_messages(date) Get number of sent multicast messages @@ -761,7 +732,7 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::NumberOfMessagesResponse**](NumberOfMessagesResponse.md) +[**models::NumberOfMessagesResponse**](NumberOfMessagesResponse.md) ### Authorization @@ -777,7 +748,7 @@ Name | Type | Description | Required | Notes ## get_number_of_sent_push_messages -> crate::models::NumberOfMessagesResponse get_number_of_sent_push_messages(date) +> models::NumberOfMessagesResponse get_number_of_sent_push_messages(date) Get number of sent push messages @@ -791,7 +762,7 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::NumberOfMessagesResponse**](NumberOfMessagesResponse.md) +[**models::NumberOfMessagesResponse**](NumberOfMessagesResponse.md) ### Authorization @@ -807,7 +778,7 @@ Name | Type | Description | Required | Notes ## get_number_of_sent_reply_messages -> crate::models::NumberOfMessagesResponse get_number_of_sent_reply_messages(date) +> models::NumberOfMessagesResponse get_number_of_sent_reply_messages(date) Get number of sent reply messages @@ -821,7 +792,7 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::NumberOfMessagesResponse**](NumberOfMessagesResponse.md) +[**models::NumberOfMessagesResponse**](NumberOfMessagesResponse.md) ### Authorization @@ -837,7 +808,7 @@ Name | Type | Description | Required | Notes ## get_pnp_message_statistics -> crate::models::NumberOfMessagesResponse get_pnp_message_statistics(date) +> models::NumberOfMessagesResponse get_pnp_message_statistics(date) Get number of sent LINE notification messages  @@ -851,7 +822,7 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::NumberOfMessagesResponse**](NumberOfMessagesResponse.md) +[**models::NumberOfMessagesResponse**](NumberOfMessagesResponse.md) ### Authorization @@ -867,7 +838,7 @@ Name | Type | Description | Required | Notes ## get_profile -> crate::models::UserProfileResponse get_profile(user_id) +> models::UserProfileResponse get_profile(user_id) Get profile @@ -881,7 +852,7 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::UserProfileResponse**](UserProfileResponse.md) +[**models::UserProfileResponse**](UserProfileResponse.md) ### Authorization @@ -897,7 +868,7 @@ Name | Type | Description | Required | Notes ## get_rich_menu -> crate::models::RichMenuResponse get_rich_menu(rich_menu_id) +> models::RichMenuResponse get_rich_menu(rich_menu_id) Gets a rich menu via a rich menu ID. @@ -911,7 +882,7 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::RichMenuResponse**](RichMenuResponse.md) +[**models::RichMenuResponse**](RichMenuResponse.md) ### Authorization @@ -927,7 +898,7 @@ Name | Type | Description | Required | Notes ## get_rich_menu_alias -> crate::models::RichMenuAliasResponse get_rich_menu_alias(rich_menu_alias_id) +> models::RichMenuAliasResponse get_rich_menu_alias(rich_menu_alias_id) Get rich menu alias information @@ -941,7 +912,7 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::RichMenuAliasResponse**](RichMenuAliasResponse.md) +[**models::RichMenuAliasResponse**](RichMenuAliasResponse.md) ### Authorization @@ -957,7 +928,7 @@ Name | Type | Description | Required | Notes ## get_rich_menu_alias_list -> crate::models::RichMenuAliasListResponse get_rich_menu_alias_list() +> models::RichMenuAliasListResponse get_rich_menu_alias_list() Get list of rich menu alias @@ -968,7 +939,7 @@ This endpoint does not need any parameter. ### Return type -[**crate::models::RichMenuAliasListResponse**](RichMenuAliasListResponse.md) +[**models::RichMenuAliasListResponse**](RichMenuAliasListResponse.md) ### Authorization @@ -984,7 +955,7 @@ This endpoint does not need any parameter. ## get_rich_menu_batch_progress -> crate::models::RichMenuBatchProgressResponse get_rich_menu_batch_progress(request_id) +> models::RichMenuBatchProgressResponse get_rich_menu_batch_progress(request_id) Get the status of Replace or unlink a linked rich menus in batches. @@ -998,7 +969,7 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::RichMenuBatchProgressResponse**](RichMenuBatchProgressResponse.md) +[**models::RichMenuBatchProgressResponse**](RichMenuBatchProgressResponse.md) ### Authorization @@ -1014,7 +985,7 @@ Name | Type | Description | Required | Notes ## get_rich_menu_id_of_user -> crate::models::RichMenuIdResponse get_rich_menu_id_of_user(user_id) +> models::RichMenuIdResponse get_rich_menu_id_of_user(user_id) Get rich menu ID of user @@ -1028,7 +999,7 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::RichMenuIdResponse**](RichMenuIdResponse.md) +[**models::RichMenuIdResponse**](RichMenuIdResponse.md) ### Authorization @@ -1044,7 +1015,7 @@ Name | Type | Description | Required | Notes ## get_rich_menu_list -> crate::models::RichMenuListResponse get_rich_menu_list() +> models::RichMenuListResponse get_rich_menu_list() Get rich menu list @@ -1055,7 +1026,7 @@ This endpoint does not need any parameter. ### Return type -[**crate::models::RichMenuListResponse**](RichMenuListResponse.md) +[**models::RichMenuListResponse**](RichMenuListResponse.md) ### Authorization @@ -1071,7 +1042,7 @@ This endpoint does not need any parameter. ## get_room_member_count -> crate::models::RoomMemberCountResponse get_room_member_count(room_id) +> models::RoomMemberCountResponse get_room_member_count(room_id) Get number of users in a multi-person chat @@ -1085,7 +1056,7 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::RoomMemberCountResponse**](RoomMemberCountResponse.md) +[**models::RoomMemberCountResponse**](RoomMemberCountResponse.md) ### Authorization @@ -1101,7 +1072,7 @@ Name | Type | Description | Required | Notes ## get_room_member_profile -> crate::models::RoomUserProfileResponse get_room_member_profile(room_id, user_id) +> models::RoomUserProfileResponse get_room_member_profile(room_id, user_id) Get multi-person chat member profile @@ -1116,7 +1087,7 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::RoomUserProfileResponse**](RoomUserProfileResponse.md) +[**models::RoomUserProfileResponse**](RoomUserProfileResponse.md) ### Authorization @@ -1132,7 +1103,7 @@ Name | Type | Description | Required | Notes ## get_room_members_ids -> crate::models::MembersIdsResponse get_room_members_ids(room_id, start) +> models::MembersIdsResponse get_room_members_ids(room_id, start) Get multi-person chat member user IDs @@ -1147,7 +1118,7 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::MembersIdsResponse**](MembersIdsResponse.md) +[**models::MembersIdsResponse**](MembersIdsResponse.md) ### Authorization @@ -1163,7 +1134,7 @@ Name | Type | Description | Required | Notes ## get_webhook_endpoint -> crate::models::GetWebhookEndpointResponse get_webhook_endpoint() +> models::GetWebhookEndpointResponse get_webhook_endpoint() Get webhook endpoint information @@ -1174,7 +1145,7 @@ This endpoint does not need any parameter. ### Return type -[**crate::models::GetWebhookEndpointResponse**](GetWebhookEndpointResponse.md) +[**models::GetWebhookEndpointResponse**](GetWebhookEndpointResponse.md) ### Authorization @@ -1190,7 +1161,7 @@ This endpoint does not need any parameter. ## issue_link_token -> crate::models::IssueLinkTokenResponse issue_link_token(user_id) +> models::IssueLinkTokenResponse issue_link_token(user_id) Issue link token @@ -1204,7 +1175,7 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::IssueLinkTokenResponse**](IssueLinkTokenResponse.md) +[**models::IssueLinkTokenResponse**](IssueLinkTokenResponse.md) ### Authorization @@ -1433,7 +1404,7 @@ Name | Type | Description | Required | Notes ## push_message -> crate::models::PushMessageResponse push_message(push_message_request, x_line_retry_key) +> models::PushMessageResponse push_message(push_message_request, x_line_retry_key) Sends a message to a user, group chat, or multi-person chat at any time. @@ -1448,7 +1419,7 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::PushMessageResponse**](PushMessageResponse.md) +[**models::PushMessageResponse**](PushMessageResponse.md) ### Authorization @@ -1495,7 +1466,7 @@ Name | Type | Description | Required | Notes ## reply_message -> crate::models::ReplyMessageResponse reply_message(reply_message_request) +> models::ReplyMessageResponse reply_message(reply_message_request) Send reply message @@ -1509,7 +1480,7 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::ReplyMessageResponse**](ReplyMessageResponse.md) +[**models::ReplyMessageResponse**](ReplyMessageResponse.md) ### Authorization @@ -1645,7 +1616,7 @@ Name | Type | Description | Required | Notes ## test_webhook_endpoint -> crate::models::TestWebhookEndpointResponse test_webhook_endpoint(test_webhook_endpoint_request) +> models::TestWebhookEndpointResponse test_webhook_endpoint(test_webhook_endpoint_request) Test webhook endpoint @@ -1659,7 +1630,7 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::TestWebhookEndpointResponse**](TestWebhookEndpointResponse.md) +[**models::TestWebhookEndpointResponse**](TestWebhookEndpointResponse.md) ### Authorization diff --git a/core/line_messaging_api/docs/MessagingApiBlobApi.md b/core/line_messaging_api/docs/MessagingApiBlobApi.md index e2aed54..d09e776 100644 --- a/core/line_messaging_api/docs/MessagingApiBlobApi.md +++ b/core/line_messaging_api/docs/MessagingApiBlobApi.md @@ -74,7 +74,7 @@ Name | Type | Description | Required | Notes ## get_message_content_transcoding_by_message_id -> crate::models::GetMessageContentTranscodingResponse get_message_content_transcoding_by_message_id(message_id) +> models::GetMessageContentTranscodingResponse get_message_content_transcoding_by_message_id(message_id) Verify the preparation status of a video or audio for getting @@ -88,7 +88,7 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::GetMessageContentTranscodingResponse**](GetMessageContentTranscodingResponse.md) +[**models::GetMessageContentTranscodingResponse**](GetMessageContentTranscodingResponse.md) ### Authorization diff --git a/core/line_messaging_api/docs/MulticastRequest.md b/core/line_messaging_api/docs/MulticastRequest.md index bd970fc..0cd0433 100644 --- a/core/line_messaging_api/docs/MulticastRequest.md +++ b/core/line_messaging_api/docs/MulticastRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**messages** | [**Vec**](Message.md) | Messages to send | +**messages** | [**Vec**](Message.md) | Messages to send | **to** | **Vec** | Array of user IDs. Use userId values which are returned in webhook event objects. Do not use LINE IDs found on LINE. | **notification_disabled** | Option<**bool**> | `true`: The user doesn’t receive a push notification when a message is sent. `false`: The user receives a push notification when the message is sent (unless they have disabled push notifications in LINE and/or their device). The default value is false. | [optional][default to false] **custom_aggregation_units** | Option<**Vec**> | Name of aggregation unit. Case-sensitive. | [optional] diff --git a/core/line_messaging_api/docs/NarrowcastProgressResponse.md b/core/line_messaging_api/docs/NarrowcastProgressResponse.md index 8c37e94..64b03bc 100644 --- a/core/line_messaging_api/docs/NarrowcastProgressResponse.md +++ b/core/line_messaging_api/docs/NarrowcastProgressResponse.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **failure_count** | Option<**i64**> | The number of users who failed to send the message. | [optional] **target_count** | Option<**i64**> | The number of intended recipients of the message. | [optional] **failed_description** | Option<**String**> | The reason the message failed to be sent. This is only included with a `phase` property value of `failed`. | [optional] -**error_code** | Option<**i64**> | Error summary. This is only included with a phase property value of failed. One of: `1`: An internal error occurred. `2`: An error occurred because there weren't enough recipients. `3`: A conflict error of requests occurs because a request that has already been accepted is retried. | [optional] +**error_code** | Option<**i64**> | Error summary. This is only included with a phase property value of failed. One of: `1`: An internal error occurred. `2`: An error occurred because there weren't enough recipients. `3`: A conflict error of requests occurs because a request that has already been accepted is retried. `4`: An audience of less than 50 recipients is included as a condition of sending. | [optional] **accepted_time** | **String** | Narrowcast message request accepted time in milliseconds. Format: ISO 8601 (e.g. 2020-12-03T10:15:30.121Z) Timezone: UTC | **completed_time** | Option<**String**> | Processing of narrowcast message request completion time in milliseconds. Returned when the phase property is succeeded or failed. Format: ISO 8601 (e.g. 2020-12-03T10:15:30.121Z) Timezone: UTC | [optional] diff --git a/core/line_messaging_api/docs/NarrowcastRequest.md b/core/line_messaging_api/docs/NarrowcastRequest.md index f4c7666..e0344a6 100644 --- a/core/line_messaging_api/docs/NarrowcastRequest.md +++ b/core/line_messaging_api/docs/NarrowcastRequest.md @@ -4,10 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**messages** | [**Vec**](Message.md) | List of Message objects. | -**recipient** | Option<[**crate::models::Recipient**](Recipient.md)> | | [optional] -**filter** | Option<[**crate::models::Filter**](Filter.md)> | | [optional] -**limit** | Option<[**crate::models::Limit**](Limit.md)> | | [optional] +**messages** | [**Vec**](Message.md) | List of Message objects. | +**recipient** | Option<[**models::Recipient**](Recipient.md)> | | [optional] +**filter** | Option<[**models::Filter**](Filter.md)> | | [optional] +**limit** | Option<[**models::Limit**](Limit.md)> | | [optional] **notification_disabled** | Option<**bool**> | `true`: The user doesn’t receive a push notification when a message is sent. `false`: The user receives a push notification when the message is sent (unless they have disabled push notifications in LINE and/or their device). The default value is false. | [optional][default to false] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/OperatorDemographicFilter.md b/core/line_messaging_api/docs/OperatorDemographicFilter.md index 2cd1972..9309cad 100644 --- a/core/line_messaging_api/docs/OperatorDemographicFilter.md +++ b/core/line_messaging_api/docs/OperatorDemographicFilter.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **r#type** | Option<**String**> | Type of demographic filter | [optional] -**and** | Option<[**Vec**](DemographicFilter.md)> | | [optional] -**or** | Option<[**Vec**](DemographicFilter.md)> | | [optional] -**not** | Option<[**crate::models::DemographicFilter**](DemographicFilter.md)> | | [optional] +**and** | Option<[**Vec**](DemographicFilter.md)> | | [optional] +**or** | Option<[**Vec**](DemographicFilter.md)> | | [optional] +**not** | Option<[**models::DemographicFilter**](DemographicFilter.md)> | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/OperatorRecipient.md b/core/line_messaging_api/docs/OperatorRecipient.md index 82ffdcf..f37f8d7 100644 --- a/core/line_messaging_api/docs/OperatorRecipient.md +++ b/core/line_messaging_api/docs/OperatorRecipient.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **r#type** | Option<**String**> | Type of recipient | [optional] -**and** | Option<[**Vec**](Recipient.md)> | Create a new recipient object by taking the logical conjunction (AND) of the specified array of recipient objects. | [optional] -**or** | Option<[**Vec**](Recipient.md)> | Create a new recipient object by taking the logical disjunction (OR) of the specified array of recipient objects. | [optional] -**not** | Option<[**crate::models::Recipient**](Recipient.md)> | | [optional] +**and** | Option<[**Vec**](Recipient.md)> | Create a new recipient object by taking the logical conjunction (AND) of the specified array of recipient objects. | [optional] +**or** | Option<[**Vec**](Recipient.md)> | Create a new recipient object by taking the logical disjunction (OR) of the specified array of recipient objects. | [optional] +**not** | Option<[**models::Recipient**](Recipient.md)> | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/PnpMessagesRequest.md b/core/line_messaging_api/docs/PnpMessagesRequest.md index d01e919..603553f 100644 --- a/core/line_messaging_api/docs/PnpMessagesRequest.md +++ b/core/line_messaging_api/docs/PnpMessagesRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**messages** | [**Vec**](Message.md) | Message to be sent. | +**messages** | [**Vec**](Message.md) | Message to be sent. | **to** | **String** | Message destination. Specify a phone number that has been normalized to E.164 format and hashed with SHA256. | **notification_disabled** | Option<**bool**> | `true`: The user doesn’t receive a push notification when a message is sent. `false`: The user receives a push notification when the message is sent (unless they have disabled push notifications in LINE and/or their device). The default value is false. | [optional][default to false] diff --git a/core/line_messaging_api/docs/PushMessageRequest.md b/core/line_messaging_api/docs/PushMessageRequest.md index 8371b17..c88e282 100644 --- a/core/line_messaging_api/docs/PushMessageRequest.md +++ b/core/line_messaging_api/docs/PushMessageRequest.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **to** | **String** | ID of the receiver. | -**messages** | [**Vec**](Message.md) | List of Message objects. | +**messages** | [**Vec**](Message.md) | List of Message objects. | **notification_disabled** | Option<**bool**> | `true`: The user doesn’t receive a push notification when a message is sent. `false`: The user receives a push notification when the message is sent (unless they have disabled push notifications in LINE and/or their device). The default value is false. | [optional][default to false] **custom_aggregation_units** | Option<**Vec**> | List of aggregation unit name. Case-sensitive. This functions can only be used by corporate users who have submitted the required applications. | [optional] diff --git a/core/line_messaging_api/docs/PushMessageResponse.md b/core/line_messaging_api/docs/PushMessageResponse.md index 8e3debb..f8bb980 100644 --- a/core/line_messaging_api/docs/PushMessageResponse.md +++ b/core/line_messaging_api/docs/PushMessageResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**sent_messages** | [**Vec**](SentMessage.md) | Array of sent messages. | +**sent_messages** | [**Vec**](SentMessage.md) | Array of sent messages. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/QuickReply.md b/core/line_messaging_api/docs/QuickReply.md index c021811..80b5adf 100644 --- a/core/line_messaging_api/docs/QuickReply.md +++ b/core/line_messaging_api/docs/QuickReply.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**items** | Option<[**Vec**](QuickReplyItem.md)> | Quick reply button objects. | [optional] +**items** | Option<[**Vec**](QuickReplyItem.md)> | Quick reply button objects. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/QuickReplyItem.md b/core/line_messaging_api/docs/QuickReplyItem.md index de93542..1950423 100644 --- a/core/line_messaging_api/docs/QuickReplyItem.md +++ b/core/line_messaging_api/docs/QuickReplyItem.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **image_url** | Option<**String**> | URL of the icon that is displayed at the beginning of the button | [optional] -**action** | Option<[**crate::models::Action**](Action.md)> | | [optional] +**action** | Option<[**models::Action**](Action.md)> | | [optional] **r#type** | Option<**String**> | `action` | [optional][default to action] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/QuotaType.md b/core/line_messaging_api/docs/QuotaType.md index e38627a..53c8891 100644 --- a/core/line_messaging_api/docs/QuotaType.md +++ b/core/line_messaging_api/docs/QuotaType.md @@ -1,9 +1,12 @@ # QuotaType -## Properties +## Enum Variants + +| Name | Value | +|---- | -----| +| None | none | +| Limited | limited | -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/Recipient.md b/core/line_messaging_api/docs/Recipient.md index 2d7a91f..0de1535 100644 --- a/core/line_messaging_api/docs/Recipient.md +++ b/core/line_messaging_api/docs/Recipient.md @@ -1,10 +1,9 @@ # Recipient -## Properties +## Enum Variants -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**r#type** | Option<**String**> | Type of recipient | [optional] +| Name | Value | +|---- | -----| [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/ReplyMessageRequest.md b/core/line_messaging_api/docs/ReplyMessageRequest.md index e9f6899..5516415 100644 --- a/core/line_messaging_api/docs/ReplyMessageRequest.md +++ b/core/line_messaging_api/docs/ReplyMessageRequest.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **reply_token** | **String** | replyToken received via webhook. | -**messages** | [**Vec**](Message.md) | List of messages. | +**messages** | [**Vec**](Message.md) | List of messages. | **notification_disabled** | Option<**bool**> | `true`: The user doesn’t receive a push notification when a message is sent. `false`: The user receives a push notification when the message is sent (unless they have disabled push notifications in LINE and/or their device). The default value is false. | [optional][default to false] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/ReplyMessageResponse.md b/core/line_messaging_api/docs/ReplyMessageResponse.md index 161b1ab..aa09218 100644 --- a/core/line_messaging_api/docs/ReplyMessageResponse.md +++ b/core/line_messaging_api/docs/ReplyMessageResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**sent_messages** | [**Vec**](SentMessage.md) | Array of sent messages. | +**sent_messages** | [**Vec**](SentMessage.md) | Array of sent messages. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/RichMenuAliasListResponse.md b/core/line_messaging_api/docs/RichMenuAliasListResponse.md index 34077cb..459cb1a 100644 --- a/core/line_messaging_api/docs/RichMenuAliasListResponse.md +++ b/core/line_messaging_api/docs/RichMenuAliasListResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**aliases** | [**Vec**](RichMenuAliasResponse.md) | Rich menu aliases. | +**aliases** | [**Vec**](RichMenuAliasResponse.md) | Rich menu aliases. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/RichMenuArea.md b/core/line_messaging_api/docs/RichMenuArea.md index 1c3f70c..97f03c4 100644 --- a/core/line_messaging_api/docs/RichMenuArea.md +++ b/core/line_messaging_api/docs/RichMenuArea.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**bounds** | Option<[**crate::models::RichMenuBounds**](RichMenuBounds.md)> | | [optional] -**action** | Option<[**crate::models::Action**](Action.md)> | | [optional] +**bounds** | Option<[**models::RichMenuBounds**](RichMenuBounds.md)> | | [optional] +**action** | Option<[**models::Action**](Action.md)> | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/RichMenuBatchOperation.md b/core/line_messaging_api/docs/RichMenuBatchOperation.md index 1f57956..dca410e 100644 --- a/core/line_messaging_api/docs/RichMenuBatchOperation.md +++ b/core/line_messaging_api/docs/RichMenuBatchOperation.md @@ -1,10 +1,9 @@ # RichMenuBatchOperation -## Properties +## Enum Variants -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**r#type** | **String** | The type of operation to the rich menu linked to the user. One of link, unlink, or unlinkAll. | +| Name | Value | +|---- | -----| [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/RichMenuBatchProgressPhase.md b/core/line_messaging_api/docs/RichMenuBatchProgressPhase.md index 2abe035..60bbd18 100644 --- a/core/line_messaging_api/docs/RichMenuBatchProgressPhase.md +++ b/core/line_messaging_api/docs/RichMenuBatchProgressPhase.md @@ -1,9 +1,13 @@ # RichMenuBatchProgressPhase -## Properties +## Enum Variants + +| Name | Value | +|---- | -----| +| Ongoing | ongoing | +| Succeeded | succeeded | +| Failed | failed | -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/RichMenuBatchProgressResponse.md b/core/line_messaging_api/docs/RichMenuBatchProgressResponse.md index 4ed257a..63f03ce 100644 --- a/core/line_messaging_api/docs/RichMenuBatchProgressResponse.md +++ b/core/line_messaging_api/docs/RichMenuBatchProgressResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**phase** | [**crate::models::RichMenuBatchProgressPhase**](RichMenuBatchProgressPhase.md) | | +**phase** | [**models::RichMenuBatchProgressPhase**](RichMenuBatchProgressPhase.md) | | **accepted_time** | **String** | The accepted time in milliseconds of the request of batch control the rich menu. Format: ISO 8601 (e.g. 2023-06-08T10:15:30.121Z) Timezone: UTC | **completed_time** | Option<**String**> | The completed time in milliseconds of rich menu batch control. Returned when the phase property is succeeded or failed. Format: ISO 8601 (e.g. 2023-06-08T10:15:30.121Z) Timezone: UTC | [optional] diff --git a/core/line_messaging_api/docs/RichMenuBatchRequest.md b/core/line_messaging_api/docs/RichMenuBatchRequest.md index 391bc99..5671f34 100644 --- a/core/line_messaging_api/docs/RichMenuBatchRequest.md +++ b/core/line_messaging_api/docs/RichMenuBatchRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**operations** | [**Vec**](RichMenuBatchOperation.md) | Array of Rich menu operation object... | +**operations** | [**Vec**](RichMenuBatchOperation.md) | Array of Rich menu operation object... | **resume_request_key** | Option<**String**> | Key for retry. Key value is a string matching the regular expression pattern | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/RichMenuListResponse.md b/core/line_messaging_api/docs/RichMenuListResponse.md index fd41898..18c2dfa 100644 --- a/core/line_messaging_api/docs/RichMenuListResponse.md +++ b/core/line_messaging_api/docs/RichMenuListResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**richmenus** | [**Vec**](RichMenuResponse.md) | Rich menus | +**richmenus** | [**Vec**](RichMenuResponse.md) | Rich menus | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/RichMenuRequest.md b/core/line_messaging_api/docs/RichMenuRequest.md index 08d5482..fab1069 100644 --- a/core/line_messaging_api/docs/RichMenuRequest.md +++ b/core/line_messaging_api/docs/RichMenuRequest.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**size** | Option<[**crate::models::RichMenuSize**](RichMenuSize.md)> | | [optional] +**size** | Option<[**models::RichMenuSize**](RichMenuSize.md)> | | [optional] **selected** | Option<**bool**> | `true` to display the rich menu by default. Otherwise, `false`. | [optional] **name** | Option<**String**> | Name of the rich menu. This value can be used to help manage your rich menus and is not displayed to users. | [optional] **chat_bar_text** | Option<**String**> | Text displayed in the chat bar | [optional] -**areas** | Option<[**Vec**](RichMenuArea.md)> | Array of area objects which define the coordinates and size of tappable areas | [optional] +**areas** | Option<[**Vec**](RichMenuArea.md)> | Array of area objects which define the coordinates and size of tappable areas | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/RichMenuResponse.md b/core/line_messaging_api/docs/RichMenuResponse.md index d7c4111..8fc6f57 100644 --- a/core/line_messaging_api/docs/RichMenuResponse.md +++ b/core/line_messaging_api/docs/RichMenuResponse.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **rich_menu_id** | **String** | ID of a rich menu | -**size** | [**crate::models::RichMenuSize**](RichMenuSize.md) | | +**size** | [**models::RichMenuSize**](RichMenuSize.md) | | **selected** | **bool** | `true` to display the rich menu by default. Otherwise, `false`. | **name** | **String** | Name of the rich menu. This value can be used to help manage your rich menus and is not displayed to users. | **chat_bar_text** | **String** | Text displayed in the chat bar | -**areas** | [**Vec**](RichMenuArea.md) | Array of area objects which define the coordinates and size of tappable areas | +**areas** | [**Vec**](RichMenuArea.md) | Array of area objects which define the coordinates and size of tappable areas | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/StickerMessage.md b/core/line_messaging_api/docs/StickerMessage.md index 1332230..2e16e26 100644 --- a/core/line_messaging_api/docs/StickerMessage.md +++ b/core/line_messaging_api/docs/StickerMessage.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **r#type** | **String** | Type of message | -**quick_reply** | Option<[**crate::models::QuickReply**](QuickReply.md)> | | [optional] -**sender** | Option<[**crate::models::Sender**](Sender.md)> | | [optional] +**quick_reply** | Option<[**models::QuickReply**](QuickReply.md)> | | [optional] +**sender** | Option<[**models::Sender**](Sender.md)> | | [optional] **package_id** | **String** | | **sticker_id** | **String** | | **quote_token** | Option<**String**> | Quote token of the message you want to quote. | [optional] diff --git a/core/line_messaging_api/docs/Subscription.md b/core/line_messaging_api/docs/Subscription.md index 3b7b2c1..2b458e6 100644 --- a/core/line_messaging_api/docs/Subscription.md +++ b/core/line_messaging_api/docs/Subscription.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**membership** | [**crate::models::SubscribedMembershipPlan**](SubscribedMembershipPlan.md) | | -**user** | [**crate::models::SubscribedMembershipUser**](SubscribedMembershipUser.md) | | +**membership** | [**models::SubscribedMembershipPlan**](SubscribedMembershipPlan.md) | | +**user** | [**models::SubscribedMembershipUser**](SubscribedMembershipUser.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/SubscriptionPeriodDemographic.md b/core/line_messaging_api/docs/SubscriptionPeriodDemographic.md index 0abd3bd..d0b7c73 100644 --- a/core/line_messaging_api/docs/SubscriptionPeriodDemographic.md +++ b/core/line_messaging_api/docs/SubscriptionPeriodDemographic.md @@ -1,9 +1,15 @@ # SubscriptionPeriodDemographic -## Properties +## Enum Variants + +| Name | Value | +|---- | -----| +| Day7 | day_7 | +| Day30 | day_30 | +| Day90 | day_90 | +| Day180 | day_180 | +| Day365 | day_365 | -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/SubscriptionPeriodDemographicFilter.md b/core/line_messaging_api/docs/SubscriptionPeriodDemographicFilter.md index 2541215..352096e 100644 --- a/core/line_messaging_api/docs/SubscriptionPeriodDemographicFilter.md +++ b/core/line_messaging_api/docs/SubscriptionPeriodDemographicFilter.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **r#type** | Option<**String**> | Type of demographic filter | [optional] -**gte** | Option<[**crate::models::SubscriptionPeriodDemographic**](SubscriptionPeriodDemographic.md)> | | [optional] -**lt** | Option<[**crate::models::SubscriptionPeriodDemographic**](SubscriptionPeriodDemographic.md)> | | [optional] +**gte** | Option<[**models::SubscriptionPeriodDemographic**](SubscriptionPeriodDemographic.md)> | | [optional] +**lt** | Option<[**models::SubscriptionPeriodDemographic**](SubscriptionPeriodDemographic.md)> | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/SubstitutionObject.md b/core/line_messaging_api/docs/SubstitutionObject.md new file mode 100644 index 0000000..470727a --- /dev/null +++ b/core/line_messaging_api/docs/SubstitutionObject.md @@ -0,0 +1,10 @@ +# SubstitutionObject + +## Enum Variants + +| Name | Value | +|---- | -----| + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/core/line_messaging_api/docs/Template.md b/core/line_messaging_api/docs/Template.md index 5fa1d44..b60d148 100644 --- a/core/line_messaging_api/docs/Template.md +++ b/core/line_messaging_api/docs/Template.md @@ -1,10 +1,9 @@ # Template -## Properties +## Enum Variants -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**r#type** | **String** | | +| Name | Value | +|---- | -----| [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/TemplateImageAspectRatio.md b/core/line_messaging_api/docs/TemplateImageAspectRatio.md index 8973b97..b016234 100644 --- a/core/line_messaging_api/docs/TemplateImageAspectRatio.md +++ b/core/line_messaging_api/docs/TemplateImageAspectRatio.md @@ -1,9 +1,12 @@ # TemplateImageAspectRatio -## Properties +## Enum Variants + +| Name | Value | +|---- | -----| +| Rectangle | rectangle | +| Square | square | -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/TemplateImageSize.md b/core/line_messaging_api/docs/TemplateImageSize.md index 8624f3e..4d122cb 100644 --- a/core/line_messaging_api/docs/TemplateImageSize.md +++ b/core/line_messaging_api/docs/TemplateImageSize.md @@ -1,9 +1,12 @@ # TemplateImageSize -## Properties +## Enum Variants + +| Name | Value | +|---- | -----| +| Cover | cover | +| Contain | contain | -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/TemplateMessage.md b/core/line_messaging_api/docs/TemplateMessage.md index 46ff358..fb46163 100644 --- a/core/line_messaging_api/docs/TemplateMessage.md +++ b/core/line_messaging_api/docs/TemplateMessage.md @@ -5,10 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **r#type** | **String** | Type of message | -**quick_reply** | Option<[**crate::models::QuickReply**](QuickReply.md)> | | [optional] -**sender** | Option<[**crate::models::Sender**](Sender.md)> | | [optional] +**quick_reply** | Option<[**models::QuickReply**](QuickReply.md)> | | [optional] +**sender** | Option<[**models::Sender**](Sender.md)> | | [optional] **alt_text** | **String** | | -**template** | [**crate::models::Template**](Template.md) | | +**template** | [**models::Template**](Template.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/TextMessage.md b/core/line_messaging_api/docs/TextMessage.md index d95da40..a6f7a9c 100644 --- a/core/line_messaging_api/docs/TextMessage.md +++ b/core/line_messaging_api/docs/TextMessage.md @@ -5,10 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **r#type** | **String** | Type of message | -**quick_reply** | Option<[**crate::models::QuickReply**](QuickReply.md)> | | [optional] -**sender** | Option<[**crate::models::Sender**](Sender.md)> | | [optional] +**quick_reply** | Option<[**models::QuickReply**](QuickReply.md)> | | [optional] +**sender** | Option<[**models::Sender**](Sender.md)> | | [optional] **text** | **String** | | -**emojis** | Option<[**Vec**](Emoji.md)> | | [optional] +**emojis** | Option<[**Vec**](Emoji.md)> | | [optional] **quote_token** | Option<**String**> | Quote token of the message you want to quote. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/TextMessageV2.md b/core/line_messaging_api/docs/TextMessageV2.md new file mode 100644 index 0000000..6a04789 --- /dev/null +++ b/core/line_messaging_api/docs/TextMessageV2.md @@ -0,0 +1,16 @@ +# TextMessageV2 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **String** | Type of message | +**quick_reply** | Option<[**models::QuickReply**](QuickReply.md)> | | [optional] +**sender** | Option<[**models::Sender**](Sender.md)> | | [optional] +**text** | **String** | | +**substitution** | Option<[**std::collections::HashMap**](SubstitutionObject.md)> | A mapping that specifies substitutions for parts enclosed in {} within the `text` field. | [optional] +**quote_token** | Option<**String**> | Quote token of the message you want to quote. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/core/line_messaging_api/docs/UriAction.md b/core/line_messaging_api/docs/UriAction.md index 1110f0f..21cba08 100644 --- a/core/line_messaging_api/docs/UriAction.md +++ b/core/line_messaging_api/docs/UriAction.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **r#type** | Option<**String**> | Type of action | [optional] **label** | Option<**String**> | Label for the action. | [optional] **uri** | Option<**String**> | | [optional] -**alt_uri** | Option<[**crate::models::AltUri**](AltUri.md)> | | [optional] +**alt_uri** | Option<[**models::AltUri**](AltUri.md)> | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/UriImagemapAction.md b/core/line_messaging_api/docs/UriImagemapAction.md index 7f55698..5552e17 100644 --- a/core/line_messaging_api/docs/UriImagemapAction.md +++ b/core/line_messaging_api/docs/UriImagemapAction.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **r#type** | **String** | | -**area** | [**crate::models::ImagemapArea**](ImagemapArea.md) | | +**area** | [**models::ImagemapArea**](ImagemapArea.md) | | **link_uri** | **String** | | **label** | Option<**String**> | | [optional] diff --git a/core/line_messaging_api/docs/UserMentionTarget.md b/core/line_messaging_api/docs/UserMentionTarget.md new file mode 100644 index 0000000..2b33c65 --- /dev/null +++ b/core/line_messaging_api/docs/UserMentionTarget.md @@ -0,0 +1,12 @@ +# UserMentionTarget + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**r#type** | **String** | Target to be mentioned | +**user_id** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/core/line_messaging_api/docs/ValidateMessageRequest.md b/core/line_messaging_api/docs/ValidateMessageRequest.md index f086832..e9343f2 100644 --- a/core/line_messaging_api/docs/ValidateMessageRequest.md +++ b/core/line_messaging_api/docs/ValidateMessageRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**messages** | [**Vec**](Message.md) | Array of message objects to validate | +**messages** | [**Vec**](Message.md) | Array of message objects to validate | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/core/line_messaging_api/docs/VideoMessage.md b/core/line_messaging_api/docs/VideoMessage.md index 735fe05..c7aaca6 100644 --- a/core/line_messaging_api/docs/VideoMessage.md +++ b/core/line_messaging_api/docs/VideoMessage.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **r#type** | **String** | Type of message | -**quick_reply** | Option<[**crate::models::QuickReply**](QuickReply.md)> | | [optional] -**sender** | Option<[**crate::models::Sender**](Sender.md)> | | [optional] +**quick_reply** | Option<[**models::QuickReply**](QuickReply.md)> | | [optional] +**sender** | Option<[**models::Sender**](Sender.md)> | | [optional] **original_content_url** | **String** | | **preview_image_url** | **String** | | **tracking_id** | Option<**String**> | | [optional] diff --git a/core/line_messaging_api/src/apis/messaging_api_api.rs b/core/line_messaging_api/src/apis/messaging_api_api.rs index 5d9cbee..f120547 100644 --- a/core/line_messaging_api/src/apis/messaging_api_api.rs +++ b/core/line_messaging_api/src/apis/messaging_api_api.rs @@ -53,10 +53,6 @@ where } pub trait MessagingApiApi { - fn audience_match( - &self, - audience_match_messages_request: crate::models::AudienceMatchMessagesRequest, - ) -> Pin>>>; fn broadcast( &self, broadcast_request: crate::models::BroadcastRequest, @@ -314,21 +310,6 @@ impl MessagingApiApi for MessagingApiApiClie where C: Clone + std::marker::Send + Sync, { - #[allow(unused_mut)] - fn audience_match( - &self, - audience_match_messages_request: crate::models::AudienceMatchMessagesRequest, - ) -> Pin>>> { - let mut req = __internal_request::Request::new( - hyper::Method::POST, - "/bot/ad/multicast/phone".to_string(), - ); - req = req.with_body_param(audience_match_messages_request); - req = req.returns_nothing(); - - req.execute(self.configuration.borrow()) - } - #[allow(unused_mut)] fn broadcast( &self, diff --git a/core/line_messaging_api/src/apis/mod.rs b/core/line_messaging_api/src/apis/mod.rs index ab37f93..64dd0f3 100644 --- a/core/line_messaging_api/src/apis/mod.rs +++ b/core/line_messaging_api/src/apis/mod.rs @@ -69,4 +69,4 @@ mod messaging_api_blob_api; pub use self::messaging_api_blob_api::{MessagingApiBlobApi, MessagingApiBlobApiClient}; pub mod client; -pub mod configuration; +pub mod configuration; \ No newline at end of file diff --git a/core/line_messaging_api/src/apis/request.rs b/core/line_messaging_api/src/apis/request.rs index 77d231e..2f5ab8a 100644 --- a/core/line_messaging_api/src/apis/request.rs +++ b/core/line_messaging_api/src/apis/request.rs @@ -269,4 +269,4 @@ impl Request { }), ) } -} +} \ No newline at end of file diff --git a/core/line_messaging_api/src/lib.rs b/core/line_messaging_api/src/lib.rs index d61f5b6..1de74d0 100644 --- a/core/line_messaging_api/src/lib.rs +++ b/core/line_messaging_api/src/lib.rs @@ -1,27 +1,11 @@ -/* -* Copyright (C) 2016 LINE Corp. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ +#![allow(unused_imports)] +#![allow(clippy::too_many_arguments)] -#[macro_use] -extern crate serde_derive; - -extern crate futures; -extern crate hyper; extern crate serde; extern crate serde_json; extern crate url; +extern crate hyper; +extern crate futures; pub mod apis; pub mod models; diff --git a/core/line_messaging_api/src/models/action.rs b/core/line_messaging_api/src/models/action.rs index d21e97a..fd667ab 100644 --- a/core/line_messaging_api/src/models/action.rs +++ b/core/line_messaging_api/src/models/action.rs @@ -1,52 +1,46 @@ -/* -* Copyright (C) 2016 LINE Corp. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - /* * LINE Messaging API * * This document describes LINE Messaging API. * * The version of the OpenAPI document: 0.0.3 - * + * * Generated by: https://openapi-generator.tech */ -use super::{ - CameraAction, CameraRollAction, ClipboardAction, DatetimePickerAction, LocationAction, - MessageAction, PostbackAction, RichMenuSwitchAction, UriAction, -}; +use crate::models; +use serde::{Deserialize, Serialize}; -/// Action : Action +use super::{CameraAction, CameraRollAction, ClipboardAction, DatetimePickerAction, LocationAction, MessageAction, PostbackAction, RichMenuSwitchAction, UriAction}; +/// Action : Action #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -#[serde(untagged)] +#[serde(tag = "type")] pub enum Action { + #[serde(rename="camera")] Camera(CameraAction), + #[serde(rename="cameraRoll")] CameraRoll(CameraRollAction), + #[serde(rename="clipboard")] Clipboard(ClipboardAction), - DateTimePicker(DatetimePickerAction), + #[serde(rename="datetimepicker")] + DatetimePicker(DatetimePickerAction), + #[serde(rename="location")] Location(LocationAction), + #[serde(rename="message")] Message(MessageAction), + #[serde(rename="postback")] Postback(PostbackAction), + #[serde(rename="richmenuswitch")] RichMenuSwitch(RichMenuSwitchAction), - URI(UriAction), + #[serde(rename="uri")] + Uri(UriAction), } impl Default for Action { fn default() -> Self { - Action::URI(UriAction::default()) + Self::Camera(CameraAction::default()) } } + + diff --git a/core/line_messaging_api/src/models/age_demographic.rs b/core/line_messaging_api/src/models/age_demographic.rs index 8988445..e34d464 100644 --- a/core/line_messaging_api/src/models/age_demographic.rs +++ b/core/line_messaging_api/src/models/age_demographic.rs @@ -1,67 +1,68 @@ -/* -* Copyright (C) 2016 LINE Corp. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - /* * LINE Messaging API * * This document describes LINE Messaging API. * * The version of the OpenAPI document: 0.0.3 - * + * * Generated by: https://openapi-generator.tech */ -/// +use crate::models; +use serde::{Deserialize, Serialize}; + +/// #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] pub enum AgeDemographic { #[serde(rename = "age_15")] - Variant15, + Age15, #[serde(rename = "age_20")] - Variant20, + Age20, #[serde(rename = "age_25")] - Variant25, + Age25, #[serde(rename = "age_30")] - Variant30, + Age30, #[serde(rename = "age_35")] - Variant35, + Age35, #[serde(rename = "age_40")] - Variant40, + Age40, #[serde(rename = "age_45")] - Variant45, + Age45, #[serde(rename = "age_50")] - Variant50, + Age50, + #[serde(rename = "age_55")] + Age55, + #[serde(rename = "age_60")] + Age60, + #[serde(rename = "age_65")] + Age65, + #[serde(rename = "age_70")] + Age70, + } -impl ToString for AgeDemographic { - fn to_string(&self) -> String { +impl std::fmt::Display for AgeDemographic { + fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { match self { - Self::Variant15 => String::from("age_15"), - Self::Variant20 => String::from("age_20"), - Self::Variant25 => String::from("age_25"), - Self::Variant30 => String::from("age_30"), - Self::Variant35 => String::from("age_35"), - Self::Variant40 => String::from("age_40"), - Self::Variant45 => String::from("age_45"), - Self::Variant50 => String::from("age_50"), + Self::Age15 => write!(f, "age_15"), + Self::Age20 => write!(f, "age_20"), + Self::Age25 => write!(f, "age_25"), + Self::Age30 => write!(f, "age_30"), + Self::Age35 => write!(f, "age_35"), + Self::Age40 => write!(f, "age_40"), + Self::Age45 => write!(f, "age_45"), + Self::Age50 => write!(f, "age_50"), + Self::Age55 => write!(f, "age_55"), + Self::Age60 => write!(f, "age_60"), + Self::Age65 => write!(f, "age_65"), + Self::Age70 => write!(f, "age_70"), } } } impl Default for AgeDemographic { fn default() -> AgeDemographic { - Self::Variant15 + Self::Age15 } } + diff --git a/core/line_messaging_api/src/models/age_demographic_filter.rs b/core/line_messaging_api/src/models/age_demographic_filter.rs index a0e6e31..9234d03 100644 --- a/core/line_messaging_api/src/models/age_demographic_filter.rs +++ b/core/line_messaging_api/src/models/age_demographic_filter.rs @@ -1,46 +1,34 @@ -/* -* Copyright (C) 2016 LINE Corp. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - /* * LINE Messaging API * * This document describes LINE Messaging API. * * The version of the OpenAPI document: 0.0.3 - * + * * Generated by: https://openapi-generator.tech */ -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct AgeDemographicFilter { /// Type of demographic filter #[serde(rename = "type", skip_serializing_if = "Option::is_none")] pub r#type: Option, #[serde(rename = "gte", skip_serializing_if = "Option::is_none")] - pub gte: Option, + pub gte: Option, #[serde(rename = "lt", skip_serializing_if = "Option::is_none")] - pub lt: Option, + pub lt: Option, } impl AgeDemographicFilter { pub fn new() -> AgeDemographicFilter { AgeDemographicFilter { - r#type: None, + r#type: Some("age".to_string()), gte: None, lt: None, } } } + diff --git a/core/line_messaging_api/src/models/all_mention_target.rs b/core/line_messaging_api/src/models/all_mention_target.rs new file mode 100644 index 0000000..0ed7db0 --- /dev/null +++ b/core/line_messaging_api/src/models/all_mention_target.rs @@ -0,0 +1,28 @@ +/* + * LINE Messaging API + * + * This document describes LINE Messaging API. + * + * The version of the OpenAPI document: 0.0.3 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct AllMentionTarget { + /// Target to be mentioned + #[serde(rename = "type", skip_serializing_if = "Option::is_none")] + pub r#type: Option, +} + +impl AllMentionTarget { + pub fn new() -> AllMentionTarget { + AllMentionTarget { + r#type:Some("all".to_owned()), + } + } +} + diff --git a/core/line_messaging_api/src/models/alt_uri.rs b/core/line_messaging_api/src/models/alt_uri.rs index cb0f345..9d11b24 100644 --- a/core/line_messaging_api/src/models/alt_uri.rs +++ b/core/line_messaging_api/src/models/alt_uri.rs @@ -1,30 +1,17 @@ -/* -* Copyright (C) 2016 LINE Corp. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - /* * LINE Messaging API * * This document describes LINE Messaging API. * * The version of the OpenAPI document: 0.0.3 - * + * * Generated by: https://openapi-generator.tech */ -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct AltUri { #[serde(rename = "desktop", skip_serializing_if = "Option::is_none")] pub desktop: Option, @@ -32,6 +19,9 @@ pub struct AltUri { impl AltUri { pub fn new() -> AltUri { - AltUri { desktop: None } + AltUri { + desktop: None, + } } } + diff --git a/core/line_messaging_api/src/models/app_type_demographic.rs b/core/line_messaging_api/src/models/app_type_demographic.rs index 9f61678..55ca955 100644 --- a/core/line_messaging_api/src/models/app_type_demographic.rs +++ b/core/line_messaging_api/src/models/app_type_demographic.rs @@ -1,43 +1,31 @@ -/* -* Copyright (C) 2016 LINE Corp. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - /* * LINE Messaging API * * This document describes LINE Messaging API. * * The version of the OpenAPI document: 0.0.3 - * + * * Generated by: https://openapi-generator.tech */ -/// +use crate::models; +use serde::{Deserialize, Serialize}; + +/// #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] pub enum AppTypeDemographic { #[serde(rename = "ios")] Ios, #[serde(rename = "android")] Android, + } -impl ToString for AppTypeDemographic { - fn to_string(&self) -> String { +impl std::fmt::Display for AppTypeDemographic { + fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { match self { - Self::Ios => String::from("ios"), - Self::Android => String::from("android"), + Self::Ios => write!(f, "ios"), + Self::Android => write!(f, "android"), } } } @@ -47,3 +35,4 @@ impl Default for AppTypeDemographic { Self::Ios } } + diff --git a/core/line_messaging_api/src/models/app_type_demographic_filter.rs b/core/line_messaging_api/src/models/app_type_demographic_filter.rs index 96e03cb..76b5020 100644 --- a/core/line_messaging_api/src/models/app_type_demographic_filter.rs +++ b/core/line_messaging_api/src/models/app_type_demographic_filter.rs @@ -1,43 +1,31 @@ -/* -* Copyright (C) 2016 LINE Corp. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - /* * LINE Messaging API * * This document describes LINE Messaging API. * * The version of the OpenAPI document: 0.0.3 - * + * * Generated by: https://openapi-generator.tech */ -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct AppTypeDemographicFilter { /// Type of demographic filter #[serde(rename = "type", skip_serializing_if = "Option::is_none")] pub r#type: Option, #[serde(rename = "oneOf", skip_serializing_if = "Option::is_none")] - pub one_of: Option>, + pub one_of: Option>, } impl AppTypeDemographicFilter { pub fn new() -> AppTypeDemographicFilter { AppTypeDemographicFilter { - r#type: None, + r#type: Some("appType".to_string()), one_of: None, } } } + diff --git a/core/line_messaging_api/src/models/area_demographic.rs b/core/line_messaging_api/src/models/area_demographic.rs index 2552b1d..f34d5db 100644 --- a/core/line_messaging_api/src/models/area_demographic.rs +++ b/core/line_messaging_api/src/models/area_demographic.rs @@ -1,32 +1,18 @@ -/* -* Copyright (C) 2016 LINE Corp. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - /* * LINE Messaging API * * This document describes LINE Messaging API. * * The version of the OpenAPI document: 0.0.3 - * + * * Generated by: https://openapi-generator.tech */ -/// +use crate::models; +use serde::{Deserialize, Serialize}; + +/// #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -#[allow(non_camel_case_types)] pub enum AreaDemographic { #[serde(rename = "jp_01")] HOKKAIDO, @@ -206,100 +192,101 @@ pub enum AreaDemographic { YOGYAKARTA, #[serde(rename = "id_12")] LAINNYA, + } -impl ToString for AreaDemographic { - fn to_string(&self) -> String { +impl std::fmt::Display for AreaDemographic { + fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { match self { - Self::HOKKAIDO => String::from("jp_01"), - Self::AOMORI => String::from("jp_02"), - Self::IWATE => String::from("jp_03"), - Self::MIYAGI => String::from("jp_04"), - Self::AKITA => String::from("jp_05"), - Self::YAMAGATA => String::from("jp_06"), - Self::FUKUSHIMA => String::from("jp_07"), - Self::IBARAKI => String::from("jp_08"), - Self::TOCHIGI => String::from("jp_09"), - Self::GUNMA => String::from("jp_10"), - Self::SAITAMA => String::from("jp_11"), - Self::CHIBA => String::from("jp_12"), - Self::TOKYO => String::from("jp_13"), - Self::KANAGAWA => String::from("jp_14"), - Self::NIIGATA => String::from("jp_15"), - Self::TOYAMA => String::from("jp_16"), - Self::ISHIKAWA => String::from("jp_17"), - Self::FUKUI => String::from("jp_18"), - Self::YAMANASHI => String::from("jp_19"), - Self::NAGANO => String::from("jp_20"), - Self::GIFU => String::from("jp_21"), - Self::SHIZUOKA => String::from("jp_22"), - Self::AICHI => String::from("jp_23"), - Self::MIE => String::from("jp_24"), - Self::SHIGA => String::from("jp_25"), - Self::KYOTO => String::from("jp_26"), - Self::OSAKA => String::from("jp_27"), - Self::HYOUGO => String::from("jp_28"), - Self::NARA => String::from("jp_29"), - Self::WAKAYAMA => String::from("jp_30"), - Self::TOTTORI => String::from("jp_31"), - Self::SHIMANE => String::from("jp_32"), - Self::OKAYAMA => String::from("jp_33"), - Self::HIROSHIMA => String::from("jp_34"), - Self::YAMAGUCHI => String::from("jp_35"), - Self::TOKUSHIMA => String::from("jp_36"), - Self::KAGAWA => String::from("jp_37"), - Self::EHIME => String::from("jp_38"), - Self::KOUCHI => String::from("jp_39"), - Self::FUKUOKA => String::from("jp_40"), - Self::SAGA => String::from("jp_41"), - Self::NAGASAKI => String::from("jp_42"), - Self::KUMAMOTO => String::from("jp_43"), - Self::OITA => String::from("jp_44"), - Self::MIYAZAKI => String::from("jp_45"), - Self::KAGOSHIMA => String::from("jp_46"), - Self::OKINAWA => String::from("jp_47"), - Self::TAIPEI_CITY => String::from("tw_01"), - Self::NEW_TAIPEI_CITY => String::from("tw_02"), - Self::TAOYUAN_CITY => String::from("tw_03"), - Self::TAICHUNG_CITY => String::from("tw_04"), - Self::TAINAN_CITY => String::from("tw_05"), - Self::KAOHSIUNG_CITY => String::from("tw_06"), - Self::KEELUNG_CITY => String::from("tw_07"), - Self::HSINCHU_CITY => String::from("tw_08"), - Self::CHIAYI_CITY => String::from("tw_09"), - Self::HSINCHU_COUNTY => String::from("tw_10"), - Self::MIAOLI_COUNTY => String::from("tw_11"), - Self::CHANGHUA_COUNTY => String::from("tw_12"), - Self::NANTOU_COUNTY => String::from("tw_13"), - Self::YUNLIN_COUNTY => String::from("tw_14"), - Self::CHIAYI_COUNTY => String::from("tw_15"), - Self::PINGTUNG_COUNTY => String::from("tw_16"), - Self::YILAN_COUNTY => String::from("tw_17"), - Self::HUALIEN_COUNTY => String::from("tw_18"), - Self::TAITUNG_COUNTY => String::from("tw_19"), - Self::PENGHU_COUNTY => String::from("tw_20"), - Self::KINMEN_COUNTY => String::from("tw_21"), - Self::LIENCHIANG_COUNTY => String::from("tw_22"), - Self::BANGKOK => String::from("th_01"), - Self::PATTAYA => String::from("th_02"), - Self::NORTHERN => String::from("th_03"), - Self::CENTRAL => String::from("th_04"), - Self::SOUTHERN => String::from("th_05"), - Self::EASTERN => String::from("th_06"), - Self::NORTHEASTERN => String::from("th_07"), - Self::WESTERN => String::from("th_08"), - Self::BALI => String::from("id_01"), - Self::BANDUNG => String::from("id_02"), - Self::BANJARMASIN => String::from("id_03"), - Self::JABODETABEK => String::from("id_04"), - Self::MAKASSAR => String::from("id_05"), - Self::MEDAN => String::from("id_06"), - Self::PALEMBANG => String::from("id_07"), - Self::SAMARINDA => String::from("id_08"), - Self::SEMARANG => String::from("id_09"), - Self::SURABAYA => String::from("id_10"), - Self::YOGYAKARTA => String::from("id_11"), - Self::LAINNYA => String::from("id_12"), + Self::HOKKAIDO => write!(f, "jp_01"), + Self::AOMORI => write!(f, "jp_02"), + Self::IWATE => write!(f, "jp_03"), + Self::MIYAGI => write!(f, "jp_04"), + Self::AKITA => write!(f, "jp_05"), + Self::YAMAGATA => write!(f, "jp_06"), + Self::FUKUSHIMA => write!(f, "jp_07"), + Self::IBARAKI => write!(f, "jp_08"), + Self::TOCHIGI => write!(f, "jp_09"), + Self::GUNMA => write!(f, "jp_10"), + Self::SAITAMA => write!(f, "jp_11"), + Self::CHIBA => write!(f, "jp_12"), + Self::TOKYO => write!(f, "jp_13"), + Self::KANAGAWA => write!(f, "jp_14"), + Self::NIIGATA => write!(f, "jp_15"), + Self::TOYAMA => write!(f, "jp_16"), + Self::ISHIKAWA => write!(f, "jp_17"), + Self::FUKUI => write!(f, "jp_18"), + Self::YAMANASHI => write!(f, "jp_19"), + Self::NAGANO => write!(f, "jp_20"), + Self::GIFU => write!(f, "jp_21"), + Self::SHIZUOKA => write!(f, "jp_22"), + Self::AICHI => write!(f, "jp_23"), + Self::MIE => write!(f, "jp_24"), + Self::SHIGA => write!(f, "jp_25"), + Self::KYOTO => write!(f, "jp_26"), + Self::OSAKA => write!(f, "jp_27"), + Self::HYOUGO => write!(f, "jp_28"), + Self::NARA => write!(f, "jp_29"), + Self::WAKAYAMA => write!(f, "jp_30"), + Self::TOTTORI => write!(f, "jp_31"), + Self::SHIMANE => write!(f, "jp_32"), + Self::OKAYAMA => write!(f, "jp_33"), + Self::HIROSHIMA => write!(f, "jp_34"), + Self::YAMAGUCHI => write!(f, "jp_35"), + Self::TOKUSHIMA => write!(f, "jp_36"), + Self::KAGAWA => write!(f, "jp_37"), + Self::EHIME => write!(f, "jp_38"), + Self::KOUCHI => write!(f, "jp_39"), + Self::FUKUOKA => write!(f, "jp_40"), + Self::SAGA => write!(f, "jp_41"), + Self::NAGASAKI => write!(f, "jp_42"), + Self::KUMAMOTO => write!(f, "jp_43"), + Self::OITA => write!(f, "jp_44"), + Self::MIYAZAKI => write!(f, "jp_45"), + Self::KAGOSHIMA => write!(f, "jp_46"), + Self::OKINAWA => write!(f, "jp_47"), + Self::TAIPEI_CITY => write!(f, "tw_01"), + Self::NEW_TAIPEI_CITY => write!(f, "tw_02"), + Self::TAOYUAN_CITY => write!(f, "tw_03"), + Self::TAICHUNG_CITY => write!(f, "tw_04"), + Self::TAINAN_CITY => write!(f, "tw_05"), + Self::KAOHSIUNG_CITY => write!(f, "tw_06"), + Self::KEELUNG_CITY => write!(f, "tw_07"), + Self::HSINCHU_CITY => write!(f, "tw_08"), + Self::CHIAYI_CITY => write!(f, "tw_09"), + Self::HSINCHU_COUNTY => write!(f, "tw_10"), + Self::MIAOLI_COUNTY => write!(f, "tw_11"), + Self::CHANGHUA_COUNTY => write!(f, "tw_12"), + Self::NANTOU_COUNTY => write!(f, "tw_13"), + Self::YUNLIN_COUNTY => write!(f, "tw_14"), + Self::CHIAYI_COUNTY => write!(f, "tw_15"), + Self::PINGTUNG_COUNTY => write!(f, "tw_16"), + Self::YILAN_COUNTY => write!(f, "tw_17"), + Self::HUALIEN_COUNTY => write!(f, "tw_18"), + Self::TAITUNG_COUNTY => write!(f, "tw_19"), + Self::PENGHU_COUNTY => write!(f, "tw_20"), + Self::KINMEN_COUNTY => write!(f, "tw_21"), + Self::LIENCHIANG_COUNTY => write!(f, "tw_22"), + Self::BANGKOK => write!(f, "th_01"), + Self::PATTAYA => write!(f, "th_02"), + Self::NORTHERN => write!(f, "th_03"), + Self::CENTRAL => write!(f, "th_04"), + Self::SOUTHERN => write!(f, "th_05"), + Self::EASTERN => write!(f, "th_06"), + Self::NORTHEASTERN => write!(f, "th_07"), + Self::WESTERN => write!(f, "th_08"), + Self::BALI => write!(f, "id_01"), + Self::BANDUNG => write!(f, "id_02"), + Self::BANJARMASIN => write!(f, "id_03"), + Self::JABODETABEK => write!(f, "id_04"), + Self::MAKASSAR => write!(f, "id_05"), + Self::MEDAN => write!(f, "id_06"), + Self::PALEMBANG => write!(f, "id_07"), + Self::SAMARINDA => write!(f, "id_08"), + Self::SEMARANG => write!(f, "id_09"), + Self::SURABAYA => write!(f, "id_10"), + Self::YOGYAKARTA => write!(f, "id_11"), + Self::LAINNYA => write!(f, "id_12"), } } } @@ -309,3 +296,4 @@ impl Default for AreaDemographic { Self::HOKKAIDO } } + diff --git a/core/line_messaging_api/src/models/area_demographic_filter.rs b/core/line_messaging_api/src/models/area_demographic_filter.rs index c0863c2..07e72cc 100644 --- a/core/line_messaging_api/src/models/area_demographic_filter.rs +++ b/core/line_messaging_api/src/models/area_demographic_filter.rs @@ -1,43 +1,31 @@ -/* -* Copyright (C) 2016 LINE Corp. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - /* * LINE Messaging API * * This document describes LINE Messaging API. * * The version of the OpenAPI document: 0.0.3 - * + * * Generated by: https://openapi-generator.tech */ -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct AreaDemographicFilter { /// Type of demographic filter #[serde(rename = "type", skip_serializing_if = "Option::is_none")] pub r#type: Option, #[serde(rename = "oneOf", skip_serializing_if = "Option::is_none")] - pub one_of: Option>, + pub one_of: Option>, } impl AreaDemographicFilter { pub fn new() -> AreaDemographicFilter { AreaDemographicFilter { - r#type: None, + r#type: Some("area".to_string()), one_of: None, } } } + diff --git a/core/line_messaging_api/src/models/audience_recipient.rs b/core/line_messaging_api/src/models/audience_recipient.rs index cb5390b..8e5d1d3 100644 --- a/core/line_messaging_api/src/models/audience_recipient.rs +++ b/core/line_messaging_api/src/models/audience_recipient.rs @@ -1,30 +1,17 @@ -/* -* Copyright (C) 2016 LINE Corp. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - /* * LINE Messaging API * * This document describes LINE Messaging API. * * The version of the OpenAPI document: 0.0.3 - * + * * Generated by: https://openapi-generator.tech */ -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct AudienceRecipient { /// Type of recipient #[serde(rename = "type", skip_serializing_if = "Option::is_none")] @@ -36,8 +23,9 @@ pub struct AudienceRecipient { impl AudienceRecipient { pub fn new() -> AudienceRecipient { AudienceRecipient { - r#type: None, + r#type: Some("audience".to_owned()), audience_group_id: None, } } } + diff --git a/core/line_messaging_api/src/models/audio_message.rs b/core/line_messaging_api/src/models/audio_message.rs index 925c094..2bf2b57 100644 --- a/core/line_messaging_api/src/models/audio_message.rs +++ b/core/line_messaging_api/src/models/audio_message.rs @@ -1,35 +1,25 @@ -/* -* Copyright (C) 2016 LINE Corp. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - /* * LINE Messaging API * * This document describes LINE Messaging API. * * The version of the OpenAPI document: 0.0.3 - * + * * Generated by: https://openapi-generator.tech */ -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct AudioMessage { + /// Type of message + #[serde(rename = "type", skip_serializing_if = "Option::is_none")] + pub r#type: Option, #[serde(rename = "quickReply", skip_serializing_if = "Option::is_none")] - pub quick_reply: Option>, + pub quick_reply: Option>, #[serde(rename = "sender", skip_serializing_if = "Option::is_none")] - pub sender: Option>, + pub sender: Option>, #[serde(rename = "originalContentUrl")] pub original_content_url: String, #[serde(rename = "duration")] @@ -39,6 +29,7 @@ pub struct AudioMessage { impl AudioMessage { pub fn new(original_content_url: String, duration: i64) -> AudioMessage { AudioMessage { + r#type:Some("audio".to_owned()), quick_reply: None, sender: None, original_content_url, @@ -46,3 +37,4 @@ impl AudioMessage { } } } + diff --git a/core/line_messaging_api/src/models/bot_info_response.rs b/core/line_messaging_api/src/models/bot_info_response.rs index 13e9fbd..a5a346c 100644 --- a/core/line_messaging_api/src/models/bot_info_response.rs +++ b/core/line_messaging_api/src/models/bot_info_response.rs @@ -1,30 +1,17 @@ -/* -* Copyright (C) 2016 LINE Corp. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - /* * LINE Messaging API * * This document describes LINE Messaging API. * * The version of the OpenAPI document: 0.0.3 - * + * * Generated by: https://openapi-generator.tech */ -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct BotInfoResponse { /// Bot's user ID #[serde(rename = "userId")] @@ -41,7 +28,7 @@ pub struct BotInfoResponse { /// Profile image URL. `https` image URL. Not included in the response if the bot doesn't have a profile image. #[serde(rename = "pictureUrl", skip_serializing_if = "Option::is_none")] pub picture_url: Option, - /// Chat settings set in the LINE Official Account Manager. One of: `chat`: Chat is set to \"On\". `bot`: Chat is set to \"Off\". + /// Chat settings set in the LINE Official Account Manager. One of: `chat`: Chat is set to \"On\". `bot`: Chat is set to \"Off\". #[serde(rename = "chatMode")] pub chat_mode: ChatMode, /// Automatic read setting for messages. If the chat is set to \"Off\", auto is returned. If the chat is set to \"On\", manual is returned. `auto`: Auto read setting is enabled. `manual`: Auto read setting is disabled. @@ -50,13 +37,7 @@ pub struct BotInfoResponse { } impl BotInfoResponse { - pub fn new( - user_id: String, - basic_id: String, - display_name: String, - chat_mode: ChatMode, - mark_as_read_mode: MarkAsReadMode, - ) -> BotInfoResponse { + pub fn new(user_id: String, basic_id: String, display_name: String, chat_mode: ChatMode, mark_as_read_mode: MarkAsReadMode) -> BotInfoResponse { BotInfoResponse { user_id, basic_id, @@ -68,8 +49,7 @@ impl BotInfoResponse { } } } - -/// Chat settings set in the LINE Official Account Manager. One of: `chat`: Chat is set to \"On\". `bot`: Chat is set to \"Off\". +/// Chat settings set in the LINE Official Account Manager. One of: `chat`: Chat is set to \"On\". `bot`: Chat is set to \"Off\". #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] pub enum ChatMode { #[serde(rename = "chat")] @@ -97,3 +77,4 @@ impl Default for MarkAsReadMode { Self::Auto } } + diff --git a/core/line_messaging_api/src/models/broadcast_request.rs b/core/line_messaging_api/src/models/broadcast_request.rs index cd99feb..8025456 100644 --- a/core/line_messaging_api/src/models/broadcast_request.rs +++ b/core/line_messaging_api/src/models/broadcast_request.rs @@ -1,47 +1,32 @@ -/* -* Copyright (C) 2016 LINE Corp. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - /* * LINE Messaging API * * This document describes LINE Messaging API. * * The version of the OpenAPI document: 0.0.3 - * + * * Generated by: https://openapi-generator.tech */ -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct BroadcastRequest { /// List of Message objects. #[serde(rename = "messages")] - pub messages: Vec, - /// `true`: The user doesn’t receive a push notification when a message is sent. `false`: The user receives a push notification when the message is sent (unless they have disabled push notifications in LINE and/or their device). The default value is false. - #[serde( - rename = "notificationDisabled", - skip_serializing_if = "Option::is_none" - )] + pub messages: Vec, + /// `true`: The user doesn’t receive a push notification when a message is sent. `false`: The user receives a push notification when the message is sent (unless they have disabled push notifications in LINE and/or their device). The default value is false. + #[serde(rename = "notificationDisabled", skip_serializing_if = "Option::is_none")] pub notification_disabled: Option, } impl BroadcastRequest { - pub fn new(messages: Vec) -> BroadcastRequest { + pub fn new(messages: Vec) -> BroadcastRequest { BroadcastRequest { messages, notification_disabled: None, } } } + diff --git a/core/line_messaging_api/src/models/buttons_template.rs b/core/line_messaging_api/src/models/buttons_template.rs index 8ec9897..050bcbe 100644 --- a/core/line_messaging_api/src/models/buttons_template.rs +++ b/core/line_messaging_api/src/models/buttons_template.rs @@ -1,62 +1,42 @@ -/* -* Copyright (C) 2016 LINE Corp. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - /* * LINE Messaging API * * This document describes LINE Messaging API. * * The version of the OpenAPI document: 0.0.3 - * + * * Generated by: https://openapi-generator.tech */ -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct ButtonsTemplate { - #[serde(rename = "type")] - pub r#type: String, + #[serde(rename = "type", skip_serializing_if = "Option::is_none")] + pub r#type: Option, #[serde(rename = "thumbnailImageUrl", skip_serializing_if = "Option::is_none")] pub thumbnail_image_url: Option, #[serde(rename = "imageAspectRatio", skip_serializing_if = "Option::is_none")] pub image_aspect_ratio: Option, #[serde(rename = "imageSize", skip_serializing_if = "Option::is_none")] pub image_size: Option, - #[serde( - rename = "imageBackgroundColor", - skip_serializing_if = "Option::is_none" - )] + #[serde(rename = "imageBackgroundColor", skip_serializing_if = "Option::is_none")] pub image_background_color: Option, #[serde(rename = "title", skip_serializing_if = "Option::is_none")] pub title: Option, #[serde(rename = "text")] pub text: String, #[serde(rename = "defaultAction", skip_serializing_if = "Option::is_none")] - pub default_action: Option>, + pub default_action: Option>, #[serde(rename = "actions")] - pub actions: Vec, + pub actions: Vec, } impl ButtonsTemplate { - pub fn new( - r#type: String, - text: String, - actions: Vec, - ) -> ButtonsTemplate { + pub fn new(text: String, actions: Vec) -> ButtonsTemplate { ButtonsTemplate { - r#type, + r#type:Some("buttons".to_owned()), thumbnail_image_url: None, image_aspect_ratio: None, image_size: None, @@ -68,3 +48,4 @@ impl ButtonsTemplate { } } } + diff --git a/core/line_messaging_api/src/models/camera_action.rs b/core/line_messaging_api/src/models/camera_action.rs index bf736fe..d471c88 100644 --- a/core/line_messaging_api/src/models/camera_action.rs +++ b/core/line_messaging_api/src/models/camera_action.rs @@ -1,30 +1,17 @@ -/* -* Copyright (C) 2016 LINE Corp. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - /* * LINE Messaging API * * This document describes LINE Messaging API. * * The version of the OpenAPI document: 0.0.3 - * + * * Generated by: https://openapi-generator.tech */ -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct CameraAction { /// Type of action #[serde(rename = "type", skip_serializing_if = "Option::is_none")] @@ -37,8 +24,9 @@ pub struct CameraAction { impl CameraAction { pub fn new() -> CameraAction { CameraAction { - r#type: None, + r#type: Some("camera".to_string()), label: None, } } } + diff --git a/core/line_messaging_api/src/models/camera_roll_action.rs b/core/line_messaging_api/src/models/camera_roll_action.rs index 59d30d7..4fae9f3 100644 --- a/core/line_messaging_api/src/models/camera_roll_action.rs +++ b/core/line_messaging_api/src/models/camera_roll_action.rs @@ -1,30 +1,17 @@ -/* -* Copyright (C) 2016 LINE Corp. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - /* * LINE Messaging API * * This document describes LINE Messaging API. * * The version of the OpenAPI document: 0.0.3 - * + * * Generated by: https://openapi-generator.tech */ -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct CameraRollAction { /// Type of action #[serde(rename = "type", skip_serializing_if = "Option::is_none")] @@ -37,8 +24,9 @@ pub struct CameraRollAction { impl CameraRollAction { pub fn new() -> CameraRollAction { CameraRollAction { - r#type: None, + r#type: Some("cameraRoll".to_string()), label: None, } } } + diff --git a/core/line_messaging_api/src/models/carousel_column.rs b/core/line_messaging_api/src/models/carousel_column.rs index 7c257f8..f643d0d 100644 --- a/core/line_messaging_api/src/models/carousel_column.rs +++ b/core/line_messaging_api/src/models/carousel_column.rs @@ -1,53 +1,36 @@ -/* -* Copyright (C) 2016 LINE Corp. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - /* * LINE Messaging API * * This document describes LINE Messaging API. * * The version of the OpenAPI document: 0.0.3 - * + * * Generated by: https://openapi-generator.tech */ -/// CarouselColumn : Column object for carousel template. +use crate::models; +use serde::{Deserialize, Serialize}; -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +/// CarouselColumn : Column object for carousel template. +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct CarouselColumn { #[serde(rename = "thumbnailImageUrl", skip_serializing_if = "Option::is_none")] pub thumbnail_image_url: Option, - #[serde( - rename = "imageBackgroundColor", - skip_serializing_if = "Option::is_none" - )] + #[serde(rename = "imageBackgroundColor", skip_serializing_if = "Option::is_none")] pub image_background_color: Option, #[serde(rename = "title", skip_serializing_if = "Option::is_none")] pub title: Option, #[serde(rename = "text")] pub text: String, #[serde(rename = "defaultAction", skip_serializing_if = "Option::is_none")] - pub default_action: Option>, + pub default_action: Option>, #[serde(rename = "actions")] - pub actions: Vec, + pub actions: Vec, } impl CarouselColumn { /// Column object for carousel template. - pub fn new(text: String, actions: Vec) -> CarouselColumn { + pub fn new(text: String, actions: Vec) -> CarouselColumn { CarouselColumn { thumbnail_image_url: None, image_background_color: None, @@ -58,3 +41,4 @@ impl CarouselColumn { } } } + diff --git a/core/line_messaging_api/src/models/carousel_template.rs b/core/line_messaging_api/src/models/carousel_template.rs index 5117853..9c896fd 100644 --- a/core/line_messaging_api/src/models/carousel_template.rs +++ b/core/line_messaging_api/src/models/carousel_template.rs @@ -1,35 +1,22 @@ -/* -* Copyright (C) 2016 LINE Corp. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - /* * LINE Messaging API * * This document describes LINE Messaging API. * * The version of the OpenAPI document: 0.0.3 - * + * * Generated by: https://openapi-generator.tech */ -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct CarouselTemplate { - #[serde(rename = "type")] - pub r#type: String, + #[serde(rename = "type", skip_serializing_if = "Option::is_none")] + pub r#type: Option, #[serde(rename = "columns")] - pub columns: Vec, + pub columns: Vec, #[serde(rename = "imageAspectRatio", skip_serializing_if = "Option::is_none")] pub image_aspect_ratio: Option, #[serde(rename = "imageSize", skip_serializing_if = "Option::is_none")] @@ -37,12 +24,13 @@ pub struct CarouselTemplate { } impl CarouselTemplate { - pub fn new(r#type: String, columns: Vec) -> CarouselTemplate { + pub fn new(columns: Vec) -> CarouselTemplate { CarouselTemplate { - r#type, + r#type:Some("carousel".to_owned()), columns, image_aspect_ratio: None, image_size: None, } } } + diff --git a/core/line_messaging_api/src/models/chat_reference.rs b/core/line_messaging_api/src/models/chat_reference.rs index 92f18a6..5043516 100644 --- a/core/line_messaging_api/src/models/chat_reference.rs +++ b/core/line_messaging_api/src/models/chat_reference.rs @@ -1,32 +1,18 @@ -/* -* Copyright (C) 2016 LINE Corp. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - /* * LINE Messaging API * * This document describes LINE Messaging API. * * The version of the OpenAPI document: 0.0.3 - * + * * Generated by: https://openapi-generator.tech */ -/// ChatReference : Chat reference +use crate::models; +use serde::{Deserialize, Serialize}; -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +/// ChatReference : Chat reference +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct ChatReference { /// The target user ID #[serde(rename = "userId")] @@ -36,6 +22,9 @@ pub struct ChatReference { impl ChatReference { /// Chat reference pub fn new(user_id: String) -> ChatReference { - ChatReference { user_id } + ChatReference { + user_id, + } } } + diff --git a/core/line_messaging_api/src/models/clipboard_action.rs b/core/line_messaging_api/src/models/clipboard_action.rs index 7f72f6c..0ccda4f 100644 --- a/core/line_messaging_api/src/models/clipboard_action.rs +++ b/core/line_messaging_api/src/models/clipboard_action.rs @@ -1,30 +1,17 @@ -/* -* Copyright (C) 2016 LINE Corp. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - /* * LINE Messaging API * * This document describes LINE Messaging API. * * The version of the OpenAPI document: 0.0.3 - * + * * Generated by: https://openapi-generator.tech */ -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct ClipboardAction { /// Type of action #[serde(rename = "type", skip_serializing_if = "Option::is_none")] @@ -32,7 +19,7 @@ pub struct ClipboardAction { /// Label for the action. #[serde(rename = "label", skip_serializing_if = "Option::is_none")] pub label: Option, - /// Text that is copied to the clipboard. Max character limit: 1000 + /// Text that is copied to the clipboard. Max character limit: 1000 #[serde(rename = "clipboardText")] pub clipboard_text: String, } @@ -40,9 +27,10 @@ pub struct ClipboardAction { impl ClipboardAction { pub fn new(clipboard_text: String) -> ClipboardAction { ClipboardAction { - r#type: None, + r#type: Some("clipboard".to_string()), label: None, clipboard_text, } } } + diff --git a/core/line_messaging_api/src/models/clipboard_imagemap_action.rs b/core/line_messaging_api/src/models/clipboard_imagemap_action.rs index cb7f55c..ccf1878 100644 --- a/core/line_messaging_api/src/models/clipboard_imagemap_action.rs +++ b/core/line_messaging_api/src/models/clipboard_imagemap_action.rs @@ -1,36 +1,23 @@ -/* -* Copyright (C) 2016 LINE Corp. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - /* * LINE Messaging API * * This document describes LINE Messaging API. * * The version of the OpenAPI document: 0.0.3 - * + * * Generated by: https://openapi-generator.tech */ -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct ClipboardImagemapAction { - #[serde(rename = "type")] - pub r#type: String, + #[serde(rename = "type", skip_serializing_if = "Option::is_none")] + pub r#type: Option, #[serde(rename = "area")] - pub area: Box, - /// Text that is copied to the clipboard. Max character limit: 1000 + pub area: Box, + /// Text that is copied to the clipboard. Max character limit: 1000 #[serde(rename = "clipboardText")] pub clipboard_text: String, #[serde(rename = "label", skip_serializing_if = "Option::is_none")] @@ -38,16 +25,13 @@ pub struct ClipboardImagemapAction { } impl ClipboardImagemapAction { - pub fn new( - r#type: String, - area: crate::models::ImagemapArea, - clipboard_text: String, - ) -> ClipboardImagemapAction { + pub fn new(area: models::ImagemapArea, clipboard_text: String) -> ClipboardImagemapAction { ClipboardImagemapAction { - r#type, + r#type:Some("clipboard".to_string()), area: Box::new(area), clipboard_text, label: None, } } } + diff --git a/core/line_messaging_api/src/models/confirm_template.rs b/core/line_messaging_api/src/models/confirm_template.rs index a52d122..59e2b0c 100644 --- a/core/line_messaging_api/src/models/confirm_template.rs +++ b/core/line_messaging_api/src/models/confirm_template.rs @@ -1,49 +1,33 @@ -/* -* Copyright (C) 2016 LINE Corp. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - /* * LINE Messaging API * * This document describes LINE Messaging API. * * The version of the OpenAPI document: 0.0.3 - * + * * Generated by: https://openapi-generator.tech */ -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct ConfirmTemplate { - #[serde(rename = "type")] - pub r#type: String, + #[serde(rename = "type", skip_serializing_if = "Option::is_none")] + pub r#type: Option, #[serde(rename = "text")] pub text: String, #[serde(rename = "actions")] - pub actions: Vec, + pub actions: Vec, } impl ConfirmTemplate { - pub fn new( - r#type: String, - text: String, - actions: Vec, - ) -> ConfirmTemplate { + pub fn new(text: String, actions: Vec) -> ConfirmTemplate { ConfirmTemplate { - r#type, + r#type:Some("confirm".to_owned()), text, actions, } } } + diff --git a/core/line_messaging_api/src/models/create_rich_menu_alias_request.rs b/core/line_messaging_api/src/models/create_rich_menu_alias_request.rs index 89edd7f..8f5ef93 100644 --- a/core/line_messaging_api/src/models/create_rich_menu_alias_request.rs +++ b/core/line_messaging_api/src/models/create_rich_menu_alias_request.rs @@ -1,30 +1,17 @@ -/* -* Copyright (C) 2016 LINE Corp. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - /* * LINE Messaging API * * This document describes LINE Messaging API. * * The version of the OpenAPI document: 0.0.3 - * + * * Generated by: https://openapi-generator.tech */ -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct CreateRichMenuAliasRequest { /// Rich menu alias ID, which can be any ID, unique for each channel. #[serde(rename = "richMenuAliasId")] @@ -42,3 +29,4 @@ impl CreateRichMenuAliasRequest { } } } + diff --git a/core/line_messaging_api/src/models/datetime_picker_action.rs b/core/line_messaging_api/src/models/datetime_picker_action.rs index 28fe751..25e57b4 100644 --- a/core/line_messaging_api/src/models/datetime_picker_action.rs +++ b/core/line_messaging_api/src/models/datetime_picker_action.rs @@ -1,30 +1,17 @@ -/* -* Copyright (C) 2016 LINE Corp. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - /* * LINE Messaging API * * This document describes LINE Messaging API. * * The version of the OpenAPI document: 0.0.3 - * + * * Generated by: https://openapi-generator.tech */ -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct DatetimePickerAction { /// Type of action #[serde(rename = "type", skip_serializing_if = "Option::is_none")] @@ -47,7 +34,7 @@ pub struct DatetimePickerAction { impl DatetimePickerAction { pub fn new() -> DatetimePickerAction { DatetimePickerAction { - r#type: None, + r#type: Some("datetimepicker".to_string()), label: None, data: None, mode: None, @@ -57,8 +44,7 @@ impl DatetimePickerAction { } } } - -/// +/// #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] pub enum Mode { #[serde(rename = "date")] @@ -74,3 +60,4 @@ impl Default for Mode { Self::Date } } + diff --git a/core/line_messaging_api/src/models/demographic_filter.rs b/core/line_messaging_api/src/models/demographic_filter.rs index f9bcae8..c2fce9c 100644 --- a/core/line_messaging_api/src/models/demographic_filter.rs +++ b/core/line_messaging_api/src/models/demographic_filter.rs @@ -1,31 +1,40 @@ -/* -* Copyright (C) 2016 LINE Corp. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - /* * LINE Messaging API * * This document describes LINE Messaging API. * * The version of the OpenAPI document: 0.0.3 - * + * * Generated by: https://openapi-generator.tech */ -/// DemographicFilter : Demographic filter +use crate::models; +use serde::{Deserialize, Serialize}; + +use super::{AgeDemographicFilter, AppTypeDemographicFilter, AreaDemographicFilter, GenderDemographicFilter, OperatorDemographicFilter, SubscriptionPeriodDemographicFilter}; +/// DemographicFilter : Demographic filter #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -#[serde(tag = "")] -pub enum DemographicFilter {} +#[serde(tag = "type")] +pub enum DemographicFilter { + #[serde(rename="age")] + AgeDemographicFilter(AgeDemographicFilter), + #[serde(rename="appType")] + AppTypeDemographicFilter(AppTypeDemographicFilter), + #[serde(rename="area")] + AreaDemographicFilter(AreaDemographicFilter), + #[serde(rename="gender")] + GenderDemographicFilter(GenderDemographicFilter), + #[serde(rename="operator")] + OperatorDemographicFilter(OperatorDemographicFilter), + #[serde(rename="subscriptionPeriod")] + SubscriptionPeriodDemographicFilter(SubscriptionPeriodDemographicFilter), +} + +impl Default for DemographicFilter { + fn default() -> Self { + Self::AgeDemographicFilter(AgeDemographicFilter::default()) + } +} + + diff --git a/core/line_messaging_api/src/models/emoji.rs b/core/line_messaging_api/src/models/emoji.rs index 1828362..1f30e7b 100644 --- a/core/line_messaging_api/src/models/emoji.rs +++ b/core/line_messaging_api/src/models/emoji.rs @@ -1,30 +1,17 @@ -/* -* Copyright (C) 2016 LINE Corp. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - /* * LINE Messaging API * * This document describes LINE Messaging API. * * The version of the OpenAPI document: 0.0.3 - * + * * Generated by: https://openapi-generator.tech */ -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct Emoji { #[serde(rename = "index", skip_serializing_if = "Option::is_none")] pub index: Option, @@ -43,3 +30,4 @@ impl Emoji { } } } + diff --git a/core/line_messaging_api/src/models/emoji_substitution_object.rs b/core/line_messaging_api/src/models/emoji_substitution_object.rs new file mode 100644 index 0000000..ba6651b --- /dev/null +++ b/core/line_messaging_api/src/models/emoji_substitution_object.rs @@ -0,0 +1,36 @@ +/* + * LINE Messaging API + * + * This document describes LINE Messaging API. + * + * The version of the OpenAPI document: 0.0.3 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +/// EmojiSubstitutionObject : An object representing a emoji substitution. +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct EmojiSubstitutionObject { + /// Type of substitution object + #[serde(rename = "type", skip_serializing_if = "Option::is_none")] + pub r#type: Option, + #[serde(rename = "productId")] + pub product_id: String, + #[serde(rename = "emojiId")] + pub emoji_id: String, +} + +impl EmojiSubstitutionObject { + /// An object representing a emoji substitution. + pub fn new(product_id: String, emoji_id: String) -> EmojiSubstitutionObject { + EmojiSubstitutionObject { + r#type:Some("emoji".to_owned()), + product_id, + emoji_id, + } + } +} + diff --git a/core/line_messaging_api/src/models/error_detail.rs b/core/line_messaging_api/src/models/error_detail.rs index 526cb26..38ae2e5 100644 --- a/core/line_messaging_api/src/models/error_detail.rs +++ b/core/line_messaging_api/src/models/error_detail.rs @@ -1,30 +1,17 @@ -/* -* Copyright (C) 2016 LINE Corp. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - /* * LINE Messaging API * * This document describes LINE Messaging API. * * The version of the OpenAPI document: 0.0.3 - * + * * Generated by: https://openapi-generator.tech */ -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct ErrorDetail { /// Details of the error. Not included in the response under certain situations. #[serde(rename = "message", skip_serializing_if = "Option::is_none")] @@ -42,3 +29,4 @@ impl ErrorDetail { } } } + diff --git a/core/line_messaging_api/src/models/error_response.rs b/core/line_messaging_api/src/models/error_response.rs index b129a7a..41196a9 100644 --- a/core/line_messaging_api/src/models/error_response.rs +++ b/core/line_messaging_api/src/models/error_response.rs @@ -1,40 +1,27 @@ -/* -* Copyright (C) 2016 LINE Corp. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - /* * LINE Messaging API * * This document describes LINE Messaging API. * * The version of the OpenAPI document: 0.0.3 - * + * * Generated by: https://openapi-generator.tech */ -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct ErrorResponse { /// Message containing information about the error. #[serde(rename = "message")] pub message: String, /// An array of error details. If the array is empty, this property will not be included in the response. #[serde(rename = "details", skip_serializing_if = "Option::is_none")] - pub details: Option>, + pub details: Option>, /// Array of sent messages. #[serde(rename = "sentMessages", skip_serializing_if = "Option::is_none")] - pub sent_messages: Option>, + pub sent_messages: Option>, } impl ErrorResponse { @@ -46,3 +33,4 @@ impl ErrorResponse { } } } + diff --git a/core/line_messaging_api/src/models/filter.rs b/core/line_messaging_api/src/models/filter.rs index af11908..ef4cb5a 100644 --- a/core/line_messaging_api/src/models/filter.rs +++ b/core/line_messaging_api/src/models/filter.rs @@ -1,40 +1,29 @@ -/* -* Copyright (C) 2016 LINE Corp. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - /* * LINE Messaging API * * This document describes LINE Messaging API. * * The version of the OpenAPI document: 0.0.3 - * + * * Generated by: https://openapi-generator.tech */ -/// Filter : Filter for narrowcast +use crate::models; +use serde::{Deserialize, Serialize}; -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +/// Filter : Filter for narrowcast +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct Filter { #[serde(rename = "demographic", skip_serializing_if = "Option::is_none")] - pub demographic: Option>, + pub demographic: Option>, } impl Filter { /// Filter for narrowcast pub fn new() -> Filter { - Filter { demographic: None } + Filter { + demographic: None, + } } } + diff --git a/core/line_messaging_api/src/models/flex_block_style.rs b/core/line_messaging_api/src/models/flex_block_style.rs index f37b400..6011301 100644 --- a/core/line_messaging_api/src/models/flex_block_style.rs +++ b/core/line_messaging_api/src/models/flex_block_style.rs @@ -1,30 +1,17 @@ -/* -* Copyright (C) 2016 LINE Corp. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - /* * LINE Messaging API * * This document describes LINE Messaging API. * * The version of the OpenAPI document: 0.0.3 - * + * * Generated by: https://openapi-generator.tech */ -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct FlexBlockStyle { #[serde(rename = "backgroundColor", skip_serializing_if = "Option::is_none")] pub background_color: Option, @@ -43,3 +30,4 @@ impl FlexBlockStyle { } } } + diff --git a/core/line_messaging_api/src/models/flex_box.rs b/core/line_messaging_api/src/models/flex_box.rs index 2708e35..87af387 100644 --- a/core/line_messaging_api/src/models/flex_box.rs +++ b/core/line_messaging_api/src/models/flex_box.rs @@ -1,39 +1,26 @@ -/* -* Copyright (C) 2016 LINE Corp. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - /* * LINE Messaging API * * This document describes LINE Messaging API. * * The version of the OpenAPI document: 0.0.3 - * + * * Generated by: https://openapi-generator.tech */ -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct FlexBox { - #[serde(rename = "type")] - pub r#type: String, + #[serde(rename = "type", skip_serializing_if = "Option::is_none")] + pub r#type: Option, #[serde(rename = "layout")] pub layout: Layout, #[serde(rename = "flex", skip_serializing_if = "Option::is_none")] pub flex: Option, #[serde(rename = "contents")] - pub contents: Vec, + pub contents: Vec, #[serde(rename = "spacing", skip_serializing_if = "Option::is_none")] pub spacing: Option, #[serde(rename = "margin", skip_serializing_if = "Option::is_none")] @@ -75,23 +62,19 @@ pub struct FlexBox { #[serde(rename = "paddingEnd", skip_serializing_if = "Option::is_none")] pub padding_end: Option, #[serde(rename = "action", skip_serializing_if = "Option::is_none")] - pub action: Option>, + pub action: Option>, #[serde(rename = "justifyContent", skip_serializing_if = "Option::is_none")] pub justify_content: Option, #[serde(rename = "alignItems", skip_serializing_if = "Option::is_none")] pub align_items: Option, #[serde(rename = "background", skip_serializing_if = "Option::is_none")] - pub background: Option>, + pub background: Option>, } impl FlexBox { - pub fn new( - r#type: String, - layout: Layout, - contents: Vec, - ) -> FlexBox { + pub fn new(layout: Layout, contents: Vec) -> FlexBox { FlexBox { - r#type, + r#type: Some("box".to_string()), layout, flex: None, contents, @@ -122,8 +105,7 @@ impl FlexBox { } } } - -/// +/// #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] pub enum Layout { #[serde(rename = "horizontal")] @@ -139,7 +121,7 @@ impl Default for Layout { Self::Horizontal } } -/// +/// #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] pub enum Position { #[serde(rename = "relative")] @@ -153,7 +135,7 @@ impl Default for Position { Self::Relative } } -/// +/// #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] pub enum JustifyContent { #[serde(rename = "center")] @@ -175,7 +157,7 @@ impl Default for JustifyContent { Self::Center } } -/// +/// #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] pub enum AlignItems { #[serde(rename = "center")] @@ -190,4 +172,4 @@ impl Default for AlignItems { fn default() -> AlignItems { Self::Center } -} +} \ No newline at end of file diff --git a/core/line_messaging_api/src/models/flex_box_background.rs b/core/line_messaging_api/src/models/flex_box_background.rs index b592cfd..cfc1ac0 100644 --- a/core/line_messaging_api/src/models/flex_box_background.rs +++ b/core/line_messaging_api/src/models/flex_box_background.rs @@ -1,29 +1,29 @@ -/* -* Copyright (C) 2016 LINE Corp. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - /* * LINE Messaging API * * This document describes LINE Messaging API. * * The version of the OpenAPI document: 0.0.3 - * + * * Generated by: https://openapi-generator.tech */ +use crate::models; +use serde::{Deserialize, Serialize}; + +use super::FlexBoxLinearGradient; + #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -#[serde(tag = "")] -pub enum FlexBoxBackground {} +#[serde(tag = "type")] +pub enum FlexBoxBackground { + #[serde(rename="linearGradient")] + FlexBoxLinearGradient(FlexBoxLinearGradient), +} + +impl Default for FlexBoxBackground { + fn default() -> Self { + Self::FlexBoxLinearGradient(FlexBoxLinearGradient::default()) + } +} + + diff --git a/core/line_messaging_api/src/models/flex_box_border_width.rs b/core/line_messaging_api/src/models/flex_box_border_width.rs index abed543..04de161 100644 --- a/core/line_messaging_api/src/models/flex_box_border_width.rs +++ b/core/line_messaging_api/src/models/flex_box_border_width.rs @@ -1,32 +1,18 @@ -/* -* Copyright (C) 2016 LINE Corp. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - /* * LINE Messaging API * * This document describes LINE Messaging API. * * The version of the OpenAPI document: 0.0.3 - * + * * Generated by: https://openapi-generator.tech */ -/// FlexBoxBorderWidth : Width of box border. This is only for `borderWidth` in FlexBox. A value of none means that borders are not rendered; the other values are listed in order of increasing width. +use crate::models; +use serde::{Deserialize, Serialize}; -/// Width of box border. This is only for `borderWidth` in FlexBox. A value of none means that borders are not rendered; the other values are listed in order of increasing width. +/// FlexBoxBorderWidth : Width of box border. This is only for `borderWidth` in FlexBox. A value of none means that borders are not rendered; the other values are listed in order of increasing width. +/// Width of box border. This is only for `borderWidth` in FlexBox. A value of none means that borders are not rendered; the other values are listed in order of increasing width. #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] pub enum FlexBoxBorderWidth { #[serde(rename = "none")] @@ -41,17 +27,18 @@ pub enum FlexBoxBorderWidth { SemiBold, #[serde(rename = "bold")] Bold, + } -impl ToString for FlexBoxBorderWidth { - fn to_string(&self) -> String { +impl std::fmt::Display for FlexBoxBorderWidth { + fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { match self { - Self::None => String::from("none"), - Self::Light => String::from("light"), - Self::Normal => String::from("normal"), - Self::Medium => String::from("medium"), - Self::SemiBold => String::from("semi-bold"), - Self::Bold => String::from("bold"), + Self::None => write!(f, "none"), + Self::Light => write!(f, "light"), + Self::Normal => write!(f, "normal"), + Self::Medium => write!(f, "medium"), + Self::SemiBold => write!(f, "semi-bold"), + Self::Bold => write!(f, "bold"), } } } @@ -61,3 +48,4 @@ impl Default for FlexBoxBorderWidth { Self::None } } + diff --git a/core/line_messaging_api/src/models/flex_box_corner_radius.rs b/core/line_messaging_api/src/models/flex_box_corner_radius.rs index c08ff96..ec77d9f 100644 --- a/core/line_messaging_api/src/models/flex_box_corner_radius.rs +++ b/core/line_messaging_api/src/models/flex_box_corner_radius.rs @@ -1,32 +1,18 @@ -/* -* Copyright (C) 2016 LINE Corp. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - /* * LINE Messaging API * * This document describes LINE Messaging API. * * The version of the OpenAPI document: 0.0.3 - * + * * Generated by: https://openapi-generator.tech */ -/// FlexBoxCornerRadius : Radius at the time of rounding the corners of the box. This is only for `cornerRadius` in FlexBox. A value of none means that corners are not rounded; the other values are listed in order of increasing radius. +use crate::models; +use serde::{Deserialize, Serialize}; -/// Radius at the time of rounding the corners of the box. This is only for `cornerRadius` in FlexBox. A value of none means that corners are not rounded; the other values are listed in order of increasing radius. +/// FlexBoxCornerRadius : Radius at the time of rounding the corners of the box. This is only for `cornerRadius` in FlexBox. A value of none means that corners are not rounded; the other values are listed in order of increasing radius. +/// Radius at the time of rounding the corners of the box. This is only for `cornerRadius` in FlexBox. A value of none means that corners are not rounded; the other values are listed in order of increasing radius. #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] pub enum FlexBoxCornerRadius { #[serde(rename = "none")] @@ -43,18 +29,19 @@ pub enum FlexBoxCornerRadius { Xl, #[serde(rename = "xxl")] Xxl, + } -impl ToString for FlexBoxCornerRadius { - fn to_string(&self) -> String { +impl std::fmt::Display for FlexBoxCornerRadius { + fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { match self { - Self::None => String::from("none"), - Self::Xs => String::from("xs"), - Self::Sm => String::from("sm"), - Self::Md => String::from("md"), - Self::Lg => String::from("lg"), - Self::Xl => String::from("xl"), - Self::Xxl => String::from("xxl"), + Self::None => write!(f, "none"), + Self::Xs => write!(f, "xs"), + Self::Sm => write!(f, "sm"), + Self::Md => write!(f, "md"), + Self::Lg => write!(f, "lg"), + Self::Xl => write!(f, "xl"), + Self::Xxl => write!(f, "xxl"), } } } @@ -64,3 +51,4 @@ impl Default for FlexBoxCornerRadius { Self::None } } + diff --git a/core/line_messaging_api/src/models/flex_box_linear_gradient.rs b/core/line_messaging_api/src/models/flex_box_linear_gradient.rs index 08df45b..90a26ed 100644 --- a/core/line_messaging_api/src/models/flex_box_linear_gradient.rs +++ b/core/line_messaging_api/src/models/flex_box_linear_gradient.rs @@ -1,33 +1,20 @@ -/* -* Copyright (C) 2016 LINE Corp. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - /* * LINE Messaging API * * This document describes LINE Messaging API. * * The version of the OpenAPI document: 0.0.3 - * + * * Generated by: https://openapi-generator.tech */ -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct FlexBoxLinearGradient { - #[serde(rename = "type")] - pub r#type: String, + #[serde(rename = "type", skip_serializing_if = "Option::is_none")] + pub r#type: Option, #[serde(rename = "angle", skip_serializing_if = "Option::is_none")] pub angle: Option, #[serde(rename = "startColor", skip_serializing_if = "Option::is_none")] @@ -41,9 +28,9 @@ pub struct FlexBoxLinearGradient { } impl FlexBoxLinearGradient { - pub fn new(r#type: String) -> FlexBoxLinearGradient { + pub fn new() -> FlexBoxLinearGradient { FlexBoxLinearGradient { - r#type, + r#type: Some("linearGradient".to_string()), angle: None, start_color: None, end_color: None, @@ -52,3 +39,4 @@ impl FlexBoxLinearGradient { } } } + diff --git a/core/line_messaging_api/src/models/flex_box_padding.rs b/core/line_messaging_api/src/models/flex_box_padding.rs index 7288aff..6644998 100644 --- a/core/line_messaging_api/src/models/flex_box_padding.rs +++ b/core/line_messaging_api/src/models/flex_box_padding.rs @@ -1,32 +1,18 @@ -/* -* Copyright (C) 2016 LINE Corp. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - /* * LINE Messaging API * * This document describes LINE Messaging API. * * The version of the OpenAPI document: 0.0.3 - * + * * Generated by: https://openapi-generator.tech */ -/// FlexBoxPadding : Padding can be specified in pixels, percentage (to the parent box width) or with a keyword. FlexBoxPadding just provides only keywords. +use crate::models; +use serde::{Deserialize, Serialize}; -/// Padding can be specified in pixels, percentage (to the parent box width) or with a keyword. FlexBoxPadding just provides only keywords. +/// FlexBoxPadding : Padding can be specified in pixels, percentage (to the parent box width) or with a keyword. FlexBoxPadding just provides only keywords. +/// Padding can be specified in pixels, percentage (to the parent box width) or with a keyword. FlexBoxPadding just provides only keywords. #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] pub enum FlexBoxPadding { #[serde(rename = "none")] @@ -43,18 +29,19 @@ pub enum FlexBoxPadding { Xl, #[serde(rename = "xxl")] Xxl, + } -impl ToString for FlexBoxPadding { - fn to_string(&self) -> String { +impl std::fmt::Display for FlexBoxPadding { + fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { match self { - Self::None => String::from("none"), - Self::Xs => String::from("xs"), - Self::Sm => String::from("sm"), - Self::Md => String::from("md"), - Self::Lg => String::from("lg"), - Self::Xl => String::from("xl"), - Self::Xxl => String::from("xxl"), + Self::None => write!(f, "none"), + Self::Xs => write!(f, "xs"), + Self::Sm => write!(f, "sm"), + Self::Md => write!(f, "md"), + Self::Lg => write!(f, "lg"), + Self::Xl => write!(f, "xl"), + Self::Xxl => write!(f, "xxl"), } } } @@ -64,3 +51,4 @@ impl Default for FlexBoxPadding { Self::None } } + diff --git a/core/line_messaging_api/src/models/flex_box_spacing.rs b/core/line_messaging_api/src/models/flex_box_spacing.rs index 4833808..6cedc58 100644 --- a/core/line_messaging_api/src/models/flex_box_spacing.rs +++ b/core/line_messaging_api/src/models/flex_box_spacing.rs @@ -1,32 +1,18 @@ -/* -* Copyright (C) 2016 LINE Corp. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - /* * LINE Messaging API * * This document describes LINE Messaging API. * * The version of the OpenAPI document: 0.0.3 - * + * * Generated by: https://openapi-generator.tech */ -/// FlexBoxSpacing : You can specify the minimum space between two components with the `spacing` property of the parent box component, in pixels or with a keyword. FlexBoxSpacing just provides only keywords. +use crate::models; +use serde::{Deserialize, Serialize}; -/// You can specify the minimum space between two components with the `spacing` property of the parent box component, in pixels or with a keyword. FlexBoxSpacing just provides only keywords. +/// FlexBoxSpacing : You can specify the minimum space between two components with the `spacing` property of the parent box component, in pixels or with a keyword. FlexBoxSpacing just provides only keywords. +/// You can specify the minimum space between two components with the `spacing` property of the parent box component, in pixels or with a keyword. FlexBoxSpacing just provides only keywords. #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] pub enum FlexBoxSpacing { #[serde(rename = "none")] @@ -43,18 +29,19 @@ pub enum FlexBoxSpacing { Xl, #[serde(rename = "xxl")] Xxl, + } -impl ToString for FlexBoxSpacing { - fn to_string(&self) -> String { +impl std::fmt::Display for FlexBoxSpacing { + fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { match self { - Self::None => String::from("none"), - Self::Xs => String::from("xs"), - Self::Sm => String::from("sm"), - Self::Md => String::from("md"), - Self::Lg => String::from("lg"), - Self::Xl => String::from("xl"), - Self::Xxl => String::from("xxl"), + Self::None => write!(f, "none"), + Self::Xs => write!(f, "xs"), + Self::Sm => write!(f, "sm"), + Self::Md => write!(f, "md"), + Self::Lg => write!(f, "lg"), + Self::Xl => write!(f, "xl"), + Self::Xxl => write!(f, "xxl"), } } } @@ -64,3 +51,4 @@ impl Default for FlexBoxSpacing { Self::None } } + diff --git a/core/line_messaging_api/src/models/flex_bubble.rs b/core/line_messaging_api/src/models/flex_bubble.rs index 8115739..60bac50 100644 --- a/core/line_messaging_api/src/models/flex_bubble.rs +++ b/core/line_messaging_api/src/models/flex_bubble.rs @@ -1,55 +1,42 @@ -/* -* Copyright (C) 2016 LINE Corp. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - /* * LINE Messaging API * * This document describes LINE Messaging API. * * The version of the OpenAPI document: 0.0.3 - * + * * Generated by: https://openapi-generator.tech */ -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct FlexBubble { - #[serde(rename = "type")] - pub r#type: String, + #[serde(rename = "type", skip_serializing_if = "Option::is_none")] + pub r#type: Option, #[serde(rename = "direction", skip_serializing_if = "Option::is_none")] pub direction: Option, #[serde(rename = "styles", skip_serializing_if = "Option::is_none")] - pub styles: Option>, + pub styles: Option>, #[serde(rename = "header", skip_serializing_if = "Option::is_none")] - pub header: Option>, + pub header: Option>, #[serde(rename = "hero", skip_serializing_if = "Option::is_none")] - pub hero: Option>, + pub hero: Option>, #[serde(rename = "body", skip_serializing_if = "Option::is_none")] - pub body: Option>, + pub body: Option>, #[serde(rename = "footer", skip_serializing_if = "Option::is_none")] - pub footer: Option>, + pub footer: Option>, #[serde(rename = "size", skip_serializing_if = "Option::is_none")] pub size: Option, #[serde(rename = "action", skip_serializing_if = "Option::is_none")] - pub action: Option>, + pub action: Option>, } impl FlexBubble { - pub fn new(r#type: String) -> FlexBubble { + pub fn new() -> FlexBubble { FlexBubble { - r#type, + r#type:Some("bubble".to_string()), direction: None, styles: None, header: None, @@ -61,8 +48,7 @@ impl FlexBubble { } } } - -/// +/// #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] pub enum Direction { #[serde(rename = "ltr")] @@ -76,7 +62,7 @@ impl Default for Direction { Self::Ltr } } -/// +/// #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] pub enum Size { #[serde(rename = "nano")] @@ -100,3 +86,4 @@ impl Default for Size { Self::Nano } } + diff --git a/core/line_messaging_api/src/models/flex_bubble_styles.rs b/core/line_messaging_api/src/models/flex_bubble_styles.rs index fc4ae50..1d6c302 100644 --- a/core/line_messaging_api/src/models/flex_bubble_styles.rs +++ b/core/line_messaging_api/src/models/flex_bubble_styles.rs @@ -1,39 +1,26 @@ -/* -* Copyright (C) 2016 LINE Corp. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - /* * LINE Messaging API * * This document describes LINE Messaging API. * * The version of the OpenAPI document: 0.0.3 - * + * * Generated by: https://openapi-generator.tech */ -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct FlexBubbleStyles { #[serde(rename = "header", skip_serializing_if = "Option::is_none")] - pub header: Option>, + pub header: Option>, #[serde(rename = "hero", skip_serializing_if = "Option::is_none")] - pub hero: Option>, + pub hero: Option>, #[serde(rename = "body", skip_serializing_if = "Option::is_none")] - pub body: Option>, + pub body: Option>, #[serde(rename = "footer", skip_serializing_if = "Option::is_none")] - pub footer: Option>, + pub footer: Option>, } impl FlexBubbleStyles { @@ -46,3 +33,4 @@ impl FlexBubbleStyles { } } } + diff --git a/core/line_messaging_api/src/models/flex_button.rs b/core/line_messaging_api/src/models/flex_button.rs index 9127066..48f1bc0 100644 --- a/core/line_messaging_api/src/models/flex_button.rs +++ b/core/line_messaging_api/src/models/flex_button.rs @@ -1,33 +1,20 @@ -/* -* Copyright (C) 2016 LINE Corp. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - /* * LINE Messaging API * * This document describes LINE Messaging API. * * The version of the OpenAPI document: 0.0.3 - * + * * Generated by: https://openapi-generator.tech */ -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct FlexButton { - #[serde(rename = "type")] - pub r#type: String, + #[serde(rename = "type",skip_serializing_if = "Option::is_none")] + pub r#type: Option, #[serde(rename = "flex", skip_serializing_if = "Option::is_none")] pub flex: Option, #[serde(rename = "color", skip_serializing_if = "Option::is_none")] @@ -35,7 +22,7 @@ pub struct FlexButton { #[serde(rename = "style", skip_serializing_if = "Option::is_none")] pub style: Option