## $Id: interfaces.py 11687 2014-06-16 08:29:22Z henrik $
##
## Copyright (C) 2012 Uli Fouquet & Henrik Bettermann
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 2 of the License, or
## (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
##

from zope import schema
from waeup.kofa.students.interfaces import (
    IStudentBase, IUGStudentClearance, IPGStudentClearance,
    IStudentPersonal, IStudentStudyLevel,
    IStudentStudyCourse, ICourseTicket,
    IStudentUpdateByRegNo, IStudentUpdateByMatricNo,
    )
from kofacustom.sampleuni.payments.interfaces import ICustomOnlinePayment
from kofacustom.sampleuni.interfaces import MessageFactory as _

class ICustomStudentBase(IStudentBase):
    """Representation of student base data.

    """

class ICustomStudentPersonal(IStudentPersonal):
    """Student personal data.

    """

class ICustomUGStudentClearance(IUGStudentClearance):
    """Representation of ug student clearance data.

    """

class ICustomPGStudentClearance(IPGStudentClearance):
    """Representation of pg student clearance data.

    """


class ICustomStudent(ICustomStudentBase,ICustomUGStudentClearance,
    ICustomPGStudentClearance,ICustomStudentPersonal):
    """Representation of a student.

    """

class ICustomStudentStudyCourse(IStudentStudyCourse):
    """A container for student study levels.

    """

class ICustomStudentStudyLevel(IStudentStudyLevel):
    """A container for course tickets.

    """

class ICustomStudentOnlinePayment(ICustomOnlinePayment):
    """A student payment via payment gateways.

    This Interface does not inherit from IStudentOnlinePayment.
    Thus all fields from IStudentOnlinePayment have to be repeated here.
    """

    p_current = schema.Bool(
        title = _(u'Current Session Payment'),
        default = True,
        required = False,
        )

    p_level = schema.Int(
        title = _(u'Payment Level'),
        required = False,
        )

ICustomStudentOnlinePayment['p_level'].order = ICustomStudentOnlinePayment[
    'p_session'].order

class ICustomCourseTicket(ICourseTicket):
    """A course ticket.

    """

class ICustomStudentUpdateByRegNo(IStudentUpdateByRegNo):
    """Representation of a student. Skip regular reg_number validation.

    """

class ICustomStudentUpdateByMatricNo(IStudentUpdateByMatricNo):
    """Representation of a student. Skip regular matric_number validation.

    """
