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.
- ultracart/__init__.py +9 -0
- ultracart/api/conversation_api.py +1028 -113
- ultracart/api/item_api.py +329 -0
- ultracart/api_client.py +1 -1
- ultracart/configuration.py +1 -1
- ultracart/models/__init__.py +9 -0
- ultracart/models/conversation_agent_profile.py +89 -1
- ultracart/models/conversation_department_member.py +27 -1
- ultracart/models/conversation_pbx_address.py +473 -0
- ultracart/models/conversation_pbx_address_response.py +221 -0
- ultracart/models/conversation_pbx_addresses_response.py +115 -0
- ultracart/models/conversation_pbx_agent.py +29 -1
- ultracart/models/conversation_pbx_available_phone_number.py +385 -0
- ultracart/models/conversation_pbx_available_phone_numbers_response.py +221 -0
- ultracart/models/conversation_pbx_phone_number.py +59 -1
- ultracart/models/conversation_pbx_phone_number_purchase_request.py +243 -0
- ultracart/models/conversation_pbx_queue.py +63 -1
- ultracart/models/coupon_codes_request.py +31 -1
- ultracart/models/item_content_multimedia.py +29 -1
- ultracart/models/item_inventory_update.py +173 -0
- ultracart/models/item_inventory_update_request.py +117 -0
- ultracart/models/item_related_item.py +1 -1
- ultracart/models/item_shipping_distribution_center_response.py +221 -0
- {ultracart_rest_sdk-3.11.36.dist-info → ultracart_rest_sdk-3.11.45.dist-info}/METADATA +1 -1
- {ultracart_rest_sdk-3.11.36.dist-info → ultracart_rest_sdk-3.11.45.dist-info}/RECORD +28 -19
- {ultracart_rest_sdk-3.11.36.dist-info → ultracart_rest_sdk-3.11.45.dist-info}/LICENSE +0 -0
- {ultracart_rest_sdk-3.11.36.dist-info → ultracart_rest_sdk-3.11.45.dist-info}/WHEEL +0 -0
- {ultracart_rest_sdk-3.11.36.dist-info → ultracart_rest_sdk-3.11.45.dist-info}/top_level.txt +0 -0
|
@@ -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 ConversationPbxAddress(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
|
+
'address_sid': 'str',
|
|
35
|
+
'city': 'str',
|
|
36
|
+
'conversation_pbx_address_uuid': 'str',
|
|
37
|
+
'country_code': 'str',
|
|
38
|
+
'customer_name': 'str',
|
|
39
|
+
'friendly_name': 'str',
|
|
40
|
+
'merchant_id': 'str',
|
|
41
|
+
'postal_code': 'str',
|
|
42
|
+
'region': 'str',
|
|
43
|
+
'street': 'str',
|
|
44
|
+
'valid': 'bool',
|
|
45
|
+
'validated': 'bool',
|
|
46
|
+
'verified': 'bool'
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
attribute_map = {
|
|
50
|
+
'address_sid': 'address_sid',
|
|
51
|
+
'city': 'city',
|
|
52
|
+
'conversation_pbx_address_uuid': 'conversation_pbx_address_uuid',
|
|
53
|
+
'country_code': 'country_code',
|
|
54
|
+
'customer_name': 'customer_name',
|
|
55
|
+
'friendly_name': 'friendly_name',
|
|
56
|
+
'merchant_id': 'merchant_id',
|
|
57
|
+
'postal_code': 'postal_code',
|
|
58
|
+
'region': 'region',
|
|
59
|
+
'street': 'street',
|
|
60
|
+
'valid': 'valid',
|
|
61
|
+
'validated': 'validated',
|
|
62
|
+
'verified': 'verified'
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
def __init__(self, address_sid=None, city=None, conversation_pbx_address_uuid=None, country_code=None, customer_name=None, friendly_name=None, merchant_id=None, postal_code=None, region=None, street=None, valid=None, validated=None, verified=None): # noqa: E501
|
|
66
|
+
"""ConversationPbxAddress - a model defined in Swagger""" # noqa: E501
|
|
67
|
+
|
|
68
|
+
self._address_sid = None
|
|
69
|
+
self._city = None
|
|
70
|
+
self._conversation_pbx_address_uuid = None
|
|
71
|
+
self._country_code = None
|
|
72
|
+
self._customer_name = None
|
|
73
|
+
self._friendly_name = None
|
|
74
|
+
self._merchant_id = None
|
|
75
|
+
self._postal_code = None
|
|
76
|
+
self._region = None
|
|
77
|
+
self._street = None
|
|
78
|
+
self._valid = None
|
|
79
|
+
self._validated = None
|
|
80
|
+
self._verified = None
|
|
81
|
+
self.discriminator = None
|
|
82
|
+
|
|
83
|
+
if address_sid is not None:
|
|
84
|
+
self.address_sid = address_sid
|
|
85
|
+
if city is not None:
|
|
86
|
+
self.city = city
|
|
87
|
+
if conversation_pbx_address_uuid is not None:
|
|
88
|
+
self.conversation_pbx_address_uuid = conversation_pbx_address_uuid
|
|
89
|
+
if country_code is not None:
|
|
90
|
+
self.country_code = country_code
|
|
91
|
+
if customer_name is not None:
|
|
92
|
+
self.customer_name = customer_name
|
|
93
|
+
if friendly_name is not None:
|
|
94
|
+
self.friendly_name = friendly_name
|
|
95
|
+
if merchant_id is not None:
|
|
96
|
+
self.merchant_id = merchant_id
|
|
97
|
+
if postal_code is not None:
|
|
98
|
+
self.postal_code = postal_code
|
|
99
|
+
if region is not None:
|
|
100
|
+
self.region = region
|
|
101
|
+
if street is not None:
|
|
102
|
+
self.street = street
|
|
103
|
+
if valid is not None:
|
|
104
|
+
self.valid = valid
|
|
105
|
+
if validated is not None:
|
|
106
|
+
self.validated = validated
|
|
107
|
+
if verified is not None:
|
|
108
|
+
self.verified = verified
|
|
109
|
+
|
|
110
|
+
@property
|
|
111
|
+
def address_sid(self):
|
|
112
|
+
"""Gets the address_sid of this ConversationPbxAddress. # noqa: E501
|
|
113
|
+
|
|
114
|
+
Twilio Address SID # noqa: E501
|
|
115
|
+
|
|
116
|
+
:return: The address_sid of this ConversationPbxAddress. # noqa: E501
|
|
117
|
+
:rtype: str
|
|
118
|
+
"""
|
|
119
|
+
return self._address_sid
|
|
120
|
+
|
|
121
|
+
@address_sid.setter
|
|
122
|
+
def address_sid(self, address_sid):
|
|
123
|
+
"""Sets the address_sid of this ConversationPbxAddress.
|
|
124
|
+
|
|
125
|
+
Twilio Address SID # noqa: E501
|
|
126
|
+
|
|
127
|
+
:param address_sid: The address_sid of this ConversationPbxAddress. # noqa: E501
|
|
128
|
+
:type: str
|
|
129
|
+
"""
|
|
130
|
+
if address_sid is not None and len(address_sid) > 50:
|
|
131
|
+
raise ValueError("Invalid value for `address_sid`, length must be less than or equal to `50`") # noqa: E501
|
|
132
|
+
|
|
133
|
+
self._address_sid = address_sid
|
|
134
|
+
|
|
135
|
+
@property
|
|
136
|
+
def city(self):
|
|
137
|
+
"""Gets the city of this ConversationPbxAddress. # noqa: E501
|
|
138
|
+
|
|
139
|
+
City # noqa: E501
|
|
140
|
+
|
|
141
|
+
:return: The city of this ConversationPbxAddress. # noqa: E501
|
|
142
|
+
:rtype: str
|
|
143
|
+
"""
|
|
144
|
+
return self._city
|
|
145
|
+
|
|
146
|
+
@city.setter
|
|
147
|
+
def city(self, city):
|
|
148
|
+
"""Sets the city of this ConversationPbxAddress.
|
|
149
|
+
|
|
150
|
+
City # noqa: E501
|
|
151
|
+
|
|
152
|
+
:param city: The city of this ConversationPbxAddress. # noqa: E501
|
|
153
|
+
:type: str
|
|
154
|
+
"""
|
|
155
|
+
if city is not None and len(city) > 100:
|
|
156
|
+
raise ValueError("Invalid value for `city`, length must be less than or equal to `100`") # noqa: E501
|
|
157
|
+
|
|
158
|
+
self._city = city
|
|
159
|
+
|
|
160
|
+
@property
|
|
161
|
+
def conversation_pbx_address_uuid(self):
|
|
162
|
+
"""Gets the conversation_pbx_address_uuid of this ConversationPbxAddress. # noqa: E501
|
|
163
|
+
|
|
164
|
+
Conversation Pbx Address UUID # noqa: E501
|
|
165
|
+
|
|
166
|
+
:return: The conversation_pbx_address_uuid of this ConversationPbxAddress. # noqa: E501
|
|
167
|
+
:rtype: str
|
|
168
|
+
"""
|
|
169
|
+
return self._conversation_pbx_address_uuid
|
|
170
|
+
|
|
171
|
+
@conversation_pbx_address_uuid.setter
|
|
172
|
+
def conversation_pbx_address_uuid(self, conversation_pbx_address_uuid):
|
|
173
|
+
"""Sets the conversation_pbx_address_uuid of this ConversationPbxAddress.
|
|
174
|
+
|
|
175
|
+
Conversation Pbx Address UUID # noqa: E501
|
|
176
|
+
|
|
177
|
+
:param conversation_pbx_address_uuid: The conversation_pbx_address_uuid of this ConversationPbxAddress. # noqa: E501
|
|
178
|
+
:type: str
|
|
179
|
+
"""
|
|
180
|
+
if conversation_pbx_address_uuid is not None and len(conversation_pbx_address_uuid) > 50:
|
|
181
|
+
raise ValueError("Invalid value for `conversation_pbx_address_uuid`, length must be less than or equal to `50`") # noqa: E501
|
|
182
|
+
|
|
183
|
+
self._conversation_pbx_address_uuid = conversation_pbx_address_uuid
|
|
184
|
+
|
|
185
|
+
@property
|
|
186
|
+
def country_code(self):
|
|
187
|
+
"""Gets the country_code of this ConversationPbxAddress. # noqa: E501
|
|
188
|
+
|
|
189
|
+
ISO country code (2 characters) # noqa: E501
|
|
190
|
+
|
|
191
|
+
:return: The country_code of this ConversationPbxAddress. # noqa: E501
|
|
192
|
+
:rtype: str
|
|
193
|
+
"""
|
|
194
|
+
return self._country_code
|
|
195
|
+
|
|
196
|
+
@country_code.setter
|
|
197
|
+
def country_code(self, country_code):
|
|
198
|
+
"""Sets the country_code of this ConversationPbxAddress.
|
|
199
|
+
|
|
200
|
+
ISO country code (2 characters) # noqa: E501
|
|
201
|
+
|
|
202
|
+
:param country_code: The country_code of this ConversationPbxAddress. # noqa: E501
|
|
203
|
+
:type: str
|
|
204
|
+
"""
|
|
205
|
+
if country_code is not None and len(country_code) > 2:
|
|
206
|
+
raise ValueError("Invalid value for `country_code`, length must be less than or equal to `2`") # noqa: E501
|
|
207
|
+
|
|
208
|
+
self._country_code = country_code
|
|
209
|
+
|
|
210
|
+
@property
|
|
211
|
+
def customer_name(self):
|
|
212
|
+
"""Gets the customer_name of this ConversationPbxAddress. # noqa: E501
|
|
213
|
+
|
|
214
|
+
Customer name # noqa: E501
|
|
215
|
+
|
|
216
|
+
:return: The customer_name of this ConversationPbxAddress. # noqa: E501
|
|
217
|
+
:rtype: str
|
|
218
|
+
"""
|
|
219
|
+
return self._customer_name
|
|
220
|
+
|
|
221
|
+
@customer_name.setter
|
|
222
|
+
def customer_name(self, customer_name):
|
|
223
|
+
"""Sets the customer_name of this ConversationPbxAddress.
|
|
224
|
+
|
|
225
|
+
Customer name # noqa: E501
|
|
226
|
+
|
|
227
|
+
:param customer_name: The customer_name of this ConversationPbxAddress. # noqa: E501
|
|
228
|
+
:type: str
|
|
229
|
+
"""
|
|
230
|
+
if customer_name is not None and len(customer_name) > 100:
|
|
231
|
+
raise ValueError("Invalid value for `customer_name`, length must be less than or equal to `100`") # noqa: E501
|
|
232
|
+
|
|
233
|
+
self._customer_name = customer_name
|
|
234
|
+
|
|
235
|
+
@property
|
|
236
|
+
def friendly_name(self):
|
|
237
|
+
"""Gets the friendly_name of this ConversationPbxAddress. # noqa: E501
|
|
238
|
+
|
|
239
|
+
Friendly name for the address # noqa: E501
|
|
240
|
+
|
|
241
|
+
:return: The friendly_name of this ConversationPbxAddress. # noqa: E501
|
|
242
|
+
:rtype: str
|
|
243
|
+
"""
|
|
244
|
+
return self._friendly_name
|
|
245
|
+
|
|
246
|
+
@friendly_name.setter
|
|
247
|
+
def friendly_name(self, friendly_name):
|
|
248
|
+
"""Sets the friendly_name of this ConversationPbxAddress.
|
|
249
|
+
|
|
250
|
+
Friendly name for the address # noqa: E501
|
|
251
|
+
|
|
252
|
+
:param friendly_name: The friendly_name of this ConversationPbxAddress. # noqa: E501
|
|
253
|
+
:type: str
|
|
254
|
+
"""
|
|
255
|
+
if friendly_name is not None and len(friendly_name) > 100:
|
|
256
|
+
raise ValueError("Invalid value for `friendly_name`, length must be less than or equal to `100`") # noqa: E501
|
|
257
|
+
|
|
258
|
+
self._friendly_name = friendly_name
|
|
259
|
+
|
|
260
|
+
@property
|
|
261
|
+
def merchant_id(self):
|
|
262
|
+
"""Gets the merchant_id of this ConversationPbxAddress. # noqa: E501
|
|
263
|
+
|
|
264
|
+
Merchant Id # noqa: E501
|
|
265
|
+
|
|
266
|
+
:return: The merchant_id of this ConversationPbxAddress. # noqa: E501
|
|
267
|
+
:rtype: str
|
|
268
|
+
"""
|
|
269
|
+
return self._merchant_id
|
|
270
|
+
|
|
271
|
+
@merchant_id.setter
|
|
272
|
+
def merchant_id(self, merchant_id):
|
|
273
|
+
"""Sets the merchant_id of this ConversationPbxAddress.
|
|
274
|
+
|
|
275
|
+
Merchant Id # noqa: E501
|
|
276
|
+
|
|
277
|
+
:param merchant_id: The merchant_id of this ConversationPbxAddress. # noqa: E501
|
|
278
|
+
:type: str
|
|
279
|
+
"""
|
|
280
|
+
if merchant_id is not None and len(merchant_id) > 5:
|
|
281
|
+
raise ValueError("Invalid value for `merchant_id`, length must be less than or equal to `5`") # noqa: E501
|
|
282
|
+
|
|
283
|
+
self._merchant_id = merchant_id
|
|
284
|
+
|
|
285
|
+
@property
|
|
286
|
+
def postal_code(self):
|
|
287
|
+
"""Gets the postal_code of this ConversationPbxAddress. # noqa: E501
|
|
288
|
+
|
|
289
|
+
Postal code # noqa: E501
|
|
290
|
+
|
|
291
|
+
:return: The postal_code of this ConversationPbxAddress. # noqa: E501
|
|
292
|
+
:rtype: str
|
|
293
|
+
"""
|
|
294
|
+
return self._postal_code
|
|
295
|
+
|
|
296
|
+
@postal_code.setter
|
|
297
|
+
def postal_code(self, postal_code):
|
|
298
|
+
"""Sets the postal_code of this ConversationPbxAddress.
|
|
299
|
+
|
|
300
|
+
Postal code # noqa: E501
|
|
301
|
+
|
|
302
|
+
:param postal_code: The postal_code of this ConversationPbxAddress. # noqa: E501
|
|
303
|
+
:type: str
|
|
304
|
+
"""
|
|
305
|
+
if postal_code is not None and len(postal_code) > 20:
|
|
306
|
+
raise ValueError("Invalid value for `postal_code`, length must be less than or equal to `20`") # noqa: E501
|
|
307
|
+
|
|
308
|
+
self._postal_code = postal_code
|
|
309
|
+
|
|
310
|
+
@property
|
|
311
|
+
def region(self):
|
|
312
|
+
"""Gets the region of this ConversationPbxAddress. # noqa: E501
|
|
313
|
+
|
|
314
|
+
State/Province/Region # noqa: E501
|
|
315
|
+
|
|
316
|
+
:return: The region of this ConversationPbxAddress. # noqa: E501
|
|
317
|
+
:rtype: str
|
|
318
|
+
"""
|
|
319
|
+
return self._region
|
|
320
|
+
|
|
321
|
+
@region.setter
|
|
322
|
+
def region(self, region):
|
|
323
|
+
"""Sets the region of this ConversationPbxAddress.
|
|
324
|
+
|
|
325
|
+
State/Province/Region # noqa: E501
|
|
326
|
+
|
|
327
|
+
:param region: The region of this ConversationPbxAddress. # noqa: E501
|
|
328
|
+
:type: str
|
|
329
|
+
"""
|
|
330
|
+
if region is not None and len(region) > 50:
|
|
331
|
+
raise ValueError("Invalid value for `region`, length must be less than or equal to `50`") # noqa: E501
|
|
332
|
+
|
|
333
|
+
self._region = region
|
|
334
|
+
|
|
335
|
+
@property
|
|
336
|
+
def street(self):
|
|
337
|
+
"""Gets the street of this ConversationPbxAddress. # noqa: E501
|
|
338
|
+
|
|
339
|
+
Street address # noqa: E501
|
|
340
|
+
|
|
341
|
+
:return: The street of this ConversationPbxAddress. # noqa: E501
|
|
342
|
+
:rtype: str
|
|
343
|
+
"""
|
|
344
|
+
return self._street
|
|
345
|
+
|
|
346
|
+
@street.setter
|
|
347
|
+
def street(self, street):
|
|
348
|
+
"""Sets the street of this ConversationPbxAddress.
|
|
349
|
+
|
|
350
|
+
Street address # noqa: E501
|
|
351
|
+
|
|
352
|
+
:param street: The street of this ConversationPbxAddress. # noqa: E501
|
|
353
|
+
:type: str
|
|
354
|
+
"""
|
|
355
|
+
if street is not None and len(street) > 200:
|
|
356
|
+
raise ValueError("Invalid value for `street`, length must be less than or equal to `200`") # noqa: E501
|
|
357
|
+
|
|
358
|
+
self._street = street
|
|
359
|
+
|
|
360
|
+
@property
|
|
361
|
+
def valid(self):
|
|
362
|
+
"""Gets the valid of this ConversationPbxAddress. # noqa: E501
|
|
363
|
+
|
|
364
|
+
Whether the address is valid (validated or verified) # noqa: E501
|
|
365
|
+
|
|
366
|
+
:return: The valid of this ConversationPbxAddress. # noqa: E501
|
|
367
|
+
:rtype: bool
|
|
368
|
+
"""
|
|
369
|
+
return self._valid
|
|
370
|
+
|
|
371
|
+
@valid.setter
|
|
372
|
+
def valid(self, valid):
|
|
373
|
+
"""Sets the valid of this ConversationPbxAddress.
|
|
374
|
+
|
|
375
|
+
Whether the address is valid (validated or verified) # noqa: E501
|
|
376
|
+
|
|
377
|
+
:param valid: The valid of this ConversationPbxAddress. # noqa: E501
|
|
378
|
+
:type: bool
|
|
379
|
+
"""
|
|
380
|
+
|
|
381
|
+
self._valid = valid
|
|
382
|
+
|
|
383
|
+
@property
|
|
384
|
+
def validated(self):
|
|
385
|
+
"""Gets the validated of this ConversationPbxAddress. # noqa: E501
|
|
386
|
+
|
|
387
|
+
Whether the address has been validated by Twilio # noqa: E501
|
|
388
|
+
|
|
389
|
+
:return: The validated of this ConversationPbxAddress. # noqa: E501
|
|
390
|
+
:rtype: bool
|
|
391
|
+
"""
|
|
392
|
+
return self._validated
|
|
393
|
+
|
|
394
|
+
@validated.setter
|
|
395
|
+
def validated(self, validated):
|
|
396
|
+
"""Sets the validated of this ConversationPbxAddress.
|
|
397
|
+
|
|
398
|
+
Whether the address has been validated by Twilio # noqa: E501
|
|
399
|
+
|
|
400
|
+
:param validated: The validated of this ConversationPbxAddress. # noqa: E501
|
|
401
|
+
:type: bool
|
|
402
|
+
"""
|
|
403
|
+
|
|
404
|
+
self._validated = validated
|
|
405
|
+
|
|
406
|
+
@property
|
|
407
|
+
def verified(self):
|
|
408
|
+
"""Gets the verified of this ConversationPbxAddress. # noqa: E501
|
|
409
|
+
|
|
410
|
+
Whether the address has been verified by Twilio # noqa: E501
|
|
411
|
+
|
|
412
|
+
:return: The verified of this ConversationPbxAddress. # noqa: E501
|
|
413
|
+
:rtype: bool
|
|
414
|
+
"""
|
|
415
|
+
return self._verified
|
|
416
|
+
|
|
417
|
+
@verified.setter
|
|
418
|
+
def verified(self, verified):
|
|
419
|
+
"""Sets the verified of this ConversationPbxAddress.
|
|
420
|
+
|
|
421
|
+
Whether the address has been verified by Twilio # noqa: E501
|
|
422
|
+
|
|
423
|
+
:param verified: The verified of this ConversationPbxAddress. # noqa: E501
|
|
424
|
+
:type: bool
|
|
425
|
+
"""
|
|
426
|
+
|
|
427
|
+
self._verified = verified
|
|
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(ConversationPbxAddress, 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, ConversationPbxAddress):
|
|
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
|
|
@@ -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 ConversationPbxAddressResponse(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
|
+
'address': 'ConversationPbxAddress',
|
|
35
|
+
'error': 'Error',
|
|
36
|
+
'metadata': 'ResponseMetadata',
|
|
37
|
+
'success': 'bool',
|
|
38
|
+
'warning': 'Warning'
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
attribute_map = {
|
|
42
|
+
'address': 'address',
|
|
43
|
+
'error': 'error',
|
|
44
|
+
'metadata': 'metadata',
|
|
45
|
+
'success': 'success',
|
|
46
|
+
'warning': 'warning'
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
def __init__(self, address=None, error=None, metadata=None, success=None, warning=None): # noqa: E501
|
|
50
|
+
"""ConversationPbxAddressResponse - a model defined in Swagger""" # noqa: E501
|
|
51
|
+
|
|
52
|
+
self._address = None
|
|
53
|
+
self._error = None
|
|
54
|
+
self._metadata = None
|
|
55
|
+
self._success = None
|
|
56
|
+
self._warning = None
|
|
57
|
+
self.discriminator = None
|
|
58
|
+
|
|
59
|
+
if address is not None:
|
|
60
|
+
self.address = address
|
|
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 address(self):
|
|
72
|
+
"""Gets the address of this ConversationPbxAddressResponse. # noqa: E501
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
:return: The address of this ConversationPbxAddressResponse. # noqa: E501
|
|
76
|
+
:rtype: ConversationPbxAddress
|
|
77
|
+
"""
|
|
78
|
+
return self._address
|
|
79
|
+
|
|
80
|
+
@address.setter
|
|
81
|
+
def address(self, address):
|
|
82
|
+
"""Sets the address of this ConversationPbxAddressResponse.
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
:param address: The address of this ConversationPbxAddressResponse. # noqa: E501
|
|
86
|
+
:type: ConversationPbxAddress
|
|
87
|
+
"""
|
|
88
|
+
|
|
89
|
+
self._address = address
|
|
90
|
+
|
|
91
|
+
@property
|
|
92
|
+
def error(self):
|
|
93
|
+
"""Gets the error of this ConversationPbxAddressResponse. # noqa: E501
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
:return: The error of this ConversationPbxAddressResponse. # 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 ConversationPbxAddressResponse.
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
:param error: The error of this ConversationPbxAddressResponse. # noqa: E501
|
|
107
|
+
:type: Error
|
|
108
|
+
"""
|
|
109
|
+
|
|
110
|
+
self._error = error
|
|
111
|
+
|
|
112
|
+
@property
|
|
113
|
+
def metadata(self):
|
|
114
|
+
"""Gets the metadata of this ConversationPbxAddressResponse. # noqa: E501
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
:return: The metadata of this ConversationPbxAddressResponse. # 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 ConversationPbxAddressResponse.
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
:param metadata: The metadata of this ConversationPbxAddressResponse. # noqa: E501
|
|
128
|
+
:type: ResponseMetadata
|
|
129
|
+
"""
|
|
130
|
+
|
|
131
|
+
self._metadata = metadata
|
|
132
|
+
|
|
133
|
+
@property
|
|
134
|
+
def success(self):
|
|
135
|
+
"""Gets the success of this ConversationPbxAddressResponse. # noqa: E501
|
|
136
|
+
|
|
137
|
+
Indicates if API call was successful # noqa: E501
|
|
138
|
+
|
|
139
|
+
:return: The success of this ConversationPbxAddressResponse. # 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 ConversationPbxAddressResponse.
|
|
147
|
+
|
|
148
|
+
Indicates if API call was successful # noqa: E501
|
|
149
|
+
|
|
150
|
+
:param success: The success of this ConversationPbxAddressResponse. # noqa: E501
|
|
151
|
+
:type: bool
|
|
152
|
+
"""
|
|
153
|
+
|
|
154
|
+
self._success = success
|
|
155
|
+
|
|
156
|
+
@property
|
|
157
|
+
def warning(self):
|
|
158
|
+
"""Gets the warning of this ConversationPbxAddressResponse. # noqa: E501
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
:return: The warning of this ConversationPbxAddressResponse. # 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 ConversationPbxAddressResponse.
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
:param warning: The warning of this ConversationPbxAddressResponse. # 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(ConversationPbxAddressResponse, 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, ConversationPbxAddressResponse):
|
|
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
|