1717from typing import Any , Dict , List , Optional , Tuple , Union
1818from typing_extensions import Annotated
1919
20+ from datetime import datetime
2021from pydantic import Field , StrictBool , StrictFloat , StrictInt , StrictStr , field_validator
2122from typing import Any , Optional , Union
2223from typing_extensions import Annotated
@@ -572,6 +573,8 @@ def count_inbound_sms(
572573 phone_number_id : Any ,
573574 from_phone_number : Optional [StrictStr ] = None ,
574575 body : Optional [StrictStr ] = None ,
576+ start_date : Optional [datetime ] = None ,
577+ end_date : Optional [datetime ] = None ,
575578 _request_timeout : Union [
576579 None ,
577580 Annotated [StrictFloat , Field (gt = 0 )],
@@ -594,6 +597,10 @@ def count_inbound_sms(
594597 :type from_phone_number: str
595598 :param body:
596599 :type body: str
600+ :param start_date:
601+ :type start_date: datetime
602+ :param end_date:
603+ :type end_date: datetime
597604 :param _request_timeout: timeout setting for this request. If one
598605 number provided, it will be total request
599606 timeout. It can also be a pair (tuple) of
@@ -620,6 +627,8 @@ def count_inbound_sms(
620627 phone_number_id = phone_number_id ,
621628 from_phone_number = from_phone_number ,
622629 body = body ,
630+ start_date = start_date ,
631+ end_date = end_date ,
623632 _request_auth = _request_auth ,
624633 _content_type = _content_type ,
625634 _headers = _headers ,
@@ -649,6 +658,8 @@ def count_inbound_sms_with_http_info(
649658 phone_number_id : Any ,
650659 from_phone_number : Optional [StrictStr ] = None ,
651660 body : Optional [StrictStr ] = None ,
661+ start_date : Optional [datetime ] = None ,
662+ end_date : Optional [datetime ] = None ,
652663 _request_timeout : Union [
653664 None ,
654665 Annotated [StrictFloat , Field (gt = 0 )],
@@ -671,6 +682,10 @@ def count_inbound_sms_with_http_info(
671682 :type from_phone_number: str
672683 :param body:
673684 :type body: str
685+ :param start_date:
686+ :type start_date: datetime
687+ :param end_date:
688+ :type end_date: datetime
674689 :param _request_timeout: timeout setting for this request. If one
675690 number provided, it will be total request
676691 timeout. It can also be a pair (tuple) of
@@ -697,6 +712,8 @@ def count_inbound_sms_with_http_info(
697712 phone_number_id = phone_number_id ,
698713 from_phone_number = from_phone_number ,
699714 body = body ,
715+ start_date = start_date ,
716+ end_date = end_date ,
700717 _request_auth = _request_auth ,
701718 _content_type = _content_type ,
702719 _headers = _headers ,
@@ -726,6 +743,8 @@ def count_inbound_sms_without_preload_content(
726743 phone_number_id : Any ,
727744 from_phone_number : Optional [StrictStr ] = None ,
728745 body : Optional [StrictStr ] = None ,
746+ start_date : Optional [datetime ] = None ,
747+ end_date : Optional [datetime ] = None ,
729748 _request_timeout : Union [
730749 None ,
731750 Annotated [StrictFloat , Field (gt = 0 )],
@@ -748,6 +767,10 @@ def count_inbound_sms_without_preload_content(
748767 :type from_phone_number: str
749768 :param body:
750769 :type body: str
770+ :param start_date:
771+ :type start_date: datetime
772+ :param end_date:
773+ :type end_date: datetime
751774 :param _request_timeout: timeout setting for this request. If one
752775 number provided, it will be total request
753776 timeout. It can also be a pair (tuple) of
@@ -774,6 +797,8 @@ def count_inbound_sms_without_preload_content(
774797 phone_number_id = phone_number_id ,
775798 from_phone_number = from_phone_number ,
776799 body = body ,
800+ start_date = start_date ,
801+ end_date = end_date ,
777802 _request_auth = _request_auth ,
778803 _content_type = _content_type ,
779804 _headers = _headers ,
@@ -798,6 +823,8 @@ def _count_inbound_sms_serialize(
798823 phone_number_id ,
799824 from_phone_number ,
800825 body ,
826+ start_date ,
827+ end_date ,
801828 _request_auth ,
802829 _content_type ,
803830 _headers ,
@@ -828,6 +855,32 @@ def _count_inbound_sms_serialize(
828855
829856 _query_params .append (('body' , body ))
830857
858+ if start_date is not None :
859+ if isinstance (start_date , datetime ):
860+ _query_params .append (
861+ (
862+ 'startDate' ,
863+ start_date .strftime (
864+ self .api_client .configuration .datetime_format
865+ )
866+ )
867+ )
868+ else :
869+ _query_params .append (('startDate' , start_date ))
870+
871+ if end_date is not None :
872+ if isinstance (end_date , datetime ):
873+ _query_params .append (
874+ (
875+ 'endDate' ,
876+ end_date .strftime (
877+ self .api_client .configuration .datetime_format
878+ )
879+ )
880+ )
881+ else :
882+ _query_params .append (('endDate' , end_date ))
883+
831884 # process the header parameters
832885 # process the form parameters
833886 # process the body parameter
@@ -3561,6 +3614,8 @@ def fetch_inbound_smsby_page(
35613614 from_phone_number : Optional [StrictStr ] = None ,
35623615 page_size : Optional [Union [StrictFloat , StrictInt ]] = None ,
35633616 page_num : Optional [Union [StrictFloat , StrictInt ]] = None ,
3617+ start_date : Optional [datetime ] = None ,
3618+ end_date : Optional [datetime ] = None ,
35643619 _request_timeout : Union [
35653620 None ,
35663621 Annotated [StrictFloat , Field (gt = 0 )],
@@ -3585,6 +3640,10 @@ def fetch_inbound_smsby_page(
35853640 :type page_size: float
35863641 :param page_num:
35873642 :type page_num: float
3643+ :param start_date:
3644+ :type start_date: datetime
3645+ :param end_date:
3646+ :type end_date: datetime
35883647 :param _request_timeout: timeout setting for this request. If one
35893648 number provided, it will be total request
35903649 timeout. It can also be a pair (tuple) of
@@ -3612,6 +3671,8 @@ def fetch_inbound_smsby_page(
36123671 from_phone_number = from_phone_number ,
36133672 page_size = page_size ,
36143673 page_num = page_num ,
3674+ start_date = start_date ,
3675+ end_date = end_date ,
36153676 _request_auth = _request_auth ,
36163677 _content_type = _content_type ,
36173678 _headers = _headers ,
@@ -3642,6 +3703,8 @@ def fetch_inbound_smsby_page_with_http_info(
36423703 from_phone_number : Optional [StrictStr ] = None ,
36433704 page_size : Optional [Union [StrictFloat , StrictInt ]] = None ,
36443705 page_num : Optional [Union [StrictFloat , StrictInt ]] = None ,
3706+ start_date : Optional [datetime ] = None ,
3707+ end_date : Optional [datetime ] = None ,
36453708 _request_timeout : Union [
36463709 None ,
36473710 Annotated [StrictFloat , Field (gt = 0 )],
@@ -3666,6 +3729,10 @@ def fetch_inbound_smsby_page_with_http_info(
36663729 :type page_size: float
36673730 :param page_num:
36683731 :type page_num: float
3732+ :param start_date:
3733+ :type start_date: datetime
3734+ :param end_date:
3735+ :type end_date: datetime
36693736 :param _request_timeout: timeout setting for this request. If one
36703737 number provided, it will be total request
36713738 timeout. It can also be a pair (tuple) of
@@ -3693,6 +3760,8 @@ def fetch_inbound_smsby_page_with_http_info(
36933760 from_phone_number = from_phone_number ,
36943761 page_size = page_size ,
36953762 page_num = page_num ,
3763+ start_date = start_date ,
3764+ end_date = end_date ,
36963765 _request_auth = _request_auth ,
36973766 _content_type = _content_type ,
36983767 _headers = _headers ,
@@ -3723,6 +3792,8 @@ def fetch_inbound_smsby_page_without_preload_content(
37233792 from_phone_number : Optional [StrictStr ] = None ,
37243793 page_size : Optional [Union [StrictFloat , StrictInt ]] = None ,
37253794 page_num : Optional [Union [StrictFloat , StrictInt ]] = None ,
3795+ start_date : Optional [datetime ] = None ,
3796+ end_date : Optional [datetime ] = None ,
37263797 _request_timeout : Union [
37273798 None ,
37283799 Annotated [StrictFloat , Field (gt = 0 )],
@@ -3747,6 +3818,10 @@ def fetch_inbound_smsby_page_without_preload_content(
37473818 :type page_size: float
37483819 :param page_num:
37493820 :type page_num: float
3821+ :param start_date:
3822+ :type start_date: datetime
3823+ :param end_date:
3824+ :type end_date: datetime
37503825 :param _request_timeout: timeout setting for this request. If one
37513826 number provided, it will be total request
37523827 timeout. It can also be a pair (tuple) of
@@ -3774,6 +3849,8 @@ def fetch_inbound_smsby_page_without_preload_content(
37743849 from_phone_number = from_phone_number ,
37753850 page_size = page_size ,
37763851 page_num = page_num ,
3852+ start_date = start_date ,
3853+ end_date = end_date ,
37773854 _request_auth = _request_auth ,
37783855 _content_type = _content_type ,
37793856 _headers = _headers ,
@@ -3799,6 +3876,8 @@ def _fetch_inbound_smsby_page_serialize(
37993876 from_phone_number ,
38003877 page_size ,
38013878 page_num ,
3879+ start_date ,
3880+ end_date ,
38023881 _request_auth ,
38033882 _content_type ,
38043883 _headers ,
@@ -3833,6 +3912,32 @@ def _fetch_inbound_smsby_page_serialize(
38333912
38343913 _query_params .append (('pageNum' , page_num ))
38353914
3915+ if start_date is not None :
3916+ if isinstance (start_date , datetime ):
3917+ _query_params .append (
3918+ (
3919+ 'startDate' ,
3920+ start_date .strftime (
3921+ self .api_client .configuration .datetime_format
3922+ )
3923+ )
3924+ )
3925+ else :
3926+ _query_params .append (('startDate' , start_date ))
3927+
3928+ if end_date is not None :
3929+ if isinstance (end_date , datetime ):
3930+ _query_params .append (
3931+ (
3932+ 'endDate' ,
3933+ end_date .strftime (
3934+ self .api_client .configuration .datetime_format
3935+ )
3936+ )
3937+ )
3938+ else :
3939+ _query_params .append (('endDate' , end_date ))
3940+
38363941 # process the header parameters
38373942 # process the form parameters
38383943 # process the body parameter
0 commit comments