File tree Expand file tree Collapse file tree 5 files changed +31
-9
lines changed
Expand file tree Collapse file tree 5 files changed +31
-9
lines changed Original file line number Diff line number Diff line change 1- from solapi . message_service import SolapiMessageService
2- from solapi .model . message import Message
1+ from solapi import SolapiMessageService
2+ from solapi .model import Message
33
44message_service = SolapiMessageService (
55 api_key = "YOUR_API_KEY" , api_secret = "YOUR_API_SECRET"
Original file line number Diff line number Diff line change 11from .services .message_service import SolapiMessageService
22
3- __all__ = [' SolapiMessageService' ]
3+ __all__ = [" SolapiMessageService" ]
Original file line number Diff line number Diff line change 22from .message import Message
33from .request .send_message_request import SendRequestConfig
44
5- __all__ = [' Message' , ' SendRequestConfig' , ' KakaoOption' ]
5+ __all__ = [" Message" , " SendRequestConfig" , " KakaoOption" ]
Original file line number Diff line number Diff line change @@ -39,12 +39,36 @@ class CountForChargeResponse(BaseModel):
3939 rcs_lms : dict [str , float ]
4040 rcs_mms : dict [str , float ]
4141 rcs_tpl : dict [str , float ]
42+ rcs_itpl : dict [str , float ]
43+ rcs_ltpl : dict [str , float ]
44+ fax : dict [str , float ]
45+ voice : dict [str , float ]
46+
47+ model_config = ConfigDict (extra = "ignore" )
48+
49+
50+ class AppProfitResponse (BaseModel ):
51+ sms : float
52+ lms : float
53+ mms : float
54+ ata : float
55+ cta : float
56+ cti : float
57+ nsa : float
58+ rcs_sms : float
59+ rcs_lms : float
60+ rcs_mms : float
61+ rcs_tpl : float
62+ rcs_itpl : float
63+ rcs_ltpl : float
64+ fax : float
65+ voice : float
4266
4367 model_config = ConfigDict (extra = "ignore" )
4468
4569
4670class AppResponse (BaseModel ):
47- profit : CountForChargeResponse
71+ profit : AppProfitResponse
4872 app_id : Optional [str ] = None
4973
5074 model_config = ConfigDict (
@@ -54,10 +78,10 @@ class AppResponse(BaseModel):
5478
5579class GroupMessageResponse (BaseModel ):
5680 count : CountResponse
57- count_for_charge : Any
81+ count_for_charge : CountForChargeResponse
5882 balance : CommonCashResponse
5983 point : CommonCashResponse
60- app : Any
84+ app : AppResponse
6185 log : Any
6286 status : str
6387 allow_duplicates : bool
Original file line number Diff line number Diff line change @@ -60,8 +60,6 @@ def send(
6060 request .scheduled_date = format_with_transfer (
6161 request_config .scheduled_date
6262 )
63-
64- print (request .model_dump (exclude_none = True , by_alias = True ))
6563 response = default_fetcher (
6664 self .auth_info ,
6765 request = {
You can’t perform that action at this time.
0 commit comments