Skip to content

Commit

Permalink
ADD: normal meesage
Browse files Browse the repository at this point in the history
  • Loading branch information
xncbf committed Feb 3, 2022
1 parent 3ae49fa commit 2dbae98
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "rcs-pydantic"
version = "0.1.17"
version = "0.1.18"
description = ""
authors = ["xncbf <xncbf12@gmail.com>"]
keywords = ["pydantic", "rcs", "fastapi"]
Expand Down
17 changes: 16 additions & 1 deletion rcs_pydantic/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class EventTypeEnum(Enum):
NEW_USER: str = "newuser"


class MessageEnum(Enum):
class RCSMessageEnum(Enum):
STANDALONE_1: str = "SCS00000" # 기본 말풍선
STANDALONE_2: str = "SCL00000" # 텍스트 카드
CAROUSEL_MEDIUM_1: str = "CCwMhM0200" # 슬라이드형(Medium, 2장)
Expand All @@ -86,3 +86,18 @@ class MessageEnum(Enum):
CAROUSEL_SMALL_5: str = "CCwShS0600" # 슬라이드형(Small, 6장)
STANDALONE_MEDIA_TOP_1: str = "SCwThT00" # 세로형(Tall)
STANDALONE_MEDIA_TOP_2: str = "SCwThM00" # 세로형(Medium)


class MessageEnum(Enum):
STANDALONE_1: str = "SS000000" # 기본 말풍선
STANDALONE_2: str = "SL000000" # 텍스트 카드
STANDALONE_MEDIA_TOP_1: str = "SMwThT00" # 세로형(Tall)
STANDALONE_MEDIA_TOP_2: str = "SMwThM00" # 세로형(Medium)
CAROUSEL_MEDIUM_2: str = "CMwMhM0300" # 슬라이드형(Medium, 3장)
CAROUSEL_MEDIUM_3: str = "CMwMhM0400" # 슬라이드형(Medium, 4장)
CAROUSEL_MEDIUM_4: str = "CMwMhM0500" # 슬라이드형(Medium, 5장)
CAROUSEL_MEDIUM_5: str = "CMwMhM0600" # 슬라이드형(Medium, 6장)
CAROUSEL_SMALL_2: str = "CMwShS0300" # 슬라이드형(Small, 3장)
CAROUSEL_SMALL_3: str = "CMwShS0400" # 슬라이드형(Small, 4장)
CAROUSEL_SMALL_4: str = "CMwShS0500" # 슬라이드형(Small, 5장)
CAROUSEL_SMALL_5: str = "CMwShS0600" # 슬라이드형(Small, 6장)
2 changes: 1 addition & 1 deletion rcs_pydantic/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def __init__(
scheme.RcsTMPLBody,
],
agency_id: Optional[str] = None,
message_base_id: enums.MessageEnum = enums.MessageEnum.STANDALONE_1,
message_base_id: Union[enums.MessageEnum, enums.RCSMessageEnum] = enums.MessageEnum.STANDALONE_1,
service_type: enums.ServiceTypeEnum = enums.ServiceTypeEnum.SMS,
expiry_option: Optional[enums.ExpiryOptionEnum] = None,
header: enums.HeaderEnum = enums.HeaderEnum.NOT_ADVERTISE,
Expand Down
2 changes: 1 addition & 1 deletion rcs_pydantic/scheme.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ class RcsInfo(BaseModel):
* Agency ID는 "Rcs Biz Center - 브랜드 운영관리" 에서 기업의 브랜드가 대행사 권한을 부여한 대행사의 ID
Agency ID가 "ktbizrcs" 가 아닌 경우 필수 입력 필요.
"""
messagebaseId: enums.MessageEnum
messagebaseId: Union[enums.MessageEnum, enums.RCSMessageEnum]
serviceType: enums.ServiceTypeEnum
expiryOption: Optional[enums.ExpiryOptionEnum]
"""
Expand Down

0 comments on commit 2dbae98

Please sign in to comment.