alibabacloud-cams20200606 4.0.0__py3-none-any.whl → 4.0.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- alibabacloud_cams20200606/__init__.py +1 -1
- alibabacloud_cams20200606/client.py +118 -0
- alibabacloud_cams20200606/models/__init__.py +33 -1
- alibabacloud_cams20200606/models/_chatapp_sync_phone_number_response_body.py +263 -1
- alibabacloud_cams20200606/models/_create_flow_request.py +8 -0
- alibabacloud_cams20200606/models/_create_flow_shrink_request.py +8 -0
- alibabacloud_cams20200606/models/_get_flow_response_body.py +8 -0
- alibabacloud_cams20200606/models/_modify_flow_request.py +8 -0
- alibabacloud_cams20200606/models/_modify_flow_response_body.py +8 -0
- alibabacloud_cams20200606/models/_modify_flow_shrink_request.py +8 -0
- alibabacloud_cams20200606/models/_query_chatapp_phone_numbers_response_body.py +271 -1
- alibabacloud_cams20200606/models/_whatsapp_call_request.py +138 -0
- alibabacloud_cams20200606/models/_whatsapp_call_response.py +54 -0
- alibabacloud_cams20200606/models/_whatsapp_call_response_body.py +103 -0
- alibabacloud_cams20200606/models/_whatsapp_call_shrink_request.py +100 -0
- {alibabacloud_cams20200606-4.0.0.dist-info → alibabacloud_cams20200606-4.0.2.dist-info}/METADATA +2 -2
- {alibabacloud_cams20200606-4.0.0.dist-info → alibabacloud_cams20200606-4.0.2.dist-info}/RECORD +20 -16
- {alibabacloud_cams20200606-4.0.0.dist-info → alibabacloud_cams20200606-4.0.2.dist-info}/LICENSE +0 -0
- {alibabacloud_cams20200606-4.0.0.dist-info → alibabacloud_cams20200606-4.0.2.dist-info}/WHEEL +0 -0
- {alibabacloud_cams20200606-4.0.0.dist-info → alibabacloud_cams20200606-4.0.2.dist-info}/top_level.txt +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '4.0.
|
|
1
|
+
__version__ = '4.0.2'
|
|
@@ -2713,6 +2713,8 @@ class Client(OpenApiClient):
|
|
|
2713
2713
|
query['Categories'] = request.categories_shrink
|
|
2714
2714
|
if not DaraCore.is_null(request.cust_space_id):
|
|
2715
2715
|
query['CustSpaceId'] = request.cust_space_id
|
|
2716
|
+
if not DaraCore.is_null(request.endpoint_uri):
|
|
2717
|
+
query['EndpointUri'] = request.endpoint_uri
|
|
2716
2718
|
if not DaraCore.is_null(request.flow_name):
|
|
2717
2719
|
query['FlowName'] = request.flow_name
|
|
2718
2720
|
if not DaraCore.is_null(request.owner_id):
|
|
@@ -2755,6 +2757,8 @@ class Client(OpenApiClient):
|
|
|
2755
2757
|
query['Categories'] = request.categories_shrink
|
|
2756
2758
|
if not DaraCore.is_null(request.cust_space_id):
|
|
2757
2759
|
query['CustSpaceId'] = request.cust_space_id
|
|
2760
|
+
if not DaraCore.is_null(request.endpoint_uri):
|
|
2761
|
+
query['EndpointUri'] = request.endpoint_uri
|
|
2758
2762
|
if not DaraCore.is_null(request.flow_name):
|
|
2759
2763
|
query['FlowName'] = request.flow_name
|
|
2760
2764
|
if not DaraCore.is_null(request.owner_id):
|
|
@@ -11521,6 +11525,8 @@ class Client(OpenApiClient):
|
|
|
11521
11525
|
query['Categories'] = request.categories_shrink
|
|
11522
11526
|
if not DaraCore.is_null(request.cust_space_id):
|
|
11523
11527
|
query['CustSpaceId'] = request.cust_space_id
|
|
11528
|
+
if not DaraCore.is_null(request.endpoint_uri):
|
|
11529
|
+
query['EndpointUri'] = request.endpoint_uri
|
|
11524
11530
|
if not DaraCore.is_null(request.flow_id):
|
|
11525
11531
|
query['FlowId'] = request.flow_id
|
|
11526
11532
|
if not DaraCore.is_null(request.flow_name):
|
|
@@ -11565,6 +11571,8 @@ class Client(OpenApiClient):
|
|
|
11565
11571
|
query['Categories'] = request.categories_shrink
|
|
11566
11572
|
if not DaraCore.is_null(request.cust_space_id):
|
|
11567
11573
|
query['CustSpaceId'] = request.cust_space_id
|
|
11574
|
+
if not DaraCore.is_null(request.endpoint_uri):
|
|
11575
|
+
query['EndpointUri'] = request.endpoint_uri
|
|
11568
11576
|
if not DaraCore.is_null(request.flow_id):
|
|
11569
11577
|
query['FlowId'] = request.flow_id
|
|
11570
11578
|
if not DaraCore.is_null(request.flow_name):
|
|
@@ -15843,3 +15851,113 @@ class Client(OpenApiClient):
|
|
|
15843
15851
|
) -> main_models.UpdateWabaMmlStatusResponse:
|
|
15844
15852
|
runtime = RuntimeOptions()
|
|
15845
15853
|
return await self.update_waba_mml_status_with_options_async(request, runtime)
|
|
15854
|
+
|
|
15855
|
+
def whatsapp_call_with_options(
|
|
15856
|
+
self,
|
|
15857
|
+
tmp_req: main_models.WhatsappCallRequest,
|
|
15858
|
+
runtime: RuntimeOptions,
|
|
15859
|
+
) -> main_models.WhatsappCallResponse:
|
|
15860
|
+
tmp_req.validate()
|
|
15861
|
+
request = main_models.WhatsappCallShrinkRequest()
|
|
15862
|
+
Utils.convert(tmp_req, request)
|
|
15863
|
+
if not DaraCore.is_null(tmp_req.session):
|
|
15864
|
+
request.session_shrink = Utils.array_to_string_with_specified_style(tmp_req.session, 'Session', 'json')
|
|
15865
|
+
query = {}
|
|
15866
|
+
if not DaraCore.is_null(request.business_number):
|
|
15867
|
+
query['BusinessNumber'] = request.business_number
|
|
15868
|
+
if not DaraCore.is_null(request.call_action):
|
|
15869
|
+
query['CallAction'] = request.call_action
|
|
15870
|
+
if not DaraCore.is_null(request.call_id):
|
|
15871
|
+
query['CallId'] = request.call_id
|
|
15872
|
+
if not DaraCore.is_null(request.cust_space_id):
|
|
15873
|
+
query['CustSpaceId'] = request.cust_space_id
|
|
15874
|
+
if not DaraCore.is_null(request.owner_id):
|
|
15875
|
+
query['OwnerId'] = request.owner_id
|
|
15876
|
+
if not DaraCore.is_null(request.resource_owner_account):
|
|
15877
|
+
query['ResourceOwnerAccount'] = request.resource_owner_account
|
|
15878
|
+
if not DaraCore.is_null(request.resource_owner_id):
|
|
15879
|
+
query['ResourceOwnerId'] = request.resource_owner_id
|
|
15880
|
+
if not DaraCore.is_null(request.session_shrink):
|
|
15881
|
+
query['Session'] = request.session_shrink
|
|
15882
|
+
if not DaraCore.is_null(request.user_number):
|
|
15883
|
+
query['UserNumber'] = request.user_number
|
|
15884
|
+
req = open_api_util_models.OpenApiRequest(
|
|
15885
|
+
query = Utils.query(query)
|
|
15886
|
+
)
|
|
15887
|
+
params = open_api_util_models.Params(
|
|
15888
|
+
action = 'WhatsappCall',
|
|
15889
|
+
version = '2020-06-06',
|
|
15890
|
+
protocol = 'HTTPS',
|
|
15891
|
+
pathname = '/',
|
|
15892
|
+
method = 'POST',
|
|
15893
|
+
auth_type = 'AK',
|
|
15894
|
+
style = 'RPC',
|
|
15895
|
+
req_body_type = 'formData',
|
|
15896
|
+
body_type = 'json'
|
|
15897
|
+
)
|
|
15898
|
+
return DaraCore.from_map(
|
|
15899
|
+
main_models.WhatsappCallResponse(),
|
|
15900
|
+
self.call_api(params, req, runtime)
|
|
15901
|
+
)
|
|
15902
|
+
|
|
15903
|
+
async def whatsapp_call_with_options_async(
|
|
15904
|
+
self,
|
|
15905
|
+
tmp_req: main_models.WhatsappCallRequest,
|
|
15906
|
+
runtime: RuntimeOptions,
|
|
15907
|
+
) -> main_models.WhatsappCallResponse:
|
|
15908
|
+
tmp_req.validate()
|
|
15909
|
+
request = main_models.WhatsappCallShrinkRequest()
|
|
15910
|
+
Utils.convert(tmp_req, request)
|
|
15911
|
+
if not DaraCore.is_null(tmp_req.session):
|
|
15912
|
+
request.session_shrink = Utils.array_to_string_with_specified_style(tmp_req.session, 'Session', 'json')
|
|
15913
|
+
query = {}
|
|
15914
|
+
if not DaraCore.is_null(request.business_number):
|
|
15915
|
+
query['BusinessNumber'] = request.business_number
|
|
15916
|
+
if not DaraCore.is_null(request.call_action):
|
|
15917
|
+
query['CallAction'] = request.call_action
|
|
15918
|
+
if not DaraCore.is_null(request.call_id):
|
|
15919
|
+
query['CallId'] = request.call_id
|
|
15920
|
+
if not DaraCore.is_null(request.cust_space_id):
|
|
15921
|
+
query['CustSpaceId'] = request.cust_space_id
|
|
15922
|
+
if not DaraCore.is_null(request.owner_id):
|
|
15923
|
+
query['OwnerId'] = request.owner_id
|
|
15924
|
+
if not DaraCore.is_null(request.resource_owner_account):
|
|
15925
|
+
query['ResourceOwnerAccount'] = request.resource_owner_account
|
|
15926
|
+
if not DaraCore.is_null(request.resource_owner_id):
|
|
15927
|
+
query['ResourceOwnerId'] = request.resource_owner_id
|
|
15928
|
+
if not DaraCore.is_null(request.session_shrink):
|
|
15929
|
+
query['Session'] = request.session_shrink
|
|
15930
|
+
if not DaraCore.is_null(request.user_number):
|
|
15931
|
+
query['UserNumber'] = request.user_number
|
|
15932
|
+
req = open_api_util_models.OpenApiRequest(
|
|
15933
|
+
query = Utils.query(query)
|
|
15934
|
+
)
|
|
15935
|
+
params = open_api_util_models.Params(
|
|
15936
|
+
action = 'WhatsappCall',
|
|
15937
|
+
version = '2020-06-06',
|
|
15938
|
+
protocol = 'HTTPS',
|
|
15939
|
+
pathname = '/',
|
|
15940
|
+
method = 'POST',
|
|
15941
|
+
auth_type = 'AK',
|
|
15942
|
+
style = 'RPC',
|
|
15943
|
+
req_body_type = 'formData',
|
|
15944
|
+
body_type = 'json'
|
|
15945
|
+
)
|
|
15946
|
+
return DaraCore.from_map(
|
|
15947
|
+
main_models.WhatsappCallResponse(),
|
|
15948
|
+
await self.call_api_async(params, req, runtime)
|
|
15949
|
+
)
|
|
15950
|
+
|
|
15951
|
+
def whatsapp_call(
|
|
15952
|
+
self,
|
|
15953
|
+
request: main_models.WhatsappCallRequest,
|
|
15954
|
+
) -> main_models.WhatsappCallResponse:
|
|
15955
|
+
runtime = RuntimeOptions()
|
|
15956
|
+
return self.whatsapp_call_with_options(request, runtime)
|
|
15957
|
+
|
|
15958
|
+
async def whatsapp_call_async(
|
|
15959
|
+
self,
|
|
15960
|
+
request: main_models.WhatsappCallRequest,
|
|
15961
|
+
) -> main_models.WhatsappCallResponse:
|
|
15962
|
+
runtime = RuntimeOptions()
|
|
15963
|
+
return await self.whatsapp_call_with_options_async(request, runtime)
|
|
@@ -542,6 +542,10 @@ from ._update_phone_webhook_response import UpdatePhoneWebhookResponse
|
|
|
542
542
|
from ._update_waba_mml_status_request import UpdateWabaMmlStatusRequest
|
|
543
543
|
from ._update_waba_mml_status_response_body import UpdateWabaMmlStatusResponseBody
|
|
544
544
|
from ._update_waba_mml_status_response import UpdateWabaMmlStatusResponse
|
|
545
|
+
from ._whatsapp_call_request import WhatsappCallRequest
|
|
546
|
+
from ._whatsapp_call_shrink_request import WhatsappCallShrinkRequest
|
|
547
|
+
from ._whatsapp_call_response_body import WhatsappCallResponseBody
|
|
548
|
+
from ._whatsapp_call_response import WhatsappCallResponse
|
|
545
549
|
from ._add_address_recover_suspend_request import AddAddressRecoverSuspendRequestAuditRecord
|
|
546
550
|
from ._add_audit_viber_open_request import AddAuditViberOpenRequestAuditRecordCompanyAddress
|
|
547
551
|
from ._add_audit_viber_open_request import AddAuditViberOpenRequestAuditRecordCompanyTel
|
|
@@ -552,6 +556,11 @@ from ._bind_instagram_page_response_body import BindInstagramPageResponseBodyDat
|
|
|
552
556
|
from ._bind_messenger_page_response_body import BindMessengerPageResponseBodyData
|
|
553
557
|
from ._chatapp_bind_waba_response_body import ChatappBindWabaResponseBodyData
|
|
554
558
|
from ._chatapp_migration_verified_response_body import ChatappMigrationVerifiedResponseBodyData
|
|
559
|
+
from ._chatapp_sync_phone_number_response_body import ChatappSyncPhoneNumberResponseBodyPhoneNumbersCallingConfigureCallingCallHoursHolidaySchedule
|
|
560
|
+
from ._chatapp_sync_phone_number_response_body import ChatappSyncPhoneNumberResponseBodyPhoneNumbersCallingConfigureCallingCallHoursWeeklyOperatingHours
|
|
561
|
+
from ._chatapp_sync_phone_number_response_body import ChatappSyncPhoneNumberResponseBodyPhoneNumbersCallingConfigureCallingCallHours
|
|
562
|
+
from ._chatapp_sync_phone_number_response_body import ChatappSyncPhoneNumberResponseBodyPhoneNumbersCallingConfigureCalling
|
|
563
|
+
from ._chatapp_sync_phone_number_response_body import ChatappSyncPhoneNumberResponseBodyPhoneNumbersCallingConfigure
|
|
555
564
|
from ._chatapp_sync_phone_number_response_body import ChatappSyncPhoneNumberResponseBodyPhoneNumbers
|
|
556
565
|
from ._copy_template_response_body import CopyTemplateResponseBodyData
|
|
557
566
|
from ._create_chatapp_migration_initiate_response_body import CreateChatappMigrationInitiateResponseBodyData
|
|
@@ -659,6 +668,11 @@ from ._modify_chatapp_template_request import ModifyChatappTemplateRequestCompon
|
|
|
659
668
|
from ._modify_chatapp_template_response_body import ModifyChatappTemplateResponseBodyData
|
|
660
669
|
from ._modify_flow_response_body import ModifyFlowResponseBodyData
|
|
661
670
|
from ._query_chatapp_bind_waba_response_body import QueryChatappBindWabaResponseBodyData
|
|
671
|
+
from ._query_chatapp_phone_numbers_response_body import QueryChatappPhoneNumbersResponseBodyPhoneNumbersCallingConfigureCallingCallHoursHolidaySchedule
|
|
672
|
+
from ._query_chatapp_phone_numbers_response_body import QueryChatappPhoneNumbersResponseBodyPhoneNumbersCallingConfigureCallingCallHoursWeeklyOperatingHours
|
|
673
|
+
from ._query_chatapp_phone_numbers_response_body import QueryChatappPhoneNumbersResponseBodyPhoneNumbersCallingConfigureCallingCallHours
|
|
674
|
+
from ._query_chatapp_phone_numbers_response_body import QueryChatappPhoneNumbersResponseBodyPhoneNumbersCallingConfigureCalling
|
|
675
|
+
from ._query_chatapp_phone_numbers_response_body import QueryChatappPhoneNumbersResponseBodyPhoneNumbersCallingConfigure
|
|
662
676
|
from ._query_chatapp_phone_numbers_response_body import QueryChatappPhoneNumbersResponseBodyPhoneNumbers
|
|
663
677
|
from ._query_instance_response_body import QueryInstanceResponseBodyData
|
|
664
678
|
from ._query_phone_business_profile_response_body import QueryPhoneBusinessProfileResponseBodyData
|
|
@@ -680,6 +694,8 @@ from ._update_conversational_automation_request import UpdateConversationalAutom
|
|
|
680
694
|
from ._update_flow_jsonasset_response_body import UpdateFlowJSONAssetResponseBodyData
|
|
681
695
|
from ._update_instance_response_body import UpdateInstanceResponseBodyData
|
|
682
696
|
from ._update_phone_message_qrdl_response_body import UpdatePhoneMessageQrdlResponseBodyData
|
|
697
|
+
from ._whatsapp_call_request import WhatsappCallRequestSession
|
|
698
|
+
from ._whatsapp_call_response_body import WhatsappCallResponseBodyModel
|
|
683
699
|
|
|
684
700
|
__all__ = [
|
|
685
701
|
AddAddressRecoverSuspendRequest,
|
|
@@ -1222,6 +1238,10 @@ __all__ = [
|
|
|
1222
1238
|
UpdateWabaMmlStatusRequest,
|
|
1223
1239
|
UpdateWabaMmlStatusResponseBody,
|
|
1224
1240
|
UpdateWabaMmlStatusResponse,
|
|
1241
|
+
WhatsappCallRequest,
|
|
1242
|
+
WhatsappCallShrinkRequest,
|
|
1243
|
+
WhatsappCallResponseBody,
|
|
1244
|
+
WhatsappCallResponse,
|
|
1225
1245
|
AddAddressRecoverSuspendRequestAuditRecord,
|
|
1226
1246
|
AddAuditViberOpenRequestAuditRecordCompanyAddress,
|
|
1227
1247
|
AddAuditViberOpenRequestAuditRecordCompanyTel,
|
|
@@ -1232,6 +1252,11 @@ __all__ = [
|
|
|
1232
1252
|
BindMessengerPageResponseBodyData,
|
|
1233
1253
|
ChatappBindWabaResponseBodyData,
|
|
1234
1254
|
ChatappMigrationVerifiedResponseBodyData,
|
|
1255
|
+
ChatappSyncPhoneNumberResponseBodyPhoneNumbersCallingConfigureCallingCallHoursHolidaySchedule,
|
|
1256
|
+
ChatappSyncPhoneNumberResponseBodyPhoneNumbersCallingConfigureCallingCallHoursWeeklyOperatingHours,
|
|
1257
|
+
ChatappSyncPhoneNumberResponseBodyPhoneNumbersCallingConfigureCallingCallHours,
|
|
1258
|
+
ChatappSyncPhoneNumberResponseBodyPhoneNumbersCallingConfigureCalling,
|
|
1259
|
+
ChatappSyncPhoneNumberResponseBodyPhoneNumbersCallingConfigure,
|
|
1235
1260
|
ChatappSyncPhoneNumberResponseBodyPhoneNumbers,
|
|
1236
1261
|
CopyTemplateResponseBodyData,
|
|
1237
1262
|
CreateChatappMigrationInitiateResponseBodyData,
|
|
@@ -1339,6 +1364,11 @@ __all__ = [
|
|
|
1339
1364
|
ModifyChatappTemplateResponseBodyData,
|
|
1340
1365
|
ModifyFlowResponseBodyData,
|
|
1341
1366
|
QueryChatappBindWabaResponseBodyData,
|
|
1367
|
+
QueryChatappPhoneNumbersResponseBodyPhoneNumbersCallingConfigureCallingCallHoursHolidaySchedule,
|
|
1368
|
+
QueryChatappPhoneNumbersResponseBodyPhoneNumbersCallingConfigureCallingCallHoursWeeklyOperatingHours,
|
|
1369
|
+
QueryChatappPhoneNumbersResponseBodyPhoneNumbersCallingConfigureCallingCallHours,
|
|
1370
|
+
QueryChatappPhoneNumbersResponseBodyPhoneNumbersCallingConfigureCalling,
|
|
1371
|
+
QueryChatappPhoneNumbersResponseBodyPhoneNumbersCallingConfigure,
|
|
1342
1372
|
QueryChatappPhoneNumbersResponseBodyPhoneNumbers,
|
|
1343
1373
|
QueryInstanceResponseBodyData,
|
|
1344
1374
|
QueryPhoneBusinessProfileResponseBodyData,
|
|
@@ -1359,5 +1389,7 @@ __all__ = [
|
|
|
1359
1389
|
UpdateConversationalAutomationRequestCommands,
|
|
1360
1390
|
UpdateFlowJSONAssetResponseBodyData,
|
|
1361
1391
|
UpdateInstanceResponseBodyData,
|
|
1362
|
-
UpdatePhoneMessageQrdlResponseBodyData
|
|
1392
|
+
UpdatePhoneMessageQrdlResponseBodyData,
|
|
1393
|
+
WhatsappCallRequestSession,
|
|
1394
|
+
WhatsappCallResponseBodyModel
|
|
1363
1395
|
]
|
|
@@ -97,6 +97,7 @@ class ChatappSyncPhoneNumberResponseBody(DaraModel):
|
|
|
97
97
|
class ChatappSyncPhoneNumberResponseBodyPhoneNumbers(DaraModel):
|
|
98
98
|
def __init__(
|
|
99
99
|
self,
|
|
100
|
+
calling_configure: main_models.ChatappSyncPhoneNumberResponseBodyPhoneNumbersCallingConfigure = None,
|
|
100
101
|
code_verification_status: str = None,
|
|
101
102
|
is_official: str = None,
|
|
102
103
|
messaging_limit_tier: str = None,
|
|
@@ -111,6 +112,7 @@ class ChatappSyncPhoneNumberResponseBodyPhoneNumbers(DaraModel):
|
|
|
111
112
|
up_queue: str = None,
|
|
112
113
|
verified_name: str = None,
|
|
113
114
|
):
|
|
115
|
+
self.calling_configure = calling_configure
|
|
114
116
|
# The verification state of the phone number.
|
|
115
117
|
#
|
|
116
118
|
# Valid values:
|
|
@@ -166,13 +168,17 @@ class ChatappSyncPhoneNumberResponseBodyPhoneNumbers(DaraModel):
|
|
|
166
168
|
self.verified_name = verified_name
|
|
167
169
|
|
|
168
170
|
def validate(self):
|
|
169
|
-
|
|
171
|
+
if self.calling_configure:
|
|
172
|
+
self.calling_configure.validate()
|
|
170
173
|
|
|
171
174
|
def to_map(self):
|
|
172
175
|
result = dict()
|
|
173
176
|
_map = super().to_map()
|
|
174
177
|
if _map is not None:
|
|
175
178
|
result = _map
|
|
179
|
+
if self.calling_configure is not None:
|
|
180
|
+
result['CallingConfigure'] = self.calling_configure.to_map()
|
|
181
|
+
|
|
176
182
|
if self.code_verification_status is not None:
|
|
177
183
|
result['CodeVerificationStatus'] = self.code_verification_status
|
|
178
184
|
|
|
@@ -216,6 +222,10 @@ class ChatappSyncPhoneNumberResponseBodyPhoneNumbers(DaraModel):
|
|
|
216
222
|
|
|
217
223
|
def from_map(self, m: dict = None):
|
|
218
224
|
m = m or dict()
|
|
225
|
+
if m.get('CallingConfigure') is not None:
|
|
226
|
+
temp_model = main_models.ChatappSyncPhoneNumberResponseBodyPhoneNumbersCallingConfigure()
|
|
227
|
+
self.calling_configure = temp_model.from_map(m.get('CallingConfigure'))
|
|
228
|
+
|
|
219
229
|
if m.get('CodeVerificationStatus') is not None:
|
|
220
230
|
self.code_verification_status = m.get('CodeVerificationStatus')
|
|
221
231
|
|
|
@@ -257,3 +267,255 @@ class ChatappSyncPhoneNumberResponseBodyPhoneNumbers(DaraModel):
|
|
|
257
267
|
|
|
258
268
|
return self
|
|
259
269
|
|
|
270
|
+
class ChatappSyncPhoneNumberResponseBodyPhoneNumbersCallingConfigure(DaraModel):
|
|
271
|
+
def __init__(
|
|
272
|
+
self,
|
|
273
|
+
calling: main_models.ChatappSyncPhoneNumberResponseBodyPhoneNumbersCallingConfigureCalling = None,
|
|
274
|
+
calling_callback_url: str = None,
|
|
275
|
+
max_talk_time: int = None,
|
|
276
|
+
):
|
|
277
|
+
self.calling = calling
|
|
278
|
+
self.calling_callback_url = calling_callback_url
|
|
279
|
+
self.max_talk_time = max_talk_time
|
|
280
|
+
|
|
281
|
+
def validate(self):
|
|
282
|
+
if self.calling:
|
|
283
|
+
self.calling.validate()
|
|
284
|
+
|
|
285
|
+
def to_map(self):
|
|
286
|
+
result = dict()
|
|
287
|
+
_map = super().to_map()
|
|
288
|
+
if _map is not None:
|
|
289
|
+
result = _map
|
|
290
|
+
if self.calling is not None:
|
|
291
|
+
result['Calling'] = self.calling.to_map()
|
|
292
|
+
|
|
293
|
+
if self.calling_callback_url is not None:
|
|
294
|
+
result['CallingCallbackUrl'] = self.calling_callback_url
|
|
295
|
+
|
|
296
|
+
if self.max_talk_time is not None:
|
|
297
|
+
result['MaxTalkTime'] = self.max_talk_time
|
|
298
|
+
|
|
299
|
+
return result
|
|
300
|
+
|
|
301
|
+
def from_map(self, m: dict = None):
|
|
302
|
+
m = m or dict()
|
|
303
|
+
if m.get('Calling') is not None:
|
|
304
|
+
temp_model = main_models.ChatappSyncPhoneNumberResponseBodyPhoneNumbersCallingConfigureCalling()
|
|
305
|
+
self.calling = temp_model.from_map(m.get('Calling'))
|
|
306
|
+
|
|
307
|
+
if m.get('CallingCallbackUrl') is not None:
|
|
308
|
+
self.calling_callback_url = m.get('CallingCallbackUrl')
|
|
309
|
+
|
|
310
|
+
if m.get('MaxTalkTime') is not None:
|
|
311
|
+
self.max_talk_time = m.get('MaxTalkTime')
|
|
312
|
+
|
|
313
|
+
return self
|
|
314
|
+
|
|
315
|
+
class ChatappSyncPhoneNumberResponseBodyPhoneNumbersCallingConfigureCalling(DaraModel):
|
|
316
|
+
def __init__(
|
|
317
|
+
self,
|
|
318
|
+
call_hours: main_models.ChatappSyncPhoneNumberResponseBodyPhoneNumbersCallingConfigureCallingCallHours = None,
|
|
319
|
+
call_icon_visibility: str = None,
|
|
320
|
+
callback_permission_status: str = None,
|
|
321
|
+
status: str = None,
|
|
322
|
+
):
|
|
323
|
+
self.call_hours = call_hours
|
|
324
|
+
self.call_icon_visibility = call_icon_visibility
|
|
325
|
+
self.callback_permission_status = callback_permission_status
|
|
326
|
+
self.status = status
|
|
327
|
+
|
|
328
|
+
def validate(self):
|
|
329
|
+
if self.call_hours:
|
|
330
|
+
self.call_hours.validate()
|
|
331
|
+
|
|
332
|
+
def to_map(self):
|
|
333
|
+
result = dict()
|
|
334
|
+
_map = super().to_map()
|
|
335
|
+
if _map is not None:
|
|
336
|
+
result = _map
|
|
337
|
+
if self.call_hours is not None:
|
|
338
|
+
result['CallHours'] = self.call_hours.to_map()
|
|
339
|
+
|
|
340
|
+
if self.call_icon_visibility is not None:
|
|
341
|
+
result['CallIconVisibility'] = self.call_icon_visibility
|
|
342
|
+
|
|
343
|
+
if self.callback_permission_status is not None:
|
|
344
|
+
result['CallbackPermissionStatus'] = self.callback_permission_status
|
|
345
|
+
|
|
346
|
+
if self.status is not None:
|
|
347
|
+
result['Status'] = self.status
|
|
348
|
+
|
|
349
|
+
return result
|
|
350
|
+
|
|
351
|
+
def from_map(self, m: dict = None):
|
|
352
|
+
m = m or dict()
|
|
353
|
+
if m.get('CallHours') is not None:
|
|
354
|
+
temp_model = main_models.ChatappSyncPhoneNumberResponseBodyPhoneNumbersCallingConfigureCallingCallHours()
|
|
355
|
+
self.call_hours = temp_model.from_map(m.get('CallHours'))
|
|
356
|
+
|
|
357
|
+
if m.get('CallIconVisibility') is not None:
|
|
358
|
+
self.call_icon_visibility = m.get('CallIconVisibility')
|
|
359
|
+
|
|
360
|
+
if m.get('CallbackPermissionStatus') is not None:
|
|
361
|
+
self.callback_permission_status = m.get('CallbackPermissionStatus')
|
|
362
|
+
|
|
363
|
+
if m.get('Status') is not None:
|
|
364
|
+
self.status = m.get('Status')
|
|
365
|
+
|
|
366
|
+
return self
|
|
367
|
+
|
|
368
|
+
class ChatappSyncPhoneNumberResponseBodyPhoneNumbersCallingConfigureCallingCallHours(DaraModel):
|
|
369
|
+
def __init__(
|
|
370
|
+
self,
|
|
371
|
+
holiday_schedule: List[main_models.ChatappSyncPhoneNumberResponseBodyPhoneNumbersCallingConfigureCallingCallHoursHolidaySchedule] = None,
|
|
372
|
+
status: str = None,
|
|
373
|
+
timezone_id: str = None,
|
|
374
|
+
weekly_operating_hours: List[main_models.ChatappSyncPhoneNumberResponseBodyPhoneNumbersCallingConfigureCallingCallHoursWeeklyOperatingHours] = None,
|
|
375
|
+
):
|
|
376
|
+
self.holiday_schedule = holiday_schedule
|
|
377
|
+
self.status = status
|
|
378
|
+
self.timezone_id = timezone_id
|
|
379
|
+
self.weekly_operating_hours = weekly_operating_hours
|
|
380
|
+
|
|
381
|
+
def validate(self):
|
|
382
|
+
if self.holiday_schedule:
|
|
383
|
+
for v1 in self.holiday_schedule:
|
|
384
|
+
if v1:
|
|
385
|
+
v1.validate()
|
|
386
|
+
if self.weekly_operating_hours:
|
|
387
|
+
for v1 in self.weekly_operating_hours:
|
|
388
|
+
if v1:
|
|
389
|
+
v1.validate()
|
|
390
|
+
|
|
391
|
+
def to_map(self):
|
|
392
|
+
result = dict()
|
|
393
|
+
_map = super().to_map()
|
|
394
|
+
if _map is not None:
|
|
395
|
+
result = _map
|
|
396
|
+
result['HolidaySchedule'] = []
|
|
397
|
+
if self.holiday_schedule is not None:
|
|
398
|
+
for k1 in self.holiday_schedule:
|
|
399
|
+
result['HolidaySchedule'].append(k1.to_map() if k1 else None)
|
|
400
|
+
|
|
401
|
+
if self.status is not None:
|
|
402
|
+
result['Status'] = self.status
|
|
403
|
+
|
|
404
|
+
if self.timezone_id is not None:
|
|
405
|
+
result['TimezoneId'] = self.timezone_id
|
|
406
|
+
|
|
407
|
+
result['WeeklyOperatingHours'] = []
|
|
408
|
+
if self.weekly_operating_hours is not None:
|
|
409
|
+
for k1 in self.weekly_operating_hours:
|
|
410
|
+
result['WeeklyOperatingHours'].append(k1.to_map() if k1 else None)
|
|
411
|
+
|
|
412
|
+
return result
|
|
413
|
+
|
|
414
|
+
def from_map(self, m: dict = None):
|
|
415
|
+
m = m or dict()
|
|
416
|
+
self.holiday_schedule = []
|
|
417
|
+
if m.get('HolidaySchedule') is not None:
|
|
418
|
+
for k1 in m.get('HolidaySchedule'):
|
|
419
|
+
temp_model = main_models.ChatappSyncPhoneNumberResponseBodyPhoneNumbersCallingConfigureCallingCallHoursHolidaySchedule()
|
|
420
|
+
self.holiday_schedule.append(temp_model.from_map(k1))
|
|
421
|
+
|
|
422
|
+
if m.get('Status') is not None:
|
|
423
|
+
self.status = m.get('Status')
|
|
424
|
+
|
|
425
|
+
if m.get('TimezoneId') is not None:
|
|
426
|
+
self.timezone_id = m.get('TimezoneId')
|
|
427
|
+
|
|
428
|
+
self.weekly_operating_hours = []
|
|
429
|
+
if m.get('WeeklyOperatingHours') is not None:
|
|
430
|
+
for k1 in m.get('WeeklyOperatingHours'):
|
|
431
|
+
temp_model = main_models.ChatappSyncPhoneNumberResponseBodyPhoneNumbersCallingConfigureCallingCallHoursWeeklyOperatingHours()
|
|
432
|
+
self.weekly_operating_hours.append(temp_model.from_map(k1))
|
|
433
|
+
|
|
434
|
+
return self
|
|
435
|
+
|
|
436
|
+
class ChatappSyncPhoneNumberResponseBodyPhoneNumbersCallingConfigureCallingCallHoursWeeklyOperatingHours(DaraModel):
|
|
437
|
+
def __init__(
|
|
438
|
+
self,
|
|
439
|
+
close_time: str = None,
|
|
440
|
+
day_of_week: str = None,
|
|
441
|
+
open_time: str = None,
|
|
442
|
+
):
|
|
443
|
+
self.close_time = close_time
|
|
444
|
+
self.day_of_week = day_of_week
|
|
445
|
+
self.open_time = open_time
|
|
446
|
+
|
|
447
|
+
def validate(self):
|
|
448
|
+
pass
|
|
449
|
+
|
|
450
|
+
def to_map(self):
|
|
451
|
+
result = dict()
|
|
452
|
+
_map = super().to_map()
|
|
453
|
+
if _map is not None:
|
|
454
|
+
result = _map
|
|
455
|
+
if self.close_time is not None:
|
|
456
|
+
result['CloseTime'] = self.close_time
|
|
457
|
+
|
|
458
|
+
if self.day_of_week is not None:
|
|
459
|
+
result['DayOfWeek'] = self.day_of_week
|
|
460
|
+
|
|
461
|
+
if self.open_time is not None:
|
|
462
|
+
result['OpenTime'] = self.open_time
|
|
463
|
+
|
|
464
|
+
return result
|
|
465
|
+
|
|
466
|
+
def from_map(self, m: dict = None):
|
|
467
|
+
m = m or dict()
|
|
468
|
+
if m.get('CloseTime') is not None:
|
|
469
|
+
self.close_time = m.get('CloseTime')
|
|
470
|
+
|
|
471
|
+
if m.get('DayOfWeek') is not None:
|
|
472
|
+
self.day_of_week = m.get('DayOfWeek')
|
|
473
|
+
|
|
474
|
+
if m.get('OpenTime') is not None:
|
|
475
|
+
self.open_time = m.get('OpenTime')
|
|
476
|
+
|
|
477
|
+
return self
|
|
478
|
+
|
|
479
|
+
class ChatappSyncPhoneNumberResponseBodyPhoneNumbersCallingConfigureCallingCallHoursHolidaySchedule(DaraModel):
|
|
480
|
+
def __init__(
|
|
481
|
+
self,
|
|
482
|
+
date: str = None,
|
|
483
|
+
end_time: str = None,
|
|
484
|
+
start_time: str = None,
|
|
485
|
+
):
|
|
486
|
+
self.date = date
|
|
487
|
+
self.end_time = end_time
|
|
488
|
+
self.start_time = start_time
|
|
489
|
+
|
|
490
|
+
def validate(self):
|
|
491
|
+
pass
|
|
492
|
+
|
|
493
|
+
def to_map(self):
|
|
494
|
+
result = dict()
|
|
495
|
+
_map = super().to_map()
|
|
496
|
+
if _map is not None:
|
|
497
|
+
result = _map
|
|
498
|
+
if self.date is not None:
|
|
499
|
+
result['Date'] = self.date
|
|
500
|
+
|
|
501
|
+
if self.end_time is not None:
|
|
502
|
+
result['EndTime'] = self.end_time
|
|
503
|
+
|
|
504
|
+
if self.start_time is not None:
|
|
505
|
+
result['StartTime'] = self.start_time
|
|
506
|
+
|
|
507
|
+
return result
|
|
508
|
+
|
|
509
|
+
def from_map(self, m: dict = None):
|
|
510
|
+
m = m or dict()
|
|
511
|
+
if m.get('Date') is not None:
|
|
512
|
+
self.date = m.get('Date')
|
|
513
|
+
|
|
514
|
+
if m.get('EndTime') is not None:
|
|
515
|
+
self.end_time = m.get('EndTime')
|
|
516
|
+
|
|
517
|
+
if m.get('StartTime') is not None:
|
|
518
|
+
self.start_time = m.get('StartTime')
|
|
519
|
+
|
|
520
|
+
return self
|
|
521
|
+
|
|
@@ -11,6 +11,7 @@ class CreateFlowRequest(DaraModel):
|
|
|
11
11
|
self,
|
|
12
12
|
categories: List[str] = None,
|
|
13
13
|
cust_space_id: str = None,
|
|
14
|
+
endpoint_uri: str = None,
|
|
14
15
|
flow_name: str = None,
|
|
15
16
|
owner_id: int = None,
|
|
16
17
|
resource_owner_account: str = None,
|
|
@@ -19,6 +20,7 @@ class CreateFlowRequest(DaraModel):
|
|
|
19
20
|
# This parameter is required.
|
|
20
21
|
self.categories = categories
|
|
21
22
|
self.cust_space_id = cust_space_id
|
|
23
|
+
self.endpoint_uri = endpoint_uri
|
|
22
24
|
# This parameter is required.
|
|
23
25
|
self.flow_name = flow_name
|
|
24
26
|
self.owner_id = owner_id
|
|
@@ -39,6 +41,9 @@ class CreateFlowRequest(DaraModel):
|
|
|
39
41
|
if self.cust_space_id is not None:
|
|
40
42
|
result['CustSpaceId'] = self.cust_space_id
|
|
41
43
|
|
|
44
|
+
if self.endpoint_uri is not None:
|
|
45
|
+
result['EndpointUri'] = self.endpoint_uri
|
|
46
|
+
|
|
42
47
|
if self.flow_name is not None:
|
|
43
48
|
result['FlowName'] = self.flow_name
|
|
44
49
|
|
|
@@ -61,6 +66,9 @@ class CreateFlowRequest(DaraModel):
|
|
|
61
66
|
if m.get('CustSpaceId') is not None:
|
|
62
67
|
self.cust_space_id = m.get('CustSpaceId')
|
|
63
68
|
|
|
69
|
+
if m.get('EndpointUri') is not None:
|
|
70
|
+
self.endpoint_uri = m.get('EndpointUri')
|
|
71
|
+
|
|
64
72
|
if m.get('FlowName') is not None:
|
|
65
73
|
self.flow_name = m.get('FlowName')
|
|
66
74
|
|
|
@@ -9,6 +9,7 @@ class CreateFlowShrinkRequest(DaraModel):
|
|
|
9
9
|
self,
|
|
10
10
|
categories_shrink: str = None,
|
|
11
11
|
cust_space_id: str = None,
|
|
12
|
+
endpoint_uri: str = None,
|
|
12
13
|
flow_name: str = None,
|
|
13
14
|
owner_id: int = None,
|
|
14
15
|
resource_owner_account: str = None,
|
|
@@ -17,6 +18,7 @@ class CreateFlowShrinkRequest(DaraModel):
|
|
|
17
18
|
# This parameter is required.
|
|
18
19
|
self.categories_shrink = categories_shrink
|
|
19
20
|
self.cust_space_id = cust_space_id
|
|
21
|
+
self.endpoint_uri = endpoint_uri
|
|
20
22
|
# This parameter is required.
|
|
21
23
|
self.flow_name = flow_name
|
|
22
24
|
self.owner_id = owner_id
|
|
@@ -37,6 +39,9 @@ class CreateFlowShrinkRequest(DaraModel):
|
|
|
37
39
|
if self.cust_space_id is not None:
|
|
38
40
|
result['CustSpaceId'] = self.cust_space_id
|
|
39
41
|
|
|
42
|
+
if self.endpoint_uri is not None:
|
|
43
|
+
result['EndpointUri'] = self.endpoint_uri
|
|
44
|
+
|
|
40
45
|
if self.flow_name is not None:
|
|
41
46
|
result['FlowName'] = self.flow_name
|
|
42
47
|
|
|
@@ -59,6 +64,9 @@ class CreateFlowShrinkRequest(DaraModel):
|
|
|
59
64
|
if m.get('CustSpaceId') is not None:
|
|
60
65
|
self.cust_space_id = m.get('CustSpaceId')
|
|
61
66
|
|
|
67
|
+
if m.get('EndpointUri') is not None:
|
|
68
|
+
self.endpoint_uri = m.get('EndpointUri')
|
|
69
|
+
|
|
62
70
|
if m.get('FlowName') is not None:
|
|
63
71
|
self.flow_name = m.get('FlowName')
|
|
64
72
|
|
|
@@ -77,6 +77,7 @@ class GetFlowResponseBodyData(DaraModel):
|
|
|
77
77
|
self,
|
|
78
78
|
categories: List[str] = None,
|
|
79
79
|
data_api_version: str = None,
|
|
80
|
+
endpoint_uri: str = None,
|
|
80
81
|
flow_id: str = None,
|
|
81
82
|
flow_name: str = None,
|
|
82
83
|
jsonversion: str = None,
|
|
@@ -88,6 +89,7 @@ class GetFlowResponseBodyData(DaraModel):
|
|
|
88
89
|
self.categories = categories
|
|
89
90
|
# The version number of the API.
|
|
90
91
|
self.data_api_version = data_api_version
|
|
92
|
+
self.endpoint_uri = endpoint_uri
|
|
91
93
|
# The Flow ID.
|
|
92
94
|
self.flow_id = flow_id
|
|
93
95
|
# The Flow name.
|
|
@@ -141,6 +143,9 @@ class GetFlowResponseBodyData(DaraModel):
|
|
|
141
143
|
if self.data_api_version is not None:
|
|
142
144
|
result['DataApiVersion'] = self.data_api_version
|
|
143
145
|
|
|
146
|
+
if self.endpoint_uri is not None:
|
|
147
|
+
result['EndpointUri'] = self.endpoint_uri
|
|
148
|
+
|
|
144
149
|
if self.flow_id is not None:
|
|
145
150
|
result['FlowId'] = self.flow_id
|
|
146
151
|
|
|
@@ -169,6 +174,9 @@ class GetFlowResponseBodyData(DaraModel):
|
|
|
169
174
|
if m.get('DataApiVersion') is not None:
|
|
170
175
|
self.data_api_version = m.get('DataApiVersion')
|
|
171
176
|
|
|
177
|
+
if m.get('EndpointUri') is not None:
|
|
178
|
+
self.endpoint_uri = m.get('EndpointUri')
|
|
179
|
+
|
|
172
180
|
if m.get('FlowId') is not None:
|
|
173
181
|
self.flow_id = m.get('FlowId')
|
|
174
182
|
|
|
@@ -11,6 +11,7 @@ class ModifyFlowRequest(DaraModel):
|
|
|
11
11
|
self,
|
|
12
12
|
categories: List[str] = None,
|
|
13
13
|
cust_space_id: str = None,
|
|
14
|
+
endpoint_uri: str = None,
|
|
14
15
|
flow_id: str = None,
|
|
15
16
|
flow_name: str = None,
|
|
16
17
|
owner_id: int = None,
|
|
@@ -20,6 +21,7 @@ class ModifyFlowRequest(DaraModel):
|
|
|
20
21
|
# This parameter is required.
|
|
21
22
|
self.categories = categories
|
|
22
23
|
self.cust_space_id = cust_space_id
|
|
24
|
+
self.endpoint_uri = endpoint_uri
|
|
23
25
|
self.flow_id = flow_id
|
|
24
26
|
# This parameter is required.
|
|
25
27
|
self.flow_name = flow_name
|
|
@@ -41,6 +43,9 @@ class ModifyFlowRequest(DaraModel):
|
|
|
41
43
|
if self.cust_space_id is not None:
|
|
42
44
|
result['CustSpaceId'] = self.cust_space_id
|
|
43
45
|
|
|
46
|
+
if self.endpoint_uri is not None:
|
|
47
|
+
result['EndpointUri'] = self.endpoint_uri
|
|
48
|
+
|
|
44
49
|
if self.flow_id is not None:
|
|
45
50
|
result['FlowId'] = self.flow_id
|
|
46
51
|
|
|
@@ -66,6 +71,9 @@ class ModifyFlowRequest(DaraModel):
|
|
|
66
71
|
if m.get('CustSpaceId') is not None:
|
|
67
72
|
self.cust_space_id = m.get('CustSpaceId')
|
|
68
73
|
|
|
74
|
+
if m.get('EndpointUri') is not None:
|
|
75
|
+
self.endpoint_uri = m.get('EndpointUri')
|
|
76
|
+
|
|
69
77
|
if m.get('FlowId') is not None:
|
|
70
78
|
self.flow_id = m.get('FlowId')
|
|
71
79
|
|