Method: UltracartClient::AutoOrderQuery#valid?
- Defined in:
- lib/ultracart_api/models/auto_order_query.rb
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
| 271 272 273 274 275 276 277 | # File 'lib/ultracart_api/models/auto_order_query.rb', line 271 def valid? return false if !@card_type.nil? && @card_type.to_s.length > 100 return false if !@country_code.nil? && @country_code.to_s.length > 2 return false if !@email.nil? && @email.to_s.length > 100 return false if !@phone.nil? && @phone.to_s.length > 25 true end |