@@ -21,7 +21,7 @@ class SendTransacSms
2121 # Mobile number to send SMS with the country code
2222 attr_accessor :recipient
2323
24- # Content of the message. If more than 160 characters long, multiple text messages will be sent
24+ # Content of the message. If more than 160 characters long, will be sent as multiple text messages
2525 attr_accessor :content
2626
2727 # Type of the SMS
@@ -135,10 +135,6 @@ def list_invalid_properties
135135 invalid_properties . push ( "invalid value for 'content', content cannot be nil." )
136136 end
137137
138- if @content . to_s . length > 160
139- invalid_properties . push ( "invalid value for 'content', the character length must be smaller than or equal to 160." )
140- end
141-
142138 return invalid_properties
143139 end
144140
@@ -149,7 +145,6 @@ def valid?
149145 return false if @sender . to_s . length > 11
150146 return false if @recipient . nil?
151147 return false if @content . nil?
152- return false if @content . to_s . length > 160
153148 type_validator = EnumAttributeValidator . new ( 'String' , [ "transactional" , "marketing" ] )
154149 return false unless type_validator . valid? ( @type )
155150 return true
@@ -169,20 +164,6 @@ def sender=(sender)
169164 @sender = sender
170165 end
171166
172- # Custom attribute writer method with validation
173- # @param [Object] content Value to be assigned
174- def content = ( content )
175- if content . nil?
176- fail ArgumentError , "content cannot be nil"
177- end
178-
179- if content . to_s . length > 160
180- fail ArgumentError , "invalid value for 'content', the character length must be smaller than or equal to 160."
181- end
182-
183- @content = content
184- end
185-
186167 # Custom attribute writer method checking allowed values (enum).
187168 # @param [Object] type Object to be assigned
188169 def type = ( type )
0 commit comments