ultracart-rest-sdk 3.11.45__py3-none-any.whl → 3.11.49__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.
@@ -31,6 +31,8 @@ class ConversationAgentAuth(object):
31
31
  and the value is json key in definition.
32
32
  """
33
33
  swagger_types = {
34
+ 'chat_admin': 'bool',
35
+ 'chat_user': 'bool',
34
36
  'conversation_participant_arn': 'str',
35
37
  'conversation_participant_name': 'str',
36
38
  'group_ids': 'list[int]',
@@ -50,6 +52,8 @@ class ConversationAgentAuth(object):
50
52
  }
51
53
 
52
54
  attribute_map = {
55
+ 'chat_admin': 'chat_admin',
56
+ 'chat_user': 'chat_user',
53
57
  'conversation_participant_arn': 'conversation_participant_arn',
54
58
  'conversation_participant_name': 'conversation_participant_name',
55
59
  'group_ids': 'group_ids',
@@ -68,9 +72,11 @@ class ConversationAgentAuth(object):
68
72
  'websocket_url': 'websocket_url'
69
73
  }
70
74
 
71
- def __init__(self, conversation_participant_arn=None, conversation_participant_name=None, group_ids=None, jwt=None, merchant_id=None, pbx_admin=None, pbx_jwt=None, pbx_supervisor=None, pbx_user=None, pbx_voice_identity=None, pbx_voice_token=None, pbx_worker_token=None, pbx_worker_token_v2=None, twilio_accounts=None, user_id=None, websocket_url=None): # noqa: E501
75
+ def __init__(self, chat_admin=None, chat_user=None, conversation_participant_arn=None, conversation_participant_name=None, group_ids=None, jwt=None, merchant_id=None, pbx_admin=None, pbx_jwt=None, pbx_supervisor=None, pbx_user=None, pbx_voice_identity=None, pbx_voice_token=None, pbx_worker_token=None, pbx_worker_token_v2=None, twilio_accounts=None, user_id=None, websocket_url=None): # noqa: E501
72
76
  """ConversationAgentAuth - a model defined in Swagger""" # noqa: E501
73
77
 
78
+ self._chat_admin = None
79
+ self._chat_user = None
74
80
  self._conversation_participant_arn = None
75
81
  self._conversation_participant_name = None
76
82
  self._group_ids = None
@@ -89,6 +95,10 @@ class ConversationAgentAuth(object):
89
95
  self._websocket_url = None
90
96
  self.discriminator = None
91
97
 
98
+ if chat_admin is not None:
99
+ self.chat_admin = chat_admin
100
+ if chat_user is not None:
101
+ self.chat_user = chat_user
92
102
  if conversation_participant_arn is not None:
93
103
  self.conversation_participant_arn = conversation_participant_arn
94
104
  if conversation_participant_name is not None:
@@ -122,6 +132,48 @@ class ConversationAgentAuth(object):
122
132
  if websocket_url is not None:
123
133
  self.websocket_url = websocket_url
124
134
 
135
+ @property
136
+ def chat_admin(self):
137
+ """Gets the chat_admin of this ConversationAgentAuth. # noqa: E501
138
+
139
+
140
+ :return: The chat_admin of this ConversationAgentAuth. # noqa: E501
141
+ :rtype: bool
142
+ """
143
+ return self._chat_admin
144
+
145
+ @chat_admin.setter
146
+ def chat_admin(self, chat_admin):
147
+ """Sets the chat_admin of this ConversationAgentAuth.
148
+
149
+
150
+ :param chat_admin: The chat_admin of this ConversationAgentAuth. # noqa: E501
151
+ :type: bool
152
+ """
153
+
154
+ self._chat_admin = chat_admin
155
+
156
+ @property
157
+ def chat_user(self):
158
+ """Gets the chat_user of this ConversationAgentAuth. # noqa: E501
159
+
160
+
161
+ :return: The chat_user of this ConversationAgentAuth. # noqa: E501
162
+ :rtype: bool
163
+ """
164
+ return self._chat_user
165
+
166
+ @chat_user.setter
167
+ def chat_user(self, chat_user):
168
+ """Sets the chat_user of this ConversationAgentAuth.
169
+
170
+
171
+ :param chat_user: The chat_user of this ConversationAgentAuth. # noqa: E501
172
+ :type: bool
173
+ """
174
+
175
+ self._chat_user = chat_user
176
+
125
177
  @property
126
178
  def conversation_participant_arn(self):
127
179
  """Gets the conversation_participant_arn of this ConversationAgentAuth. # noqa: E501
@@ -0,0 +1,473 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ UltraCart Rest API V2
5
+
6
+ UltraCart REST API Version 2 # noqa: E501
7
+
8
+ OpenAPI spec version: 2.0.0
9
+ Contact: support@ultracart.com
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+ """
12
+
13
+
14
+ import pprint
15
+ import re # noqa: F401
16
+
17
+ import six
18
+
19
+
20
+ class ConversationPbxHardwarePhone(object):
21
+ """NOTE: This class is auto generated by the swagger code generator program.
22
+
23
+ Do not edit the class manually.
24
+ """
25
+
26
+ """
27
+ Attributes:
28
+ swagger_types (dict): The key is attribute name
29
+ and the value is attribute type.
30
+ attribute_map (dict): The key is attribute name
31
+ and the value is json key in definition.
32
+ """
33
+ swagger_types = {
34
+ 'conversation_pbx_hardware_phone_uuid': 'str',
35
+ 'created_at': 'object',
36
+ 'description': 'str',
37
+ 'mac_address': 'str',
38
+ 'manufacturer': 'str',
39
+ 'merchant_id': 'str',
40
+ 'model': 'str',
41
+ 'name': 'str',
42
+ 'provisioning_url': 'str',
43
+ 'sip_domain': 'str',
44
+ 'sip_password': 'str',
45
+ 'sip_username': 'str',
46
+ 'updated_at': 'object'
47
+ }
48
+
49
+ attribute_map = {
50
+ 'conversation_pbx_hardware_phone_uuid': 'conversation_pbx_hardware_phone_uuid',
51
+ 'created_at': 'created_at',
52
+ 'description': 'description',
53
+ 'mac_address': 'mac_address',
54
+ 'manufacturer': 'manufacturer',
55
+ 'merchant_id': 'merchant_id',
56
+ 'model': 'model',
57
+ 'name': 'name',
58
+ 'provisioning_url': 'provisioning_url',
59
+ 'sip_domain': 'sip_domain',
60
+ 'sip_password': 'sip_password',
61
+ 'sip_username': 'sip_username',
62
+ 'updated_at': 'updated_at'
63
+ }
64
+
65
+ def __init__(self, conversation_pbx_hardware_phone_uuid=None, created_at=None, description=None, mac_address=None, manufacturer=None, merchant_id=None, model=None, name=None, provisioning_url=None, sip_domain=None, sip_password=None, sip_username=None, updated_at=None): # noqa: E501
66
+ """ConversationPbxHardwarePhone - a model defined in Swagger""" # noqa: E501
67
+
68
+ self._conversation_pbx_hardware_phone_uuid = None
69
+ self._created_at = None
70
+ self._description = None
71
+ self._mac_address = None
72
+ self._manufacturer = None
73
+ self._merchant_id = None
74
+ self._model = None
75
+ self._name = None
76
+ self._provisioning_url = None
77
+ self._sip_domain = None
78
+ self._sip_password = None
79
+ self._sip_username = None
80
+ self._updated_at = None
81
+ self.discriminator = None
82
+
83
+ if conversation_pbx_hardware_phone_uuid is not None:
84
+ self.conversation_pbx_hardware_phone_uuid = conversation_pbx_hardware_phone_uuid
85
+ if created_at is not None:
86
+ self.created_at = created_at
87
+ if description is not None:
88
+ self.description = description
89
+ if mac_address is not None:
90
+ self.mac_address = mac_address
91
+ if manufacturer is not None:
92
+ self.manufacturer = manufacturer
93
+ if merchant_id is not None:
94
+ self.merchant_id = merchant_id
95
+ if model is not None:
96
+ self.model = model
97
+ if name is not None:
98
+ self.name = name
99
+ if provisioning_url is not None:
100
+ self.provisioning_url = provisioning_url
101
+ if sip_domain is not None:
102
+ self.sip_domain = sip_domain
103
+ if sip_password is not None:
104
+ self.sip_password = sip_password
105
+ if sip_username is not None:
106
+ self.sip_username = sip_username
107
+ if updated_at is not None:
108
+ self.updated_at = updated_at
109
+
110
+ @property
111
+ def conversation_pbx_hardware_phone_uuid(self):
112
+ """Gets the conversation_pbx_hardware_phone_uuid of this ConversationPbxHardwarePhone. # noqa: E501
113
+
114
+ Conversation Pbx Hardware Phone UUID # noqa: E501
115
+
116
+ :return: The conversation_pbx_hardware_phone_uuid of this ConversationPbxHardwarePhone. # noqa: E501
117
+ :rtype: str
118
+ """
119
+ return self._conversation_pbx_hardware_phone_uuid
120
+
121
+ @conversation_pbx_hardware_phone_uuid.setter
122
+ def conversation_pbx_hardware_phone_uuid(self, conversation_pbx_hardware_phone_uuid):
123
+ """Sets the conversation_pbx_hardware_phone_uuid of this ConversationPbxHardwarePhone.
124
+
125
+ Conversation Pbx Hardware Phone UUID # noqa: E501
126
+
127
+ :param conversation_pbx_hardware_phone_uuid: The conversation_pbx_hardware_phone_uuid of this ConversationPbxHardwarePhone. # noqa: E501
128
+ :type: str
129
+ """
130
+ if conversation_pbx_hardware_phone_uuid is not None and len(conversation_pbx_hardware_phone_uuid) > 50:
131
+ raise ValueError("Invalid value for `conversation_pbx_hardware_phone_uuid`, length must be less than or equal to `50`") # noqa: E501
132
+
133
+ self._conversation_pbx_hardware_phone_uuid = conversation_pbx_hardware_phone_uuid
134
+
135
+ @property
136
+ def created_at(self):
137
+ """Gets the created_at of this ConversationPbxHardwarePhone. # noqa: E501
138
+
139
+ Created At # noqa: E501
140
+
141
+ :return: The created_at of this ConversationPbxHardwarePhone. # noqa: E501
142
+ :rtype: object
143
+ """
144
+ return self._created_at
145
+
146
+ @created_at.setter
147
+ def created_at(self, created_at):
148
+ """Sets the created_at of this ConversationPbxHardwarePhone.
149
+
150
+ Created At # noqa: E501
151
+
152
+ :param created_at: The created_at of this ConversationPbxHardwarePhone. # noqa: E501
153
+ :type: object
154
+ """
155
+
156
+ self._created_at = created_at
157
+
158
+ @property
159
+ def description(self):
160
+ """Gets the description of this ConversationPbxHardwarePhone. # noqa: E501
161
+
162
+ Description # noqa: E501
163
+
164
+ :return: The description of this ConversationPbxHardwarePhone. # noqa: E501
165
+ :rtype: str
166
+ """
167
+ return self._description
168
+
169
+ @description.setter
170
+ def description(self, description):
171
+ """Sets the description of this ConversationPbxHardwarePhone.
172
+
173
+ Description # noqa: E501
174
+
175
+ :param description: The description of this ConversationPbxHardwarePhone. # noqa: E501
176
+ :type: str
177
+ """
178
+ if description is not None and len(description) > 500:
179
+ raise ValueError("Invalid value for `description`, length must be less than or equal to `500`") # noqa: E501
180
+
181
+ self._description = description
182
+
183
+ @property
184
+ def mac_address(self):
185
+ """Gets the mac_address of this ConversationPbxHardwarePhone. # noqa: E501
186
+
187
+ MAC Address # noqa: E501
188
+
189
+ :return: The mac_address of this ConversationPbxHardwarePhone. # noqa: E501
190
+ :rtype: str
191
+ """
192
+ return self._mac_address
193
+
194
+ @mac_address.setter
195
+ def mac_address(self, mac_address):
196
+ """Sets the mac_address of this ConversationPbxHardwarePhone.
197
+
198
+ MAC Address # noqa: E501
199
+
200
+ :param mac_address: The mac_address of this ConversationPbxHardwarePhone. # noqa: E501
201
+ :type: str
202
+ """
203
+ if mac_address is not None and len(mac_address) > 17:
204
+ raise ValueError("Invalid value for `mac_address`, length must be less than or equal to `17`") # noqa: E501
205
+
206
+ self._mac_address = mac_address
207
+
208
+ @property
209
+ def manufacturer(self):
210
+ """Gets the manufacturer of this ConversationPbxHardwarePhone. # noqa: E501
211
+
212
+ Manufacturer # noqa: E501
213
+
214
+ :return: The manufacturer of this ConversationPbxHardwarePhone. # noqa: E501
215
+ :rtype: str
216
+ """
217
+ return self._manufacturer
218
+
219
+ @manufacturer.setter
220
+ def manufacturer(self, manufacturer):
221
+ """Sets the manufacturer of this ConversationPbxHardwarePhone.
222
+
223
+ Manufacturer # noqa: E501
224
+
225
+ :param manufacturer: The manufacturer of this ConversationPbxHardwarePhone. # noqa: E501
226
+ :type: str
227
+ """
228
+ if manufacturer is not None and len(manufacturer) > 100:
229
+ raise ValueError("Invalid value for `manufacturer`, length must be less than or equal to `100`") # noqa: E501
230
+
231
+ self._manufacturer = manufacturer
232
+
233
+ @property
234
+ def merchant_id(self):
235
+ """Gets the merchant_id of this ConversationPbxHardwarePhone. # noqa: E501
236
+
237
+ Merchant Id # noqa: E501
238
+
239
+ :return: The merchant_id of this ConversationPbxHardwarePhone. # noqa: E501
240
+ :rtype: str
241
+ """
242
+ return self._merchant_id
243
+
244
+ @merchant_id.setter
245
+ def merchant_id(self, merchant_id):
246
+ """Sets the merchant_id of this ConversationPbxHardwarePhone.
247
+
248
+ Merchant Id # noqa: E501
249
+
250
+ :param merchant_id: The merchant_id of this ConversationPbxHardwarePhone. # noqa: E501
251
+ :type: str
252
+ """
253
+ if merchant_id is not None and len(merchant_id) > 5:
254
+ raise ValueError("Invalid value for `merchant_id`, length must be less than or equal to `5`") # noqa: E501
255
+
256
+ self._merchant_id = merchant_id
257
+
258
+ @property
259
+ def model(self):
260
+ """Gets the model of this ConversationPbxHardwarePhone. # noqa: E501
261
+
262
+ Model # noqa: E501
263
+
264
+ :return: The model of this ConversationPbxHardwarePhone. # noqa: E501
265
+ :rtype: str
266
+ """
267
+ return self._model
268
+
269
+ @model.setter
270
+ def model(self, model):
271
+ """Sets the model of this ConversationPbxHardwarePhone.
272
+
273
+ Model # noqa: E501
274
+
275
+ :param model: The model of this ConversationPbxHardwarePhone. # noqa: E501
276
+ :type: str
277
+ """
278
+ if model is not None and len(model) > 100:
279
+ raise ValueError("Invalid value for `model`, length must be less than or equal to `100`") # noqa: E501
280
+
281
+ self._model = model
282
+
283
+ @property
284
+ def name(self):
285
+ """Gets the name of this ConversationPbxHardwarePhone. # noqa: E501
286
+
287
+ Name # noqa: E501
288
+
289
+ :return: The name of this ConversationPbxHardwarePhone. # noqa: E501
290
+ :rtype: str
291
+ """
292
+ return self._name
293
+
294
+ @name.setter
295
+ def name(self, name):
296
+ """Sets the name of this ConversationPbxHardwarePhone.
297
+
298
+ Name # noqa: E501
299
+
300
+ :param name: The name of this ConversationPbxHardwarePhone. # noqa: E501
301
+ :type: str
302
+ """
303
+ if name is not None and len(name) > 100:
304
+ raise ValueError("Invalid value for `name`, length must be less than or equal to `100`") # noqa: E501
305
+
306
+ self._name = name
307
+
308
+ @property
309
+ def provisioning_url(self):
310
+ """Gets the provisioning_url of this ConversationPbxHardwarePhone. # noqa: E501
311
+
312
+ Auto-provisioning URL for phone configuration # noqa: E501
313
+
314
+ :return: The provisioning_url of this ConversationPbxHardwarePhone. # noqa: E501
315
+ :rtype: str
316
+ """
317
+ return self._provisioning_url
318
+
319
+ @provisioning_url.setter
320
+ def provisioning_url(self, provisioning_url):
321
+ """Sets the provisioning_url of this ConversationPbxHardwarePhone.
322
+
323
+ Auto-provisioning URL for phone configuration # noqa: E501
324
+
325
+ :param provisioning_url: The provisioning_url of this ConversationPbxHardwarePhone. # noqa: E501
326
+ :type: str
327
+ """
328
+
329
+ self._provisioning_url = provisioning_url
330
+
331
+ @property
332
+ def sip_domain(self):
333
+ """Gets the sip_domain of this ConversationPbxHardwarePhone. # noqa: E501
334
+
335
+ SIP Domain # noqa: E501
336
+
337
+ :return: The sip_domain of this ConversationPbxHardwarePhone. # noqa: E501
338
+ :rtype: str
339
+ """
340
+ return self._sip_domain
341
+
342
+ @sip_domain.setter
343
+ def sip_domain(self, sip_domain):
344
+ """Sets the sip_domain of this ConversationPbxHardwarePhone.
345
+
346
+ SIP Domain # noqa: E501
347
+
348
+ :param sip_domain: The sip_domain of this ConversationPbxHardwarePhone. # noqa: E501
349
+ :type: str
350
+ """
351
+ if sip_domain is not None and len(sip_domain) > 200:
352
+ raise ValueError("Invalid value for `sip_domain`, length must be less than or equal to `200`") # noqa: E501
353
+
354
+ self._sip_domain = sip_domain
355
+
356
+ @property
357
+ def sip_password(self):
358
+ """Gets the sip_password of this ConversationPbxHardwarePhone. # noqa: E501
359
+
360
+ SIP Password # noqa: E501
361
+
362
+ :return: The sip_password of this ConversationPbxHardwarePhone. # noqa: E501
363
+ :rtype: str
364
+ """
365
+ return self._sip_password
366
+
367
+ @sip_password.setter
368
+ def sip_password(self, sip_password):
369
+ """Sets the sip_password of this ConversationPbxHardwarePhone.
370
+
371
+ SIP Password # noqa: E501
372
+
373
+ :param sip_password: The sip_password of this ConversationPbxHardwarePhone. # noqa: E501
374
+ :type: str
375
+ """
376
+ if sip_password is not None and len(sip_password) > 100:
377
+ raise ValueError("Invalid value for `sip_password`, length must be less than or equal to `100`") # noqa: E501
378
+
379
+ self._sip_password = sip_password
380
+
381
+ @property
382
+ def sip_username(self):
383
+ """Gets the sip_username of this ConversationPbxHardwarePhone. # noqa: E501
384
+
385
+ SIP Username # noqa: E501
386
+
387
+ :return: The sip_username of this ConversationPbxHardwarePhone. # noqa: E501
388
+ :rtype: str
389
+ """
390
+ return self._sip_username
391
+
392
+ @sip_username.setter
393
+ def sip_username(self, sip_username):
394
+ """Sets the sip_username of this ConversationPbxHardwarePhone.
395
+
396
+ SIP Username # noqa: E501
397
+
398
+ :param sip_username: The sip_username of this ConversationPbxHardwarePhone. # noqa: E501
399
+ :type: str
400
+ """
401
+ if sip_username is not None and len(sip_username) > 100:
402
+ raise ValueError("Invalid value for `sip_username`, length must be less than or equal to `100`") # noqa: E501
403
+
404
+ self._sip_username = sip_username
405
+
406
+ @property
407
+ def updated_at(self):
408
+ """Gets the updated_at of this ConversationPbxHardwarePhone. # noqa: E501
409
+
410
+ Updated At # noqa: E501
411
+
412
+ :return: The updated_at of this ConversationPbxHardwarePhone. # noqa: E501
413
+ :rtype: object
414
+ """
415
+ return self._updated_at
416
+
417
+ @updated_at.setter
418
+ def updated_at(self, updated_at):
419
+ """Sets the updated_at of this ConversationPbxHardwarePhone.
420
+
421
+ Updated At # noqa: E501
422
+
423
+ :param updated_at: The updated_at of this ConversationPbxHardwarePhone. # noqa: E501
424
+ :type: object
425
+ """
426
+
427
+ self._updated_at = updated_at
428
+
429
+ def to_dict(self):
430
+ """Returns the model properties as a dict"""
431
+ result = {}
432
+
433
+ for attr, _ in six.iteritems(self.swagger_types):
434
+ value = getattr(self, attr)
435
+ if isinstance(value, list):
436
+ result[attr] = list(map(
437
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
438
+ value
439
+ ))
440
+ elif hasattr(value, "to_dict"):
441
+ result[attr] = value.to_dict()
442
+ elif isinstance(value, dict):
443
+ result[attr] = dict(map(
444
+ lambda item: (item[0], item[1].to_dict())
445
+ if hasattr(item[1], "to_dict") else item,
446
+ value.items()
447
+ ))
448
+ else:
449
+ result[attr] = value
450
+ if issubclass(ConversationPbxHardwarePhone, dict):
451
+ for key, value in self.items():
452
+ result[key] = value
453
+
454
+ return result
455
+
456
+ def to_str(self):
457
+ """Returns the string representation of the model"""
458
+ return pprint.pformat(self.to_dict())
459
+
460
+ def __repr__(self):
461
+ """For `print` and `pprint`"""
462
+ return self.to_str()
463
+
464
+ def __eq__(self, other):
465
+ """Returns true if both objects are equal"""
466
+ if not isinstance(other, ConversationPbxHardwarePhone):
467
+ return False
468
+
469
+ return self.__dict__ == other.__dict__
470
+
471
+ def __ne__(self, other):
472
+ """Returns true if both objects are not equal"""
473
+ return not self == other