ultracart-rest-sdk 4.1.11__py3-none-any.whl → 4.1.13__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.
- ultracart/__init__.py +1 -1
- ultracart/api/conversation_api.py +261 -0
- ultracart/api_client.py +1 -1
- ultracart/configuration.py +1 -1
- ultracart/model/conversation.py +8 -0
- ultracart/model/conversation_virtual_agent_capabilities.py +296 -0
- ultracart/model/conversation_virtual_agent_capabilities_response.py +292 -0
- ultracart/model/item_restriction.py +4 -0
- ultracart/models/__init__.py +2 -0
- {ultracart_rest_sdk-4.1.11.dist-info → ultracart_rest_sdk-4.1.13.dist-info}/METADATA +1 -1
- {ultracart_rest_sdk-4.1.11.dist-info → ultracart_rest_sdk-4.1.13.dist-info}/RECORD +14 -12
- {ultracart_rest_sdk-4.1.11.dist-info → ultracart_rest_sdk-4.1.13.dist-info}/LICENSE +0 -0
- {ultracart_rest_sdk-4.1.11.dist-info → ultracart_rest_sdk-4.1.13.dist-info}/WHEEL +0 -0
- {ultracart_rest_sdk-4.1.11.dist-info → ultracart_rest_sdk-4.1.13.dist-info}/top_level.txt +0 -0
ultracart/__init__.py
CHANGED
|
@@ -81,6 +81,8 @@ from ultracart.model.conversation_start_request import ConversationStartRequest
|
|
|
81
81
|
from ultracart.model.conversation_start_response import ConversationStartResponse
|
|
82
82
|
from ultracart.model.conversation_virtual_agent_budget import ConversationVirtualAgentBudget
|
|
83
83
|
from ultracart.model.conversation_virtual_agent_budget_response import ConversationVirtualAgentBudgetResponse
|
|
84
|
+
from ultracart.model.conversation_virtual_agent_capabilities import ConversationVirtualAgentCapabilities
|
|
85
|
+
from ultracart.model.conversation_virtual_agent_capabilities_response import ConversationVirtualAgentCapabilitiesResponse
|
|
84
86
|
from ultracart.model.conversation_webchat_context import ConversationWebchatContext
|
|
85
87
|
from ultracart.model.conversation_webchat_queue_status_update_request import ConversationWebchatQueueStatusUpdateRequest
|
|
86
88
|
from ultracart.model.conversation_webchat_queue_statuses_response import ConversationWebchatQueueStatusesResponse
|
|
@@ -2815,6 +2817,51 @@ class ConversationApi(object):
|
|
|
2815
2817
|
},
|
|
2816
2818
|
api_client=api_client
|
|
2817
2819
|
)
|
|
2820
|
+
self.get_virtual_agent_capabilities_endpoint = _Endpoint(
|
|
2821
|
+
settings={
|
|
2822
|
+
'response_type': (ConversationVirtualAgentCapabilitiesResponse,),
|
|
2823
|
+
'auth': [
|
|
2824
|
+
'ultraCartOauth',
|
|
2825
|
+
'ultraCartSimpleApiKey'
|
|
2826
|
+
],
|
|
2827
|
+
'endpoint_path': '/conversation/virtualagent/capabilities',
|
|
2828
|
+
'operation_id': 'get_virtual_agent_capabilities',
|
|
2829
|
+
'http_method': 'GET',
|
|
2830
|
+
'servers': None,
|
|
2831
|
+
},
|
|
2832
|
+
params_map={
|
|
2833
|
+
'all': [
|
|
2834
|
+
],
|
|
2835
|
+
'required': [],
|
|
2836
|
+
'nullable': [
|
|
2837
|
+
],
|
|
2838
|
+
'enum': [
|
|
2839
|
+
],
|
|
2840
|
+
'validation': [
|
|
2841
|
+
]
|
|
2842
|
+
},
|
|
2843
|
+
root_map={
|
|
2844
|
+
'validations': {
|
|
2845
|
+
},
|
|
2846
|
+
'allowed_values': {
|
|
2847
|
+
},
|
|
2848
|
+
'openapi_types': {
|
|
2849
|
+
},
|
|
2850
|
+
'attribute_map': {
|
|
2851
|
+
},
|
|
2852
|
+
'location_map': {
|
|
2853
|
+
},
|
|
2854
|
+
'collection_format_map': {
|
|
2855
|
+
}
|
|
2856
|
+
},
|
|
2857
|
+
headers_map={
|
|
2858
|
+
'accept': [
|
|
2859
|
+
'application/json'
|
|
2860
|
+
],
|
|
2861
|
+
'content_type': [],
|
|
2862
|
+
},
|
|
2863
|
+
api_client=api_client
|
|
2864
|
+
)
|
|
2818
2865
|
self.insert_conversation_canned_message_endpoint = _Endpoint(
|
|
2819
2866
|
settings={
|
|
2820
2867
|
'response_type': (ConversationCannedMessageResponse,),
|
|
@@ -4588,6 +4635,59 @@ class ConversationApi(object):
|
|
|
4588
4635
|
},
|
|
4589
4636
|
api_client=api_client
|
|
4590
4637
|
)
|
|
4638
|
+
self.update_virtual_agent_capabilities_endpoint = _Endpoint(
|
|
4639
|
+
settings={
|
|
4640
|
+
'response_type': (ConversationVirtualAgentCapabilitiesResponse,),
|
|
4641
|
+
'auth': [
|
|
4642
|
+
'ultraCartOauth',
|
|
4643
|
+
'ultraCartSimpleApiKey'
|
|
4644
|
+
],
|
|
4645
|
+
'endpoint_path': '/conversation/virtualagent/capabilities',
|
|
4646
|
+
'operation_id': 'update_virtual_agent_capabilities',
|
|
4647
|
+
'http_method': 'PUT',
|
|
4648
|
+
'servers': None,
|
|
4649
|
+
},
|
|
4650
|
+
params_map={
|
|
4651
|
+
'all': [
|
|
4652
|
+
'virtual_agent_capabilities',
|
|
4653
|
+
],
|
|
4654
|
+
'required': [
|
|
4655
|
+
'virtual_agent_capabilities',
|
|
4656
|
+
],
|
|
4657
|
+
'nullable': [
|
|
4658
|
+
],
|
|
4659
|
+
'enum': [
|
|
4660
|
+
],
|
|
4661
|
+
'validation': [
|
|
4662
|
+
]
|
|
4663
|
+
},
|
|
4664
|
+
root_map={
|
|
4665
|
+
'validations': {
|
|
4666
|
+
},
|
|
4667
|
+
'allowed_values': {
|
|
4668
|
+
},
|
|
4669
|
+
'openapi_types': {
|
|
4670
|
+
'virtual_agent_capabilities':
|
|
4671
|
+
(ConversationVirtualAgentCapabilities,),
|
|
4672
|
+
},
|
|
4673
|
+
'attribute_map': {
|
|
4674
|
+
},
|
|
4675
|
+
'location_map': {
|
|
4676
|
+
'virtual_agent_capabilities': 'body',
|
|
4677
|
+
},
|
|
4678
|
+
'collection_format_map': {
|
|
4679
|
+
}
|
|
4680
|
+
},
|
|
4681
|
+
headers_map={
|
|
4682
|
+
'accept': [
|
|
4683
|
+
'application/json'
|
|
4684
|
+
],
|
|
4685
|
+
'content_type': [
|
|
4686
|
+
'application/json'
|
|
4687
|
+
]
|
|
4688
|
+
},
|
|
4689
|
+
api_client=api_client
|
|
4690
|
+
)
|
|
4591
4691
|
|
|
4592
4692
|
def delete_conversation_canned_message(
|
|
4593
4693
|
self,
|
|
@@ -8979,6 +9079,84 @@ class ConversationApi(object):
|
|
|
8979
9079
|
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
8980
9080
|
return self.get_virtual_agent_budget_endpoint.call_with_http_info(**kwargs)
|
|
8981
9081
|
|
|
9082
|
+
def get_virtual_agent_capabilities(
|
|
9083
|
+
self,
|
|
9084
|
+
**kwargs
|
|
9085
|
+
):
|
|
9086
|
+
"""Get virtual agent capabilities # noqa: E501
|
|
9087
|
+
|
|
9088
|
+
Retrieve virtual agent capabilities # noqa: E501
|
|
9089
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
9090
|
+
asynchronous HTTP request, please pass async_req=True
|
|
9091
|
+
|
|
9092
|
+
>>> thread = api.get_virtual_agent_capabilities(async_req=True)
|
|
9093
|
+
>>> result = thread.get()
|
|
9094
|
+
|
|
9095
|
+
|
|
9096
|
+
Keyword Args:
|
|
9097
|
+
_return_http_data_only (bool): response data without head status
|
|
9098
|
+
code and headers. Default is True.
|
|
9099
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
9100
|
+
will be returned without reading/decoding response data.
|
|
9101
|
+
Default is True.
|
|
9102
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
9103
|
+
one number provided, it will be total request timeout. It can also
|
|
9104
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
9105
|
+
Default is None.
|
|
9106
|
+
_check_input_type (bool): specifies if type checking
|
|
9107
|
+
should be done one the data sent to the server.
|
|
9108
|
+
Default is True.
|
|
9109
|
+
_check_return_type (bool): specifies if type checking
|
|
9110
|
+
should be done one the data received from the server.
|
|
9111
|
+
Default is True.
|
|
9112
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
9113
|
+
are serialized names, as specified in the OpenAPI document.
|
|
9114
|
+
False if the variable names in the input data
|
|
9115
|
+
are pythonic names, e.g. snake case (default)
|
|
9116
|
+
_content_type (str/None): force body content-type.
|
|
9117
|
+
Default is None and content-type will be predicted by allowed
|
|
9118
|
+
content-types and body.
|
|
9119
|
+
_host_index (int/None): specifies the index of the server
|
|
9120
|
+
that we want to use.
|
|
9121
|
+
Default is read from the configuration.
|
|
9122
|
+
_request_auths (list): set to override the auth_settings for an a single
|
|
9123
|
+
request; this effectively ignores the authentication
|
|
9124
|
+
in the spec for a single request.
|
|
9125
|
+
Default is None
|
|
9126
|
+
async_req (bool): execute request asynchronously
|
|
9127
|
+
|
|
9128
|
+
Returns:
|
|
9129
|
+
ConversationVirtualAgentCapabilitiesResponse
|
|
9130
|
+
If the method is called asynchronously, returns the request
|
|
9131
|
+
thread.
|
|
9132
|
+
"""
|
|
9133
|
+
kwargs['async_req'] = kwargs.get(
|
|
9134
|
+
'async_req', False
|
|
9135
|
+
)
|
|
9136
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
9137
|
+
'_return_http_data_only', True
|
|
9138
|
+
)
|
|
9139
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
9140
|
+
'_preload_content', True
|
|
9141
|
+
)
|
|
9142
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
9143
|
+
'_request_timeout', None
|
|
9144
|
+
)
|
|
9145
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
9146
|
+
'_check_input_type', True
|
|
9147
|
+
)
|
|
9148
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
9149
|
+
'_check_return_type', True
|
|
9150
|
+
)
|
|
9151
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
9152
|
+
'_spec_property_naming', False
|
|
9153
|
+
)
|
|
9154
|
+
kwargs['_content_type'] = kwargs.get(
|
|
9155
|
+
'_content_type')
|
|
9156
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
9157
|
+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
9158
|
+
return self.get_virtual_agent_capabilities_endpoint.call_with_http_info(**kwargs)
|
|
9159
|
+
|
|
8982
9160
|
def insert_conversation_canned_message(
|
|
8983
9161
|
self,
|
|
8984
9162
|
canned_message,
|
|
@@ -11688,3 +11866,86 @@ class ConversationApi(object):
|
|
|
11688
11866
|
virtual_agent_budget
|
|
11689
11867
|
return self.update_virtual_agent_budget_endpoint.call_with_http_info(**kwargs)
|
|
11690
11868
|
|
|
11869
|
+
def update_virtual_agent_capabilities(
|
|
11870
|
+
self,
|
|
11871
|
+
virtual_agent_capabilities,
|
|
11872
|
+
**kwargs
|
|
11873
|
+
):
|
|
11874
|
+
"""Update virtual agent capabilities # noqa: E501
|
|
11875
|
+
|
|
11876
|
+
Update virtual agent capabilities # noqa: E501
|
|
11877
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
11878
|
+
asynchronous HTTP request, please pass async_req=True
|
|
11879
|
+
|
|
11880
|
+
>>> thread = api.update_virtual_agent_capabilities(virtual_agent_capabilities, async_req=True)
|
|
11881
|
+
>>> result = thread.get()
|
|
11882
|
+
|
|
11883
|
+
Args:
|
|
11884
|
+
virtual_agent_capabilities (ConversationVirtualAgentCapabilities): Virtual Agent Capabilities
|
|
11885
|
+
|
|
11886
|
+
Keyword Args:
|
|
11887
|
+
_return_http_data_only (bool): response data without head status
|
|
11888
|
+
code and headers. Default is True.
|
|
11889
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
11890
|
+
will be returned without reading/decoding response data.
|
|
11891
|
+
Default is True.
|
|
11892
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
11893
|
+
one number provided, it will be total request timeout. It can also
|
|
11894
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
11895
|
+
Default is None.
|
|
11896
|
+
_check_input_type (bool): specifies if type checking
|
|
11897
|
+
should be done one the data sent to the server.
|
|
11898
|
+
Default is True.
|
|
11899
|
+
_check_return_type (bool): specifies if type checking
|
|
11900
|
+
should be done one the data received from the server.
|
|
11901
|
+
Default is True.
|
|
11902
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
11903
|
+
are serialized names, as specified in the OpenAPI document.
|
|
11904
|
+
False if the variable names in the input data
|
|
11905
|
+
are pythonic names, e.g. snake case (default)
|
|
11906
|
+
_content_type (str/None): force body content-type.
|
|
11907
|
+
Default is None and content-type will be predicted by allowed
|
|
11908
|
+
content-types and body.
|
|
11909
|
+
_host_index (int/None): specifies the index of the server
|
|
11910
|
+
that we want to use.
|
|
11911
|
+
Default is read from the configuration.
|
|
11912
|
+
_request_auths (list): set to override the auth_settings for an a single
|
|
11913
|
+
request; this effectively ignores the authentication
|
|
11914
|
+
in the spec for a single request.
|
|
11915
|
+
Default is None
|
|
11916
|
+
async_req (bool): execute request asynchronously
|
|
11917
|
+
|
|
11918
|
+
Returns:
|
|
11919
|
+
ConversationVirtualAgentCapabilitiesResponse
|
|
11920
|
+
If the method is called asynchronously, returns the request
|
|
11921
|
+
thread.
|
|
11922
|
+
"""
|
|
11923
|
+
kwargs['async_req'] = kwargs.get(
|
|
11924
|
+
'async_req', False
|
|
11925
|
+
)
|
|
11926
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
11927
|
+
'_return_http_data_only', True
|
|
11928
|
+
)
|
|
11929
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
11930
|
+
'_preload_content', True
|
|
11931
|
+
)
|
|
11932
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
11933
|
+
'_request_timeout', None
|
|
11934
|
+
)
|
|
11935
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
11936
|
+
'_check_input_type', True
|
|
11937
|
+
)
|
|
11938
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
11939
|
+
'_check_return_type', True
|
|
11940
|
+
)
|
|
11941
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
11942
|
+
'_spec_property_naming', False
|
|
11943
|
+
)
|
|
11944
|
+
kwargs['_content_type'] = kwargs.get(
|
|
11945
|
+
'_content_type')
|
|
11946
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
11947
|
+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
11948
|
+
kwargs['virtual_agent_capabilities'] = \
|
|
11949
|
+
virtual_agent_capabilities
|
|
11950
|
+
return self.update_virtual_agent_capabilities_endpoint.call_with_http_info(**kwargs)
|
|
11951
|
+
|
ultracart/api_client.py
CHANGED
|
@@ -77,7 +77,7 @@ class ApiClient(object):
|
|
|
77
77
|
self.default_headers[header_name] = header_value
|
|
78
78
|
self.cookie = cookie
|
|
79
79
|
# Set default User-Agent.
|
|
80
|
-
self.user_agent = 'OpenAPI-Generator/4.1.
|
|
80
|
+
self.user_agent = 'OpenAPI-Generator/4.1.13/python'
|
|
81
81
|
|
|
82
82
|
def __enter__(self):
|
|
83
83
|
return self
|
ultracart/configuration.py
CHANGED
|
@@ -422,7 +422,7 @@ conf = ultracart.Configuration(
|
|
|
422
422
|
"OS: {env}\n"\
|
|
423
423
|
"Python Version: {pyversion}\n"\
|
|
424
424
|
"Version of the API: 2.0.0\n"\
|
|
425
|
-
"SDK Package Version: 4.1.
|
|
425
|
+
"SDK Package Version: 4.1.13".\
|
|
426
426
|
format(env=sys.platform, pyversion=sys.version)
|
|
427
427
|
|
|
428
428
|
def get_host_settings(self):
|
ultracart/model/conversation.py
CHANGED
|
@@ -114,6 +114,8 @@ class Conversation(ModelNormal):
|
|
|
114
114
|
'sentiment': (ConversationSentiment,), # noqa: E501
|
|
115
115
|
'start_dts': (str,), # noqa: E501
|
|
116
116
|
'unread_messages': (bool,), # noqa: E501
|
|
117
|
+
'virtual_agent': (bool,), # noqa: E501
|
|
118
|
+
'virtual_agent_cost': (float,), # noqa: E501
|
|
117
119
|
'visible': (bool,), # noqa: E501
|
|
118
120
|
}
|
|
119
121
|
|
|
@@ -141,6 +143,8 @@ class Conversation(ModelNormal):
|
|
|
141
143
|
'sentiment': 'sentiment', # noqa: E501
|
|
142
144
|
'start_dts': 'start_dts', # noqa: E501
|
|
143
145
|
'unread_messages': 'unread_messages', # noqa: E501
|
|
146
|
+
'virtual_agent': 'virtual_agent', # noqa: E501
|
|
147
|
+
'virtual_agent_cost': 'virtual_agent_cost', # noqa: E501
|
|
144
148
|
'visible': 'visible', # noqa: E501
|
|
145
149
|
}
|
|
146
150
|
|
|
@@ -203,6 +207,8 @@ class Conversation(ModelNormal):
|
|
|
203
207
|
sentiment (ConversationSentiment): [optional] # noqa: E501
|
|
204
208
|
start_dts (str): Start of the conversation date/time. [optional] # noqa: E501
|
|
205
209
|
unread_messages (bool): [optional] # noqa: E501
|
|
210
|
+
virtual_agent (bool): True if a virtual agent answered the conversation. [optional] # noqa: E501
|
|
211
|
+
virtual_agent_cost (float): The cost of this conversation performed by the virtual agent. [optional] # noqa: E501
|
|
206
212
|
visible (bool): [optional] # noqa: E501
|
|
207
213
|
"""
|
|
208
214
|
|
|
@@ -307,6 +313,8 @@ class Conversation(ModelNormal):
|
|
|
307
313
|
sentiment (ConversationSentiment): [optional] # noqa: E501
|
|
308
314
|
start_dts (str): Start of the conversation date/time. [optional] # noqa: E501
|
|
309
315
|
unread_messages (bool): [optional] # noqa: E501
|
|
316
|
+
virtual_agent (bool): True if a virtual agent answered the conversation. [optional] # noqa: E501
|
|
317
|
+
virtual_agent_cost (float): The cost of this conversation performed by the virtual agent. [optional] # noqa: E501
|
|
310
318
|
visible (bool): [optional] # noqa: E501
|
|
311
319
|
"""
|
|
312
320
|
|
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
"""
|
|
2
|
+
UltraCart Rest API V2
|
|
3
|
+
|
|
4
|
+
UltraCart REST API Version 2 # noqa: E501
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
|
7
|
+
Contact: support@ultracart.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
"""
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
import re # noqa: F401
|
|
13
|
+
import sys # noqa: F401
|
|
14
|
+
|
|
15
|
+
from ultracart.model_utils import ( # noqa: F401
|
|
16
|
+
ApiTypeError,
|
|
17
|
+
ModelComposed,
|
|
18
|
+
ModelNormal,
|
|
19
|
+
ModelSimple,
|
|
20
|
+
cached_property,
|
|
21
|
+
change_keys_js_to_python,
|
|
22
|
+
convert_js_args_to_python_args,
|
|
23
|
+
date,
|
|
24
|
+
datetime,
|
|
25
|
+
file_type,
|
|
26
|
+
none_type,
|
|
27
|
+
validate_get_composed_info,
|
|
28
|
+
OpenApiModel
|
|
29
|
+
)
|
|
30
|
+
from ultracart.exceptions import ApiAttributeError
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
class ConversationVirtualAgentCapabilities(ModelNormal):
|
|
35
|
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
36
|
+
Ref: https://openapi-generator.tech
|
|
37
|
+
|
|
38
|
+
Do not edit the class manually.
|
|
39
|
+
|
|
40
|
+
Attributes:
|
|
41
|
+
allowed_values (dict): The key is the tuple path to the attribute
|
|
42
|
+
and the for var_name this is (var_name,). The value is a dict
|
|
43
|
+
with a capitalized key describing the allowed value and an allowed
|
|
44
|
+
value. These dicts store the allowed enum values.
|
|
45
|
+
attribute_map (dict): The key is attribute name
|
|
46
|
+
and the value is json key in definition.
|
|
47
|
+
discriminator_value_class_map (dict): A dict to go from the discriminator
|
|
48
|
+
variable value to the discriminator class name.
|
|
49
|
+
validations (dict): The key is the tuple path to the attribute
|
|
50
|
+
and the for var_name this is (var_name,). The value is a dict
|
|
51
|
+
that stores validations for max_length, min_length, max_items,
|
|
52
|
+
min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
|
|
53
|
+
inclusive_minimum, and regex.
|
|
54
|
+
additional_properties_type (tuple): A tuple of classes accepted
|
|
55
|
+
as additional properties values.
|
|
56
|
+
"""
|
|
57
|
+
|
|
58
|
+
allowed_values = {
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
validations = {
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
@cached_property
|
|
65
|
+
def additional_properties_type():
|
|
66
|
+
"""
|
|
67
|
+
This must be a method because a model may have properties that are
|
|
68
|
+
of type self, this must run after the class is loaded
|
|
69
|
+
"""
|
|
70
|
+
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
|
|
71
|
+
|
|
72
|
+
_nullable = False
|
|
73
|
+
|
|
74
|
+
@cached_property
|
|
75
|
+
def openapi_types():
|
|
76
|
+
"""
|
|
77
|
+
This must be a method because a model may have properties that are
|
|
78
|
+
of type self, this must run after the class is loaded
|
|
79
|
+
|
|
80
|
+
Returns
|
|
81
|
+
openapi_types (dict): The key is attribute name
|
|
82
|
+
and the value is attribute type.
|
|
83
|
+
"""
|
|
84
|
+
return {
|
|
85
|
+
'cancel_subscription': (bool,), # noqa: E501
|
|
86
|
+
'delay_subscription': (bool,), # noqa: E501
|
|
87
|
+
'lookup_order_information': (bool,), # noqa: E501
|
|
88
|
+
'lookup_subscription_information': (bool,), # noqa: E501
|
|
89
|
+
'open_support_ticket': (bool,), # noqa: E501
|
|
90
|
+
'pause_subscription': (bool,), # noqa: E501
|
|
91
|
+
'resume_subscription': (bool,), # noqa: E501
|
|
92
|
+
'transfer_chat_to_live_agent': (bool,), # noqa: E501
|
|
93
|
+
'update_subscription_credit_card': (bool,), # noqa: E501
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
@cached_property
|
|
97
|
+
def discriminator():
|
|
98
|
+
return None
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
attribute_map = {
|
|
102
|
+
'cancel_subscription': 'cancel_subscription', # noqa: E501
|
|
103
|
+
'delay_subscription': 'delay_subscription', # noqa: E501
|
|
104
|
+
'lookup_order_information': 'lookup_order_information', # noqa: E501
|
|
105
|
+
'lookup_subscription_information': 'lookup_subscription_information', # noqa: E501
|
|
106
|
+
'open_support_ticket': 'open_support_ticket', # noqa: E501
|
|
107
|
+
'pause_subscription': 'pause_subscription', # noqa: E501
|
|
108
|
+
'resume_subscription': 'resume_subscription', # noqa: E501
|
|
109
|
+
'transfer_chat_to_live_agent': 'transfer_chat_to_live_agent', # noqa: E501
|
|
110
|
+
'update_subscription_credit_card': 'update_subscription_credit_card', # noqa: E501
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
read_only_vars = {
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
_composed_schemas = {}
|
|
117
|
+
|
|
118
|
+
@classmethod
|
|
119
|
+
@convert_js_args_to_python_args
|
|
120
|
+
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
121
|
+
"""ConversationVirtualAgentCapabilities - a model defined in OpenAPI
|
|
122
|
+
|
|
123
|
+
Keyword Args:
|
|
124
|
+
_check_type (bool): if True, values for parameters in openapi_types
|
|
125
|
+
will be type checked and a TypeError will be
|
|
126
|
+
raised if the wrong type is input.
|
|
127
|
+
Defaults to True
|
|
128
|
+
_path_to_item (tuple/list): This is a list of keys or values to
|
|
129
|
+
drill down to the model in received_data
|
|
130
|
+
when deserializing a response
|
|
131
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
132
|
+
are serialized names, as specified in the OpenAPI document.
|
|
133
|
+
False if the variable names in the input data
|
|
134
|
+
are pythonic names, e.g. snake case (default)
|
|
135
|
+
_configuration (Configuration): the instance to use when
|
|
136
|
+
deserializing a file_type parameter.
|
|
137
|
+
If passed, type conversion is attempted
|
|
138
|
+
If omitted no type conversion is done.
|
|
139
|
+
_visited_composed_classes (tuple): This stores a tuple of
|
|
140
|
+
classes that we have traveled through so that
|
|
141
|
+
if we see that class again we will not use its
|
|
142
|
+
discriminator again.
|
|
143
|
+
When traveling through a discriminator, the
|
|
144
|
+
composed schema that is
|
|
145
|
+
is traveled through is added to this set.
|
|
146
|
+
For example if Animal has a discriminator
|
|
147
|
+
petType and we pass in "Dog", and the class Dog
|
|
148
|
+
allOf includes Animal, we move through Animal
|
|
149
|
+
once using the discriminator, and pick Dog.
|
|
150
|
+
Then in Dog, we will make an instance of the
|
|
151
|
+
Animal class but this time we won't travel
|
|
152
|
+
through its discriminator because we passed in
|
|
153
|
+
_visited_composed_classes = (Animal,)
|
|
154
|
+
cancel_subscription (bool): [optional] # noqa: E501
|
|
155
|
+
delay_subscription (bool): [optional] # noqa: E501
|
|
156
|
+
lookup_order_information (bool): [optional] # noqa: E501
|
|
157
|
+
lookup_subscription_information (bool): [optional] # noqa: E501
|
|
158
|
+
open_support_ticket (bool): [optional] # noqa: E501
|
|
159
|
+
pause_subscription (bool): [optional] # noqa: E501
|
|
160
|
+
resume_subscription (bool): [optional] # noqa: E501
|
|
161
|
+
transfer_chat_to_live_agent (bool): [optional] # noqa: E501
|
|
162
|
+
update_subscription_credit_card (bool): [optional] # noqa: E501
|
|
163
|
+
"""
|
|
164
|
+
|
|
165
|
+
_check_type = kwargs.pop('_check_type', True)
|
|
166
|
+
_spec_property_naming = kwargs.pop('_spec_property_naming', True)
|
|
167
|
+
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
168
|
+
_configuration = kwargs.pop('_configuration', None)
|
|
169
|
+
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
170
|
+
|
|
171
|
+
self = super(OpenApiModel, cls).__new__(cls)
|
|
172
|
+
|
|
173
|
+
if args:
|
|
174
|
+
for arg in args:
|
|
175
|
+
if isinstance(arg, dict):
|
|
176
|
+
kwargs.update(arg)
|
|
177
|
+
else:
|
|
178
|
+
raise ApiTypeError(
|
|
179
|
+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
180
|
+
args,
|
|
181
|
+
self.__class__.__name__,
|
|
182
|
+
),
|
|
183
|
+
path_to_item=_path_to_item,
|
|
184
|
+
valid_classes=(self.__class__,),
|
|
185
|
+
)
|
|
186
|
+
|
|
187
|
+
self._data_store = {}
|
|
188
|
+
self._check_type = _check_type
|
|
189
|
+
self._spec_property_naming = _spec_property_naming
|
|
190
|
+
self._path_to_item = _path_to_item
|
|
191
|
+
self._configuration = _configuration
|
|
192
|
+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
193
|
+
|
|
194
|
+
for var_name, var_value in kwargs.items():
|
|
195
|
+
if var_name not in self.attribute_map and \
|
|
196
|
+
self._configuration is not None and \
|
|
197
|
+
self._configuration.discard_unknown_keys and \
|
|
198
|
+
self.additional_properties_type is None:
|
|
199
|
+
# discard variable.
|
|
200
|
+
continue
|
|
201
|
+
setattr(self, var_name, var_value)
|
|
202
|
+
return self
|
|
203
|
+
|
|
204
|
+
required_properties = set([
|
|
205
|
+
'_data_store',
|
|
206
|
+
'_check_type',
|
|
207
|
+
'_spec_property_naming',
|
|
208
|
+
'_path_to_item',
|
|
209
|
+
'_configuration',
|
|
210
|
+
'_visited_composed_classes',
|
|
211
|
+
])
|
|
212
|
+
|
|
213
|
+
@convert_js_args_to_python_args
|
|
214
|
+
def __init__(self, *args, **kwargs): # noqa: E501
|
|
215
|
+
"""ConversationVirtualAgentCapabilities - a model defined in OpenAPI
|
|
216
|
+
|
|
217
|
+
Keyword Args:
|
|
218
|
+
_check_type (bool): if True, values for parameters in openapi_types
|
|
219
|
+
will be type checked and a TypeError will be
|
|
220
|
+
raised if the wrong type is input.
|
|
221
|
+
Defaults to True
|
|
222
|
+
_path_to_item (tuple/list): This is a list of keys or values to
|
|
223
|
+
drill down to the model in received_data
|
|
224
|
+
when deserializing a response
|
|
225
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
226
|
+
are serialized names, as specified in the OpenAPI document.
|
|
227
|
+
False if the variable names in the input data
|
|
228
|
+
are pythonic names, e.g. snake case (default)
|
|
229
|
+
_configuration (Configuration): the instance to use when
|
|
230
|
+
deserializing a file_type parameter.
|
|
231
|
+
If passed, type conversion is attempted
|
|
232
|
+
If omitted no type conversion is done.
|
|
233
|
+
_visited_composed_classes (tuple): This stores a tuple of
|
|
234
|
+
classes that we have traveled through so that
|
|
235
|
+
if we see that class again we will not use its
|
|
236
|
+
discriminator again.
|
|
237
|
+
When traveling through a discriminator, the
|
|
238
|
+
composed schema that is
|
|
239
|
+
is traveled through is added to this set.
|
|
240
|
+
For example if Animal has a discriminator
|
|
241
|
+
petType and we pass in "Dog", and the class Dog
|
|
242
|
+
allOf includes Animal, we move through Animal
|
|
243
|
+
once using the discriminator, and pick Dog.
|
|
244
|
+
Then in Dog, we will make an instance of the
|
|
245
|
+
Animal class but this time we won't travel
|
|
246
|
+
through its discriminator because we passed in
|
|
247
|
+
_visited_composed_classes = (Animal,)
|
|
248
|
+
cancel_subscription (bool): [optional] # noqa: E501
|
|
249
|
+
delay_subscription (bool): [optional] # noqa: E501
|
|
250
|
+
lookup_order_information (bool): [optional] # noqa: E501
|
|
251
|
+
lookup_subscription_information (bool): [optional] # noqa: E501
|
|
252
|
+
open_support_ticket (bool): [optional] # noqa: E501
|
|
253
|
+
pause_subscription (bool): [optional] # noqa: E501
|
|
254
|
+
resume_subscription (bool): [optional] # noqa: E501
|
|
255
|
+
transfer_chat_to_live_agent (bool): [optional] # noqa: E501
|
|
256
|
+
update_subscription_credit_card (bool): [optional] # noqa: E501
|
|
257
|
+
"""
|
|
258
|
+
|
|
259
|
+
_check_type = kwargs.pop('_check_type', True)
|
|
260
|
+
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
|
|
261
|
+
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
262
|
+
_configuration = kwargs.pop('_configuration', None)
|
|
263
|
+
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
264
|
+
|
|
265
|
+
if args:
|
|
266
|
+
for arg in args:
|
|
267
|
+
if isinstance(arg, dict):
|
|
268
|
+
kwargs.update(arg)
|
|
269
|
+
else:
|
|
270
|
+
raise ApiTypeError(
|
|
271
|
+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
272
|
+
args,
|
|
273
|
+
self.__class__.__name__,
|
|
274
|
+
),
|
|
275
|
+
path_to_item=_path_to_item,
|
|
276
|
+
valid_classes=(self.__class__,),
|
|
277
|
+
)
|
|
278
|
+
|
|
279
|
+
self._data_store = {}
|
|
280
|
+
self._check_type = _check_type
|
|
281
|
+
self._spec_property_naming = _spec_property_naming
|
|
282
|
+
self._path_to_item = _path_to_item
|
|
283
|
+
self._configuration = _configuration
|
|
284
|
+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
285
|
+
|
|
286
|
+
for var_name, var_value in kwargs.items():
|
|
287
|
+
if var_name not in self.attribute_map and \
|
|
288
|
+
self._configuration is not None and \
|
|
289
|
+
self._configuration.discard_unknown_keys and \
|
|
290
|
+
self.additional_properties_type is None:
|
|
291
|
+
# discard variable.
|
|
292
|
+
continue
|
|
293
|
+
setattr(self, var_name, var_value)
|
|
294
|
+
if var_name in self.read_only_vars:
|
|
295
|
+
raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
|
|
296
|
+
f"class with read only attributes.")
|
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
"""
|
|
2
|
+
UltraCart Rest API V2
|
|
3
|
+
|
|
4
|
+
UltraCart REST API Version 2 # noqa: E501
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
|
7
|
+
Contact: support@ultracart.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
"""
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
import re # noqa: F401
|
|
13
|
+
import sys # noqa: F401
|
|
14
|
+
|
|
15
|
+
from ultracart.model_utils import ( # noqa: F401
|
|
16
|
+
ApiTypeError,
|
|
17
|
+
ModelComposed,
|
|
18
|
+
ModelNormal,
|
|
19
|
+
ModelSimple,
|
|
20
|
+
cached_property,
|
|
21
|
+
change_keys_js_to_python,
|
|
22
|
+
convert_js_args_to_python_args,
|
|
23
|
+
date,
|
|
24
|
+
datetime,
|
|
25
|
+
file_type,
|
|
26
|
+
none_type,
|
|
27
|
+
validate_get_composed_info,
|
|
28
|
+
OpenApiModel
|
|
29
|
+
)
|
|
30
|
+
from ultracart.exceptions import ApiAttributeError
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
def lazy_import():
|
|
34
|
+
from ultracart.model.conversation_virtual_agent_capabilities import ConversationVirtualAgentCapabilities
|
|
35
|
+
from ultracart.model.error import Error
|
|
36
|
+
from ultracart.model.response_metadata import ResponseMetadata
|
|
37
|
+
from ultracart.model.warning import Warning
|
|
38
|
+
globals()['ConversationVirtualAgentCapabilities'] = ConversationVirtualAgentCapabilities
|
|
39
|
+
globals()['Error'] = Error
|
|
40
|
+
globals()['ResponseMetadata'] = ResponseMetadata
|
|
41
|
+
globals()['Warning'] = Warning
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
class ConversationVirtualAgentCapabilitiesResponse(ModelNormal):
|
|
45
|
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
46
|
+
Ref: https://openapi-generator.tech
|
|
47
|
+
|
|
48
|
+
Do not edit the class manually.
|
|
49
|
+
|
|
50
|
+
Attributes:
|
|
51
|
+
allowed_values (dict): The key is the tuple path to the attribute
|
|
52
|
+
and the for var_name this is (var_name,). The value is a dict
|
|
53
|
+
with a capitalized key describing the allowed value and an allowed
|
|
54
|
+
value. These dicts store the allowed enum values.
|
|
55
|
+
attribute_map (dict): The key is attribute name
|
|
56
|
+
and the value is json key in definition.
|
|
57
|
+
discriminator_value_class_map (dict): A dict to go from the discriminator
|
|
58
|
+
variable value to the discriminator class name.
|
|
59
|
+
validations (dict): The key is the tuple path to the attribute
|
|
60
|
+
and the for var_name this is (var_name,). The value is a dict
|
|
61
|
+
that stores validations for max_length, min_length, max_items,
|
|
62
|
+
min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
|
|
63
|
+
inclusive_minimum, and regex.
|
|
64
|
+
additional_properties_type (tuple): A tuple of classes accepted
|
|
65
|
+
as additional properties values.
|
|
66
|
+
"""
|
|
67
|
+
|
|
68
|
+
allowed_values = {
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
validations = {
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
@cached_property
|
|
75
|
+
def additional_properties_type():
|
|
76
|
+
"""
|
|
77
|
+
This must be a method because a model may have properties that are
|
|
78
|
+
of type self, this must run after the class is loaded
|
|
79
|
+
"""
|
|
80
|
+
lazy_import()
|
|
81
|
+
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
|
|
82
|
+
|
|
83
|
+
_nullable = False
|
|
84
|
+
|
|
85
|
+
@cached_property
|
|
86
|
+
def openapi_types():
|
|
87
|
+
"""
|
|
88
|
+
This must be a method because a model may have properties that are
|
|
89
|
+
of type self, this must run after the class is loaded
|
|
90
|
+
|
|
91
|
+
Returns
|
|
92
|
+
openapi_types (dict): The key is attribute name
|
|
93
|
+
and the value is attribute type.
|
|
94
|
+
"""
|
|
95
|
+
lazy_import()
|
|
96
|
+
return {
|
|
97
|
+
'capabilities': (ConversationVirtualAgentCapabilities,), # noqa: E501
|
|
98
|
+
'error': (Error,), # noqa: E501
|
|
99
|
+
'metadata': (ResponseMetadata,), # noqa: E501
|
|
100
|
+
'success': (bool,), # noqa: E501
|
|
101
|
+
'warning': (Warning,), # noqa: E501
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
@cached_property
|
|
105
|
+
def discriminator():
|
|
106
|
+
return None
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
attribute_map = {
|
|
110
|
+
'capabilities': 'capabilities', # noqa: E501
|
|
111
|
+
'error': 'error', # noqa: E501
|
|
112
|
+
'metadata': 'metadata', # noqa: E501
|
|
113
|
+
'success': 'success', # noqa: E501
|
|
114
|
+
'warning': 'warning', # noqa: E501
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
read_only_vars = {
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
_composed_schemas = {}
|
|
121
|
+
|
|
122
|
+
@classmethod
|
|
123
|
+
@convert_js_args_to_python_args
|
|
124
|
+
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
125
|
+
"""ConversationVirtualAgentCapabilitiesResponse - a model defined in OpenAPI
|
|
126
|
+
|
|
127
|
+
Keyword Args:
|
|
128
|
+
_check_type (bool): if True, values for parameters in openapi_types
|
|
129
|
+
will be type checked and a TypeError will be
|
|
130
|
+
raised if the wrong type is input.
|
|
131
|
+
Defaults to True
|
|
132
|
+
_path_to_item (tuple/list): This is a list of keys or values to
|
|
133
|
+
drill down to the model in received_data
|
|
134
|
+
when deserializing a response
|
|
135
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
136
|
+
are serialized names, as specified in the OpenAPI document.
|
|
137
|
+
False if the variable names in the input data
|
|
138
|
+
are pythonic names, e.g. snake case (default)
|
|
139
|
+
_configuration (Configuration): the instance to use when
|
|
140
|
+
deserializing a file_type parameter.
|
|
141
|
+
If passed, type conversion is attempted
|
|
142
|
+
If omitted no type conversion is done.
|
|
143
|
+
_visited_composed_classes (tuple): This stores a tuple of
|
|
144
|
+
classes that we have traveled through so that
|
|
145
|
+
if we see that class again we will not use its
|
|
146
|
+
discriminator again.
|
|
147
|
+
When traveling through a discriminator, the
|
|
148
|
+
composed schema that is
|
|
149
|
+
is traveled through is added to this set.
|
|
150
|
+
For example if Animal has a discriminator
|
|
151
|
+
petType and we pass in "Dog", and the class Dog
|
|
152
|
+
allOf includes Animal, we move through Animal
|
|
153
|
+
once using the discriminator, and pick Dog.
|
|
154
|
+
Then in Dog, we will make an instance of the
|
|
155
|
+
Animal class but this time we won't travel
|
|
156
|
+
through its discriminator because we passed in
|
|
157
|
+
_visited_composed_classes = (Animal,)
|
|
158
|
+
capabilities (ConversationVirtualAgentCapabilities): [optional] # noqa: E501
|
|
159
|
+
error (Error): [optional] # noqa: E501
|
|
160
|
+
metadata (ResponseMetadata): [optional] # noqa: E501
|
|
161
|
+
success (bool): Indicates if API call was successful. [optional] # noqa: E501
|
|
162
|
+
warning (Warning): [optional] # noqa: E501
|
|
163
|
+
"""
|
|
164
|
+
|
|
165
|
+
_check_type = kwargs.pop('_check_type', True)
|
|
166
|
+
_spec_property_naming = kwargs.pop('_spec_property_naming', True)
|
|
167
|
+
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
168
|
+
_configuration = kwargs.pop('_configuration', None)
|
|
169
|
+
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
170
|
+
|
|
171
|
+
self = super(OpenApiModel, cls).__new__(cls)
|
|
172
|
+
|
|
173
|
+
if args:
|
|
174
|
+
for arg in args:
|
|
175
|
+
if isinstance(arg, dict):
|
|
176
|
+
kwargs.update(arg)
|
|
177
|
+
else:
|
|
178
|
+
raise ApiTypeError(
|
|
179
|
+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
180
|
+
args,
|
|
181
|
+
self.__class__.__name__,
|
|
182
|
+
),
|
|
183
|
+
path_to_item=_path_to_item,
|
|
184
|
+
valid_classes=(self.__class__,),
|
|
185
|
+
)
|
|
186
|
+
|
|
187
|
+
self._data_store = {}
|
|
188
|
+
self._check_type = _check_type
|
|
189
|
+
self._spec_property_naming = _spec_property_naming
|
|
190
|
+
self._path_to_item = _path_to_item
|
|
191
|
+
self._configuration = _configuration
|
|
192
|
+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
193
|
+
|
|
194
|
+
for var_name, var_value in kwargs.items():
|
|
195
|
+
if var_name not in self.attribute_map and \
|
|
196
|
+
self._configuration is not None and \
|
|
197
|
+
self._configuration.discard_unknown_keys and \
|
|
198
|
+
self.additional_properties_type is None:
|
|
199
|
+
# discard variable.
|
|
200
|
+
continue
|
|
201
|
+
setattr(self, var_name, var_value)
|
|
202
|
+
return self
|
|
203
|
+
|
|
204
|
+
required_properties = set([
|
|
205
|
+
'_data_store',
|
|
206
|
+
'_check_type',
|
|
207
|
+
'_spec_property_naming',
|
|
208
|
+
'_path_to_item',
|
|
209
|
+
'_configuration',
|
|
210
|
+
'_visited_composed_classes',
|
|
211
|
+
])
|
|
212
|
+
|
|
213
|
+
@convert_js_args_to_python_args
|
|
214
|
+
def __init__(self, *args, **kwargs): # noqa: E501
|
|
215
|
+
"""ConversationVirtualAgentCapabilitiesResponse - a model defined in OpenAPI
|
|
216
|
+
|
|
217
|
+
Keyword Args:
|
|
218
|
+
_check_type (bool): if True, values for parameters in openapi_types
|
|
219
|
+
will be type checked and a TypeError will be
|
|
220
|
+
raised if the wrong type is input.
|
|
221
|
+
Defaults to True
|
|
222
|
+
_path_to_item (tuple/list): This is a list of keys or values to
|
|
223
|
+
drill down to the model in received_data
|
|
224
|
+
when deserializing a response
|
|
225
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
226
|
+
are serialized names, as specified in the OpenAPI document.
|
|
227
|
+
False if the variable names in the input data
|
|
228
|
+
are pythonic names, e.g. snake case (default)
|
|
229
|
+
_configuration (Configuration): the instance to use when
|
|
230
|
+
deserializing a file_type parameter.
|
|
231
|
+
If passed, type conversion is attempted
|
|
232
|
+
If omitted no type conversion is done.
|
|
233
|
+
_visited_composed_classes (tuple): This stores a tuple of
|
|
234
|
+
classes that we have traveled through so that
|
|
235
|
+
if we see that class again we will not use its
|
|
236
|
+
discriminator again.
|
|
237
|
+
When traveling through a discriminator, the
|
|
238
|
+
composed schema that is
|
|
239
|
+
is traveled through is added to this set.
|
|
240
|
+
For example if Animal has a discriminator
|
|
241
|
+
petType and we pass in "Dog", and the class Dog
|
|
242
|
+
allOf includes Animal, we move through Animal
|
|
243
|
+
once using the discriminator, and pick Dog.
|
|
244
|
+
Then in Dog, we will make an instance of the
|
|
245
|
+
Animal class but this time we won't travel
|
|
246
|
+
through its discriminator because we passed in
|
|
247
|
+
_visited_composed_classes = (Animal,)
|
|
248
|
+
capabilities (ConversationVirtualAgentCapabilities): [optional] # noqa: E501
|
|
249
|
+
error (Error): [optional] # noqa: E501
|
|
250
|
+
metadata (ResponseMetadata): [optional] # noqa: E501
|
|
251
|
+
success (bool): Indicates if API call was successful. [optional] # noqa: E501
|
|
252
|
+
warning (Warning): [optional] # noqa: E501
|
|
253
|
+
"""
|
|
254
|
+
|
|
255
|
+
_check_type = kwargs.pop('_check_type', True)
|
|
256
|
+
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
|
|
257
|
+
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
258
|
+
_configuration = kwargs.pop('_configuration', None)
|
|
259
|
+
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
260
|
+
|
|
261
|
+
if args:
|
|
262
|
+
for arg in args:
|
|
263
|
+
if isinstance(arg, dict):
|
|
264
|
+
kwargs.update(arg)
|
|
265
|
+
else:
|
|
266
|
+
raise ApiTypeError(
|
|
267
|
+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
268
|
+
args,
|
|
269
|
+
self.__class__.__name__,
|
|
270
|
+
),
|
|
271
|
+
path_to_item=_path_to_item,
|
|
272
|
+
valid_classes=(self.__class__,),
|
|
273
|
+
)
|
|
274
|
+
|
|
275
|
+
self._data_store = {}
|
|
276
|
+
self._check_type = _check_type
|
|
277
|
+
self._spec_property_naming = _spec_property_naming
|
|
278
|
+
self._path_to_item = _path_to_item
|
|
279
|
+
self._configuration = _configuration
|
|
280
|
+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
281
|
+
|
|
282
|
+
for var_name, var_value in kwargs.items():
|
|
283
|
+
if var_name not in self.attribute_map and \
|
|
284
|
+
self._configuration is not None and \
|
|
285
|
+
self._configuration.discard_unknown_keys and \
|
|
286
|
+
self.additional_properties_type is None:
|
|
287
|
+
# discard variable.
|
|
288
|
+
continue
|
|
289
|
+
setattr(self, var_name, var_value)
|
|
290
|
+
if var_name in self.read_only_vars:
|
|
291
|
+
raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
|
|
292
|
+
f"class with read only attributes.")
|
|
@@ -90,6 +90,7 @@ class ItemRestriction(ModelNormal):
|
|
|
90
90
|
return {
|
|
91
91
|
'exclude_coupon': (bool,), # noqa: E501
|
|
92
92
|
'exclude_from_free_promotion': (bool,), # noqa: E501
|
|
93
|
+
'exclude_from_loyalty': (bool,), # noqa: E501
|
|
93
94
|
'items': ([ItemRestrictionItem],), # noqa: E501
|
|
94
95
|
'maximum_quantity': (int,), # noqa: E501
|
|
95
96
|
'minimum_quantity': (int,), # noqa: E501
|
|
@@ -106,6 +107,7 @@ class ItemRestriction(ModelNormal):
|
|
|
106
107
|
attribute_map = {
|
|
107
108
|
'exclude_coupon': 'exclude_coupon', # noqa: E501
|
|
108
109
|
'exclude_from_free_promotion': 'exclude_from_free_promotion', # noqa: E501
|
|
110
|
+
'exclude_from_loyalty': 'exclude_from_loyalty', # noqa: E501
|
|
109
111
|
'items': 'items', # noqa: E501
|
|
110
112
|
'maximum_quantity': 'maximum_quantity', # noqa: E501
|
|
111
113
|
'minimum_quantity': 'minimum_quantity', # noqa: E501
|
|
@@ -157,6 +159,7 @@ class ItemRestriction(ModelNormal):
|
|
|
157
159
|
_visited_composed_classes = (Animal,)
|
|
158
160
|
exclude_coupon (bool): Exclude coupons. [optional] # noqa: E501
|
|
159
161
|
exclude_from_free_promotion (bool): Exclude from free promotion. [optional] # noqa: E501
|
|
162
|
+
exclude_from_loyalty (bool): Exclude from loyalty. Must be set to true or false to save. Null is ignored for backwards SDK compatibility. [optional] # noqa: E501
|
|
160
163
|
items ([ItemRestrictionItem]): Items. [optional] # noqa: E501
|
|
161
164
|
maximum_quantity (int): Maximum quantity. [optional] # noqa: E501
|
|
162
165
|
minimum_quantity (int): Minimum quantity (defaults to 1). [optional] # noqa: E501
|
|
@@ -250,6 +253,7 @@ class ItemRestriction(ModelNormal):
|
|
|
250
253
|
_visited_composed_classes = (Animal,)
|
|
251
254
|
exclude_coupon (bool): Exclude coupons. [optional] # noqa: E501
|
|
252
255
|
exclude_from_free_promotion (bool): Exclude from free promotion. [optional] # noqa: E501
|
|
256
|
+
exclude_from_loyalty (bool): Exclude from loyalty. Must be set to true or false to save. Null is ignored for backwards SDK compatibility. [optional] # noqa: E501
|
|
253
257
|
items ([ItemRestrictionItem]): Items. [optional] # noqa: E501
|
|
254
258
|
maximum_quantity (int): Maximum quantity. [optional] # noqa: E501
|
|
255
259
|
minimum_quantity (int): Minimum quantity (defaults to 1). [optional] # noqa: E501
|
ultracart/models/__init__.py
CHANGED
|
@@ -231,6 +231,8 @@ from ultracart.model.conversation_summary import ConversationSummary
|
|
|
231
231
|
from ultracart.model.conversation_twilio_account import ConversationTwilioAccount
|
|
232
232
|
from ultracart.model.conversation_virtual_agent_budget import ConversationVirtualAgentBudget
|
|
233
233
|
from ultracart.model.conversation_virtual_agent_budget_response import ConversationVirtualAgentBudgetResponse
|
|
234
|
+
from ultracart.model.conversation_virtual_agent_capabilities import ConversationVirtualAgentCapabilities
|
|
235
|
+
from ultracart.model.conversation_virtual_agent_capabilities_response import ConversationVirtualAgentCapabilitiesResponse
|
|
234
236
|
from ultracart.model.conversation_webchat_context import ConversationWebchatContext
|
|
235
237
|
from ultracart.model.conversation_webchat_queue_status import ConversationWebchatQueueStatus
|
|
236
238
|
from ultracart.model.conversation_webchat_queue_status_agent import ConversationWebchatQueueStatusAgent
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
ultracart/__init__.py,sha256=
|
|
2
|
-
ultracart/api_client.py,sha256=
|
|
3
|
-
ultracart/configuration.py,sha256=
|
|
1
|
+
ultracart/__init__.py,sha256=Y7LeXI_O31xdAKdYf_236ljPpEqi8m8VPHk0JQHxCy4,698
|
|
2
|
+
ultracart/api_client.py,sha256=CT4g8GCVrh_PDlmW7BmhguXU35fjk1_5pC7wgokwRoI,39071
|
|
3
|
+
ultracart/configuration.py,sha256=KlV1yTGjwkEFr_zaGSTKna4yK8XXOOgCwVmeqoWsGw8,17841
|
|
4
4
|
ultracart/exceptions.py,sha256=dwRtrWJsW4H_jKk3B1w2chykcQ7E2FSlhftUByD9e9E,5069
|
|
5
5
|
ultracart/model_utils.py,sha256=X_RAfA-TlvDKBICnIve7PPVDM34Nl58aV1bqCrVmoTo,82574
|
|
6
6
|
ultracart/rest.py,sha256=2lM6zwrjGp_SjkddamoKdpk3jFuc8Ow7fKIXRdKNp24,14268
|
|
@@ -10,7 +10,7 @@ ultracart/api/auto_order_api.py,sha256=Fxh8jqvSKGeVDod9pWGV9z6mgzP1cVS2hvqQA1bLN
|
|
|
10
10
|
ultracart/api/channel_partner_api.py,sha256=EbAPFtaF8E38jrD7JgDaD-rGU3DM86O3lBPhDuq_fw4,89568
|
|
11
11
|
ultracart/api/chargeback_api.py,sha256=bC5LfbV1DuVMZhfCvkkog33VACDVk7W74JvlaXy5Nuc,32295
|
|
12
12
|
ultracart/api/checkout_api.py,sha256=KLZAsTMiY55AHDhubbNZYipBPGwihQbEsLDjIDzkLkQ,105889
|
|
13
|
-
ultracart/api/conversation_api.py,sha256=
|
|
13
|
+
ultracart/api/conversation_api.py,sha256=deOzEvUmURbCPVHPgGAsascLOt5R5qXrJ4JgjrUCXyU,468220
|
|
14
14
|
ultracart/api/coupon_api.py,sha256=voBpCzDhuBog_0WKSj9J-2zKSI8LyJINjUneeLAwlHg,109039
|
|
15
15
|
ultracart/api/customer_api.py,sha256=I9skXHJZw9asr5LnRnE3vbVNMadjLm_2bDrNhr-mnfg,146498
|
|
16
16
|
ultracart/api/datawarehouse_api.py,sha256=4UdypzYNcDwgHeyWqK1x6WARC62u9CmbfVTGhryOq5I,52975
|
|
@@ -158,7 +158,7 @@ ultracart/model/checkout_setup_browser_key_request.py,sha256=v5vJkF5PA10Qt4tlRB0
|
|
|
158
158
|
ultracart/model/checkout_setup_browser_key_response.py,sha256=HHkfgHDcOps7jAp8RBKO78kHpCEuhLQP1nIq_sr6mmc,11633
|
|
159
159
|
ultracart/model/checkout_state_province_response.py,sha256=QD6yupUWG_6ocSN83krfw7-eaN0YzxtLvatnUuci10Y,11698
|
|
160
160
|
ultracart/model/city_state_zip.py,sha256=goGnlh4nzcsV1p8iNeFm4y6LP2TrtHIVjBPrHCDNBas,12129
|
|
161
|
-
ultracart/model/conversation.py,sha256=
|
|
161
|
+
ultracart/model/conversation.py,sha256=RXA0sxxk_lMdX98mSbU0xXYzRkZjRI_XRtHBaOoLP14,17919
|
|
162
162
|
ultracart/model/conversation_agent_auth.py,sha256=OKvY61hG-vpVOtSzVOqXeBy-b5feJuglN53Ovcl0Co0,15038
|
|
163
163
|
ultracart/model/conversation_agent_auth_response.py,sha256=boVaC_JNOUGPlmxX2E-QdQWFLAJMS8GC4OWMRYaCjNM,12906
|
|
164
164
|
ultracart/model/conversation_agent_profile.py,sha256=SnD0oPpT7o8RvJAvewx0XslW56SHwV0JIqPEqtyF8nU,15388
|
|
@@ -250,6 +250,8 @@ ultracart/model/conversation_summary.py,sha256=0i8GstJNBSy6uItPgsIXA02V2zehOpUhj
|
|
|
250
250
|
ultracart/model/conversation_twilio_account.py,sha256=E-UV15UQjZJwQDfG_9qggZjoSDSP72YnXu8LyE7q-TQ,11723
|
|
251
251
|
ultracart/model/conversation_virtual_agent_budget.py,sha256=PRCNTgiHi-00tmwzMQo9TB2Uq6OkjHDsM-PkGbzqWvQ,12157
|
|
252
252
|
ultracart/model/conversation_virtual_agent_budget_response.py,sha256=oA6EwrXgQ5-xvXcfU5-76a2GQB59t9Fk8DCXsoaE9Ks,12977
|
|
253
|
+
ultracart/model/conversation_virtual_agent_capabilities.py,sha256=EIVQ6QtMZ9stBuiY9-BZX-LEnWoKPsf5cIDeqaMHlIY,13758
|
|
254
|
+
ultracart/model/conversation_virtual_agent_capabilities_response.py,sha256=4RftOI59iQvVbRTFzK8dJwgwxXuZqAlVlhdOrQcPDPU,13067
|
|
253
255
|
ultracart/model/conversation_webchat_context.py,sha256=_DgYNiy2WOVMcEuM9Un-aLqRuWUstG0IC3BLnFmYtCk,13789
|
|
254
256
|
ultracart/model/conversation_webchat_queue_status.py,sha256=s2o5xhzatNYdo6jWwjDl76rzjbgRLJcU-qr9BoPB3Zg,16005
|
|
255
257
|
ultracart/model/conversation_webchat_queue_status_agent.py,sha256=0Y71b7RZfowI0RXV2mOEdLRWwv7BpaL5sZl1r7nYlSg,13126
|
|
@@ -591,7 +593,7 @@ ultracart/model/item_related.py,sha256=-XnQ7S6KNujNhXOf0rnPhkzbKF5L5wtP8DojmYFYK
|
|
|
591
593
|
ultracart/model/item_related_item.py,sha256=6ahwZdUhhBb_7ukTefTHwoJPHT0ooioRiPW4AcZbXZU,12197
|
|
592
594
|
ultracart/model/item_reporting.py,sha256=aNXTDDwx3XWBJoEgaW6IE3CUNJqh7bKiNpgBQw5I3uM,11869
|
|
593
595
|
ultracart/model/item_response.py,sha256=qWGe4Zznnhc23QYv9Aq4yuBQ4YzA2AeN2YwiIYqeSo8,12704
|
|
594
|
-
ultracart/model/item_restriction.py,sha256=
|
|
596
|
+
ultracart/model/item_restriction.py,sha256=OF_xKY1aS3mTaqn4QJwDXbvKEU6-c_x2GMC7K0bnJzA,14208
|
|
595
597
|
ultracart/model/item_restriction_item.py,sha256=NiZfriRqi3bO2RaSfOXK_Zo6EG_qTIcpIO6cmoGgq2Y,12353
|
|
596
598
|
ultracart/model/item_revguard.py,sha256=2XrswNmZEuDAlm1qiw4sQyaUlpW7uEQgL1lqijpEOQc,13583
|
|
597
599
|
ultracart/model/item_review.py,sha256=0zk6HZ2mAylWuual4OA-6No3h-gxt3ZILzHPoTGLuUI,21868
|
|
@@ -889,9 +891,9 @@ ultracart/model/workflow_tasks_response.py,sha256=KmHe72xKnZiS9CemBr5hluY5EsU9_x
|
|
|
889
891
|
ultracart/model/workflow_user.py,sha256=gkQIeMSIhawpz5wtpTJ8Lof_Td0IrwG0KZF6catE41k,11903
|
|
890
892
|
ultracart/model/workflow_user_response.py,sha256=TKfMu5vF1fXlV8mvxRFhvk6WNdGce2T8a4vFycQvuhQ,12785
|
|
891
893
|
ultracart/model/workflow_users_response.py,sha256=3Y7L1oHc2-HOvl1pDdcnl9xHKYLGblKpKdbkPBh2u68,13059
|
|
892
|
-
ultracart/models/__init__.py,sha256=
|
|
893
|
-
ultracart_rest_sdk-4.1.
|
|
894
|
-
ultracart_rest_sdk-4.1.
|
|
895
|
-
ultracart_rest_sdk-4.1.
|
|
896
|
-
ultracart_rest_sdk-4.1.
|
|
897
|
-
ultracart_rest_sdk-4.1.
|
|
894
|
+
ultracart/models/__init__.py,sha256=ny_sseLdjDLsOo49QeMjJ4B1qZaKuNhBA8e6EW4H8uk,66731
|
|
895
|
+
ultracart_rest_sdk-4.1.13.dist-info/LICENSE,sha256=4DukHX-rIHAHaf5BGLq1DYAMt0-ZA1OgXS9f_xwig2M,11558
|
|
896
|
+
ultracart_rest_sdk-4.1.13.dist-info/METADATA,sha256=k0S_s8rdyBV386hBnVQF4qXu0BA0gpWGpEIkcuMCXXg,402
|
|
897
|
+
ultracart_rest_sdk-4.1.13.dist-info/WHEEL,sha256=OqRkF0eY5GHssMorFjlbTIq072vpHpF60fIQA6lS9xA,92
|
|
898
|
+
ultracart_rest_sdk-4.1.13.dist-info/top_level.txt,sha256=90IoRqV6KX58jTyx9MwEBqh4j38_10hWrrvqsmXWZYo,10
|
|
899
|
+
ultracart_rest_sdk-4.1.13.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|