source: main/kofacustom.edopoly/trunk/src/kofacustom/edopoly/interfaces.py

Last change on this file was 17927, checked in by Henrik Bettermann, 2 months ago

Implement WebCheckout?.

  • Property svn:keywords set to Id
File size: 5.9 KB
Line 
1## $Id: interfaces.py 17927 2024-09-13 10:45:39Z henrik $
2##
3## Copyright (C) 2011 Uli Fouquet & Henrik Bettermann
4## This program is free software; you can redistribute it and/or modify
5## it under the terms of the GNU General Public License as published by
6## the Free Software Foundation; either version 2 of the License, or
7## (at your option) any later version.
8##
9## This program is distributed in the hope that it will be useful,
10## but WITHOUT ANY WARRANTY; without even the implied warranty of
11## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12## GNU General Public License for more details.
13##
14## You should have received a copy of the GNU General Public License
15## along with this program; if not, write to the Free Software
16## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17##
18
19import zope.i18nmessageid
20from zope import schema
21from zc.sourcefactory.basic import BasicSourceFactory
22from waeup.kofa.interfaces import (SimpleKofaVocabulary,
23    ISessionConfiguration, academic_sessions_vocab)
24
25_ = MessageFactory = zope.i18nmessageid.MessageFactory('kofacustom.edopoly')
26
27class ICustomSessionConfiguration(ISessionConfiguration):
28    """A session configuration object.
29    """
30
31    # Base fees, do not remove.
32
33    clearance_fee = schema.Float(
34        title = _(u'Acceptance Fee'),
35        default = 0.0,
36        required = False,
37        )
38
39    booking_fee = schema.Float(
40        title = _(u'Bed Booking Fee'),
41        default = 0.0,
42        required = False,
43        )
44
45    maint_fee = schema.Float(
46        title = _(u'Rent (fallback)'),
47        default = 0.0,
48        required = False,
49        )
50
51    late_registration_fee = schema.Float(
52        title = _(u'Late Course Reg. Fee'),
53        default = 0.0,
54        required = False,
55        )
56
57    transcript_fee = schema.Float(
58        title = _(u'Transcript Fee'),
59        default = 0.0,
60        required = False,
61        )
62
63    transfer_fee = schema.Float(
64        title = _(u'Transfer Fee'),
65        default = 0.0,
66        required = False,
67        )
68
69    interswitch_enabled = schema.Bool(
70        title = _(u'Interswitch Collegepay integration enabled'),
71        default = True,
72        )
73
74    interswitch_webcheckout_enabled = schema.Bool(
75        title = _(u'Interswitch WebCheckout integration enabled'),
76        default = False,
77        )
78
79    # Additional fees in custom package add here
80
81    admchecking_fee = schema.Float(
82        title = _(u'Admission Checking Fee'),
83        default = 0.0,
84        required = False,
85        )
86
87    logbook_combo_fee = schema.Float(
88        title = _(u'Logbook Combo Fee'),
89        default = 0.0,
90        required = False,
91        )
92
93    ict_entre_fee = schema.Float(
94        title = _(u'ICT & Entrepreneur Fee'),
95        default = 0.0,
96        required = False,
97        )
98
99    siwess_combo_fee = schema.Float(
100        title = _(u'SIWESS Combo Fee'),
101        default = 0.0,
102        required = False,
103        )
104
105    certificate_fee = schema.Float(
106        title = _(u'Certificate Fee'),
107        default = 0.0,
108        required = False,
109        )
110
111    certificate_confirm_fee = schema.Float(
112        title = _(u'Certificate Confirmation Fee'),
113        default = 0.0,
114        required = False,
115        )
116
117    final_clearance_fee = schema.Float(
118        title = _(u'Final Clearance Fee'),
119        default = 0.0,
120        required = False,
121        )
122
123    union_fee = schema.Float(
124        title = _(u'Student Union Dues'),
125        default = 0.0,
126        required = False,
127        )
128
129    medical_fee = schema.Float(
130        title = _(u'Medical Laboratory Test Fee'),
131        default = 0.0,
132        required = False,
133        )
134
135    conv_nd_fee = schema.Float(
136        title = _(u'Convocation Fee ND'),
137        default = 0.0,
138        required = False,
139        )
140
141    conv_hnd_fee = schema.Float(
142        title = _(u'Convocation Fee HND'),
143        default = 0.0,
144        required = False,
145        )
146
147    nhis_fee = schema.Float(
148        title = _(u'TISHIP Fee'),
149        default = 0.0,
150        required = False,
151        )
152
153    coc_fee = schema.Float(
154        title = _(u'Change of Course Fee'),
155        default = 0.0,
156        required = False,
157        )
158
159    damages_fee = schema.Float(
160        title = _(u'Damages Fee'),
161        default = 0.0,
162        required = False,
163        )
164
165    project_bind_fee = schema.Float(
166        title = _(u'Project Binding Fee'),
167        default = 0.0,
168        required = False,
169        )
170
171    maintenance_fee = schema.Float(
172        title = _(u'Maintenance and Utility Fees'),
173        default = 0.0,
174        required = False,
175        )
176
177    cyber_fee = schema.Float(
178        title = _(u'Cyber Security Fee'),
179        default = 0.0,
180        required = False,
181        )
182
183    ispon_fee = schema.Float(
184        title = _(u'ISPON Safety Fee'),
185        default = 0.0,
186        required = False,
187        )
188
189    indigene_fee = schema.Float(
190        title = _(u'Non-State Indigene Fee'),
191        default = 0.0,
192        required = False,
193        )
194    develop_fee = schema.Float(
195        title = _(u'Development Fee'),
196        default = 0.0,
197        required = False,
198        )       
199
200    sport_fee = schema.Float(
201        title = _(u'Sport Development Fee'),
202        default = 0.0,
203        required = False,
204        )
205       
206    gown_fee = schema.Float(
207        title = _(u'Matriculation Gown Fee'),
208        default = 0.0,
209        required = False,
210        )
211
212    global_practics_fee = schema.Float(
213        title = _(u'Global Practics Fee'),
214        default = 0.0,
215        required = False,
216        )
217
218    def getSessionString():
219        """Returns the session string from the vocabulary.
220        """
221
222
223class ICustomSessionConfigurationAdd(ICustomSessionConfiguration):
224    """A session configuration object in add mode.
225    """
226
227    academic_session = schema.Choice(
228        title = _(u'Academic Session'),
229        source = academic_sessions_vocab,
230        default = None,
231        required = True,
232        readonly = False,
233        )
234
235ICustomSessionConfigurationAdd[
236    'academic_session'].order =  ICustomSessionConfiguration[
237    'academic_session'].order
Note: See TracBrowser for help on using the repository browser.