ultracart-rest-sdk 4.0.210__py3-none-any.whl → 4.0.212__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/auto_order_api.py +153 -0
- ultracart/api/conversation_api.py +4 -3
- ultracart/api_client.py +1 -1
- ultracart/configuration.py +1 -1
- ultracart/model/auto_order_consolidate.py +264 -0
- ultracart/model/conversation_agent_auth.py +12 -0
- ultracart/model/conversation_pbx_audio_upload_url.py +268 -0
- ultracart/model/conversation_pbx_audio_upload_url_response.py +292 -0
- ultracart/model/conversation_pbx_customer_snapshot_response.py +4 -4
- ultracart/model/conversation_pbx_queue.py +4 -0
- ultracart/model/email_commseq_email.py +32 -0
- ultracart/model/item_chargeback.py +4 -4
- ultracart/model/order_refundable_response.py +4 -0
- ultracart/models/__init__.py +3 -0
- {ultracart_rest_sdk-4.0.210.dist-info → ultracart_rest_sdk-4.0.212.dist-info}/METADATA +1 -1
- {ultracart_rest_sdk-4.0.210.dist-info → ultracart_rest_sdk-4.0.212.dist-info}/RECORD +20 -17
- {ultracart_rest_sdk-4.0.210.dist-info → ultracart_rest_sdk-4.0.212.dist-info}/LICENSE +0 -0
- {ultracart_rest_sdk-4.0.210.dist-info → ultracart_rest_sdk-4.0.212.dist-info}/WHEEL +0 -0
- {ultracart_rest_sdk-4.0.210.dist-info → ultracart_rest_sdk-4.0.212.dist-info}/top_level.txt +0 -0
ultracart/__init__.py
CHANGED
ultracart/api/auto_order_api.py
CHANGED
|
@@ -23,6 +23,7 @@ from ultracart.model_utils import ( # noqa: F401
|
|
|
23
23
|
validate_and_convert_types
|
|
24
24
|
)
|
|
25
25
|
from ultracart.model.auto_order import AutoOrder
|
|
26
|
+
from ultracart.model.auto_order_consolidate import AutoOrderConsolidate
|
|
26
27
|
from ultracart.model.auto_order_query import AutoOrderQuery
|
|
27
28
|
from ultracart.model.auto_order_query_batch import AutoOrderQueryBatch
|
|
28
29
|
from ultracart.model.auto_order_response import AutoOrderResponse
|
|
@@ -53,6 +54,70 @@ class AutoOrderApi(object):
|
|
|
53
54
|
if api_client is None:
|
|
54
55
|
api_client = ApiClient()
|
|
55
56
|
self.api_client = api_client
|
|
57
|
+
self.consolidate_auto_orders_endpoint = _Endpoint(
|
|
58
|
+
settings={
|
|
59
|
+
'response_type': (AutoOrderResponse,),
|
|
60
|
+
'auth': [
|
|
61
|
+
'ultraCartOauth',
|
|
62
|
+
'ultraCartSimpleApiKey'
|
|
63
|
+
],
|
|
64
|
+
'endpoint_path': '/auto_order/auto_orders/{auto_order_oid}/consolidate',
|
|
65
|
+
'operation_id': 'consolidate_auto_orders',
|
|
66
|
+
'http_method': 'PUT',
|
|
67
|
+
'servers': None,
|
|
68
|
+
},
|
|
69
|
+
params_map={
|
|
70
|
+
'all': [
|
|
71
|
+
'auto_order_oid',
|
|
72
|
+
'auto_order_consolidate',
|
|
73
|
+
'expand',
|
|
74
|
+
],
|
|
75
|
+
'required': [
|
|
76
|
+
'auto_order_oid',
|
|
77
|
+
'auto_order_consolidate',
|
|
78
|
+
],
|
|
79
|
+
'nullable': [
|
|
80
|
+
],
|
|
81
|
+
'enum': [
|
|
82
|
+
],
|
|
83
|
+
'validation': [
|
|
84
|
+
]
|
|
85
|
+
},
|
|
86
|
+
root_map={
|
|
87
|
+
'validations': {
|
|
88
|
+
},
|
|
89
|
+
'allowed_values': {
|
|
90
|
+
},
|
|
91
|
+
'openapi_types': {
|
|
92
|
+
'auto_order_oid':
|
|
93
|
+
(int,),
|
|
94
|
+
'auto_order_consolidate':
|
|
95
|
+
(AutoOrderConsolidate,),
|
|
96
|
+
'expand':
|
|
97
|
+
(str,),
|
|
98
|
+
},
|
|
99
|
+
'attribute_map': {
|
|
100
|
+
'auto_order_oid': 'auto_order_oid',
|
|
101
|
+
'expand': '_expand',
|
|
102
|
+
},
|
|
103
|
+
'location_map': {
|
|
104
|
+
'auto_order_oid': 'path',
|
|
105
|
+
'auto_order_consolidate': 'body',
|
|
106
|
+
'expand': 'query',
|
|
107
|
+
},
|
|
108
|
+
'collection_format_map': {
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
headers_map={
|
|
112
|
+
'accept': [
|
|
113
|
+
'application/json'
|
|
114
|
+
],
|
|
115
|
+
'content_type': [
|
|
116
|
+
'application/json; charset=UTF-8'
|
|
117
|
+
]
|
|
118
|
+
},
|
|
119
|
+
api_client=api_client
|
|
120
|
+
)
|
|
56
121
|
self.establish_auto_order_by_reference_order_id_endpoint = _Endpoint(
|
|
57
122
|
settings={
|
|
58
123
|
'response_type': (AutoOrderResponse,),
|
|
@@ -710,6 +775,94 @@ class AutoOrderApi(object):
|
|
|
710
775
|
api_client=api_client
|
|
711
776
|
)
|
|
712
777
|
|
|
778
|
+
def consolidate_auto_orders(
|
|
779
|
+
self,
|
|
780
|
+
auto_order_oid,
|
|
781
|
+
auto_order_consolidate,
|
|
782
|
+
**kwargs
|
|
783
|
+
):
|
|
784
|
+
"""Consolidates multiple auto orders # noqa: E501
|
|
785
|
+
|
|
786
|
+
Consolidates mutliple auto orders on the UltraCart account. # noqa: E501
|
|
787
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
788
|
+
asynchronous HTTP request, please pass async_req=True
|
|
789
|
+
|
|
790
|
+
>>> thread = api.consolidate_auto_orders(auto_order_oid, auto_order_consolidate, async_req=True)
|
|
791
|
+
>>> result = thread.get()
|
|
792
|
+
|
|
793
|
+
Args:
|
|
794
|
+
auto_order_oid (int): The auto order oid to consolidate into.
|
|
795
|
+
auto_order_consolidate (AutoOrderConsolidate): Auto orders to consolidate
|
|
796
|
+
|
|
797
|
+
Keyword Args:
|
|
798
|
+
expand (str): The object expansion to perform on the result. See documentation for examples. [optional]
|
|
799
|
+
_return_http_data_only (bool): response data without head status
|
|
800
|
+
code and headers. Default is True.
|
|
801
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
802
|
+
will be returned without reading/decoding response data.
|
|
803
|
+
Default is True.
|
|
804
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
805
|
+
one number provided, it will be total request timeout. It can also
|
|
806
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
807
|
+
Default is None.
|
|
808
|
+
_check_input_type (bool): specifies if type checking
|
|
809
|
+
should be done one the data sent to the server.
|
|
810
|
+
Default is True.
|
|
811
|
+
_check_return_type (bool): specifies if type checking
|
|
812
|
+
should be done one the data received from the server.
|
|
813
|
+
Default is True.
|
|
814
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
815
|
+
are serialized names, as specified in the OpenAPI document.
|
|
816
|
+
False if the variable names in the input data
|
|
817
|
+
are pythonic names, e.g. snake case (default)
|
|
818
|
+
_content_type (str/None): force body content-type.
|
|
819
|
+
Default is None and content-type will be predicted by allowed
|
|
820
|
+
content-types and body.
|
|
821
|
+
_host_index (int/None): specifies the index of the server
|
|
822
|
+
that we want to use.
|
|
823
|
+
Default is read from the configuration.
|
|
824
|
+
_request_auths (list): set to override the auth_settings for an a single
|
|
825
|
+
request; this effectively ignores the authentication
|
|
826
|
+
in the spec for a single request.
|
|
827
|
+
Default is None
|
|
828
|
+
async_req (bool): execute request asynchronously
|
|
829
|
+
|
|
830
|
+
Returns:
|
|
831
|
+
AutoOrderResponse
|
|
832
|
+
If the method is called asynchronously, returns the request
|
|
833
|
+
thread.
|
|
834
|
+
"""
|
|
835
|
+
kwargs['async_req'] = kwargs.get(
|
|
836
|
+
'async_req', False
|
|
837
|
+
)
|
|
838
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
839
|
+
'_return_http_data_only', True
|
|
840
|
+
)
|
|
841
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
842
|
+
'_preload_content', True
|
|
843
|
+
)
|
|
844
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
845
|
+
'_request_timeout', None
|
|
846
|
+
)
|
|
847
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
848
|
+
'_check_input_type', True
|
|
849
|
+
)
|
|
850
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
851
|
+
'_check_return_type', True
|
|
852
|
+
)
|
|
853
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
854
|
+
'_spec_property_naming', False
|
|
855
|
+
)
|
|
856
|
+
kwargs['_content_type'] = kwargs.get(
|
|
857
|
+
'_content_type')
|
|
858
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
859
|
+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
860
|
+
kwargs['auto_order_oid'] = \
|
|
861
|
+
auto_order_oid
|
|
862
|
+
kwargs['auto_order_consolidate'] = \
|
|
863
|
+
auto_order_consolidate
|
|
864
|
+
return self.consolidate_auto_orders_endpoint.call_with_http_info(**kwargs)
|
|
865
|
+
|
|
713
866
|
def establish_auto_order_by_reference_order_id(
|
|
714
867
|
self,
|
|
715
868
|
reference_order_id,
|
|
@@ -47,6 +47,7 @@ from ultracart.model.conversation_pbx_agent_response import ConversationPbxAgent
|
|
|
47
47
|
from ultracart.model.conversation_pbx_agents_response import ConversationPbxAgentsResponse
|
|
48
48
|
from ultracart.model.conversation_pbx_audio import ConversationPbxAudio
|
|
49
49
|
from ultracart.model.conversation_pbx_audio_response import ConversationPbxAudioResponse
|
|
50
|
+
from ultracart.model.conversation_pbx_audio_upload_url_response import ConversationPbxAudioUploadUrlResponse
|
|
50
51
|
from ultracart.model.conversation_pbx_audios_response import ConversationPbxAudiosResponse
|
|
51
52
|
from ultracart.model.conversation_pbx_customer_snapshot_request import ConversationPbxCustomerSnapshotRequest
|
|
52
53
|
from ultracart.model.conversation_pbx_customer_snapshot_response import ConversationPbxCustomerSnapshotResponse
|
|
@@ -1380,7 +1381,7 @@ class ConversationApi(object):
|
|
|
1380
1381
|
)
|
|
1381
1382
|
self.get_conversation_pbx_audio_upload_url_endpoint = _Endpoint(
|
|
1382
1383
|
settings={
|
|
1383
|
-
'response_type': (
|
|
1384
|
+
'response_type': (ConversationPbxAudioUploadUrlResponse,),
|
|
1384
1385
|
'auth': [
|
|
1385
1386
|
'ultraCartOauth',
|
|
1386
1387
|
'ultraCartSimpleApiKey'
|
|
@@ -3524,7 +3525,7 @@ class ConversationApi(object):
|
|
|
3524
3525
|
'ultraCartOauth',
|
|
3525
3526
|
'ultraCartSimpleApiKey'
|
|
3526
3527
|
],
|
|
3527
|
-
'endpoint_path': '/conversation/pbx/{queue_uuid}/voicemails/
|
|
3528
|
+
'endpoint_path': '/conversation/pbx/queues/{queue_uuid}/voicemails/{recording_sid}/listened',
|
|
3528
3529
|
'operation_id': 'listened_pbx_queue_voicemail',
|
|
3529
3530
|
'http_method': 'GET',
|
|
3530
3531
|
'servers': None,
|
|
@@ -6699,7 +6700,7 @@ class ConversationApi(object):
|
|
|
6699
6700
|
async_req (bool): execute request asynchronously
|
|
6700
6701
|
|
|
6701
6702
|
Returns:
|
|
6702
|
-
|
|
6703
|
+
ConversationPbxAudioUploadUrlResponse
|
|
6703
6704
|
If the method is called asynchronously, returns the request
|
|
6704
6705
|
thread.
|
|
6705
6706
|
"""
|
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.0.
|
|
80
|
+
self.user_agent = 'OpenAPI-Generator/4.0.212/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.0.
|
|
425
|
+
"SDK Package Version: 4.0.212".\
|
|
426
426
|
format(env=sys.platform, pyversion=sys.version)
|
|
427
427
|
|
|
428
428
|
def get_host_settings(self):
|
|
@@ -0,0 +1,264 @@
|
|
|
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 AutoOrderConsolidate(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
|
+
'source_auto_order_oids': ([int],), # noqa: E501
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
@cached_property
|
|
89
|
+
def discriminator():
|
|
90
|
+
return None
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
attribute_map = {
|
|
94
|
+
'source_auto_order_oids': 'source_auto_order_oids', # noqa: E501
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
read_only_vars = {
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
_composed_schemas = {}
|
|
101
|
+
|
|
102
|
+
@classmethod
|
|
103
|
+
@convert_js_args_to_python_args
|
|
104
|
+
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
105
|
+
"""AutoOrderConsolidate - a model defined in OpenAPI
|
|
106
|
+
|
|
107
|
+
Keyword Args:
|
|
108
|
+
_check_type (bool): if True, values for parameters in openapi_types
|
|
109
|
+
will be type checked and a TypeError will be
|
|
110
|
+
raised if the wrong type is input.
|
|
111
|
+
Defaults to True
|
|
112
|
+
_path_to_item (tuple/list): This is a list of keys or values to
|
|
113
|
+
drill down to the model in received_data
|
|
114
|
+
when deserializing a response
|
|
115
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
116
|
+
are serialized names, as specified in the OpenAPI document.
|
|
117
|
+
False if the variable names in the input data
|
|
118
|
+
are pythonic names, e.g. snake case (default)
|
|
119
|
+
_configuration (Configuration): the instance to use when
|
|
120
|
+
deserializing a file_type parameter.
|
|
121
|
+
If passed, type conversion is attempted
|
|
122
|
+
If omitted no type conversion is done.
|
|
123
|
+
_visited_composed_classes (tuple): This stores a tuple of
|
|
124
|
+
classes that we have traveled through so that
|
|
125
|
+
if we see that class again we will not use its
|
|
126
|
+
discriminator again.
|
|
127
|
+
When traveling through a discriminator, the
|
|
128
|
+
composed schema that is
|
|
129
|
+
is traveled through is added to this set.
|
|
130
|
+
For example if Animal has a discriminator
|
|
131
|
+
petType and we pass in "Dog", and the class Dog
|
|
132
|
+
allOf includes Animal, we move through Animal
|
|
133
|
+
once using the discriminator, and pick Dog.
|
|
134
|
+
Then in Dog, we will make an instance of the
|
|
135
|
+
Animal class but this time we won't travel
|
|
136
|
+
through its discriminator because we passed in
|
|
137
|
+
_visited_composed_classes = (Animal,)
|
|
138
|
+
source_auto_order_oids ([int]): [optional] # noqa: E501
|
|
139
|
+
"""
|
|
140
|
+
|
|
141
|
+
_check_type = kwargs.pop('_check_type', True)
|
|
142
|
+
_spec_property_naming = kwargs.pop('_spec_property_naming', True)
|
|
143
|
+
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
144
|
+
_configuration = kwargs.pop('_configuration', None)
|
|
145
|
+
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
146
|
+
|
|
147
|
+
self = super(OpenApiModel, cls).__new__(cls)
|
|
148
|
+
|
|
149
|
+
if args:
|
|
150
|
+
for arg in args:
|
|
151
|
+
if isinstance(arg, dict):
|
|
152
|
+
kwargs.update(arg)
|
|
153
|
+
else:
|
|
154
|
+
raise ApiTypeError(
|
|
155
|
+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
156
|
+
args,
|
|
157
|
+
self.__class__.__name__,
|
|
158
|
+
),
|
|
159
|
+
path_to_item=_path_to_item,
|
|
160
|
+
valid_classes=(self.__class__,),
|
|
161
|
+
)
|
|
162
|
+
|
|
163
|
+
self._data_store = {}
|
|
164
|
+
self._check_type = _check_type
|
|
165
|
+
self._spec_property_naming = _spec_property_naming
|
|
166
|
+
self._path_to_item = _path_to_item
|
|
167
|
+
self._configuration = _configuration
|
|
168
|
+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
169
|
+
|
|
170
|
+
for var_name, var_value in kwargs.items():
|
|
171
|
+
if var_name not in self.attribute_map and \
|
|
172
|
+
self._configuration is not None and \
|
|
173
|
+
self._configuration.discard_unknown_keys and \
|
|
174
|
+
self.additional_properties_type is None:
|
|
175
|
+
# discard variable.
|
|
176
|
+
continue
|
|
177
|
+
setattr(self, var_name, var_value)
|
|
178
|
+
return self
|
|
179
|
+
|
|
180
|
+
required_properties = set([
|
|
181
|
+
'_data_store',
|
|
182
|
+
'_check_type',
|
|
183
|
+
'_spec_property_naming',
|
|
184
|
+
'_path_to_item',
|
|
185
|
+
'_configuration',
|
|
186
|
+
'_visited_composed_classes',
|
|
187
|
+
])
|
|
188
|
+
|
|
189
|
+
@convert_js_args_to_python_args
|
|
190
|
+
def __init__(self, *args, **kwargs): # noqa: E501
|
|
191
|
+
"""AutoOrderConsolidate - a model defined in OpenAPI
|
|
192
|
+
|
|
193
|
+
Keyword Args:
|
|
194
|
+
_check_type (bool): if True, values for parameters in openapi_types
|
|
195
|
+
will be type checked and a TypeError will be
|
|
196
|
+
raised if the wrong type is input.
|
|
197
|
+
Defaults to True
|
|
198
|
+
_path_to_item (tuple/list): This is a list of keys or values to
|
|
199
|
+
drill down to the model in received_data
|
|
200
|
+
when deserializing a response
|
|
201
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
202
|
+
are serialized names, as specified in the OpenAPI document.
|
|
203
|
+
False if the variable names in the input data
|
|
204
|
+
are pythonic names, e.g. snake case (default)
|
|
205
|
+
_configuration (Configuration): the instance to use when
|
|
206
|
+
deserializing a file_type parameter.
|
|
207
|
+
If passed, type conversion is attempted
|
|
208
|
+
If omitted no type conversion is done.
|
|
209
|
+
_visited_composed_classes (tuple): This stores a tuple of
|
|
210
|
+
classes that we have traveled through so that
|
|
211
|
+
if we see that class again we will not use its
|
|
212
|
+
discriminator again.
|
|
213
|
+
When traveling through a discriminator, the
|
|
214
|
+
composed schema that is
|
|
215
|
+
is traveled through is added to this set.
|
|
216
|
+
For example if Animal has a discriminator
|
|
217
|
+
petType and we pass in "Dog", and the class Dog
|
|
218
|
+
allOf includes Animal, we move through Animal
|
|
219
|
+
once using the discriminator, and pick Dog.
|
|
220
|
+
Then in Dog, we will make an instance of the
|
|
221
|
+
Animal class but this time we won't travel
|
|
222
|
+
through its discriminator because we passed in
|
|
223
|
+
_visited_composed_classes = (Animal,)
|
|
224
|
+
source_auto_order_oids ([int]): [optional] # noqa: E501
|
|
225
|
+
"""
|
|
226
|
+
|
|
227
|
+
_check_type = kwargs.pop('_check_type', True)
|
|
228
|
+
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
|
|
229
|
+
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
230
|
+
_configuration = kwargs.pop('_configuration', None)
|
|
231
|
+
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
232
|
+
|
|
233
|
+
if args:
|
|
234
|
+
for arg in args:
|
|
235
|
+
if isinstance(arg, dict):
|
|
236
|
+
kwargs.update(arg)
|
|
237
|
+
else:
|
|
238
|
+
raise ApiTypeError(
|
|
239
|
+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
240
|
+
args,
|
|
241
|
+
self.__class__.__name__,
|
|
242
|
+
),
|
|
243
|
+
path_to_item=_path_to_item,
|
|
244
|
+
valid_classes=(self.__class__,),
|
|
245
|
+
)
|
|
246
|
+
|
|
247
|
+
self._data_store = {}
|
|
248
|
+
self._check_type = _check_type
|
|
249
|
+
self._spec_property_naming = _spec_property_naming
|
|
250
|
+
self._path_to_item = _path_to_item
|
|
251
|
+
self._configuration = _configuration
|
|
252
|
+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
253
|
+
|
|
254
|
+
for var_name, var_value in kwargs.items():
|
|
255
|
+
if var_name not in self.attribute_map and \
|
|
256
|
+
self._configuration is not None and \
|
|
257
|
+
self._configuration.discard_unknown_keys and \
|
|
258
|
+
self.additional_properties_type is None:
|
|
259
|
+
# discard variable.
|
|
260
|
+
continue
|
|
261
|
+
setattr(self, var_name, var_value)
|
|
262
|
+
if var_name in self.read_only_vars:
|
|
263
|
+
raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
|
|
264
|
+
f"class with read only attributes.")
|
|
@@ -92,7 +92,10 @@ class ConversationAgentAuth(ModelNormal):
|
|
|
92
92
|
'conversation_participant_name': (str,), # noqa: E501
|
|
93
93
|
'jwt': (str,), # noqa: E501
|
|
94
94
|
'merchant_id': (str,), # noqa: E501
|
|
95
|
+
'pbx_admin': (bool,), # noqa: E501
|
|
95
96
|
'pbx_jwt': (str,), # noqa: E501
|
|
97
|
+
'pbx_supervisor': (bool,), # noqa: E501
|
|
98
|
+
'pbx_user': (bool,), # noqa: E501
|
|
96
99
|
'pbx_voice_identity': (str,), # noqa: E501
|
|
97
100
|
'pbx_voice_token': (str,), # noqa: E501
|
|
98
101
|
'pbx_worker_token': (str,), # noqa: E501
|
|
@@ -110,7 +113,10 @@ class ConversationAgentAuth(ModelNormal):
|
|
|
110
113
|
'conversation_participant_name': 'conversation_participant_name', # noqa: E501
|
|
111
114
|
'jwt': 'jwt', # noqa: E501
|
|
112
115
|
'merchant_id': 'merchant_id', # noqa: E501
|
|
116
|
+
'pbx_admin': 'pbx_admin', # noqa: E501
|
|
113
117
|
'pbx_jwt': 'pbx_jwt', # noqa: E501
|
|
118
|
+
'pbx_supervisor': 'pbx_supervisor', # noqa: E501
|
|
119
|
+
'pbx_user': 'pbx_user', # noqa: E501
|
|
114
120
|
'pbx_voice_identity': 'pbx_voice_identity', # noqa: E501
|
|
115
121
|
'pbx_voice_token': 'pbx_voice_token', # noqa: E501
|
|
116
122
|
'pbx_worker_token': 'pbx_worker_token', # noqa: E501
|
|
@@ -163,7 +169,10 @@ class ConversationAgentAuth(ModelNormal):
|
|
|
163
169
|
conversation_participant_name (str): [optional] # noqa: E501
|
|
164
170
|
jwt (str): [optional] # noqa: E501
|
|
165
171
|
merchant_id (str): [optional] # noqa: E501
|
|
172
|
+
pbx_admin (bool): [optional] # noqa: E501
|
|
166
173
|
pbx_jwt (str): [optional] # noqa: E501
|
|
174
|
+
pbx_supervisor (bool): [optional] # noqa: E501
|
|
175
|
+
pbx_user (bool): [optional] # noqa: E501
|
|
167
176
|
pbx_voice_identity (str): [optional] # noqa: E501
|
|
168
177
|
pbx_voice_token (str): [optional] # noqa: E501
|
|
169
178
|
pbx_worker_token (str): [optional] # noqa: E501
|
|
@@ -258,7 +267,10 @@ class ConversationAgentAuth(ModelNormal):
|
|
|
258
267
|
conversation_participant_name (str): [optional] # noqa: E501
|
|
259
268
|
jwt (str): [optional] # noqa: E501
|
|
260
269
|
merchant_id (str): [optional] # noqa: E501
|
|
270
|
+
pbx_admin (bool): [optional] # noqa: E501
|
|
261
271
|
pbx_jwt (str): [optional] # noqa: E501
|
|
272
|
+
pbx_supervisor (bool): [optional] # noqa: E501
|
|
273
|
+
pbx_user (bool): [optional] # noqa: E501
|
|
262
274
|
pbx_voice_identity (str): [optional] # noqa: E501
|
|
263
275
|
pbx_voice_token (str): [optional] # noqa: E501
|
|
264
276
|
pbx_worker_token (str): [optional] # noqa: E501
|