bluevia 1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE.LGPLv3 +165 -0
- data/License_Bluevia.txt +22 -0
- data/README +172 -0
- data/lib/bluevia.rb +13 -0
- data/lib/bluevia/ad_response.rb +35 -0
- data/lib/bluevia/advertising.rb +108 -0
- data/lib/bluevia/base_client.rb +401 -0
- data/lib/bluevia/bluevia_client.rb +119 -0
- data/lib/bluevia/bluevia_logger.rb +30 -0
- data/lib/bluevia/directory.rb +81 -0
- data/lib/bluevia/errors.rb +13 -0
- data/lib/bluevia/errors/client_error.rb +6 -0
- data/lib/bluevia/errors/not_found_error.rb +5 -0
- data/lib/bluevia/errors/server_error.rb +6 -0
- data/lib/bluevia/ext/hash.rb +64 -0
- data/lib/bluevia/messaging.rb +96 -0
- data/lib/bluevia/oauth.rb +117 -0
- data/lib/bluevia/response.rb +48 -0
- data/lib/bluevia/schemas.rb +10 -0
- data/lib/bluevia/schemas/common_types.rb +166 -0
- data/lib/bluevia/schemas/directory_types.rb +491 -0
- data/lib/bluevia/schemas/sms_types.rb +256 -0
- data/lib/bluevia/sms.rb +91 -0
- data/lib/bluevia/utils.rb +110 -0
- data/lib/multipartable.rb +15 -0
- data/test/test_advertising.rb +67 -0
- data/test/test_config.rb +77 -0
- data/test/test_directory.rb +124 -0
- data/test/test_oauth.rb +72 -0
- data/test/test_sms.rb +112 -0
- data/test/test_sms_mo.rb +78 -0
- metadata +137 -0
@@ -0,0 +1,166 @@
|
|
1
|
+
require 'xsd/qname'
|
2
|
+
|
3
|
+
module Schemas; module Common_types
|
4
|
+
|
5
|
+
|
6
|
+
# {http://www.telefonica.com/schemas/UNICA/REST/common/v1}AddressType
|
7
|
+
# street - SOAP::SOAPString
|
8
|
+
# streetNumber - SOAP::SOAPUnsignedInt
|
9
|
+
# locality - SOAP::SOAPString
|
10
|
+
# region - SOAP::SOAPString
|
11
|
+
# postalCode - SOAP::SOAPUnsignedInt
|
12
|
+
# country - SOAP::SOAPString
|
13
|
+
# ext - SOAP::SOAPString
|
14
|
+
class AddressType
|
15
|
+
attr_accessor :street
|
16
|
+
attr_accessor :streetNumber
|
17
|
+
attr_accessor :locality
|
18
|
+
attr_accessor :region
|
19
|
+
attr_accessor :postalCode
|
20
|
+
attr_accessor :country
|
21
|
+
attr_accessor :ext
|
22
|
+
|
23
|
+
def initialize(street = nil, streetNumber = nil, locality = nil, region = nil, postalCode = nil, country = nil, ext = nil)
|
24
|
+
@street = street
|
25
|
+
@streetNumber = streetNumber
|
26
|
+
@locality = locality
|
27
|
+
@region = region
|
28
|
+
@postalCode = postalCode
|
29
|
+
@country = country
|
30
|
+
@ext = ext
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
# {http://www.telefonica.com/schemas/UNICA/REST/common/v1}UserIdType
|
35
|
+
# phoneNumber - (any)
|
36
|
+
# anyUri - SOAP::SOAPAnyURI
|
37
|
+
# ipAddress - Schemas::Common_types::IpAddressType
|
38
|
+
# m_alias - (any)
|
39
|
+
# otherId - Schemas::Common_types::OtherIdType
|
40
|
+
class UserIdType
|
41
|
+
attr_accessor :phoneNumber
|
42
|
+
attr_accessor :anyUri
|
43
|
+
attr_accessor :ipAddress
|
44
|
+
attr_accessor :otherId
|
45
|
+
|
46
|
+
def m_alias
|
47
|
+
@v_alias
|
48
|
+
end
|
49
|
+
|
50
|
+
def m_alias=(value)
|
51
|
+
@v_alias = value
|
52
|
+
end
|
53
|
+
|
54
|
+
def initialize(phoneNumber = nil, anyUri = nil, ipAddress = nil, v_alias = nil, otherId = nil)
|
55
|
+
@phoneNumber = phoneNumber
|
56
|
+
@anyUri = anyUri
|
57
|
+
@ipAddress = ipAddress
|
58
|
+
@v_alias = v_alias
|
59
|
+
@otherId = otherId
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
# {http://www.telefonica.com/schemas/UNICA/REST/common/v1}IpAddressType
|
64
|
+
# ipv4 - (any)
|
65
|
+
# ipv6 - (any)
|
66
|
+
class IpAddressType
|
67
|
+
attr_accessor :ipv4
|
68
|
+
attr_accessor :ipv6
|
69
|
+
|
70
|
+
def initialize(ipv4 = nil, ipv6 = nil)
|
71
|
+
@ipv4 = ipv4
|
72
|
+
@ipv6 = ipv6
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
# {http://www.telefonica.com/schemas/UNICA/REST/common/v1}OtherIdType
|
77
|
+
# type - SOAP::SOAPString
|
78
|
+
# value - SOAP::SOAPString
|
79
|
+
class OtherIdType
|
80
|
+
attr_accessor :type
|
81
|
+
attr_accessor :value
|
82
|
+
|
83
|
+
def initialize(type = nil, value = nil)
|
84
|
+
@type = type
|
85
|
+
@value = value
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
# {http://www.telefonica.com/schemas/UNICA/REST/common/v1}ClientExceptionType
|
90
|
+
# exceptionCategory - SOAP::SOAPString
|
91
|
+
# exceptionId - SOAP::SOAPInt
|
92
|
+
# text - SOAP::SOAPString
|
93
|
+
# variables - SOAP::SOAPString
|
94
|
+
class ClientExceptionType
|
95
|
+
attr_accessor :exceptionCategory
|
96
|
+
attr_accessor :exceptionId
|
97
|
+
attr_accessor :text
|
98
|
+
attr_accessor :variables
|
99
|
+
|
100
|
+
def initialize(exceptionCategory = nil, exceptionId = nil, text = nil, variables = [])
|
101
|
+
@exceptionCategory = exceptionCategory
|
102
|
+
@exceptionId = exceptionId
|
103
|
+
@text = text
|
104
|
+
@variables = variables
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
108
|
+
# {http://www.telefonica.com/schemas/UNICA/REST/common/v1}ServerExceptionType
|
109
|
+
# exceptionCategory - SOAP::SOAPString
|
110
|
+
# exceptionId - SOAP::SOAPInt
|
111
|
+
# text - SOAP::SOAPString
|
112
|
+
# variables - SOAP::SOAPString
|
113
|
+
class ServerExceptionType
|
114
|
+
attr_accessor :exceptionCategory
|
115
|
+
attr_accessor :exceptionId
|
116
|
+
attr_accessor :text
|
117
|
+
attr_accessor :variables
|
118
|
+
|
119
|
+
def initialize(exceptionCategory = nil, exceptionId = nil, text = nil, variables = [])
|
120
|
+
@exceptionCategory = exceptionCategory
|
121
|
+
@exceptionId = exceptionId
|
122
|
+
@text = text
|
123
|
+
@variables = variables
|
124
|
+
end
|
125
|
+
end
|
126
|
+
|
127
|
+
# {http://www.telefonica.com/schemas/UNICA/REST/common/v1}SimpleReferenceType
|
128
|
+
# endpoint - SOAP::SOAPAnyURI
|
129
|
+
# correlator - SOAP::SOAPString
|
130
|
+
class SimpleReferenceType
|
131
|
+
attr_accessor :endpoint
|
132
|
+
attr_accessor :correlator
|
133
|
+
|
134
|
+
def initialize(endpoint = nil, correlator = nil)
|
135
|
+
@endpoint = endpoint
|
136
|
+
@correlator = correlator
|
137
|
+
end
|
138
|
+
end
|
139
|
+
|
140
|
+
# {http://www.telefonica.com/schemas/UNICA/REST/common/v1}ExtensionType
|
141
|
+
class ExtensionType
|
142
|
+
attr_reader :__xmlele_any
|
143
|
+
|
144
|
+
def set_any(elements)
|
145
|
+
@__xmlele_any = elements
|
146
|
+
end
|
147
|
+
|
148
|
+
def initialize
|
149
|
+
@__xmlele_any = nil
|
150
|
+
end
|
151
|
+
end
|
152
|
+
|
153
|
+
# {http://www.telefonica.com/schemas/UNICA/REST/common/v1}FlagType
|
154
|
+
class FlagType < ::String
|
155
|
+
No = FlagType.new("no")
|
156
|
+
Yes = FlagType.new("yes")
|
157
|
+
end
|
158
|
+
|
159
|
+
# {http://www.telefonica.com/schemas/UNICA/REST/common/v1}GenderType
|
160
|
+
class GenderType < ::String
|
161
|
+
Female = GenderType.new("female")
|
162
|
+
Male = GenderType.new("male")
|
163
|
+
end
|
164
|
+
|
165
|
+
|
166
|
+
end; end
|
@@ -0,0 +1,491 @@
|
|
1
|
+
require 'xsd/qname'
|
2
|
+
|
3
|
+
module Schemas; module Directory_types
|
4
|
+
|
5
|
+
|
6
|
+
# {http://www.telefonica.com/schemas/UNICA/REST/directory/v1/}UserInfoType
|
7
|
+
# userIdentities - Schemas::Directory_types::UserIdentitiesType
|
8
|
+
# userPersonalInfo - Schemas::Directory_types::UserPersonalInfoType
|
9
|
+
# userProfile - Schemas::Directory_types::UserProfileType
|
10
|
+
# userAccessInfo - Schemas::Directory_types::UserAccessInfoType
|
11
|
+
# userTerminalInfo - Schemas::Directory_types::UserTerminalInfoType
|
12
|
+
class UserInfoType
|
13
|
+
attr_accessor :userIdentities
|
14
|
+
attr_accessor :userPersonalInfo
|
15
|
+
attr_accessor :userProfile
|
16
|
+
attr_accessor :userAccessInfo
|
17
|
+
attr_accessor :userTerminalInfo
|
18
|
+
|
19
|
+
def initialize(userIdentities = nil, userPersonalInfo = nil, userProfile = nil, userAccessInfo = nil, userTerminalInfo = nil)
|
20
|
+
@userIdentities = userIdentities
|
21
|
+
@userPersonalInfo = userPersonalInfo
|
22
|
+
@userProfile = userProfile
|
23
|
+
@userAccessInfo = userAccessInfo
|
24
|
+
@userTerminalInfo = userTerminalInfo
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
# {http://www.telefonica.com/schemas/UNICA/REST/directory/v1/}UserIdentitiesType
|
29
|
+
# phoneNumber - (any)
|
30
|
+
# telUri - (any)
|
31
|
+
# sipUri - (any)
|
32
|
+
# email - (any)
|
33
|
+
# ipAddress - Schemas::Directory_types::IpAddressType
|
34
|
+
# m_alias - (any)
|
35
|
+
# otherId - Schemas::Directory_types::OtherIdType
|
36
|
+
class UserIdentitiesType
|
37
|
+
attr_accessor :phoneNumber
|
38
|
+
attr_accessor :telUri
|
39
|
+
attr_accessor :sipUri
|
40
|
+
attr_accessor :email
|
41
|
+
attr_accessor :ipAddress
|
42
|
+
attr_accessor :otherId
|
43
|
+
|
44
|
+
def m_alias
|
45
|
+
@v_alias
|
46
|
+
end
|
47
|
+
|
48
|
+
def m_alias=(value)
|
49
|
+
@v_alias = value
|
50
|
+
end
|
51
|
+
|
52
|
+
def initialize(phoneNumber = nil, telUri = nil, sipUri = nil, email = nil, ipAddress = nil, v_alias = nil, otherId = nil)
|
53
|
+
@phoneNumber = phoneNumber
|
54
|
+
@telUri = telUri
|
55
|
+
@sipUri = sipUri
|
56
|
+
@email = email
|
57
|
+
@ipAddress = ipAddress
|
58
|
+
@v_alias = v_alias
|
59
|
+
@otherId = otherId
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
# {http://www.telefonica.com/schemas/UNICA/REST/directory/v1/}UserPersonalInfoType
|
64
|
+
# displayName - SOAP::SOAPString
|
65
|
+
# name - Schemas::Directory_types::NameType
|
66
|
+
# namePrefix - SOAP::SOAPString
|
67
|
+
# nameSufix - SOAP::SOAPString
|
68
|
+
# birthday - SOAP::SOAPDate
|
69
|
+
# gender - Schemas::Directory_types::GenderType
|
70
|
+
# address - Schemas::Directory_types::AddressType
|
71
|
+
# lastUpdated - (any)
|
72
|
+
# extension - Schemas::Directory_types::ExtensionType
|
73
|
+
class UserPersonalInfoType
|
74
|
+
attr_accessor :displayName
|
75
|
+
attr_accessor :name
|
76
|
+
attr_accessor :namePrefix
|
77
|
+
attr_accessor :nameSufix
|
78
|
+
attr_accessor :birthday
|
79
|
+
attr_accessor :gender
|
80
|
+
attr_accessor :address
|
81
|
+
attr_accessor :lastUpdated
|
82
|
+
attr_accessor :extension
|
83
|
+
attr_reader :__xmlele_any
|
84
|
+
|
85
|
+
def set_any(elements)
|
86
|
+
@__xmlele_any = elements
|
87
|
+
end
|
88
|
+
|
89
|
+
def initialize(displayName = nil, name = nil, namePrefix = nil, nameSufix = nil, birthday = nil, gender = nil, address = nil, lastUpdated = nil, extension = nil)
|
90
|
+
@displayName = displayName
|
91
|
+
@name = name
|
92
|
+
@namePrefix = namePrefix
|
93
|
+
@nameSufix = nameSufix
|
94
|
+
@birthday = birthday
|
95
|
+
@gender = gender
|
96
|
+
@address = address
|
97
|
+
@lastUpdated = lastUpdated
|
98
|
+
@extension = extension
|
99
|
+
@__xmlele_any = nil
|
100
|
+
end
|
101
|
+
end
|
102
|
+
|
103
|
+
# {http://www.telefonica.com/schemas/UNICA/REST/directory/v1/}UserProfileType
|
104
|
+
# userType - (any)
|
105
|
+
# imsi - (any)
|
106
|
+
# icb - (any)
|
107
|
+
# ocb - (any)
|
108
|
+
# language - (any)
|
109
|
+
# simType - (any)
|
110
|
+
# parentalControl - (any)
|
111
|
+
# creditControl - Schemas::Directory_types::FlagType
|
112
|
+
# diversionMsisdn - (any)
|
113
|
+
# enterpriseName - (any)
|
114
|
+
# roaming - Schemas::Directory_types::FlagType
|
115
|
+
# operatorId - (any)
|
116
|
+
# mmsStatus - Schemas::Directory_types::MmsStatusType
|
117
|
+
# segment - (any)
|
118
|
+
# subsegment - (any)
|
119
|
+
# subscribedService - Schemas::Directory_types::SubscribedServiceType
|
120
|
+
# lastUpdated - (any)
|
121
|
+
# extension - Schemas::Directory_types::ExtensionType
|
122
|
+
class UserProfileType
|
123
|
+
attr_accessor :userType
|
124
|
+
attr_accessor :imsi
|
125
|
+
attr_accessor :icb
|
126
|
+
attr_accessor :ocb
|
127
|
+
attr_accessor :language
|
128
|
+
attr_accessor :simType
|
129
|
+
attr_accessor :parentalControl
|
130
|
+
attr_accessor :creditControl
|
131
|
+
attr_accessor :diversionMsisdn
|
132
|
+
attr_accessor :enterpriseName
|
133
|
+
attr_accessor :roaming
|
134
|
+
attr_accessor :operatorId
|
135
|
+
attr_accessor :mmsStatus
|
136
|
+
attr_accessor :segment
|
137
|
+
attr_accessor :subsegment
|
138
|
+
attr_accessor :subscribedService
|
139
|
+
attr_accessor :lastUpdated
|
140
|
+
attr_accessor :extension
|
141
|
+
attr_reader :__xmlele_any
|
142
|
+
|
143
|
+
def set_any(elements)
|
144
|
+
@__xmlele_any = elements
|
145
|
+
end
|
146
|
+
|
147
|
+
def initialize(userType = nil, imsi = nil, icb = nil, ocb = nil, language = nil, simType = nil, parentalControl = nil, creditControl = nil, diversionMsisdn = nil, enterpriseName = nil, roaming = nil, operatorId = nil, mmsStatus = nil, segment = nil, subsegment = nil, subscribedService = [], lastUpdated = nil, extension = nil)
|
148
|
+
@userType = userType
|
149
|
+
@imsi = imsi
|
150
|
+
@icb = icb
|
151
|
+
@ocb = ocb
|
152
|
+
@language = language
|
153
|
+
@simType = simType
|
154
|
+
@parentalControl = parentalControl
|
155
|
+
@creditControl = creditControl
|
156
|
+
@diversionMsisdn = diversionMsisdn
|
157
|
+
@enterpriseName = enterpriseName
|
158
|
+
@roaming = roaming
|
159
|
+
@operatorId = operatorId
|
160
|
+
@mmsStatus = mmsStatus
|
161
|
+
@segment = segment
|
162
|
+
@subsegment = subsegment
|
163
|
+
@subscribedService = subscribedService
|
164
|
+
@lastUpdated = lastUpdated
|
165
|
+
@extension = extension
|
166
|
+
@__xmlele_any = nil
|
167
|
+
end
|
168
|
+
end
|
169
|
+
|
170
|
+
# {http://www.telefonica.com/schemas/UNICA/REST/directory/v1/}UserAccessInfoType
|
171
|
+
# connected - Schemas::Directory_types::FlagType
|
172
|
+
# ipAddress - Schemas::Directory_types::IpAddressType
|
173
|
+
# accessType - SOAP::SOAPString
|
174
|
+
# connectionTime - SOAP::SOAPUnsignedInt
|
175
|
+
# apn - SOAP::SOAPString
|
176
|
+
# roaming - Schemas::Directory_types::FlagType
|
177
|
+
# extension - Schemas::Directory_types::ExtensionType
|
178
|
+
class UserAccessInfoType
|
179
|
+
attr_accessor :connected
|
180
|
+
attr_accessor :ipAddress
|
181
|
+
attr_accessor :accessType
|
182
|
+
attr_accessor :connectionTime
|
183
|
+
attr_accessor :apn
|
184
|
+
attr_accessor :roaming
|
185
|
+
attr_accessor :extension
|
186
|
+
attr_reader :__xmlele_any
|
187
|
+
|
188
|
+
def set_any(elements)
|
189
|
+
@__xmlele_any = elements
|
190
|
+
end
|
191
|
+
|
192
|
+
def initialize(connected = nil, ipAddress = nil, accessType = nil, connectionTime = nil, apn = nil, roaming = nil, extension = nil)
|
193
|
+
@connected = connected
|
194
|
+
@ipAddress = ipAddress
|
195
|
+
@accessType = accessType
|
196
|
+
@connectionTime = connectionTime
|
197
|
+
@apn = apn
|
198
|
+
@roaming = roaming
|
199
|
+
@extension = extension
|
200
|
+
@__xmlele_any = nil
|
201
|
+
end
|
202
|
+
end
|
203
|
+
|
204
|
+
# {http://www.telefonica.com/schemas/UNICA/REST/directory/v1/}UserTerminalInfoType
|
205
|
+
# brand - SOAP::SOAPString
|
206
|
+
# model - SOAP::SOAPString
|
207
|
+
# version - SOAP::SOAPString
|
208
|
+
# screenResolution - SOAP::SOAPString
|
209
|
+
# imei - (any)
|
210
|
+
# mms - Schemas::Directory_types::FlagType
|
211
|
+
# ems - Schemas::Directory_types::FlagType
|
212
|
+
# smartMessaging - Schemas::Directory_types::FlagType
|
213
|
+
# wap - Schemas::Directory_types::FlagType
|
214
|
+
# ussdPhase - SOAP::SOAPString
|
215
|
+
# syncMl - Schemas::Directory_types::FlagType
|
216
|
+
# syncMlVersion - SOAP::SOAPString
|
217
|
+
# emsMaxNumber - SOAP::SOAPString
|
218
|
+
# email - Schemas::Directory_types::FlagType
|
219
|
+
# emn - Schemas::Directory_types::FlagType
|
220
|
+
# adc_OTA - Schemas::Directory_types::FlagType
|
221
|
+
# status - Schemas::Directory_types::StatusType
|
222
|
+
# lastUpdated - (any)
|
223
|
+
# extension - Schemas::Directory_types::ExtensionType
|
224
|
+
class UserTerminalInfoType
|
225
|
+
attr_accessor :brand
|
226
|
+
attr_accessor :model
|
227
|
+
attr_accessor :version
|
228
|
+
attr_accessor :screenResolution
|
229
|
+
attr_accessor :imei
|
230
|
+
attr_accessor :mms
|
231
|
+
attr_accessor :ems
|
232
|
+
attr_accessor :smartMessaging
|
233
|
+
attr_accessor :wap
|
234
|
+
attr_accessor :ussdPhase
|
235
|
+
attr_accessor :syncMl
|
236
|
+
attr_accessor :syncMlVersion
|
237
|
+
attr_accessor :emsMaxNumber
|
238
|
+
attr_accessor :email
|
239
|
+
attr_accessor :emn
|
240
|
+
attr_accessor :adc_OTA
|
241
|
+
attr_accessor :status
|
242
|
+
attr_accessor :lastUpdated
|
243
|
+
attr_accessor :extension
|
244
|
+
attr_reader :__xmlele_any
|
245
|
+
|
246
|
+
def set_any(elements)
|
247
|
+
@__xmlele_any = elements
|
248
|
+
end
|
249
|
+
|
250
|
+
def initialize(brand = nil, model = nil, version = nil, screenResolution = nil, imei = nil, mms = nil, ems = nil, smartMessaging = nil, wap = nil, ussdPhase = nil, syncMl = nil, syncMlVersion = nil, emsMaxNumber = nil, email = nil, emn = nil, adc_OTA = nil, status = nil, lastUpdated = nil, extension = nil)
|
251
|
+
@brand = brand
|
252
|
+
@model = model
|
253
|
+
@version = version
|
254
|
+
@screenResolution = screenResolution
|
255
|
+
@imei = imei
|
256
|
+
@mms = mms
|
257
|
+
@ems = ems
|
258
|
+
@smartMessaging = smartMessaging
|
259
|
+
@wap = wap
|
260
|
+
@ussdPhase = ussdPhase
|
261
|
+
@syncMl = syncMl
|
262
|
+
@syncMlVersion = syncMlVersion
|
263
|
+
@emsMaxNumber = emsMaxNumber
|
264
|
+
@email = email
|
265
|
+
@emn = emn
|
266
|
+
@adc_OTA = adc_OTA
|
267
|
+
@status = status
|
268
|
+
@lastUpdated = lastUpdated
|
269
|
+
@extension = extension
|
270
|
+
@__xmlele_any = nil
|
271
|
+
end
|
272
|
+
end
|
273
|
+
|
274
|
+
# {http://www.telefonica.com/schemas/UNICA/REST/directory/v1/}NameType
|
275
|
+
# firstName - SOAP::SOAPString
|
276
|
+
# lastName - SOAP::SOAPString
|
277
|
+
# middleName - SOAP::SOAPString
|
278
|
+
class NameType
|
279
|
+
attr_accessor :firstName
|
280
|
+
attr_accessor :lastName
|
281
|
+
attr_accessor :middleName
|
282
|
+
|
283
|
+
def initialize(firstName = nil, lastName = nil, middleName = nil)
|
284
|
+
@firstName = firstName
|
285
|
+
@lastName = lastName
|
286
|
+
@middleName = middleName
|
287
|
+
end
|
288
|
+
end
|
289
|
+
|
290
|
+
# {http://www.telefonica.com/schemas/UNICA/REST/directory/v1/}SubscribedServiceType
|
291
|
+
# xmlattr_name - SOAP::SOAPString
|
292
|
+
class SubscribedServiceType
|
293
|
+
AttrName = XSD::QName.new(nil, "name")
|
294
|
+
|
295
|
+
attr_reader :__xmlele_any
|
296
|
+
|
297
|
+
def set_any(elements)
|
298
|
+
@__xmlele_any = elements
|
299
|
+
end
|
300
|
+
|
301
|
+
def __xmlattr
|
302
|
+
@__xmlattr ||= {}
|
303
|
+
end
|
304
|
+
|
305
|
+
def xmlattr_name
|
306
|
+
__xmlattr[AttrName]
|
307
|
+
end
|
308
|
+
|
309
|
+
def xmlattr_name=(value)
|
310
|
+
__xmlattr[AttrName] = value
|
311
|
+
end
|
312
|
+
|
313
|
+
def initialize
|
314
|
+
@__xmlele_any = nil
|
315
|
+
@__xmlattr = {}
|
316
|
+
end
|
317
|
+
end
|
318
|
+
|
319
|
+
# {http://www.telefonica.com/schemas/UNICA/REST/common/v1}AddressType
|
320
|
+
# street - SOAP::SOAPString
|
321
|
+
# streetNumber - SOAP::SOAPUnsignedInt
|
322
|
+
# locality - SOAP::SOAPString
|
323
|
+
# region - SOAP::SOAPString
|
324
|
+
# postalCode - SOAP::SOAPUnsignedInt
|
325
|
+
# country - SOAP::SOAPString
|
326
|
+
# ext - SOAP::SOAPString
|
327
|
+
class AddressType
|
328
|
+
attr_accessor :street
|
329
|
+
attr_accessor :streetNumber
|
330
|
+
attr_accessor :locality
|
331
|
+
attr_accessor :region
|
332
|
+
attr_accessor :postalCode
|
333
|
+
attr_accessor :country
|
334
|
+
attr_accessor :ext
|
335
|
+
|
336
|
+
def initialize(street = nil, streetNumber = nil, locality = nil, region = nil, postalCode = nil, country = nil, ext = nil)
|
337
|
+
@street = street
|
338
|
+
@streetNumber = streetNumber
|
339
|
+
@locality = locality
|
340
|
+
@region = region
|
341
|
+
@postalCode = postalCode
|
342
|
+
@country = country
|
343
|
+
@ext = ext
|
344
|
+
end
|
345
|
+
end
|
346
|
+
|
347
|
+
# {http://www.telefonica.com/schemas/UNICA/REST/common/v1}UserIdType
|
348
|
+
# phoneNumber - (any)
|
349
|
+
# anyUri - SOAP::SOAPAnyURI
|
350
|
+
# ipAddress - Schemas::Directory_types::IpAddressType
|
351
|
+
# m_alias - (any)
|
352
|
+
# otherId - Schemas::Directory_types::OtherIdType
|
353
|
+
class UserIdType
|
354
|
+
attr_accessor :phoneNumber
|
355
|
+
attr_accessor :anyUri
|
356
|
+
attr_accessor :ipAddress
|
357
|
+
attr_accessor :otherId
|
358
|
+
|
359
|
+
def m_alias
|
360
|
+
@v_alias
|
361
|
+
end
|
362
|
+
|
363
|
+
def m_alias=(value)
|
364
|
+
@v_alias = value
|
365
|
+
end
|
366
|
+
|
367
|
+
def initialize(phoneNumber = nil, anyUri = nil, ipAddress = nil, v_alias = nil, otherId = nil)
|
368
|
+
@phoneNumber = phoneNumber
|
369
|
+
@anyUri = anyUri
|
370
|
+
@ipAddress = ipAddress
|
371
|
+
@v_alias = v_alias
|
372
|
+
@otherId = otherId
|
373
|
+
end
|
374
|
+
end
|
375
|
+
|
376
|
+
# {http://www.telefonica.com/schemas/UNICA/REST/common/v1}IpAddressType
|
377
|
+
# ipv4 - (any)
|
378
|
+
# ipv6 - (any)
|
379
|
+
class IpAddressType
|
380
|
+
attr_accessor :ipv4
|
381
|
+
attr_accessor :ipv6
|
382
|
+
|
383
|
+
def initialize(ipv4 = nil, ipv6 = nil)
|
384
|
+
@ipv4 = ipv4
|
385
|
+
@ipv6 = ipv6
|
386
|
+
end
|
387
|
+
end
|
388
|
+
|
389
|
+
# {http://www.telefonica.com/schemas/UNICA/REST/common/v1}OtherIdType
|
390
|
+
# type - SOAP::SOAPString
|
391
|
+
# value - SOAP::SOAPString
|
392
|
+
class OtherIdType
|
393
|
+
attr_accessor :type
|
394
|
+
attr_accessor :value
|
395
|
+
|
396
|
+
def initialize(type = nil, value = nil)
|
397
|
+
@type = type
|
398
|
+
@value = value
|
399
|
+
end
|
400
|
+
end
|
401
|
+
|
402
|
+
# {http://www.telefonica.com/schemas/UNICA/REST/common/v1}ClientExceptionType
|
403
|
+
# exceptionCategory - SOAP::SOAPString
|
404
|
+
# exceptionId - SOAP::SOAPInt
|
405
|
+
# text - SOAP::SOAPString
|
406
|
+
# variables - SOAP::SOAPString
|
407
|
+
class ClientExceptionType
|
408
|
+
attr_accessor :exceptionCategory
|
409
|
+
attr_accessor :exceptionId
|
410
|
+
attr_accessor :text
|
411
|
+
attr_accessor :variables
|
412
|
+
|
413
|
+
def initialize(exceptionCategory = nil, exceptionId = nil, text = nil, variables = [])
|
414
|
+
@exceptionCategory = exceptionCategory
|
415
|
+
@exceptionId = exceptionId
|
416
|
+
@text = text
|
417
|
+
@variables = variables
|
418
|
+
end
|
419
|
+
end
|
420
|
+
|
421
|
+
# {http://www.telefonica.com/schemas/UNICA/REST/common/v1}ServerExceptionType
|
422
|
+
# exceptionCategory - SOAP::SOAPString
|
423
|
+
# exceptionId - SOAP::SOAPInt
|
424
|
+
# text - SOAP::SOAPString
|
425
|
+
# variables - SOAP::SOAPString
|
426
|
+
class ServerExceptionType
|
427
|
+
attr_accessor :exceptionCategory
|
428
|
+
attr_accessor :exceptionId
|
429
|
+
attr_accessor :text
|
430
|
+
attr_accessor :variables
|
431
|
+
|
432
|
+
def initialize(exceptionCategory = nil, exceptionId = nil, text = nil, variables = [])
|
433
|
+
@exceptionCategory = exceptionCategory
|
434
|
+
@exceptionId = exceptionId
|
435
|
+
@text = text
|
436
|
+
@variables = variables
|
437
|
+
end
|
438
|
+
end
|
439
|
+
|
440
|
+
# {http://www.telefonica.com/schemas/UNICA/REST/common/v1}SimpleReferenceType
|
441
|
+
# endpoint - SOAP::SOAPAnyURI
|
442
|
+
# correlator - SOAP::SOAPString
|
443
|
+
class SimpleReferenceType
|
444
|
+
attr_accessor :endpoint
|
445
|
+
attr_accessor :correlator
|
446
|
+
|
447
|
+
def initialize(endpoint = nil, correlator = nil)
|
448
|
+
@endpoint = endpoint
|
449
|
+
@correlator = correlator
|
450
|
+
end
|
451
|
+
end
|
452
|
+
|
453
|
+
# {http://www.telefonica.com/schemas/UNICA/REST/common/v1}ExtensionType
|
454
|
+
class ExtensionType
|
455
|
+
attr_reader :__xmlele_any
|
456
|
+
|
457
|
+
def set_any(elements)
|
458
|
+
@__xmlele_any = elements
|
459
|
+
end
|
460
|
+
|
461
|
+
def initialize
|
462
|
+
@__xmlele_any = nil
|
463
|
+
end
|
464
|
+
end
|
465
|
+
|
466
|
+
# {http://www.telefonica.com/schemas/UNICA/REST/directory/v1/}StatusType
|
467
|
+
class StatusType < ::String
|
468
|
+
Approved = StatusType.new("approved")
|
469
|
+
NotApproved = StatusType.new("not approved")
|
470
|
+
end
|
471
|
+
|
472
|
+
# {http://www.telefonica.com/schemas/UNICA/REST/directory/v1/}MmsStatusType
|
473
|
+
class MmsStatusType < ::String
|
474
|
+
Activated = MmsStatusType.new("activated")
|
475
|
+
Deactivated = MmsStatusType.new("deactivated")
|
476
|
+
end
|
477
|
+
|
478
|
+
# {http://www.telefonica.com/schemas/UNICA/REST/common/v1}FlagType
|
479
|
+
class FlagType < ::String
|
480
|
+
No = FlagType.new("no")
|
481
|
+
Yes = FlagType.new("yes")
|
482
|
+
end
|
483
|
+
|
484
|
+
# {http://www.telefonica.com/schemas/UNICA/REST/common/v1}GenderType
|
485
|
+
class GenderType < ::String
|
486
|
+
Female = GenderType.new("female")
|
487
|
+
Male = GenderType.new("male")
|
488
|
+
end
|
489
|
+
|
490
|
+
|
491
|
+
end; end
|