Skip to content

Commit 9757a9f

Browse files
author
johnturnham
committed
v2.1.600
1 parent 7a39589 commit 9757a9f

File tree

4 files changed

+233
-8
lines changed

4 files changed

+233
-8
lines changed

docs/MerchantApi.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ No authorization required
166166
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
167167

168168
# **count_inbound_sms**
169-
> WTCountResult count_inbound_sms(phone_number_id, from_phone_number=from_phone_number, body=body)
169+
> WTCountResult count_inbound_sms(phone_number_id, from_phone_number=from_phone_number, body=body, start_date=start_date, end_date=end_date)
170170
171171
Count inbound SMSes
172172

@@ -193,10 +193,12 @@ with wallet.ApiClient(configuration) as api_client:
193193
phone_number_id = None # object |
194194
from_phone_number = 'from_phone_number_example' # str | (optional)
195195
body = 'body_example' # str | (optional)
196+
start_date = '2013-10-20T19:20:30+01:00' # datetime | (optional)
197+
end_date = '2013-10-20T19:20:30+01:00' # datetime | (optional)
196198

197199
try:
198200
# Count inbound SMSes
199-
api_response = api_instance.count_inbound_sms(phone_number_id, from_phone_number=from_phone_number, body=body)
201+
api_response = api_instance.count_inbound_sms(phone_number_id, from_phone_number=from_phone_number, body=body, start_date=start_date, end_date=end_date)
200202
print("The response of MerchantApi->count_inbound_sms:\n")
201203
pprint(api_response)
202204
except Exception as e:
@@ -213,6 +215,8 @@ Name | Type | Description | Notes
213215
**phone_number_id** | [**object**](.md)| |
214216
**from_phone_number** | **str**| | [optional]
215217
**body** | **str**| | [optional]
218+
**start_date** | **datetime**| | [optional]
219+
**end_date** | **datetime**| | [optional]
216220

217221
### Return type
218222

@@ -926,7 +930,7 @@ No authorization required
926930
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
927931

928932
# **fetch_inbound_smsby_page**
929-
> FetchInboundSMSByPage200Response fetch_inbound_smsby_page(phone_number_id, from_phone_number=from_phone_number, page_size=page_size, page_num=page_num)
933+
> FetchInboundSMSByPage200Response fetch_inbound_smsby_page(phone_number_id, from_phone_number=from_phone_number, page_size=page_size, page_num=page_num, start_date=start_date, end_date=end_date)
930934
931935
Fetch inbound SMSes by page
932936

@@ -954,10 +958,12 @@ with wallet.ApiClient(configuration) as api_client:
954958
from_phone_number = 'from_phone_number_example' # str | (optional)
955959
page_size = 3.4 # float | (optional)
956960
page_num = 3.4 # float | (optional)
961+
start_date = '2013-10-20T19:20:30+01:00' # datetime | (optional)
962+
end_date = '2013-10-20T19:20:30+01:00' # datetime | (optional)
957963

958964
try:
959965
# Fetch inbound SMSes by page
960-
api_response = api_instance.fetch_inbound_smsby_page(phone_number_id, from_phone_number=from_phone_number, page_size=page_size, page_num=page_num)
966+
api_response = api_instance.fetch_inbound_smsby_page(phone_number_id, from_phone_number=from_phone_number, page_size=page_size, page_num=page_num, start_date=start_date, end_date=end_date)
961967
print("The response of MerchantApi->fetch_inbound_smsby_page:\n")
962968
pprint(api_response)
963969
except Exception as e:
@@ -975,6 +981,8 @@ Name | Type | Description | Notes
975981
**from_phone_number** | **str**| | [optional]
976982
**page_size** | **float**| | [optional]
977983
**page_num** | **float**| | [optional]
984+
**start_date** | **datetime**| | [optional]
985+
**end_date** | **datetime**| | [optional]
978986

979987
### Return type
980988

docs/SMSApi.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ No authorization required
485485
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
486486

487487
# **count_outbound_sms**
488-
> WTCountResult count_outbound_sms(phone_number_id, to_phone_number=to_phone_number, status=status, payment_object_broadcast_id=payment_object_broadcast_id)
488+
> WTCountResult count_outbound_sms(phone_number_id, to_phone_number=to_phone_number, status=status, payment_object_broadcast_id=payment_object_broadcast_id, start_date=start_date, end_date=end_date)
489489
490490
Count outbound SMS
491491

@@ -513,10 +513,12 @@ with wallet.ApiClient(configuration) as api_client:
513513
to_phone_number = 'to_phone_number_example' # str | (optional)
514514
status = 'status_example' # str | (optional)
515515
payment_object_broadcast_id = 'payment_object_broadcast_id_example' # str | (optional)
516+
start_date = '2013-10-20T19:20:30+01:00' # datetime | (optional)
517+
end_date = '2013-10-20T19:20:30+01:00' # datetime | (optional)
516518

517519
try:
518520
# Count outbound SMS
519-
api_response = api_instance.count_outbound_sms(phone_number_id, to_phone_number=to_phone_number, status=status, payment_object_broadcast_id=payment_object_broadcast_id)
521+
api_response = api_instance.count_outbound_sms(phone_number_id, to_phone_number=to_phone_number, status=status, payment_object_broadcast_id=payment_object_broadcast_id, start_date=start_date, end_date=end_date)
520522
print("The response of SMSApi->count_outbound_sms:\n")
521523
pprint(api_response)
522524
except Exception as e:
@@ -534,6 +536,8 @@ Name | Type | Description | Notes
534536
**to_phone_number** | **str**| | [optional]
535537
**status** | **str**| | [optional]
536538
**payment_object_broadcast_id** | **str**| | [optional]
539+
**start_date** | **datetime**| | [optional]
540+
**end_date** | **datetime**| | [optional]
537541

538542
### Return type
539543

@@ -1699,7 +1703,7 @@ No authorization required
16991703
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
17001704

17011705
# **fetch_outbound_smsby_page**
1702-
> FetchOutboundSMSByPage200Response fetch_outbound_smsby_page(phone_number_id, to_phone_number=to_phone_number, payment_object_broadcast_id=payment_object_broadcast_id, page_size=page_size, page_num=page_num, status=status)
1706+
> FetchOutboundSMSByPage200Response fetch_outbound_smsby_page(phone_number_id, to_phone_number=to_phone_number, payment_object_broadcast_id=payment_object_broadcast_id, page_size=page_size, page_num=page_num, status=status, start_date=start_date, end_date=end_date)
17031707
17041708
Fetch outbound SMSes by page
17051709

@@ -1729,10 +1733,12 @@ with wallet.ApiClient(configuration) as api_client:
17291733
page_size = 3.4 # float | (optional)
17301734
page_num = 3.4 # float | (optional)
17311735
status = wallet.SSOutboundStatuses() # SSOutboundStatuses | (optional)
1736+
start_date = '2013-10-20T19:20:30+01:00' # datetime | (optional)
1737+
end_date = '2013-10-20T19:20:30+01:00' # datetime | (optional)
17321738

17331739
try:
17341740
# Fetch outbound SMSes by page
1735-
api_response = api_instance.fetch_outbound_smsby_page(phone_number_id, to_phone_number=to_phone_number, payment_object_broadcast_id=payment_object_broadcast_id, page_size=page_size, page_num=page_num, status=status)
1741+
api_response = api_instance.fetch_outbound_smsby_page(phone_number_id, to_phone_number=to_phone_number, payment_object_broadcast_id=payment_object_broadcast_id, page_size=page_size, page_num=page_num, status=status, start_date=start_date, end_date=end_date)
17361742
print("The response of SMSApi->fetch_outbound_smsby_page:\n")
17371743
pprint(api_response)
17381744
except Exception as e:
@@ -1752,6 +1758,8 @@ Name | Type | Description | Notes
17521758
**page_size** | **float**| | [optional]
17531759
**page_num** | **float**| | [optional]
17541760
**status** | [**SSOutboundStatuses**](.md)| | [optional]
1761+
**start_date** | **datetime**| | [optional]
1762+
**end_date** | **datetime**| | [optional]
17551763

17561764
### Return type
17571765

wallet/api/merchant_api.py

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
from typing import Any, Dict, List, Optional, Tuple, Union
1818
from typing_extensions import Annotated
1919

20+
from datetime import datetime
2021
from pydantic import Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator
2122
from typing import Any, Optional, Union
2223
from 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

Comments
 (0)