diff --git a/linebot/v3/messaging/__init__.py b/linebot/v3/messaging/__init__.py index 63f7686d..ef34f6dd 100644 --- a/linebot/v3/messaging/__init__.py +++ b/linebot/v3/messaging/__init__.py @@ -65,7 +65,11 @@ from linebot.v3.messaging.models.flex_block_style import FlexBlockStyle from linebot.v3.messaging.models.flex_box import FlexBox from linebot.v3.messaging.models.flex_box_background import FlexBoxBackground +from linebot.v3.messaging.models.flex_box_border_width import FlexBoxBorderWidth +from linebot.v3.messaging.models.flex_box_corner_radius import FlexBoxCornerRadius from linebot.v3.messaging.models.flex_box_linear_gradient import FlexBoxLinearGradient +from linebot.v3.messaging.models.flex_box_padding import FlexBoxPadding +from linebot.v3.messaging.models.flex_box_spacing import FlexBoxSpacing from linebot.v3.messaging.models.flex_bubble import FlexBubble from linebot.v3.messaging.models.flex_bubble_styles import FlexBubbleStyles from linebot.v3.messaging.models.flex_button import FlexButton @@ -74,11 +78,17 @@ from linebot.v3.messaging.models.flex_container import FlexContainer from linebot.v3.messaging.models.flex_filler import FlexFiller from linebot.v3.messaging.models.flex_icon import FlexIcon +from linebot.v3.messaging.models.flex_icon_size import FlexIconSize from linebot.v3.messaging.models.flex_image import FlexImage +from linebot.v3.messaging.models.flex_image_size import FlexImageSize +from linebot.v3.messaging.models.flex_margin import FlexMargin from linebot.v3.messaging.models.flex_message import FlexMessage +from linebot.v3.messaging.models.flex_offset import FlexOffset from linebot.v3.messaging.models.flex_separator import FlexSeparator from linebot.v3.messaging.models.flex_span import FlexSpan +from linebot.v3.messaging.models.flex_span_size import FlexSpanSize from linebot.v3.messaging.models.flex_text import FlexText +from linebot.v3.messaging.models.flex_text_font_size import FlexTextFontSize from linebot.v3.messaging.models.flex_video import FlexVideo from linebot.v3.messaging.models.gender_demographic import GenderDemographic from linebot.v3.messaging.models.gender_demographic_filter import GenderDemographicFilter @@ -155,6 +165,8 @@ from linebot.v3.messaging.models.subscription_period_demographic import SubscriptionPeriodDemographic from linebot.v3.messaging.models.subscription_period_demographic_filter import SubscriptionPeriodDemographicFilter from linebot.v3.messaging.models.template import Template +from linebot.v3.messaging.models.template_image_aspect_ratio import TemplateImageAspectRatio +from linebot.v3.messaging.models.template_image_size import TemplateImageSize from linebot.v3.messaging.models.template_message import TemplateMessage from linebot.v3.messaging.models.test_webhook_endpoint_request import TestWebhookEndpointRequest from linebot.v3.messaging.models.test_webhook_endpoint_response import TestWebhookEndpointResponse diff --git a/linebot/v3/messaging/models/__init__.py b/linebot/v3/messaging/models/__init__.py index b3eb44d5..c6c06ac1 100644 --- a/linebot/v3/messaging/models/__init__.py +++ b/linebot/v3/messaging/models/__init__.py @@ -44,7 +44,11 @@ from linebot.v3.messaging.models.flex_block_style import FlexBlockStyle from linebot.v3.messaging.models.flex_box import FlexBox from linebot.v3.messaging.models.flex_box_background import FlexBoxBackground +from linebot.v3.messaging.models.flex_box_border_width import FlexBoxBorderWidth +from linebot.v3.messaging.models.flex_box_corner_radius import FlexBoxCornerRadius from linebot.v3.messaging.models.flex_box_linear_gradient import FlexBoxLinearGradient +from linebot.v3.messaging.models.flex_box_padding import FlexBoxPadding +from linebot.v3.messaging.models.flex_box_spacing import FlexBoxSpacing from linebot.v3.messaging.models.flex_bubble import FlexBubble from linebot.v3.messaging.models.flex_bubble_styles import FlexBubbleStyles from linebot.v3.messaging.models.flex_button import FlexButton @@ -53,11 +57,17 @@ from linebot.v3.messaging.models.flex_container import FlexContainer from linebot.v3.messaging.models.flex_filler import FlexFiller from linebot.v3.messaging.models.flex_icon import FlexIcon +from linebot.v3.messaging.models.flex_icon_size import FlexIconSize from linebot.v3.messaging.models.flex_image import FlexImage +from linebot.v3.messaging.models.flex_image_size import FlexImageSize +from linebot.v3.messaging.models.flex_margin import FlexMargin from linebot.v3.messaging.models.flex_message import FlexMessage +from linebot.v3.messaging.models.flex_offset import FlexOffset from linebot.v3.messaging.models.flex_separator import FlexSeparator from linebot.v3.messaging.models.flex_span import FlexSpan +from linebot.v3.messaging.models.flex_span_size import FlexSpanSize from linebot.v3.messaging.models.flex_text import FlexText +from linebot.v3.messaging.models.flex_text_font_size import FlexTextFontSize from linebot.v3.messaging.models.flex_video import FlexVideo from linebot.v3.messaging.models.gender_demographic import GenderDemographic from linebot.v3.messaging.models.gender_demographic_filter import GenderDemographicFilter @@ -134,6 +144,8 @@ from linebot.v3.messaging.models.subscription_period_demographic import SubscriptionPeriodDemographic from linebot.v3.messaging.models.subscription_period_demographic_filter import SubscriptionPeriodDemographicFilter from linebot.v3.messaging.models.template import Template +from linebot.v3.messaging.models.template_image_aspect_ratio import TemplateImageAspectRatio +from linebot.v3.messaging.models.template_image_size import TemplateImageSize from linebot.v3.messaging.models.template_message import TemplateMessage from linebot.v3.messaging.models.test_webhook_endpoint_request import TestWebhookEndpointRequest from linebot.v3.messaging.models.test_webhook_endpoint_response import TestWebhookEndpointResponse diff --git a/linebot/v3/messaging/models/flex_box_border_width.py b/linebot/v3/messaging/models/flex_box_border_width.py new file mode 100644 index 00000000..da673ddd --- /dev/null +++ b/linebot/v3/messaging/models/flex_box_border_width.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + LINE Messaging API + + This document describes LINE Messaging API. # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" + + +import json +import pprint +import re # noqa: F401 +from aenum import Enum, no_arg + + + + + +class FlexBoxBorderWidth(str, Enum): + """ + 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. + """ + + """ + allowed enum values + """ + NONE = 'none' + LIGHT = 'light' + NORMAL = 'normal' + MEDIUM = 'medium' + SEMI_MINUS_BOLD = 'semi-bold' + BOLD = 'bold' + + @classmethod + def from_json(cls, json_str: str) -> FlexBoxBorderWidth: + """Create an instance of FlexBoxBorderWidth from a JSON string""" + return FlexBoxBorderWidth(json.loads(json_str)) + + diff --git a/linebot/v3/messaging/models/flex_box_corner_radius.py b/linebot/v3/messaging/models/flex_box_corner_radius.py new file mode 100644 index 00000000..a3e4f977 --- /dev/null +++ b/linebot/v3/messaging/models/flex_box_corner_radius.py @@ -0,0 +1,45 @@ +# coding: utf-8 + +""" + LINE Messaging API + + This document describes LINE Messaging API. # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" + + +import json +import pprint +import re # noqa: F401 +from aenum import Enum, no_arg + + + + + +class FlexBoxCornerRadius(str, Enum): + """ + 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. + """ + + """ + allowed enum values + """ + NONE = 'none' + XS = 'xs' + SM = 'sm' + MD = 'md' + LG = 'lg' + XL = 'xl' + XXL = 'xxl' + + @classmethod + def from_json(cls, json_str: str) -> FlexBoxCornerRadius: + """Create an instance of FlexBoxCornerRadius from a JSON string""" + return FlexBoxCornerRadius(json.loads(json_str)) + + diff --git a/linebot/v3/messaging/models/flex_box_padding.py b/linebot/v3/messaging/models/flex_box_padding.py new file mode 100644 index 00000000..57780e16 --- /dev/null +++ b/linebot/v3/messaging/models/flex_box_padding.py @@ -0,0 +1,45 @@ +# coding: utf-8 + +""" + LINE Messaging API + + This document describes LINE Messaging API. # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" + + +import json +import pprint +import re # noqa: F401 +from aenum import Enum, no_arg + + + + + +class FlexBoxPadding(str, Enum): + """ + Padding can be specified in pixels, percentage (to the parent box width) or with a keyword. FlexBoxPadding just provides only keywords. + """ + + """ + allowed enum values + """ + NONE = 'none' + XS = 'xs' + SM = 'sm' + MD = 'md' + LG = 'lg' + XL = 'xl' + XXL = 'xxl' + + @classmethod + def from_json(cls, json_str: str) -> FlexBoxPadding: + """Create an instance of FlexBoxPadding from a JSON string""" + return FlexBoxPadding(json.loads(json_str)) + + diff --git a/linebot/v3/messaging/models/flex_box_spacing.py b/linebot/v3/messaging/models/flex_box_spacing.py new file mode 100644 index 00000000..8f687469 --- /dev/null +++ b/linebot/v3/messaging/models/flex_box_spacing.py @@ -0,0 +1,45 @@ +# coding: utf-8 + +""" + LINE Messaging API + + This document describes LINE Messaging API. # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" + + +import json +import pprint +import re # noqa: F401 +from aenum import Enum, no_arg + + + + + +class FlexBoxSpacing(str, Enum): + """ + 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. + """ + + """ + allowed enum values + """ + NONE = 'none' + XS = 'xs' + SM = 'sm' + MD = 'md' + LG = 'lg' + XL = 'xl' + XXL = 'xxl' + + @classmethod + def from_json(cls, json_str: str) -> FlexBoxSpacing: + """Create an instance of FlexBoxSpacing from a JSON string""" + return FlexBoxSpacing(json.loads(json_str)) + + diff --git a/linebot/v3/messaging/models/flex_icon_size.py b/linebot/v3/messaging/models/flex_icon_size.py new file mode 100644 index 00000000..c4504487 --- /dev/null +++ b/linebot/v3/messaging/models/flex_icon_size.py @@ -0,0 +1,48 @@ +# coding: utf-8 + +""" + LINE Messaging API + + This document describes LINE Messaging API. # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" + + +import json +import pprint +import re # noqa: F401 +from aenum import Enum, no_arg + + + + + +class FlexIconSize(str, Enum): + """ + You can set the width of an Flex icon component with the `size` property, in pixels, as a percentage, or with a keyword. FlexIconSize just provides only keywords. + """ + + """ + allowed enum values + """ + XXS = 'xxs' + XS = 'xs' + SM = 'sm' + MD = 'md' + LG = 'lg' + XL = 'xl' + XXL = 'xxl' + ENUM_3XL = '3xl' + ENUM_4XL = '4xl' + ENUM_5XL = '5xl' + + @classmethod + def from_json(cls, json_str: str) -> FlexIconSize: + """Create an instance of FlexIconSize from a JSON string""" + return FlexIconSize(json.loads(json_str)) + + diff --git a/linebot/v3/messaging/models/flex_image_size.py b/linebot/v3/messaging/models/flex_image_size.py new file mode 100644 index 00000000..0b3420d7 --- /dev/null +++ b/linebot/v3/messaging/models/flex_image_size.py @@ -0,0 +1,49 @@ +# coding: utf-8 + +""" + LINE Messaging API + + This document describes LINE Messaging API. # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" + + +import json +import pprint +import re # noqa: F401 +from aenum import Enum, no_arg + + + + + +class FlexImageSize(str, Enum): + """ + You can set the width of an Flex image component with the `size` property, in pixels, as a percentage, or with a keyword. FlexImageSize just provides only keywords. + """ + + """ + allowed enum values + """ + XXS = 'xxs' + XS = 'xs' + SM = 'sm' + MD = 'md' + LG = 'lg' + XL = 'xl' + XXL = 'xxl' + ENUM_3XL = '3xl' + ENUM_4XL = '4xl' + ENUM_5XL = '5xl' + FULL = 'full' + + @classmethod + def from_json(cls, json_str: str) -> FlexImageSize: + """Create an instance of FlexImageSize from a JSON string""" + return FlexImageSize(json.loads(json_str)) + + diff --git a/linebot/v3/messaging/models/flex_margin.py b/linebot/v3/messaging/models/flex_margin.py new file mode 100644 index 00000000..f51dd373 --- /dev/null +++ b/linebot/v3/messaging/models/flex_margin.py @@ -0,0 +1,45 @@ +# coding: utf-8 + +""" + LINE Messaging API + + This document describes LINE Messaging API. # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" + + +import json +import pprint +import re # noqa: F401 +from aenum import Enum, no_arg + + + + + +class FlexMargin(str, Enum): + """ + You can specify the minimum space before a child component with the `margin` property of the child component, in pixels or with a keyword. FlexMargin just provides only keywords. + """ + + """ + allowed enum values + """ + NONE = 'none' + XS = 'xs' + SM = 'sm' + MD = 'md' + LG = 'lg' + XL = 'xl' + XXL = 'xxl' + + @classmethod + def from_json(cls, json_str: str) -> FlexMargin: + """Create an instance of FlexMargin from a JSON string""" + return FlexMargin(json.loads(json_str)) + + diff --git a/linebot/v3/messaging/models/flex_offset.py b/linebot/v3/messaging/models/flex_offset.py new file mode 100644 index 00000000..8296e082 --- /dev/null +++ b/linebot/v3/messaging/models/flex_offset.py @@ -0,0 +1,45 @@ +# coding: utf-8 + +""" + LINE Messaging API + + This document describes LINE Messaging API. # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" + + +import json +import pprint +import re # noqa: F401 +from aenum import Enum, no_arg + + + + + +class FlexOffset(str, Enum): + """ + You can specify the offset of a component with the `offset*` property, in pixels or with a keyword. You can also specify the percentage to the box width for `offsetStart` and `offsetEnd` and to the box height for `offsetTop` and `offsetBottom`. FlexOffset just provides only keywords. + """ + + """ + allowed enum values + """ + NONE = 'none' + XS = 'xs' + SM = 'sm' + MD = 'md' + LG = 'lg' + XL = 'xl' + XXL = 'xxl' + + @classmethod + def from_json(cls, json_str: str) -> FlexOffset: + """Create an instance of FlexOffset from a JSON string""" + return FlexOffset(json.loads(json_str)) + + diff --git a/linebot/v3/messaging/models/flex_span_size.py b/linebot/v3/messaging/models/flex_span_size.py new file mode 100644 index 00000000..017b9676 --- /dev/null +++ b/linebot/v3/messaging/models/flex_span_size.py @@ -0,0 +1,48 @@ +# coding: utf-8 + +""" + LINE Messaging API + + This document describes LINE Messaging API. # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" + + +import json +import pprint +import re # noqa: F401 +from aenum import Enum, no_arg + + + + + +class FlexSpanSize(str, Enum): + """ + Font size in the `size` property of the Flex span component. You can specify the size in pixels or with a keyword. FlexSpanSize just provides only keywords. + """ + + """ + allowed enum values + """ + XXS = 'xxs' + XS = 'xs' + SM = 'sm' + MD = 'md' + LG = 'lg' + XL = 'xl' + XXL = 'xxl' + ENUM_3XL = '3xl' + ENUM_4XL = '4xl' + ENUM_5XL = '5xl' + + @classmethod + def from_json(cls, json_str: str) -> FlexSpanSize: + """Create an instance of FlexSpanSize from a JSON string""" + return FlexSpanSize(json.loads(json_str)) + + diff --git a/linebot/v3/messaging/models/flex_text_font_size.py b/linebot/v3/messaging/models/flex_text_font_size.py new file mode 100644 index 00000000..5cf7553c --- /dev/null +++ b/linebot/v3/messaging/models/flex_text_font_size.py @@ -0,0 +1,48 @@ +# coding: utf-8 + +""" + LINE Messaging API + + This document describes LINE Messaging API. # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" + + +import json +import pprint +import re # noqa: F401 +from aenum import Enum, no_arg + + + + + +class FlexTextFontSize(str, Enum): + """ + Font size in the `size` property of the Flex text component. You can specify the size in pixels or with a keyword. FlexTextFontSize just provides only keywords. + """ + + """ + allowed enum values + """ + XXS = 'xxs' + XS = 'xs' + SM = 'sm' + MD = 'md' + LG = 'lg' + XL = 'xl' + XXL = 'xxl' + ENUM_3XL = '3xl' + ENUM_4XL = '4xl' + ENUM_5XL = '5xl' + + @classmethod + def from_json(cls, json_str: str) -> FlexTextFontSize: + """Create an instance of FlexTextFontSize from a JSON string""" + return FlexTextFontSize(json.loads(json_str)) + + diff --git a/linebot/v3/messaging/models/template_image_aspect_ratio.py b/linebot/v3/messaging/models/template_image_aspect_ratio.py new file mode 100644 index 00000000..e8c4c9f6 --- /dev/null +++ b/linebot/v3/messaging/models/template_image_aspect_ratio.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + LINE Messaging API + + This document describes LINE Messaging API. # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" + + +import json +import pprint +import re # noqa: F401 +from aenum import Enum, no_arg + + + + + +class TemplateImageAspectRatio(str, Enum): + """ + Aspect ratio of the image. This is only for the `imageAspectRatio` in ButtonsTemplate. Specify one of the following values: `rectangle`: 1.51:1 `square`: 1:1 + """ + + """ + allowed enum values + """ + RECTANGLE = 'rectangle' + SQUARE = 'square' + + @classmethod + def from_json(cls, json_str: str) -> TemplateImageAspectRatio: + """Create an instance of TemplateImageAspectRatio from a JSON string""" + return TemplateImageAspectRatio(json.loads(json_str)) + + diff --git a/linebot/v3/messaging/models/template_image_size.py b/linebot/v3/messaging/models/template_image_size.py new file mode 100644 index 00000000..2a2f9703 --- /dev/null +++ b/linebot/v3/messaging/models/template_image_size.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + LINE Messaging API + + This document describes LINE Messaging API. # noqa: E501 + + The version of the OpenAPI document: 0.0.1 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" + + +import json +import pprint +import re # noqa: F401 +from aenum import Enum, no_arg + + + + + +class TemplateImageSize(str, Enum): + """ + Size of the image. This is only for the `imageSize` in ButtonsTemplate. Specify one of the following values: `cover`: The image fills the entire image area. Parts of the image that do not fit in the area are not displayed. `contain`: The entire image is displayed in the image area. A background is displayed in the unused areas to the left and right of vertical images and in the areas above and below horizontal images. + """ + + """ + allowed enum values + """ + COVER = 'cover' + CONTAIN = 'contain' + + @classmethod + def from_json(cls, json_str: str) -> TemplateImageSize: + """Create an instance of TemplateImageSize from a JSON string""" + return TemplateImageSize(json.loads(json_str)) + +