PageRenderTime 51ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 0ms

/lib/bluevia/schemas/common_types.rb

https://github.com/juandebravo/bluevia-juan
Ruby | 166 lines | 104 code | 25 blank | 37 comment | 0 complexity | 9a68eedc2d6f3f4c45e38d5291243386 MD5 | raw file
  1. #require 'xsd/qname'
  2. module Schemas; module Common_types
  3. # {http://www.telefonica.com/schemas/UNICA/REST/common/v1}AddressType
  4. # street - SOAP::SOAPString
  5. # streetNumber - SOAP::SOAPUnsignedInt
  6. # locality - SOAP::SOAPString
  7. # region - SOAP::SOAPString
  8. # postalCode - SOAP::SOAPUnsignedInt
  9. # country - SOAP::SOAPString
  10. # ext - SOAP::SOAPString
  11. class AddressType
  12. attr_accessor :street
  13. attr_accessor :streetNumber
  14. attr_accessor :locality
  15. attr_accessor :region
  16. attr_accessor :postalCode
  17. attr_accessor :country
  18. attr_accessor :ext
  19. def initialize(street = nil, streetNumber = nil, locality = nil, region = nil, postalCode = nil, country = nil, ext = nil)
  20. @street = street
  21. @streetNumber = streetNumber
  22. @locality = locality
  23. @region = region
  24. @postalCode = postalCode
  25. @country = country
  26. @ext = ext
  27. end
  28. end
  29. # {http://www.telefonica.com/schemas/UNICA/REST/common/v1}UserIdType
  30. # phoneNumber - (any)
  31. # anyUri - SOAP::SOAPAnyURI
  32. # ipAddress - Schemas::Common_types::IpAddressType
  33. # m_alias - (any)
  34. # otherId - Schemas::Common_types::OtherIdType
  35. class UserIdType
  36. attr_accessor :phoneNumber
  37. attr_accessor :anyUri
  38. attr_accessor :ipAddress
  39. attr_accessor :otherId
  40. def m_alias
  41. @v_alias
  42. end
  43. def m_alias=(value)
  44. @v_alias = value
  45. end
  46. def initialize(phoneNumber = nil, anyUri = nil, ipAddress = nil, v_alias = nil, otherId = nil)
  47. @phoneNumber = phoneNumber
  48. @anyUri = anyUri
  49. @ipAddress = ipAddress
  50. @v_alias = v_alias
  51. @otherId = otherId
  52. end
  53. end
  54. # {http://www.telefonica.com/schemas/UNICA/REST/common/v1}IpAddressType
  55. # ipv4 - (any)
  56. # ipv6 - (any)
  57. class IpAddressType
  58. attr_accessor :ipv4
  59. attr_accessor :ipv6
  60. def initialize(ipv4 = nil, ipv6 = nil)
  61. @ipv4 = ipv4
  62. @ipv6 = ipv6
  63. end
  64. end
  65. # {http://www.telefonica.com/schemas/UNICA/REST/common/v1}OtherIdType
  66. # type - SOAP::SOAPString
  67. # value - SOAP::SOAPString
  68. class OtherIdType
  69. attr_accessor :type
  70. attr_accessor :value
  71. def initialize(type = nil, value = nil)
  72. @type = type
  73. @value = value
  74. end
  75. end
  76. # {http://www.telefonica.com/schemas/UNICA/REST/common/v1}ClientExceptionType
  77. # exceptionCategory - SOAP::SOAPString
  78. # exceptionId - SOAP::SOAPInt
  79. # text - SOAP::SOAPString
  80. # variables - SOAP::SOAPString
  81. class ClientExceptionType
  82. attr_accessor :exceptionCategory
  83. attr_accessor :exceptionId
  84. attr_accessor :text
  85. attr_accessor :variables
  86. def initialize(exceptionCategory = nil, exceptionId = nil, text = nil, variables = [])
  87. @exceptionCategory = exceptionCategory
  88. @exceptionId = exceptionId
  89. @text = text
  90. @variables = variables
  91. end
  92. end
  93. # {http://www.telefonica.com/schemas/UNICA/REST/common/v1}ServerExceptionType
  94. # exceptionCategory - SOAP::SOAPString
  95. # exceptionId - SOAP::SOAPInt
  96. # text - SOAP::SOAPString
  97. # variables - SOAP::SOAPString
  98. class ServerExceptionType
  99. attr_accessor :exceptionCategory
  100. attr_accessor :exceptionId
  101. attr_accessor :text
  102. attr_accessor :variables
  103. def initialize(exceptionCategory = nil, exceptionId = nil, text = nil, variables = [])
  104. @exceptionCategory = exceptionCategory
  105. @exceptionId = exceptionId
  106. @text = text
  107. @variables = variables
  108. end
  109. end
  110. # {http://www.telefonica.com/schemas/UNICA/REST/common/v1}SimpleReferenceType
  111. # endpoint - SOAP::SOAPAnyURI
  112. # correlator - SOAP::SOAPString
  113. class SimpleReferenceType
  114. attr_accessor :endpoint
  115. attr_accessor :correlator
  116. def initialize(endpoint = nil, correlator = nil)
  117. @endpoint = endpoint
  118. @correlator = correlator
  119. end
  120. end
  121. # {http://www.telefonica.com/schemas/UNICA/REST/common/v1}ExtensionType
  122. class ExtensionType
  123. attr_reader :__xmlele_any
  124. def set_any(elements)
  125. @__xmlele_any = elements
  126. end
  127. def initialize
  128. @__xmlele_any = nil
  129. end
  130. end
  131. # {http://www.telefonica.com/schemas/UNICA/REST/common/v1}FlagType
  132. class FlagType < ::String
  133. No = FlagType.new("no")
  134. Yes = FlagType.new("yes")
  135. end
  136. # {http://www.telefonica.com/schemas/UNICA/REST/common/v1}GenderType
  137. class GenderType < ::String
  138. Female = GenderType.new("female")
  139. Male = GenderType.new("male")
  140. end
  141. end; end