Method: UltracartClient::OrderInternal#list_invalid_properties

Defined in:
lib/ultracart_api/models/order_internal.rb

#list_invalid_propertiesObject

Show invalid properties with the reasons. Usually used together with valid?

Returns:

  • Array for valid properties with the reasons



115
116
117
118
119
120
121
122
# File 'lib/ultracart_api/models/order_internal.rb', line 115

def list_invalid_properties
  invalid_properties = Array.new
  if !@sales_rep_code.nil? && @sales_rep_code.to_s.length > 10
    invalid_properties.push('invalid value for "sales_rep_code", the character length must be smaller than or equal to 10.')
  end

  invalid_properties
end