ultracart-rest-sdk 4.0.207__py3-none-any.whl → 4.0.209__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.
Files changed (26) hide show
  1. ultracart/__init__.py +1 -1
  2. ultracart/api/conversation_api.py +830 -20
  3. ultracart/api_client.py +1 -1
  4. ultracart/configuration.py +1 -1
  5. ultracart/model/auto_order.py +4 -0
  6. ultracart/model/auto_order_item.py +4 -0
  7. ultracart/model/conversation_pbx_phone_number_response.py +1 -1
  8. ultracart/model/conversation_pbx_phone_numbers_response.py +1 -1
  9. ultracart/model/conversation_pbx_time_based_response.py +1 -1
  10. ultracart/model/conversation_pbx_time_baseds_response.py +1 -1
  11. ultracart/model/conversation_pbx_time_range_response.py +1 -1
  12. ultracart/model/conversation_pbx_time_ranges_response.py +1 -1
  13. ultracart/model/conversation_pbx_voicemail_mailbox.py +4 -0
  14. ultracart/model/conversation_pbx_voicemail_mailbox_response.py +1 -1
  15. ultracart/model/conversation_pbx_voicemail_mailboxes_response.py +1 -1
  16. ultracart/model/conversation_pbx_voicemail_message.py +315 -0
  17. ultracart/model/conversation_pbx_voicemail_message_response.py +292 -0
  18. ultracart/model/conversation_pbx_voicemail_message_summaries_response.py +292 -0
  19. ultracart/model/conversation_pbx_voicemail_message_summary.py +303 -0
  20. ultracart/model/workflow_task.py +4 -0
  21. ultracart/models/__init__.py +4 -0
  22. {ultracart_rest_sdk-4.0.207.dist-info → ultracart_rest_sdk-4.0.209.dist-info}/METADATA +1 -1
  23. {ultracart_rest_sdk-4.0.207.dist-info → ultracart_rest_sdk-4.0.209.dist-info}/RECORD +26 -22
  24. {ultracart_rest_sdk-4.0.207.dist-info → ultracart_rest_sdk-4.0.209.dist-info}/LICENSE +0 -0
  25. {ultracart_rest_sdk-4.0.207.dist-info → ultracart_rest_sdk-4.0.209.dist-info}/WHEEL +0 -0
  26. {ultracart_rest_sdk-4.0.207.dist-info → ultracart_rest_sdk-4.0.209.dist-info}/top_level.txt +0 -0
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.207/python'
80
+ self.user_agent = 'OpenAPI-Generator/4.0.209/python'
81
81
 
82
82
  def __enter__(self):
83
83
  return self
@@ -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.207".\
425
+ "SDK Package Version: 4.0.209".\
426
426
  format(env=sys.platform, pyversion=sys.version)
427
427
 
428
428
  def get_host_settings(self):
@@ -118,6 +118,7 @@ class AutoOrder(ModelNormal):
118
118
  'items': ([AutoOrderItem],), # noqa: E501
119
119
  'logs': ([AutoOrderLog],), # noqa: E501
120
120
  'management': (AutoOrderManagement,), # noqa: E501
121
+ 'merchant_id': (str,), # noqa: E501
121
122
  'next_attempt': (str,), # noqa: E501
122
123
  'original_order': (Order,), # noqa: E501
123
124
  'original_order_id': (str,), # noqa: E501
@@ -150,6 +151,7 @@ class AutoOrder(ModelNormal):
150
151
  'items': 'items', # noqa: E501
151
152
  'logs': 'logs', # noqa: E501
152
153
  'management': 'management', # noqa: E501
154
+ 'merchant_id': 'merchant_id', # noqa: E501
153
155
  'next_attempt': 'next_attempt', # noqa: E501
154
156
  'original_order': 'original_order', # noqa: E501
155
157
  'original_order_id': 'original_order_id', # noqa: E501
@@ -217,6 +219,7 @@ class AutoOrder(ModelNormal):
217
219
  items ([AutoOrderItem]): The items that are setup to rebill. [optional] # noqa: E501
218
220
  logs ([AutoOrderLog]): Logs associated with this auto order. [optional] # noqa: E501
219
221
  management (AutoOrderManagement): [optional] # noqa: E501
222
+ merchant_id (str): UltraCart merchant ID owning this order. [optional] # noqa: E501
220
223
  next_attempt (str): The next time that the auto order will be attempted for processing. [optional] # noqa: E501
221
224
  original_order (Order): [optional] # noqa: E501
222
225
  original_order_id (str): The original order id that this auto order is associated with.. [optional] # noqa: E501
@@ -326,6 +329,7 @@ class AutoOrder(ModelNormal):
326
329
  items ([AutoOrderItem]): The items that are setup to rebill. [optional] # noqa: E501
327
330
  logs ([AutoOrderLog]): Logs associated with this auto order. [optional] # noqa: E501
328
331
  management (AutoOrderManagement): [optional] # noqa: E501
332
+ merchant_id (str): UltraCart merchant ID owning this order. [optional] # noqa: E501
329
333
  next_attempt (str): The next time that the auto order will be attempted for processing. [optional] # noqa: E501
330
334
  original_order (Order): [optional] # noqa: E501
331
335
  original_order_id (str): The original order id that this auto order is associated with.. [optional] # noqa: E501
@@ -122,6 +122,7 @@ class AutoOrderItem(ModelNormal):
122
122
  'future_schedules': ([AutoOrderItemFutureSchedule],), # noqa: E501
123
123
  'last_order_dts': (str,), # noqa: E501
124
124
  'life_time_value': (float,), # noqa: E501
125
+ 'next_item_id': (str,), # noqa: E501
125
126
  'next_preshipment_notice_dts': (str,), # noqa: E501
126
127
  'next_shipment_dts': (str,), # noqa: E501
127
128
  'no_order_after_dts': (str,), # noqa: E501
@@ -156,6 +157,7 @@ class AutoOrderItem(ModelNormal):
156
157
  'future_schedules': 'future_schedules', # noqa: E501
157
158
  'last_order_dts': 'last_order_dts', # noqa: E501
158
159
  'life_time_value': 'life_time_value', # noqa: E501
160
+ 'next_item_id': 'next_item_id', # noqa: E501
159
161
  'next_preshipment_notice_dts': 'next_preshipment_notice_dts', # noqa: E501
160
162
  'next_shipment_dts': 'next_shipment_dts', # noqa: E501
161
163
  'no_order_after_dts': 'no_order_after_dts', # noqa: E501
@@ -225,6 +227,7 @@ class AutoOrderItem(ModelNormal):
225
227
  future_schedules ([AutoOrderItemFutureSchedule]): The future rebill schedule for this item up to the next ten rebills. [optional] # noqa: E501
226
228
  last_order_dts (str): Date/time of the last order of this item. [optional] # noqa: E501
227
229
  life_time_value (float): The life time value of this item including the original purchase. [optional] # noqa: E501
230
+ next_item_id (str): Calculated next item id. [optional] # noqa: E501
228
231
  next_preshipment_notice_dts (str): The date/time of when the next pre-shipment notice should be sent. [optional] # noqa: E501
229
232
  next_shipment_dts (str): Date/time that this item is scheduled to rebill. [optional] # noqa: E501
230
233
  no_order_after_dts (str): Date/time after which no additional rebills of this item should occur. [optional] # noqa: E501
@@ -336,6 +339,7 @@ class AutoOrderItem(ModelNormal):
336
339
  future_schedules ([AutoOrderItemFutureSchedule]): The future rebill schedule for this item up to the next ten rebills. [optional] # noqa: E501
337
340
  last_order_dts (str): Date/time of the last order of this item. [optional] # noqa: E501
338
341
  life_time_value (float): The life time value of this item including the original purchase. [optional] # noqa: E501
342
+ next_item_id (str): Calculated next item id. [optional] # noqa: E501
339
343
  next_preshipment_notice_dts (str): The date/time of when the next pre-shipment notice should be sent. [optional] # noqa: E501
340
344
  next_shipment_dts (str): Date/time that this item is scheduled to rebill. [optional] # noqa: E501
341
345
  no_order_after_dts (str): Date/time after which no additional rebills of this item should occur. [optional] # noqa: E501
@@ -109,7 +109,7 @@ class ConversationPbxPhoneNumberResponse(ModelNormal):
109
109
  attribute_map = {
110
110
  'error': 'error', # noqa: E501
111
111
  'metadata': 'metadata', # noqa: E501
112
- 'phone_number': 'phoneNumber', # noqa: E501
112
+ 'phone_number': 'phone_number', # noqa: E501
113
113
  'success': 'success', # noqa: E501
114
114
  'warning': 'warning', # noqa: E501
115
115
  }
@@ -109,7 +109,7 @@ class ConversationPbxPhoneNumbersResponse(ModelNormal):
109
109
  attribute_map = {
110
110
  'error': 'error', # noqa: E501
111
111
  'metadata': 'metadata', # noqa: E501
112
- 'phone_numbers': 'phoneNumbers', # noqa: E501
112
+ 'phone_numbers': 'phone_numbers', # noqa: E501
113
113
  'success': 'success', # noqa: E501
114
114
  'warning': 'warning', # noqa: E501
115
115
  }
@@ -110,7 +110,7 @@ class ConversationPbxTimeBasedResponse(ModelNormal):
110
110
  'error': 'error', # noqa: E501
111
111
  'metadata': 'metadata', # noqa: E501
112
112
  'success': 'success', # noqa: E501
113
- 'time_based': 'timeBased', # noqa: E501
113
+ 'time_based': 'time_based', # noqa: E501
114
114
  'warning': 'warning', # noqa: E501
115
115
  }
116
116
 
@@ -110,7 +110,7 @@ class ConversationPbxTimeBasedsResponse(ModelNormal):
110
110
  'error': 'error', # noqa: E501
111
111
  'metadata': 'metadata', # noqa: E501
112
112
  'success': 'success', # noqa: E501
113
- 'time_baseds': 'timeBaseds', # noqa: E501
113
+ 'time_baseds': 'time_baseds', # noqa: E501
114
114
  'warning': 'warning', # noqa: E501
115
115
  }
116
116
 
@@ -110,7 +110,7 @@ class ConversationPbxTimeRangeResponse(ModelNormal):
110
110
  'error': 'error', # noqa: E501
111
111
  'metadata': 'metadata', # noqa: E501
112
112
  'success': 'success', # noqa: E501
113
- 'time_range': 'timeRange', # noqa: E501
113
+ 'time_range': 'time_range', # noqa: E501
114
114
  'warning': 'warning', # noqa: E501
115
115
  }
116
116
 
@@ -110,7 +110,7 @@ class ConversationPbxTimeRangesResponse(ModelNormal):
110
110
  'error': 'error', # noqa: E501
111
111
  'metadata': 'metadata', # noqa: E501
112
112
  'success': 'success', # noqa: E501
113
- 'time_ranges': 'timeRanges', # noqa: E501
113
+ 'time_ranges': 'time_ranges', # noqa: E501
114
114
  'warning': 'warning', # noqa: E501
115
115
  }
116
116
 
@@ -56,6 +56,10 @@ class ConversationPbxVoicemailMailbox(ModelNormal):
56
56
  """
57
57
 
58
58
  allowed_values = {
59
+ ('voicemail_mailbox_type',): {
60
+ 'AGENT': "agent",
61
+ 'SHARED': "shared",
62
+ },
59
63
  }
60
64
 
61
65
  validations = {
@@ -110,7 +110,7 @@ class ConversationPbxVoicemailMailboxResponse(ModelNormal):
110
110
  'error': 'error', # noqa: E501
111
111
  'metadata': 'metadata', # noqa: E501
112
112
  'success': 'success', # noqa: E501
113
- 'voicemail_mailbox': 'voicemailMailbox', # noqa: E501
113
+ 'voicemail_mailbox': 'voicemail_mailbox', # noqa: E501
114
114
  'warning': 'warning', # noqa: E501
115
115
  }
116
116
 
@@ -110,7 +110,7 @@ class ConversationPbxVoicemailMailboxesResponse(ModelNormal):
110
110
  'error': 'error', # noqa: E501
111
111
  'metadata': 'metadata', # noqa: E501
112
112
  'success': 'success', # noqa: E501
113
- 'voicemail_mailboxes': 'voicemailMailboxes', # noqa: E501
113
+ 'voicemail_mailboxes': 'voicemail_mailboxes', # noqa: E501
114
114
  'warning': 'warning', # noqa: E501
115
115
  }
116
116
 
@@ -0,0 +1,315 @@
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 ConversationPbxVoicemailMessage(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
+ ('recording_status',): {
60
+ 'COMPLETED': "completed",
61
+ },
62
+ }
63
+
64
+ validations = {
65
+ }
66
+
67
+ @cached_property
68
+ def additional_properties_type():
69
+ """
70
+ This must be a method because a model may have properties that are
71
+ of type self, this must run after the class is loaded
72
+ """
73
+ return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
74
+
75
+ _nullable = False
76
+
77
+ @cached_property
78
+ def openapi_types():
79
+ """
80
+ This must be a method because a model may have properties that are
81
+ of type self, this must run after the class is loaded
82
+
83
+ Returns
84
+ openapi_types (dict): The key is attribute name
85
+ and the value is attribute type.
86
+ """
87
+ return {
88
+ 'call_sid': (str,), # noqa: E501
89
+ 'duration': (int,), # noqa: E501
90
+ '_from': (str,), # noqa: E501
91
+ 'from_caller_id': (str,), # noqa: E501
92
+ 'listened': (bool,), # noqa: E501
93
+ 'merchant_id': (str,), # noqa: E501
94
+ 'recording_sid': (str,), # noqa: E501
95
+ 'recording_size_bytes': (int,), # noqa: E501
96
+ 'recording_status': (str,), # noqa: E501
97
+ 'recording_url': (str,), # noqa: E501
98
+ 'transcript_json': (str,), # noqa: E501
99
+ 'transcript_text': (str,), # noqa: E501
100
+ 'voicemail_dts': (str,), # noqa: E501
101
+ }
102
+
103
+ @cached_property
104
+ def discriminator():
105
+ return None
106
+
107
+
108
+ attribute_map = {
109
+ 'call_sid': 'call_sid', # noqa: E501
110
+ 'duration': 'duration', # noqa: E501
111
+ '_from': 'from', # noqa: E501
112
+ 'from_caller_id': 'from_caller_id', # noqa: E501
113
+ 'listened': 'listened', # noqa: E501
114
+ 'merchant_id': 'merchant_id', # noqa: E501
115
+ 'recording_sid': 'recording_sid', # noqa: E501
116
+ 'recording_size_bytes': 'recording_size_bytes', # noqa: E501
117
+ 'recording_status': 'recording_status', # noqa: E501
118
+ 'recording_url': 'recording_url', # noqa: E501
119
+ 'transcript_json': 'transcript_json', # noqa: E501
120
+ 'transcript_text': 'transcript_text', # noqa: E501
121
+ 'voicemail_dts': 'voicemail_dts', # noqa: E501
122
+ }
123
+
124
+ read_only_vars = {
125
+ }
126
+
127
+ _composed_schemas = {}
128
+
129
+ @classmethod
130
+ @convert_js_args_to_python_args
131
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
132
+ """ConversationPbxVoicemailMessage - a model defined in OpenAPI
133
+
134
+ Keyword Args:
135
+ _check_type (bool): if True, values for parameters in openapi_types
136
+ will be type checked and a TypeError will be
137
+ raised if the wrong type is input.
138
+ Defaults to True
139
+ _path_to_item (tuple/list): This is a list of keys or values to
140
+ drill down to the model in received_data
141
+ when deserializing a response
142
+ _spec_property_naming (bool): True if the variable names in the input data
143
+ are serialized names, as specified in the OpenAPI document.
144
+ False if the variable names in the input data
145
+ are pythonic names, e.g. snake case (default)
146
+ _configuration (Configuration): the instance to use when
147
+ deserializing a file_type parameter.
148
+ If passed, type conversion is attempted
149
+ If omitted no type conversion is done.
150
+ _visited_composed_classes (tuple): This stores a tuple of
151
+ classes that we have traveled through so that
152
+ if we see that class again we will not use its
153
+ discriminator again.
154
+ When traveling through a discriminator, the
155
+ composed schema that is
156
+ is traveled through is added to this set.
157
+ For example if Animal has a discriminator
158
+ petType and we pass in "Dog", and the class Dog
159
+ allOf includes Animal, we move through Animal
160
+ once using the discriminator, and pick Dog.
161
+ Then in Dog, we will make an instance of the
162
+ Animal class but this time we won't travel
163
+ through its discriminator because we passed in
164
+ _visited_composed_classes = (Animal,)
165
+ call_sid (str): Call SID. [optional] # noqa: E501
166
+ duration (int): Duration in seconds. [optional] # noqa: E501
167
+ _from (str): From phone number in E.164. [optional] # noqa: E501
168
+ from_caller_id (str): From caller id (if available). [optional] # noqa: E501
169
+ listened (bool): True if the voicemail has been listened to in the user interface. [optional] # noqa: E501
170
+ merchant_id (str): Merchant ID. [optional] # noqa: E501
171
+ recording_sid (str): Recording SID. [optional] # noqa: E501
172
+ recording_size_bytes (int): Recording size in bytes. [optional] # noqa: E501
173
+ recording_status (str): Recording Status. [optional] if omitted the server will use the default value of "completed" # noqa: E501
174
+ recording_url (str): Recording URL (expires in 4 hours). [optional] # noqa: E501
175
+ transcript_json (str): JSON version of the transcript. [optional] # noqa: E501
176
+ transcript_text (str): Formatted text of the transcript. [optional] # noqa: E501
177
+ voicemail_dts (str): Voicemail date/time. [optional] # noqa: E501
178
+ """
179
+
180
+ _check_type = kwargs.pop('_check_type', True)
181
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
182
+ _path_to_item = kwargs.pop('_path_to_item', ())
183
+ _configuration = kwargs.pop('_configuration', None)
184
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
185
+
186
+ self = super(OpenApiModel, cls).__new__(cls)
187
+
188
+ if args:
189
+ for arg in args:
190
+ if isinstance(arg, dict):
191
+ kwargs.update(arg)
192
+ else:
193
+ raise ApiTypeError(
194
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
195
+ args,
196
+ self.__class__.__name__,
197
+ ),
198
+ path_to_item=_path_to_item,
199
+ valid_classes=(self.__class__,),
200
+ )
201
+
202
+ self._data_store = {}
203
+ self._check_type = _check_type
204
+ self._spec_property_naming = _spec_property_naming
205
+ self._path_to_item = _path_to_item
206
+ self._configuration = _configuration
207
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
208
+
209
+ for var_name, var_value in kwargs.items():
210
+ if var_name not in self.attribute_map and \
211
+ self._configuration is not None and \
212
+ self._configuration.discard_unknown_keys and \
213
+ self.additional_properties_type is None:
214
+ # discard variable.
215
+ continue
216
+ setattr(self, var_name, var_value)
217
+ return self
218
+
219
+ required_properties = set([
220
+ '_data_store',
221
+ '_check_type',
222
+ '_spec_property_naming',
223
+ '_path_to_item',
224
+ '_configuration',
225
+ '_visited_composed_classes',
226
+ ])
227
+
228
+ @convert_js_args_to_python_args
229
+ def __init__(self, *args, **kwargs): # noqa: E501
230
+ """ConversationPbxVoicemailMessage - a model defined in OpenAPI
231
+
232
+ Keyword Args:
233
+ _check_type (bool): if True, values for parameters in openapi_types
234
+ will be type checked and a TypeError will be
235
+ raised if the wrong type is input.
236
+ Defaults to True
237
+ _path_to_item (tuple/list): This is a list of keys or values to
238
+ drill down to the model in received_data
239
+ when deserializing a response
240
+ _spec_property_naming (bool): True if the variable names in the input data
241
+ are serialized names, as specified in the OpenAPI document.
242
+ False if the variable names in the input data
243
+ are pythonic names, e.g. snake case (default)
244
+ _configuration (Configuration): the instance to use when
245
+ deserializing a file_type parameter.
246
+ If passed, type conversion is attempted
247
+ If omitted no type conversion is done.
248
+ _visited_composed_classes (tuple): This stores a tuple of
249
+ classes that we have traveled through so that
250
+ if we see that class again we will not use its
251
+ discriminator again.
252
+ When traveling through a discriminator, the
253
+ composed schema that is
254
+ is traveled through is added to this set.
255
+ For example if Animal has a discriminator
256
+ petType and we pass in "Dog", and the class Dog
257
+ allOf includes Animal, we move through Animal
258
+ once using the discriminator, and pick Dog.
259
+ Then in Dog, we will make an instance of the
260
+ Animal class but this time we won't travel
261
+ through its discriminator because we passed in
262
+ _visited_composed_classes = (Animal,)
263
+ call_sid (str): Call SID. [optional] # noqa: E501
264
+ duration (int): Duration in seconds. [optional] # noqa: E501
265
+ _from (str): From phone number in E.164. [optional] # noqa: E501
266
+ from_caller_id (str): From caller id (if available). [optional] # noqa: E501
267
+ listened (bool): True if the voicemail has been listened to in the user interface. [optional] # noqa: E501
268
+ merchant_id (str): Merchant ID. [optional] # noqa: E501
269
+ recording_sid (str): Recording SID. [optional] # noqa: E501
270
+ recording_size_bytes (int): Recording size in bytes. [optional] # noqa: E501
271
+ recording_status (str): Recording Status. [optional] if omitted the server will use the default value of "completed" # noqa: E501
272
+ recording_url (str): Recording URL (expires in 4 hours). [optional] # noqa: E501
273
+ transcript_json (str): JSON version of the transcript. [optional] # noqa: E501
274
+ transcript_text (str): Formatted text of the transcript. [optional] # noqa: E501
275
+ voicemail_dts (str): Voicemail date/time. [optional] # noqa: E501
276
+ """
277
+
278
+ _check_type = kwargs.pop('_check_type', True)
279
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
280
+ _path_to_item = kwargs.pop('_path_to_item', ())
281
+ _configuration = kwargs.pop('_configuration', None)
282
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
283
+
284
+ if args:
285
+ for arg in args:
286
+ if isinstance(arg, dict):
287
+ kwargs.update(arg)
288
+ else:
289
+ raise ApiTypeError(
290
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
291
+ args,
292
+ self.__class__.__name__,
293
+ ),
294
+ path_to_item=_path_to_item,
295
+ valid_classes=(self.__class__,),
296
+ )
297
+
298
+ self._data_store = {}
299
+ self._check_type = _check_type
300
+ self._spec_property_naming = _spec_property_naming
301
+ self._path_to_item = _path_to_item
302
+ self._configuration = _configuration
303
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
304
+
305
+ for var_name, var_value in kwargs.items():
306
+ if var_name not in self.attribute_map and \
307
+ self._configuration is not None and \
308
+ self._configuration.discard_unknown_keys and \
309
+ self.additional_properties_type is None:
310
+ # discard variable.
311
+ continue
312
+ setattr(self, var_name, var_value)
313
+ if var_name in self.read_only_vars:
314
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
315
+ f"class with read only attributes.")