def valid?
      return false if @id.nil?
      return false if @location_id.nil?
      return false if @transaction_id.nil?
      return false if @tender_id.nil?
      return false if @reason.nil?
      return false if @amount_money.nil?
      return false if @status.nil?
      status_validator = EnumAttributeValidator.new('String', ["PENDING", "APPROVED", "REJECTED", "FAILED"])
      return false unless status_validator.valid?(@status)
      return true
    end
def valid?
      return false if @id.nil?
      return false if @location_id.nil?
      return false if @transaction_id.nil?
      return false if @tender_id.nil?
      return false if @reason.nil?
      return false if @amount_money.nil?
      return false if @status.nil?
      status_validator = EnumAttributeValidator.new('String', ["PENDING", "APPROVED", "REJECTED", "FAILED"])
      return false unless status_validator.valid?(@status)
      return true
    end
Check to see if the all the properties in the model are valid
 @return true if the model is valid