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,115 @@
|
|
|
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 ConversationPbxAddressesResponse(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
|
+
'addresses': 'list[ConversationPbxAddress]'
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
attribute_map = {
|
|
38
|
+
'addresses': 'addresses'
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
def __init__(self, addresses=None): # noqa: E501
|
|
42
|
+
"""ConversationPbxAddressesResponse - a model defined in Swagger""" # noqa: E501
|
|
43
|
+
|
|
44
|
+
self._addresses = None
|
|
45
|
+
self.discriminator = None
|
|
46
|
+
|
|
47
|
+
if addresses is not None:
|
|
48
|
+
self.addresses = addresses
|
|
49
|
+
|
|
50
|
+
@property
|
|
51
|
+
def addresses(self):
|
|
52
|
+
"""Gets the addresses of this ConversationPbxAddressesResponse. # noqa: E501
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
:return: The addresses of this ConversationPbxAddressesResponse. # noqa: E501
|
|
56
|
+
:rtype: list[ConversationPbxAddress]
|
|
57
|
+
"""
|
|
58
|
+
return self._addresses
|
|
59
|
+
|
|
60
|
+
@addresses.setter
|
|
61
|
+
def addresses(self, addresses):
|
|
62
|
+
"""Sets the addresses of this ConversationPbxAddressesResponse.
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
:param addresses: The addresses of this ConversationPbxAddressesResponse. # noqa: E501
|
|
66
|
+
:type: list[ConversationPbxAddress]
|
|
67
|
+
"""
|
|
68
|
+
|
|
69
|
+
self._addresses = addresses
|
|
70
|
+
|
|
71
|
+
def to_dict(self):
|
|
72
|
+
"""Returns the model properties as a dict"""
|
|
73
|
+
result = {}
|
|
74
|
+
|
|
75
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
76
|
+
value = getattr(self, attr)
|
|
77
|
+
if isinstance(value, list):
|
|
78
|
+
result[attr] = list(map(
|
|
79
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
80
|
+
value
|
|
81
|
+
))
|
|
82
|
+
elif hasattr(value, "to_dict"):
|
|
83
|
+
result[attr] = value.to_dict()
|
|
84
|
+
elif isinstance(value, dict):
|
|
85
|
+
result[attr] = dict(map(
|
|
86
|
+
lambda item: (item[0], item[1].to_dict())
|
|
87
|
+
if hasattr(item[1], "to_dict") else item,
|
|
88
|
+
value.items()
|
|
89
|
+
))
|
|
90
|
+
else:
|
|
91
|
+
result[attr] = value
|
|
92
|
+
if issubclass(ConversationPbxAddressesResponse, dict):
|
|
93
|
+
for key, value in self.items():
|
|
94
|
+
result[key] = value
|
|
95
|
+
|
|
96
|
+
return result
|
|
97
|
+
|
|
98
|
+
def to_str(self):
|
|
99
|
+
"""Returns the string representation of the model"""
|
|
100
|
+
return pprint.pformat(self.to_dict())
|
|
101
|
+
|
|
102
|
+
def __repr__(self):
|
|
103
|
+
"""For `print` and `pprint`"""
|
|
104
|
+
return self.to_str()
|
|
105
|
+
|
|
106
|
+
def __eq__(self, other):
|
|
107
|
+
"""Returns true if both objects are equal"""
|
|
108
|
+
if not isinstance(other, ConversationPbxAddressesResponse):
|
|
109
|
+
return False
|
|
110
|
+
|
|
111
|
+
return self.__dict__ == other.__dict__
|
|
112
|
+
|
|
113
|
+
def __ne__(self, other):
|
|
114
|
+
"""Returns true if both objects are not equal"""
|
|
115
|
+
return not self == other
|
|
@@ -31,6 +31,7 @@ class ConversationPbxAgent(object):
|
|
|
31
31
|
and the value is json key in definition.
|
|
32
32
|
"""
|
|
33
33
|
swagger_types = {
|
|
34
|
+
'ai': 'bool',
|
|
34
35
|
'cellphone': 'str',
|
|
35
36
|
'conversation_pbx_agent_uuid': 'str',
|
|
36
37
|
'extension': 'int',
|
|
@@ -50,6 +51,7 @@ class ConversationPbxAgent(object):
|
|
|
50
51
|
}
|
|
51
52
|
|
|
52
53
|
attribute_map = {
|
|
54
|
+
'ai': 'ai',
|
|
53
55
|
'cellphone': 'cellphone',
|
|
54
56
|
'conversation_pbx_agent_uuid': 'conversation_pbx_agent_uuid',
|
|
55
57
|
'extension': 'extension',
|
|
@@ -68,9 +70,10 @@ class ConversationPbxAgent(object):
|
|
|
68
70
|
'voicemail': 'voicemail'
|
|
69
71
|
}
|
|
70
72
|
|
|
71
|
-
def __init__(self, cellphone=None, conversation_pbx_agent_uuid=None, extension=None, forward_calls_to_cellphone=None, full_name=None, login=None, merchant_id=None, personal_conversation_pbx_voicemail_mailbox_uuid=None, record_outgoing_automatically=None, shared_conversation_pbx_voicemail_mailbox_uuid=None, twilio_taskrouter_worker_id=None, unavailable_play_audio_uuid=None, unavailable_say=None, unavailable_say_voice=None, user_id=None, voicemail=None): # noqa: E501
|
|
73
|
+
def __init__(self, ai=None, cellphone=None, conversation_pbx_agent_uuid=None, extension=None, forward_calls_to_cellphone=None, full_name=None, login=None, merchant_id=None, personal_conversation_pbx_voicemail_mailbox_uuid=None, record_outgoing_automatically=None, shared_conversation_pbx_voicemail_mailbox_uuid=None, twilio_taskrouter_worker_id=None, unavailable_play_audio_uuid=None, unavailable_say=None, unavailable_say_voice=None, user_id=None, voicemail=None): # noqa: E501
|
|
72
74
|
"""ConversationPbxAgent - a model defined in Swagger""" # noqa: E501
|
|
73
75
|
|
|
76
|
+
self._ai = None
|
|
74
77
|
self._cellphone = None
|
|
75
78
|
self._conversation_pbx_agent_uuid = None
|
|
76
79
|
self._extension = None
|
|
@@ -89,6 +92,8 @@ class ConversationPbxAgent(object):
|
|
|
89
92
|
self._voicemail = None
|
|
90
93
|
self.discriminator = None
|
|
91
94
|
|
|
95
|
+
if ai is not None:
|
|
96
|
+
self.ai = ai
|
|
92
97
|
if cellphone is not None:
|
|
93
98
|
self.cellphone = cellphone
|
|
94
99
|
if conversation_pbx_agent_uuid is not None:
|
|
@@ -122,6 +127,29 @@ class ConversationPbxAgent(object):
|
|
|
122
127
|
if voicemail is not None:
|
|
123
128
|
self.voicemail = voicemail
|
|
124
129
|
|
|
130
|
+
@property
|
|
131
|
+
def ai(self):
|
|
132
|
+
"""Gets the ai of this ConversationPbxAgent. # noqa: E501
|
|
133
|
+
|
|
134
|
+
Flag to indicate if the agent is AI # noqa: E501
|
|
135
|
+
|
|
136
|
+
:return: The ai of this ConversationPbxAgent. # noqa: E501
|
|
137
|
+
:rtype: bool
|
|
138
|
+
"""
|
|
139
|
+
return self._ai
|
|
140
|
+
|
|
141
|
+
@ai.setter
|
|
142
|
+
def ai(self, ai):
|
|
143
|
+
"""Sets the ai of this ConversationPbxAgent.
|
|
144
|
+
|
|
145
|
+
Flag to indicate if the agent is AI # noqa: E501
|
|
146
|
+
|
|
147
|
+
:param ai: The ai of this ConversationPbxAgent. # noqa: E501
|
|
148
|
+
:type: bool
|
|
149
|
+
"""
|
|
150
|
+
|
|
151
|
+
self._ai = ai
|
|
152
|
+
|
|
125
153
|
@property
|
|
126
154
|
def cellphone(self):
|
|
127
155
|
"""Gets the cellphone of this ConversationPbxAgent. # noqa: E501
|
|
@@ -0,0 +1,385 @@
|
|
|
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 ConversationPbxAvailablePhoneNumber(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_requirements': 'str',
|
|
35
|
+
'country': 'str',
|
|
36
|
+
'friendly_name': 'str',
|
|
37
|
+
'locality': 'str',
|
|
38
|
+
'mms': 'bool',
|
|
39
|
+
'monthly_cost': 'float',
|
|
40
|
+
'phone_number': 'str',
|
|
41
|
+
'region': 'str',
|
|
42
|
+
'sms': 'bool',
|
|
43
|
+
'voice': 'bool'
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
attribute_map = {
|
|
47
|
+
'address_requirements': 'address_requirements',
|
|
48
|
+
'country': 'country',
|
|
49
|
+
'friendly_name': 'friendly_name',
|
|
50
|
+
'locality': 'locality',
|
|
51
|
+
'mms': 'mms',
|
|
52
|
+
'monthly_cost': 'monthly_cost',
|
|
53
|
+
'phone_number': 'phone_number',
|
|
54
|
+
'region': 'region',
|
|
55
|
+
'sms': 'sms',
|
|
56
|
+
'voice': 'voice'
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
def __init__(self, address_requirements=None, country=None, friendly_name=None, locality=None, mms=None, monthly_cost=None, phone_number=None, region=None, sms=None, voice=None): # noqa: E501
|
|
60
|
+
"""ConversationPbxAvailablePhoneNumber - a model defined in Swagger""" # noqa: E501
|
|
61
|
+
|
|
62
|
+
self._address_requirements = None
|
|
63
|
+
self._country = None
|
|
64
|
+
self._friendly_name = None
|
|
65
|
+
self._locality = None
|
|
66
|
+
self._mms = None
|
|
67
|
+
self._monthly_cost = None
|
|
68
|
+
self._phone_number = None
|
|
69
|
+
self._region = None
|
|
70
|
+
self._sms = None
|
|
71
|
+
self._voice = None
|
|
72
|
+
self.discriminator = None
|
|
73
|
+
|
|
74
|
+
if address_requirements is not None:
|
|
75
|
+
self.address_requirements = address_requirements
|
|
76
|
+
if country is not None:
|
|
77
|
+
self.country = country
|
|
78
|
+
if friendly_name is not None:
|
|
79
|
+
self.friendly_name = friendly_name
|
|
80
|
+
if locality is not None:
|
|
81
|
+
self.locality = locality
|
|
82
|
+
if mms is not None:
|
|
83
|
+
self.mms = mms
|
|
84
|
+
if monthly_cost is not None:
|
|
85
|
+
self.monthly_cost = monthly_cost
|
|
86
|
+
if phone_number is not None:
|
|
87
|
+
self.phone_number = phone_number
|
|
88
|
+
if region is not None:
|
|
89
|
+
self.region = region
|
|
90
|
+
if sms is not None:
|
|
91
|
+
self.sms = sms
|
|
92
|
+
if voice is not None:
|
|
93
|
+
self.voice = voice
|
|
94
|
+
|
|
95
|
+
@property
|
|
96
|
+
def address_requirements(self):
|
|
97
|
+
"""Gets the address_requirements of this ConversationPbxAvailablePhoneNumber. # noqa: E501
|
|
98
|
+
|
|
99
|
+
Address requirements # noqa: E501
|
|
100
|
+
|
|
101
|
+
:return: The address_requirements of this ConversationPbxAvailablePhoneNumber. # noqa: E501
|
|
102
|
+
:rtype: str
|
|
103
|
+
"""
|
|
104
|
+
return self._address_requirements
|
|
105
|
+
|
|
106
|
+
@address_requirements.setter
|
|
107
|
+
def address_requirements(self, address_requirements):
|
|
108
|
+
"""Sets the address_requirements of this ConversationPbxAvailablePhoneNumber.
|
|
109
|
+
|
|
110
|
+
Address requirements # noqa: E501
|
|
111
|
+
|
|
112
|
+
:param address_requirements: The address_requirements of this ConversationPbxAvailablePhoneNumber. # noqa: E501
|
|
113
|
+
:type: str
|
|
114
|
+
"""
|
|
115
|
+
allowed_values = ["none", "any", "local", "foreign"] # noqa: E501
|
|
116
|
+
if address_requirements not in allowed_values:
|
|
117
|
+
raise ValueError(
|
|
118
|
+
"Invalid value for `address_requirements` ({0}), must be one of {1}" # noqa: E501
|
|
119
|
+
.format(address_requirements, allowed_values)
|
|
120
|
+
)
|
|
121
|
+
|
|
122
|
+
self._address_requirements = address_requirements
|
|
123
|
+
|
|
124
|
+
@property
|
|
125
|
+
def country(self):
|
|
126
|
+
"""Gets the country of this ConversationPbxAvailablePhoneNumber. # noqa: E501
|
|
127
|
+
|
|
128
|
+
ISO country code # noqa: E501
|
|
129
|
+
|
|
130
|
+
:return: The country of this ConversationPbxAvailablePhoneNumber. # noqa: E501
|
|
131
|
+
:rtype: str
|
|
132
|
+
"""
|
|
133
|
+
return self._country
|
|
134
|
+
|
|
135
|
+
@country.setter
|
|
136
|
+
def country(self, country):
|
|
137
|
+
"""Sets the country of this ConversationPbxAvailablePhoneNumber.
|
|
138
|
+
|
|
139
|
+
ISO country code # noqa: E501
|
|
140
|
+
|
|
141
|
+
:param country: The country of this ConversationPbxAvailablePhoneNumber. # noqa: E501
|
|
142
|
+
:type: str
|
|
143
|
+
"""
|
|
144
|
+
if country is not None and len(country) > 2:
|
|
145
|
+
raise ValueError("Invalid value for `country`, length must be less than or equal to `2`") # noqa: E501
|
|
146
|
+
|
|
147
|
+
self._country = country
|
|
148
|
+
|
|
149
|
+
@property
|
|
150
|
+
def friendly_name(self):
|
|
151
|
+
"""Gets the friendly_name of this ConversationPbxAvailablePhoneNumber. # noqa: E501
|
|
152
|
+
|
|
153
|
+
Friendly formatted phone number # noqa: E501
|
|
154
|
+
|
|
155
|
+
:return: The friendly_name of this ConversationPbxAvailablePhoneNumber. # 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 ConversationPbxAvailablePhoneNumber.
|
|
163
|
+
|
|
164
|
+
Friendly formatted phone number # noqa: E501
|
|
165
|
+
|
|
166
|
+
:param friendly_name: The friendly_name of this ConversationPbxAvailablePhoneNumber. # noqa: E501
|
|
167
|
+
:type: str
|
|
168
|
+
"""
|
|
169
|
+
if friendly_name is not None and len(friendly_name) > 50:
|
|
170
|
+
raise ValueError("Invalid value for `friendly_name`, length must be less than or equal to `50`") # noqa: E501
|
|
171
|
+
|
|
172
|
+
self._friendly_name = friendly_name
|
|
173
|
+
|
|
174
|
+
@property
|
|
175
|
+
def locality(self):
|
|
176
|
+
"""Gets the locality of this ConversationPbxAvailablePhoneNumber. # noqa: E501
|
|
177
|
+
|
|
178
|
+
City/Locality # noqa: E501
|
|
179
|
+
|
|
180
|
+
:return: The locality of this ConversationPbxAvailablePhoneNumber. # noqa: E501
|
|
181
|
+
:rtype: str
|
|
182
|
+
"""
|
|
183
|
+
return self._locality
|
|
184
|
+
|
|
185
|
+
@locality.setter
|
|
186
|
+
def locality(self, locality):
|
|
187
|
+
"""Sets the locality of this ConversationPbxAvailablePhoneNumber.
|
|
188
|
+
|
|
189
|
+
City/Locality # noqa: E501
|
|
190
|
+
|
|
191
|
+
:param locality: The locality of this ConversationPbxAvailablePhoneNumber. # noqa: E501
|
|
192
|
+
:type: str
|
|
193
|
+
"""
|
|
194
|
+
if locality is not None and len(locality) > 100:
|
|
195
|
+
raise ValueError("Invalid value for `locality`, length must be less than or equal to `100`") # noqa: E501
|
|
196
|
+
|
|
197
|
+
self._locality = locality
|
|
198
|
+
|
|
199
|
+
@property
|
|
200
|
+
def mms(self):
|
|
201
|
+
"""Gets the mms of this ConversationPbxAvailablePhoneNumber. # noqa: E501
|
|
202
|
+
|
|
203
|
+
MMS capability # noqa: E501
|
|
204
|
+
|
|
205
|
+
:return: The mms of this ConversationPbxAvailablePhoneNumber. # noqa: E501
|
|
206
|
+
:rtype: bool
|
|
207
|
+
"""
|
|
208
|
+
return self._mms
|
|
209
|
+
|
|
210
|
+
@mms.setter
|
|
211
|
+
def mms(self, mms):
|
|
212
|
+
"""Sets the mms of this ConversationPbxAvailablePhoneNumber.
|
|
213
|
+
|
|
214
|
+
MMS capability # noqa: E501
|
|
215
|
+
|
|
216
|
+
:param mms: The mms of this ConversationPbxAvailablePhoneNumber. # noqa: E501
|
|
217
|
+
:type: bool
|
|
218
|
+
"""
|
|
219
|
+
|
|
220
|
+
self._mms = mms
|
|
221
|
+
|
|
222
|
+
@property
|
|
223
|
+
def monthly_cost(self):
|
|
224
|
+
"""Gets the monthly_cost of this ConversationPbxAvailablePhoneNumber. # noqa: E501
|
|
225
|
+
|
|
226
|
+
Monthly cost for this phone number # noqa: E501
|
|
227
|
+
|
|
228
|
+
:return: The monthly_cost of this ConversationPbxAvailablePhoneNumber. # noqa: E501
|
|
229
|
+
:rtype: float
|
|
230
|
+
"""
|
|
231
|
+
return self._monthly_cost
|
|
232
|
+
|
|
233
|
+
@monthly_cost.setter
|
|
234
|
+
def monthly_cost(self, monthly_cost):
|
|
235
|
+
"""Sets the monthly_cost of this ConversationPbxAvailablePhoneNumber.
|
|
236
|
+
|
|
237
|
+
Monthly cost for this phone number # noqa: E501
|
|
238
|
+
|
|
239
|
+
:param monthly_cost: The monthly_cost of this ConversationPbxAvailablePhoneNumber. # noqa: E501
|
|
240
|
+
:type: float
|
|
241
|
+
"""
|
|
242
|
+
|
|
243
|
+
self._monthly_cost = monthly_cost
|
|
244
|
+
|
|
245
|
+
@property
|
|
246
|
+
def phone_number(self):
|
|
247
|
+
"""Gets the phone_number of this ConversationPbxAvailablePhoneNumber. # noqa: E501
|
|
248
|
+
|
|
249
|
+
Phone number in E.164 format # noqa: E501
|
|
250
|
+
|
|
251
|
+
:return: The phone_number of this ConversationPbxAvailablePhoneNumber. # noqa: E501
|
|
252
|
+
:rtype: str
|
|
253
|
+
"""
|
|
254
|
+
return self._phone_number
|
|
255
|
+
|
|
256
|
+
@phone_number.setter
|
|
257
|
+
def phone_number(self, phone_number):
|
|
258
|
+
"""Sets the phone_number of this ConversationPbxAvailablePhoneNumber.
|
|
259
|
+
|
|
260
|
+
Phone number in E.164 format # noqa: E501
|
|
261
|
+
|
|
262
|
+
:param phone_number: The phone_number of this ConversationPbxAvailablePhoneNumber. # noqa: E501
|
|
263
|
+
:type: str
|
|
264
|
+
"""
|
|
265
|
+
if phone_number is not None and len(phone_number) > 50:
|
|
266
|
+
raise ValueError("Invalid value for `phone_number`, length must be less than or equal to `50`") # noqa: E501
|
|
267
|
+
|
|
268
|
+
self._phone_number = phone_number
|
|
269
|
+
|
|
270
|
+
@property
|
|
271
|
+
def region(self):
|
|
272
|
+
"""Gets the region of this ConversationPbxAvailablePhoneNumber. # noqa: E501
|
|
273
|
+
|
|
274
|
+
State/Province/Region # noqa: E501
|
|
275
|
+
|
|
276
|
+
:return: The region of this ConversationPbxAvailablePhoneNumber. # noqa: E501
|
|
277
|
+
:rtype: str
|
|
278
|
+
"""
|
|
279
|
+
return self._region
|
|
280
|
+
|
|
281
|
+
@region.setter
|
|
282
|
+
def region(self, region):
|
|
283
|
+
"""Sets the region of this ConversationPbxAvailablePhoneNumber.
|
|
284
|
+
|
|
285
|
+
State/Province/Region # noqa: E501
|
|
286
|
+
|
|
287
|
+
:param region: The region of this ConversationPbxAvailablePhoneNumber. # noqa: E501
|
|
288
|
+
:type: str
|
|
289
|
+
"""
|
|
290
|
+
if region is not None and len(region) > 50:
|
|
291
|
+
raise ValueError("Invalid value for `region`, length must be less than or equal to `50`") # noqa: E501
|
|
292
|
+
|
|
293
|
+
self._region = region
|
|
294
|
+
|
|
295
|
+
@property
|
|
296
|
+
def sms(self):
|
|
297
|
+
"""Gets the sms of this ConversationPbxAvailablePhoneNumber. # noqa: E501
|
|
298
|
+
|
|
299
|
+
SMS capability # noqa: E501
|
|
300
|
+
|
|
301
|
+
:return: The sms of this ConversationPbxAvailablePhoneNumber. # noqa: E501
|
|
302
|
+
:rtype: bool
|
|
303
|
+
"""
|
|
304
|
+
return self._sms
|
|
305
|
+
|
|
306
|
+
@sms.setter
|
|
307
|
+
def sms(self, sms):
|
|
308
|
+
"""Sets the sms of this ConversationPbxAvailablePhoneNumber.
|
|
309
|
+
|
|
310
|
+
SMS capability # noqa: E501
|
|
311
|
+
|
|
312
|
+
:param sms: The sms of this ConversationPbxAvailablePhoneNumber. # noqa: E501
|
|
313
|
+
:type: bool
|
|
314
|
+
"""
|
|
315
|
+
|
|
316
|
+
self._sms = sms
|
|
317
|
+
|
|
318
|
+
@property
|
|
319
|
+
def voice(self):
|
|
320
|
+
"""Gets the voice of this ConversationPbxAvailablePhoneNumber. # noqa: E501
|
|
321
|
+
|
|
322
|
+
Voice capability # noqa: E501
|
|
323
|
+
|
|
324
|
+
:return: The voice of this ConversationPbxAvailablePhoneNumber. # noqa: E501
|
|
325
|
+
:rtype: bool
|
|
326
|
+
"""
|
|
327
|
+
return self._voice
|
|
328
|
+
|
|
329
|
+
@voice.setter
|
|
330
|
+
def voice(self, voice):
|
|
331
|
+
"""Sets the voice of this ConversationPbxAvailablePhoneNumber.
|
|
332
|
+
|
|
333
|
+
Voice capability # noqa: E501
|
|
334
|
+
|
|
335
|
+
:param voice: The voice of this ConversationPbxAvailablePhoneNumber. # noqa: E501
|
|
336
|
+
:type: bool
|
|
337
|
+
"""
|
|
338
|
+
|
|
339
|
+
self._voice = voice
|
|
340
|
+
|
|
341
|
+
def to_dict(self):
|
|
342
|
+
"""Returns the model properties as a dict"""
|
|
343
|
+
result = {}
|
|
344
|
+
|
|
345
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
346
|
+
value = getattr(self, attr)
|
|
347
|
+
if isinstance(value, list):
|
|
348
|
+
result[attr] = list(map(
|
|
349
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
350
|
+
value
|
|
351
|
+
))
|
|
352
|
+
elif hasattr(value, "to_dict"):
|
|
353
|
+
result[attr] = value.to_dict()
|
|
354
|
+
elif isinstance(value, dict):
|
|
355
|
+
result[attr] = dict(map(
|
|
356
|
+
lambda item: (item[0], item[1].to_dict())
|
|
357
|
+
if hasattr(item[1], "to_dict") else item,
|
|
358
|
+
value.items()
|
|
359
|
+
))
|
|
360
|
+
else:
|
|
361
|
+
result[attr] = value
|
|
362
|
+
if issubclass(ConversationPbxAvailablePhoneNumber, dict):
|
|
363
|
+
for key, value in self.items():
|
|
364
|
+
result[key] = value
|
|
365
|
+
|
|
366
|
+
return result
|
|
367
|
+
|
|
368
|
+
def to_str(self):
|
|
369
|
+
"""Returns the string representation of the model"""
|
|
370
|
+
return pprint.pformat(self.to_dict())
|
|
371
|
+
|
|
372
|
+
def __repr__(self):
|
|
373
|
+
"""For `print` and `pprint`"""
|
|
374
|
+
return self.to_str()
|
|
375
|
+
|
|
376
|
+
def __eq__(self, other):
|
|
377
|
+
"""Returns true if both objects are equal"""
|
|
378
|
+
if not isinstance(other, ConversationPbxAvailablePhoneNumber):
|
|
379
|
+
return False
|
|
380
|
+
|
|
381
|
+
return self.__dict__ == other.__dict__
|
|
382
|
+
|
|
383
|
+
def __ne__(self, other):
|
|
384
|
+
"""Returns true if both objects are not equal"""
|
|
385
|
+
return not self == other
|