-
Notifications
You must be signed in to change notification settings - Fork 3
DEVEXP-1303: OAS-Synchro - Conversation #129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
sinch/domains/conversation/models/v1/messages/categories/channelspecific/line/__init__.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| from sinch.domains.conversation.models.v1.messages.categories.channelspecific.line.line_notification_message_template_emphasized_item import ( | ||
| LineNotificationMessageTemplateEmphasizedItem, | ||
| ) | ||
| from sinch.domains.conversation.models.v1.messages.categories.channelspecific.line.line_notification_message_template_item import ( | ||
| LineNotificationMessageTemplateItem, | ||
| ) | ||
| from sinch.domains.conversation.models.v1.messages.categories.channelspecific.line.buttons import ( | ||
| LineNotificationMessageTemplateButton, | ||
| ) | ||
| from sinch.domains.conversation.models.v1.messages.categories.channelspecific.line.line_notification_message_template_body import ( | ||
| LineNotificationMessageTemplateBody, | ||
| ) | ||
| from sinch.domains.conversation.models.v1.messages.categories.channelspecific.line.line_notification_message_template_message import ( | ||
| LineNotificationMessageTemplateMessage, | ||
| ) | ||
|
|
||
| __all__ = [ | ||
| "LineNotificationMessageTemplateEmphasizedItem", | ||
| "LineNotificationMessageTemplateItem", | ||
| "LineNotificationMessageTemplateButton", | ||
| "LineNotificationMessageTemplateBody", | ||
| "LineNotificationMessageTemplateMessage", | ||
| ] |
7 changes: 7 additions & 0 deletions
7
...mains/conversation/models/v1/messages/categories/channelspecific/line/buttons/__init__.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| from sinch.domains.conversation.models.v1.messages.categories.channelspecific.line.buttons.line_notification_message_template_button import ( | ||
| LineNotificationMessageTemplateButton, | ||
| ) | ||
|
|
||
| __all__ = [ | ||
| "LineNotificationMessageTemplateButton", | ||
| ] |
12 changes: 12 additions & 0 deletions
12
...ages/categories/channelspecific/line/buttons/line_notification_message_template_button.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| from pydantic import Field, StrictStr | ||
| from sinch.domains.conversation.models.v1.messages.internal.base import ( | ||
| BaseModelConfiguration, | ||
| ) | ||
|
|
||
|
|
||
| class LineNotificationMessageTemplateButton(BaseModelConfiguration): | ||
| button_key: StrictStr = Field( | ||
| ..., | ||
| description="Button key. See LINE documentation for available keys.", | ||
| ) | ||
| url: StrictStr = Field(..., description="Button URL.") |
26 changes: 26 additions & 0 deletions
26
...ls/v1/messages/categories/channelspecific/line/line_notification_message_template_body.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| from typing import Optional | ||
| from pydantic import Field, conlist | ||
| from sinch.domains.conversation.models.v1.messages.internal.base import ( | ||
| BaseModelConfiguration, | ||
| ) | ||
| from sinch.domains.conversation.models.v1.messages.categories.channelspecific.line.line_notification_message_template_emphasized_item import ( | ||
| LineNotificationMessageTemplateEmphasizedItem, | ||
| ) | ||
| from sinch.domains.conversation.models.v1.messages.categories.channelspecific.line.line_notification_message_template_item import ( | ||
| LineNotificationMessageTemplateItem, | ||
| ) | ||
| from sinch.domains.conversation.models.v1.messages.categories.channelspecific.line.buttons import ( | ||
| LineNotificationMessageTemplateButton, | ||
| ) | ||
|
|
||
|
|
||
| class LineNotificationMessageTemplateBody(BaseModelConfiguration): | ||
| emphasized_item: Optional[ | ||
| LineNotificationMessageTemplateEmphasizedItem | ||
| ] = Field(default=None, description="Template emphasized item.") | ||
| items: Optional[conlist(LineNotificationMessageTemplateItem)] = Field( | ||
| default=None, description="List of template items." | ||
| ) | ||
| buttons: Optional[conlist(LineNotificationMessageTemplateButton)] = Field( | ||
| default=None, description="List of template buttons." | ||
| ) |
12 changes: 12 additions & 0 deletions
12
...ges/categories/channelspecific/line/line_notification_message_template_emphasized_item.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| from pydantic import Field, StrictStr | ||
| from sinch.domains.conversation.models.v1.messages.internal.base import ( | ||
| BaseModelConfiguration, | ||
| ) | ||
|
|
||
|
|
||
| class LineNotificationMessageTemplateEmphasizedItem(BaseModelConfiguration): | ||
| item_key: StrictStr = Field( | ||
| ..., | ||
| description="Item key. See LINE documentation for available keys.", | ||
| ) | ||
| content: StrictStr = Field(..., description="Item value.") | ||
12 changes: 12 additions & 0 deletions
12
...ls/v1/messages/categories/channelspecific/line/line_notification_message_template_item.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| from pydantic import Field, StrictStr | ||
| from sinch.domains.conversation.models.v1.messages.internal.base import ( | ||
| BaseModelConfiguration, | ||
| ) | ||
|
|
||
|
|
||
| class LineNotificationMessageTemplateItem(BaseModelConfiguration): | ||
| item_key: StrictStr = Field( | ||
| ..., | ||
| description="Item key. See LINE documentation for available keys.", | ||
| ) | ||
| content: StrictStr = Field(..., description="Item value.") |
18 changes: 18 additions & 0 deletions
18
...v1/messages/categories/channelspecific/line/line_notification_message_template_message.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| from typing import Optional | ||
| from pydantic import Field, StrictStr | ||
| from sinch.domains.conversation.models.v1.messages.internal.base import ( | ||
| BaseModelConfiguration, | ||
| ) | ||
| from sinch.domains.conversation.models.v1.messages.categories.channelspecific.line.line_notification_message_template_body import ( | ||
| LineNotificationMessageTemplateBody, | ||
| ) | ||
|
|
||
|
|
||
| class LineNotificationMessageTemplateMessage(BaseModelConfiguration): | ||
| template_key: StrictStr = Field( | ||
| ..., | ||
| description="Template key. See LINE documentation for available keys.", | ||
| ) | ||
| body: Optional[LineNotificationMessageTemplateBody] = Field( | ||
| default=None, description="Template body." | ||
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,6 +9,7 @@ | |
| "ORDER_STATUS", | ||
| "COMMERCE", | ||
| "CAROUSEL_COMMERCE", | ||
| "NOTIFICATION_MESSAGE_TEMPLATE", | ||
| ], | ||
| StrictStr, | ||
| ] | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.