def valid?
      type_validator = EnumAttributeValidator.new('String', ["PICKUP"])
      return false unless type_validator.valid?(@type)
      state_validator = EnumAttributeValidator.new('String', ["PROPOSED", "RESERVED", "PREPARED", "COMPLETED", "CANCELED", "FAILED"])
      return false unless state_validator.valid?(@state)
      return true
    end
def valid?
      type_validator = EnumAttributeValidator.new('String', ["PICKUP"])
      return false unless type_validator.valid?(@type)
      state_validator = EnumAttributeValidator.new('String', ["PROPOSED", "RESERVED", "PREPARED", "COMPLETED", "CANCELED", "FAILED"])
      return false unless state_validator.valid?(@state)
      return true
    end
Check to see if the all the properties in the model are valid
 @return true if the model is valid