ultracart-rest-sdk 3.11.36__py3-none-any.whl → 3.11.45__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 (28) hide show
  1. ultracart/__init__.py +9 -0
  2. ultracart/api/conversation_api.py +1028 -113
  3. ultracart/api/item_api.py +329 -0
  4. ultracart/api_client.py +1 -1
  5. ultracart/configuration.py +1 -1
  6. ultracart/models/__init__.py +9 -0
  7. ultracart/models/conversation_agent_profile.py +89 -1
  8. ultracart/models/conversation_department_member.py +27 -1
  9. ultracart/models/conversation_pbx_address.py +473 -0
  10. ultracart/models/conversation_pbx_address_response.py +221 -0
  11. ultracart/models/conversation_pbx_addresses_response.py +115 -0
  12. ultracart/models/conversation_pbx_agent.py +29 -1
  13. ultracart/models/conversation_pbx_available_phone_number.py +385 -0
  14. ultracart/models/conversation_pbx_available_phone_numbers_response.py +221 -0
  15. ultracart/models/conversation_pbx_phone_number.py +59 -1
  16. ultracart/models/conversation_pbx_phone_number_purchase_request.py +243 -0
  17. ultracart/models/conversation_pbx_queue.py +63 -1
  18. ultracart/models/coupon_codes_request.py +31 -1
  19. ultracart/models/item_content_multimedia.py +29 -1
  20. ultracart/models/item_inventory_update.py +173 -0
  21. ultracart/models/item_inventory_update_request.py +117 -0
  22. ultracart/models/item_related_item.py +1 -1
  23. ultracart/models/item_shipping_distribution_center_response.py +221 -0
  24. {ultracart_rest_sdk-3.11.36.dist-info → ultracart_rest_sdk-3.11.45.dist-info}/METADATA +1 -1
  25. {ultracart_rest_sdk-3.11.36.dist-info → ultracart_rest_sdk-3.11.45.dist-info}/RECORD +28 -19
  26. {ultracart_rest_sdk-3.11.36.dist-info → ultracart_rest_sdk-3.11.45.dist-info}/LICENSE +0 -0
  27. {ultracart_rest_sdk-3.11.36.dist-info → ultracart_rest_sdk-3.11.45.dist-info}/WHEEL +0 -0
  28. {ultracart_rest_sdk-3.11.36.dist-info → ultracart_rest_sdk-3.11.45.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,221 @@
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 ConversationPbxAvailablePhoneNumbersResponse(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
+ 'available_phone_numbers': 'list[ConversationPbxAvailablePhoneNumber]',
35
+ 'error': 'Error',
36
+ 'metadata': 'ResponseMetadata',
37
+ 'success': 'bool',
38
+ 'warning': 'Warning'
39
+ }
40
+
41
+ attribute_map = {
42
+ 'available_phone_numbers': 'available_phone_numbers',
43
+ 'error': 'error',
44
+ 'metadata': 'metadata',
45
+ 'success': 'success',
46
+ 'warning': 'warning'
47
+ }
48
+
49
+ def __init__(self, available_phone_numbers=None, error=None, metadata=None, success=None, warning=None): # noqa: E501
50
+ """ConversationPbxAvailablePhoneNumbersResponse - a model defined in Swagger""" # noqa: E501
51
+
52
+ self._available_phone_numbers = None
53
+ self._error = None
54
+ self._metadata = None
55
+ self._success = None
56
+ self._warning = None
57
+ self.discriminator = None
58
+
59
+ if available_phone_numbers is not None:
60
+ self.available_phone_numbers = available_phone_numbers
61
+ if error is not None:
62
+ self.error = error
63
+ if metadata is not None:
64
+ self.metadata = metadata
65
+ if success is not None:
66
+ self.success = success
67
+ if warning is not None:
68
+ self.warning = warning
69
+
70
+ @property
71
+ def available_phone_numbers(self):
72
+ """Gets the available_phone_numbers of this ConversationPbxAvailablePhoneNumbersResponse. # noqa: E501
73
+
74
+
75
+ :return: The available_phone_numbers of this ConversationPbxAvailablePhoneNumbersResponse. # noqa: E501
76
+ :rtype: list[ConversationPbxAvailablePhoneNumber]
77
+ """
78
+ return self._available_phone_numbers
79
+
80
+ @available_phone_numbers.setter
81
+ def available_phone_numbers(self, available_phone_numbers):
82
+ """Sets the available_phone_numbers of this ConversationPbxAvailablePhoneNumbersResponse.
83
+
84
+
85
+ :param available_phone_numbers: The available_phone_numbers of this ConversationPbxAvailablePhoneNumbersResponse. # noqa: E501
86
+ :type: list[ConversationPbxAvailablePhoneNumber]
87
+ """
88
+
89
+ self._available_phone_numbers = available_phone_numbers
90
+
91
+ @property
92
+ def error(self):
93
+ """Gets the error of this ConversationPbxAvailablePhoneNumbersResponse. # noqa: E501
94
+
95
+
96
+ :return: The error of this ConversationPbxAvailablePhoneNumbersResponse. # noqa: E501
97
+ :rtype: Error
98
+ """
99
+ return self._error
100
+
101
+ @error.setter
102
+ def error(self, error):
103
+ """Sets the error of this ConversationPbxAvailablePhoneNumbersResponse.
104
+
105
+
106
+ :param error: The error of this ConversationPbxAvailablePhoneNumbersResponse. # noqa: E501
107
+ :type: Error
108
+ """
109
+
110
+ self._error = error
111
+
112
+ @property
113
+ def metadata(self):
114
+ """Gets the metadata of this ConversationPbxAvailablePhoneNumbersResponse. # noqa: E501
115
+
116
+
117
+ :return: The metadata of this ConversationPbxAvailablePhoneNumbersResponse. # noqa: E501
118
+ :rtype: ResponseMetadata
119
+ """
120
+ return self._metadata
121
+
122
+ @metadata.setter
123
+ def metadata(self, metadata):
124
+ """Sets the metadata of this ConversationPbxAvailablePhoneNumbersResponse.
125
+
126
+
127
+ :param metadata: The metadata of this ConversationPbxAvailablePhoneNumbersResponse. # noqa: E501
128
+ :type: ResponseMetadata
129
+ """
130
+
131
+ self._metadata = metadata
132
+
133
+ @property
134
+ def success(self):
135
+ """Gets the success of this ConversationPbxAvailablePhoneNumbersResponse. # noqa: E501
136
+
137
+ Indicates if API call was successful # noqa: E501
138
+
139
+ :return: The success of this ConversationPbxAvailablePhoneNumbersResponse. # noqa: E501
140
+ :rtype: bool
141
+ """
142
+ return self._success
143
+
144
+ @success.setter
145
+ def success(self, success):
146
+ """Sets the success of this ConversationPbxAvailablePhoneNumbersResponse.
147
+
148
+ Indicates if API call was successful # noqa: E501
149
+
150
+ :param success: The success of this ConversationPbxAvailablePhoneNumbersResponse. # noqa: E501
151
+ :type: bool
152
+ """
153
+
154
+ self._success = success
155
+
156
+ @property
157
+ def warning(self):
158
+ """Gets the warning of this ConversationPbxAvailablePhoneNumbersResponse. # noqa: E501
159
+
160
+
161
+ :return: The warning of this ConversationPbxAvailablePhoneNumbersResponse. # noqa: E501
162
+ :rtype: Warning
163
+ """
164
+ return self._warning
165
+
166
+ @warning.setter
167
+ def warning(self, warning):
168
+ """Sets the warning of this ConversationPbxAvailablePhoneNumbersResponse.
169
+
170
+
171
+ :param warning: The warning of this ConversationPbxAvailablePhoneNumbersResponse. # noqa: E501
172
+ :type: Warning
173
+ """
174
+
175
+ self._warning = warning
176
+
177
+ def to_dict(self):
178
+ """Returns the model properties as a dict"""
179
+ result = {}
180
+
181
+ for attr, _ in six.iteritems(self.swagger_types):
182
+ value = getattr(self, attr)
183
+ if isinstance(value, list):
184
+ result[attr] = list(map(
185
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
186
+ value
187
+ ))
188
+ elif hasattr(value, "to_dict"):
189
+ result[attr] = value.to_dict()
190
+ elif isinstance(value, dict):
191
+ result[attr] = dict(map(
192
+ lambda item: (item[0], item[1].to_dict())
193
+ if hasattr(item[1], "to_dict") else item,
194
+ value.items()
195
+ ))
196
+ else:
197
+ result[attr] = value
198
+ if issubclass(ConversationPbxAvailablePhoneNumbersResponse, dict):
199
+ for key, value in self.items():
200
+ result[key] = value
201
+
202
+ return result
203
+
204
+ def to_str(self):
205
+ """Returns the string representation of the model"""
206
+ return pprint.pformat(self.to_dict())
207
+
208
+ def __repr__(self):
209
+ """For `print` and `pprint`"""
210
+ return self.to_str()
211
+
212
+ def __eq__(self, other):
213
+ """Returns true if both objects are equal"""
214
+ if not isinstance(other, ConversationPbxAvailablePhoneNumbersResponse):
215
+ return False
216
+
217
+ return self.__dict__ == other.__dict__
218
+
219
+ def __ne__(self, other):
220
+ """Returns true if both objects are not equal"""
221
+ return not self == other
@@ -33,7 +33,9 @@ class ConversationPbxPhoneNumber(object):
33
33
  swagger_types = {
34
34
  'action': 'str',
35
35
  'action_target': 'str',
36
+ 'address_sid': 'str',
36
37
  'conversation_pbx_phone_number_uuid': 'str',
38
+ 'deletion_protected': 'bool',
37
39
  'merchant_id': 'str',
38
40
  'phone_number': 'str'
39
41
  }
@@ -41,17 +43,21 @@ class ConversationPbxPhoneNumber(object):
41
43
  attribute_map = {
42
44
  'action': 'action',
43
45
  'action_target': 'action_target',
46
+ 'address_sid': 'address_sid',
44
47
  'conversation_pbx_phone_number_uuid': 'conversation_pbx_phone_number_uuid',
48
+ 'deletion_protected': 'deletion_protected',
45
49
  'merchant_id': 'merchant_id',
46
50
  'phone_number': 'phone_number'
47
51
  }
48
52
 
49
- def __init__(self, action=None, action_target=None, conversation_pbx_phone_number_uuid=None, merchant_id=None, phone_number=None): # noqa: E501
53
+ def __init__(self, action=None, action_target=None, address_sid=None, conversation_pbx_phone_number_uuid=None, deletion_protected=None, merchant_id=None, phone_number=None): # noqa: E501
50
54
  """ConversationPbxPhoneNumber - a model defined in Swagger""" # noqa: E501
51
55
 
52
56
  self._action = None
53
57
  self._action_target = None
58
+ self._address_sid = None
54
59
  self._conversation_pbx_phone_number_uuid = None
60
+ self._deletion_protected = None
55
61
  self._merchant_id = None
56
62
  self._phone_number = None
57
63
  self.discriminator = None
@@ -60,8 +66,12 @@ class ConversationPbxPhoneNumber(object):
60
66
  self.action = action
61
67
  if action_target is not None:
62
68
  self.action_target = action_target
69
+ if address_sid is not None:
70
+ self.address_sid = address_sid
63
71
  if conversation_pbx_phone_number_uuid is not None:
64
72
  self.conversation_pbx_phone_number_uuid = conversation_pbx_phone_number_uuid
73
+ if deletion_protected is not None:
74
+ self.deletion_protected = deletion_protected
65
75
  if merchant_id is not None:
66
76
  self.merchant_id = merchant_id
67
77
  if phone_number is not None:
@@ -121,6 +131,31 @@ class ConversationPbxPhoneNumber(object):
121
131
 
122
132
  self._action_target = action_target
123
133
 
134
+ @property
135
+ def address_sid(self):
136
+ """Gets the address_sid of this ConversationPbxPhoneNumber. # noqa: E501
137
+
138
+ Twilio Address SID linked to this phone number for regulatory compliance # noqa: E501
139
+
140
+ :return: The address_sid of this ConversationPbxPhoneNumber. # noqa: E501
141
+ :rtype: str
142
+ """
143
+ return self._address_sid
144
+
145
+ @address_sid.setter
146
+ def address_sid(self, address_sid):
147
+ """Sets the address_sid of this ConversationPbxPhoneNumber.
148
+
149
+ Twilio Address SID linked to this phone number for regulatory compliance # noqa: E501
150
+
151
+ :param address_sid: The address_sid of this ConversationPbxPhoneNumber. # noqa: E501
152
+ :type: str
153
+ """
154
+ if address_sid is not None and len(address_sid) > 50:
155
+ raise ValueError("Invalid value for `address_sid`, length must be less than or equal to `50`") # noqa: E501
156
+
157
+ self._address_sid = address_sid
158
+
124
159
  @property
125
160
  def conversation_pbx_phone_number_uuid(self):
126
161
  """Gets the conversation_pbx_phone_number_uuid of this ConversationPbxPhoneNumber. # noqa: E501
@@ -146,6 +181,29 @@ class ConversationPbxPhoneNumber(object):
146
181
 
147
182
  self._conversation_pbx_phone_number_uuid = conversation_pbx_phone_number_uuid
148
183
 
184
+ @property
185
+ def deletion_protected(self):
186
+ """Gets the deletion_protected of this ConversationPbxPhoneNumber. # noqa: E501
187
+
188
+ If true, this phone number cannot be deleted through the API. It must be deleted via the Twilio console. # noqa: E501
189
+
190
+ :return: The deletion_protected of this ConversationPbxPhoneNumber. # noqa: E501
191
+ :rtype: bool
192
+ """
193
+ return self._deletion_protected
194
+
195
+ @deletion_protected.setter
196
+ def deletion_protected(self, deletion_protected):
197
+ """Sets the deletion_protected of this ConversationPbxPhoneNumber.
198
+
199
+ If true, this phone number cannot be deleted through the API. It must be deleted via the Twilio console. # noqa: E501
200
+
201
+ :param deletion_protected: The deletion_protected of this ConversationPbxPhoneNumber. # noqa: E501
202
+ :type: bool
203
+ """
204
+
205
+ self._deletion_protected = deletion_protected
206
+
149
207
  @property
150
208
  def merchant_id(self):
151
209
  """Gets the merchant_id of this ConversationPbxPhoneNumber. # noqa: E501
@@ -0,0 +1,243 @@
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 ConversationPbxPhoneNumberPurchaseRequest(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
+ 'action': 'str',
35
+ 'action_target': 'str',
36
+ 'address_sid': 'str',
37
+ 'friendly_name': 'str',
38
+ 'phone_number': 'str'
39
+ }
40
+
41
+ attribute_map = {
42
+ 'action': 'action',
43
+ 'action_target': 'action_target',
44
+ 'address_sid': 'address_sid',
45
+ 'friendly_name': 'friendly_name',
46
+ 'phone_number': 'phone_number'
47
+ }
48
+
49
+ def __init__(self, action=None, action_target=None, address_sid=None, friendly_name=None, phone_number=None): # noqa: E501
50
+ """ConversationPbxPhoneNumberPurchaseRequest - a model defined in Swagger""" # noqa: E501
51
+
52
+ self._action = None
53
+ self._action_target = None
54
+ self._address_sid = None
55
+ self._friendly_name = None
56
+ self._phone_number = None
57
+ self.discriminator = None
58
+
59
+ if action is not None:
60
+ self.action = action
61
+ if action_target is not None:
62
+ self.action_target = action_target
63
+ if address_sid is not None:
64
+ self.address_sid = address_sid
65
+ if friendly_name is not None:
66
+ self.friendly_name = friendly_name
67
+ if phone_number is not None:
68
+ self.phone_number = phone_number
69
+
70
+ @property
71
+ def action(self):
72
+ """Gets the action of this ConversationPbxPhoneNumberPurchaseRequest. # noqa: E501
73
+
74
+ Initial action for incoming calls # noqa: E501
75
+
76
+ :return: The action of this ConversationPbxPhoneNumberPurchaseRequest. # noqa: E501
77
+ :rtype: str
78
+ """
79
+ return self._action
80
+
81
+ @action.setter
82
+ def action(self, action):
83
+ """Sets the action of this ConversationPbxPhoneNumberPurchaseRequest.
84
+
85
+ Initial action for incoming calls # noqa: E501
86
+
87
+ :param action: The action of this ConversationPbxPhoneNumberPurchaseRequest. # noqa: E501
88
+ :type: str
89
+ """
90
+ allowed_values = ["time based", "menu", "queue", "voicemail", "agent"] # noqa: E501
91
+ if action not in allowed_values:
92
+ raise ValueError(
93
+ "Invalid value for `action` ({0}), must be one of {1}" # noqa: E501
94
+ .format(action, allowed_values)
95
+ )
96
+
97
+ self._action = action
98
+
99
+ @property
100
+ def action_target(self):
101
+ """Gets the action_target of this ConversationPbxPhoneNumberPurchaseRequest. # noqa: E501
102
+
103
+ Initial action target UUID # noqa: E501
104
+
105
+ :return: The action_target of this ConversationPbxPhoneNumberPurchaseRequest. # noqa: E501
106
+ :rtype: str
107
+ """
108
+ return self._action_target
109
+
110
+ @action_target.setter
111
+ def action_target(self, action_target):
112
+ """Sets the action_target of this ConversationPbxPhoneNumberPurchaseRequest.
113
+
114
+ Initial action target UUID # noqa: E501
115
+
116
+ :param action_target: The action_target of this ConversationPbxPhoneNumberPurchaseRequest. # noqa: E501
117
+ :type: str
118
+ """
119
+ if action_target is not None and len(action_target) > 50:
120
+ raise ValueError("Invalid value for `action_target`, length must be less than or equal to `50`") # noqa: E501
121
+
122
+ self._action_target = action_target
123
+
124
+ @property
125
+ def address_sid(self):
126
+ """Gets the address_sid of this ConversationPbxPhoneNumberPurchaseRequest. # noqa: E501
127
+
128
+ Address SID if required for regulatory compliance # noqa: E501
129
+
130
+ :return: The address_sid of this ConversationPbxPhoneNumberPurchaseRequest. # noqa: E501
131
+ :rtype: str
132
+ """
133
+ return self._address_sid
134
+
135
+ @address_sid.setter
136
+ def address_sid(self, address_sid):
137
+ """Sets the address_sid of this ConversationPbxPhoneNumberPurchaseRequest.
138
+
139
+ Address SID if required for regulatory compliance # noqa: E501
140
+
141
+ :param address_sid: The address_sid of this ConversationPbxPhoneNumberPurchaseRequest. # noqa: E501
142
+ :type: str
143
+ """
144
+ if address_sid is not None and len(address_sid) > 50:
145
+ raise ValueError("Invalid value for `address_sid`, length must be less than or equal to `50`") # noqa: E501
146
+
147
+ self._address_sid = address_sid
148
+
149
+ @property
150
+ def friendly_name(self):
151
+ """Gets the friendly_name of this ConversationPbxPhoneNumberPurchaseRequest. # noqa: E501
152
+
153
+ Friendly name for the phone number # noqa: E501
154
+
155
+ :return: The friendly_name of this ConversationPbxPhoneNumberPurchaseRequest. # noqa: E501
156
+ :rtype: str
157
+ """
158
+ return self._friendly_name
159
+
160
+ @friendly_name.setter
161
+ def friendly_name(self, friendly_name):
162
+ """Sets the friendly_name of this ConversationPbxPhoneNumberPurchaseRequest.
163
+
164
+ Friendly name for the phone number # noqa: E501
165
+
166
+ :param friendly_name: The friendly_name of this ConversationPbxPhoneNumberPurchaseRequest. # noqa: E501
167
+ :type: str
168
+ """
169
+ if friendly_name is not None and len(friendly_name) > 64:
170
+ raise ValueError("Invalid value for `friendly_name`, length must be less than or equal to `64`") # noqa: E501
171
+
172
+ self._friendly_name = friendly_name
173
+
174
+ @property
175
+ def phone_number(self):
176
+ """Gets the phone_number of this ConversationPbxPhoneNumberPurchaseRequest. # noqa: E501
177
+
178
+ Phone number to purchase in E.164 format (from search results) # noqa: E501
179
+
180
+ :return: The phone_number of this ConversationPbxPhoneNumberPurchaseRequest. # noqa: E501
181
+ :rtype: str
182
+ """
183
+ return self._phone_number
184
+
185
+ @phone_number.setter
186
+ def phone_number(self, phone_number):
187
+ """Sets the phone_number of this ConversationPbxPhoneNumberPurchaseRequest.
188
+
189
+ Phone number to purchase in E.164 format (from search results) # noqa: E501
190
+
191
+ :param phone_number: The phone_number of this ConversationPbxPhoneNumberPurchaseRequest. # noqa: E501
192
+ :type: str
193
+ """
194
+ if phone_number is not None and len(phone_number) > 50:
195
+ raise ValueError("Invalid value for `phone_number`, length must be less than or equal to `50`") # noqa: E501
196
+
197
+ self._phone_number = phone_number
198
+
199
+ def to_dict(self):
200
+ """Returns the model properties as a dict"""
201
+ result = {}
202
+
203
+ for attr, _ in six.iteritems(self.swagger_types):
204
+ value = getattr(self, attr)
205
+ if isinstance(value, list):
206
+ result[attr] = list(map(
207
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
208
+ value
209
+ ))
210
+ elif hasattr(value, "to_dict"):
211
+ result[attr] = value.to_dict()
212
+ elif isinstance(value, dict):
213
+ result[attr] = dict(map(
214
+ lambda item: (item[0], item[1].to_dict())
215
+ if hasattr(item[1], "to_dict") else item,
216
+ value.items()
217
+ ))
218
+ else:
219
+ result[attr] = value
220
+ if issubclass(ConversationPbxPhoneNumberPurchaseRequest, dict):
221
+ for key, value in self.items():
222
+ result[key] = value
223
+
224
+ return result
225
+
226
+ def to_str(self):
227
+ """Returns the string representation of the model"""
228
+ return pprint.pformat(self.to_dict())
229
+
230
+ def __repr__(self):
231
+ """For `print` and `pprint`"""
232
+ return self.to_str()
233
+
234
+ def __eq__(self, other):
235
+ """Returns true if both objects are equal"""
236
+ if not isinstance(other, ConversationPbxPhoneNumberPurchaseRequest):
237
+ return False
238
+
239
+ return self.__dict__ == other.__dict__
240
+
241
+ def __ne__(self, other):
242
+ """Returns true if both objects are not equal"""
243
+ return not self == other
@@ -31,6 +31,8 @@ class ConversationPbxQueue(object):
31
31
  and the value is json key in definition.
32
32
  """
33
33
  swagger_types = {
34
+ 'ai_priority': 'str',
35
+ 'ai_timeout_seconds': 'int',
34
36
  'announce_queue_position': 'bool',
35
37
  'conversation_pbx_queue_uuid': 'str',
36
38
  'conversation_voicemail_mailbox_uuid': 'str',
@@ -55,6 +57,8 @@ class ConversationPbxQueue(object):
55
57
  }
56
58
 
57
59
  attribute_map = {
60
+ 'ai_priority': 'ai_priority',
61
+ 'ai_timeout_seconds': 'ai_timeout_seconds',
58
62
  'announce_queue_position': 'announce_queue_position',
59
63
  'conversation_pbx_queue_uuid': 'conversation_pbx_queue_uuid',
60
64
  'conversation_voicemail_mailbox_uuid': 'conversation_voicemail_mailbox_uuid',
@@ -78,9 +82,11 @@ class ConversationPbxQueue(object):
78
82
  'wrap_up_seconds': 'wrap_up_seconds'
79
83
  }
80
84
 
81
- def __init__(self, announce_queue_position=None, conversation_pbx_queue_uuid=None, conversation_voicemail_mailbox_uuid=None, hold_conversation_pbx_audio_uuid=None, max_hold_seconds=None, members=None, merchant_id=None, name=None, no_agent_available_play_audio_uuid=None, no_agent_available_say=None, no_agent_available_say_voice=None, play_audio_uuid=None, record_call=None, say=None, say_voice=None, twilio_taskrouter_workflow_sid=None, twilio_workspace_queue_sid=None, voicemail=None, wait_critical_seconds=None, wait_warning_seconds=None, wrap_up_seconds=None): # noqa: E501
85
+ def __init__(self, ai_priority=None, ai_timeout_seconds=None, announce_queue_position=None, conversation_pbx_queue_uuid=None, conversation_voicemail_mailbox_uuid=None, hold_conversation_pbx_audio_uuid=None, max_hold_seconds=None, members=None, merchant_id=None, name=None, no_agent_available_play_audio_uuid=None, no_agent_available_say=None, no_agent_available_say_voice=None, play_audio_uuid=None, record_call=None, say=None, say_voice=None, twilio_taskrouter_workflow_sid=None, twilio_workspace_queue_sid=None, voicemail=None, wait_critical_seconds=None, wait_warning_seconds=None, wrap_up_seconds=None): # noqa: E501
82
86
  """ConversationPbxQueue - a model defined in Swagger""" # noqa: E501
83
87
 
88
+ self._ai_priority = None
89
+ self._ai_timeout_seconds = None
84
90
  self._announce_queue_position = None
85
91
  self._conversation_pbx_queue_uuid = None
86
92
  self._conversation_voicemail_mailbox_uuid = None
@@ -104,6 +110,10 @@ class ConversationPbxQueue(object):
104
110
  self._wrap_up_seconds = None
105
111
  self.discriminator = None
106
112
 
113
+ if ai_priority is not None:
114
+ self.ai_priority = ai_priority
115
+ if ai_timeout_seconds is not None:
116
+ self.ai_timeout_seconds = ai_timeout_seconds
107
117
  if announce_queue_position is not None:
108
118
  self.announce_queue_position = announce_queue_position
109
119
  if conversation_pbx_queue_uuid is not None:
@@ -147,6 +157,58 @@ class ConversationPbxQueue(object):
147
157
  if wrap_up_seconds is not None:
148
158
  self.wrap_up_seconds = wrap_up_seconds
149
159
 
160
+ @property
161
+ def ai_priority(self):
162
+ """Gets the ai_priority of this ConversationPbxQueue. # noqa: E501
163
+
164
+ AI Agent Priority compared to human agents # noqa: E501
165
+
166
+ :return: The ai_priority of this ConversationPbxQueue. # noqa: E501
167
+ :rtype: str
168
+ """
169
+ return self._ai_priority
170
+
171
+ @ai_priority.setter
172
+ def ai_priority(self, ai_priority):
173
+ """Sets the ai_priority of this ConversationPbxQueue.
174
+
175
+ AI Agent Priority compared to human agents # noqa: E501
176
+
177
+ :param ai_priority: The ai_priority of this ConversationPbxQueue. # noqa: E501
178
+ :type: str
179
+ """
180
+ allowed_values = ["neutral", "first", "backup"] # noqa: E501
181
+ if ai_priority not in allowed_values:
182
+ raise ValueError(
183
+ "Invalid value for `ai_priority` ({0}), must be one of {1}" # noqa: E501
184
+ .format(ai_priority, allowed_values)
185
+ )
186
+
187
+ self._ai_priority = ai_priority
188
+
189
+ @property
190
+ def ai_timeout_seconds(self):
191
+ """Gets the ai_timeout_seconds of this ConversationPbxQueue. # noqa: E501
192
+
193
+ AI timeout seconds # noqa: E501
194
+
195
+ :return: The ai_timeout_seconds of this ConversationPbxQueue. # noqa: E501
196
+ :rtype: int
197
+ """
198
+ return self._ai_timeout_seconds
199
+
200
+ @ai_timeout_seconds.setter
201
+ def ai_timeout_seconds(self, ai_timeout_seconds):
202
+ """Sets the ai_timeout_seconds of this ConversationPbxQueue.
203
+
204
+ AI timeout seconds # noqa: E501
205
+
206
+ :param ai_timeout_seconds: The ai_timeout_seconds of this ConversationPbxQueue. # noqa: E501
207
+ :type: int
208
+ """
209
+
210
+ self._ai_timeout_seconds = ai_timeout_seconds
211
+
150
212
  @property
151
213
  def announce_queue_position(self):
152
214
  """Gets the announce_queue_position of this ConversationPbxQueue. # noqa: E501