@@ -21,7 +21,7 @@ class SendTransacSms
21
21
# Mobile number to send SMS with the country code
22
22
attr_accessor :recipient
23
23
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
25
25
attr_accessor :content
26
26
27
27
# Type of the SMS
@@ -135,10 +135,6 @@ def list_invalid_properties
135
135
invalid_properties . push ( "invalid value for 'content', content cannot be nil." )
136
136
end
137
137
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
-
142
138
return invalid_properties
143
139
end
144
140
@@ -149,7 +145,6 @@ def valid?
149
145
return false if @sender . to_s . length > 11
150
146
return false if @recipient . nil?
151
147
return false if @content . nil?
152
- return false if @content . to_s . length > 160
153
148
type_validator = EnumAttributeValidator . new ( 'String' , [ "transactional" , "marketing" ] )
154
149
return false unless type_validator . valid? ( @type )
155
150
return true
@@ -169,20 +164,6 @@ def sender=(sender)
169
164
@sender = sender
170
165
end
171
166
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
-
186
167
# Custom attribute writer method checking allowed values (enum).
187
168
# @param [Object] type Object to be assigned
188
169
def type = ( type )
0 commit comments