[8247] | 1 | ## $Id: interfaces.py 8247 2012-04-22 12:56:07Z 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 | from zope.interface import Attribute |
---|
| 19 | from zope import schema |
---|
| 20 | from waeup.kofa.payments.interfaces import IPayment |
---|
| 21 | from waeup.kofa.interfaces import MessageFactory as _ |
---|
| 22 | |
---|
| 23 | class ICustomOnlinePayment(IPayment): |
---|
| 24 | """A payment via payment gateways. |
---|
| 25 | |
---|
| 26 | """ |
---|
| 27 | |
---|
| 28 | surcharge_1 = schema.Float( |
---|
| 29 | title = _(u'Portal Fee'), |
---|
| 30 | default = 0.0, |
---|
| 31 | required = False, |
---|
| 32 | readonly = True, |
---|
| 33 | ) |
---|
| 34 | |
---|
| 35 | surcharge_2 = schema.Float( |
---|
| 36 | title = _(u'Surcharge 2'), |
---|
| 37 | default = 0.0, |
---|
| 38 | required = False, |
---|
| 39 | readonly = True, |
---|
| 40 | ) |
---|
| 41 | |
---|
| 42 | surcharge_3 = schema.Float( |
---|
| 43 | title = _(u'Surcharge 3'), |
---|
| 44 | default = 0.0, |
---|
| 45 | required = False, |
---|
| 46 | readonly = True, |
---|
| 47 | ) |
---|
| 48 | |
---|
| 49 | ac = schema.TextLine( |
---|
| 50 | title = _(u'Activation Code'), |
---|
| 51 | default = None, |
---|
| 52 | required = False, |
---|
| 53 | readonly = False, |
---|
| 54 | ) |
---|
| 55 | |
---|
| 56 | r_amount_approved = schema.Float( |
---|
| 57 | title = _(u'Response Amount Approved'), |
---|
| 58 | default = 0.0, |
---|
| 59 | required = False, |
---|
| 60 | readonly = False, |
---|
| 61 | ) |
---|
| 62 | |
---|
| 63 | r_desc = schema.TextLine( |
---|
| 64 | title = _(u'Response Description'), |
---|
| 65 | default = None, |
---|
| 66 | required = False, |
---|
| 67 | readonly = False, |
---|
| 68 | ) |
---|
| 69 | |
---|
| 70 | r_pay_reference = schema.TextLine( |
---|
| 71 | title = _(u'Response Payment Reference'), |
---|
| 72 | default = None, |
---|
| 73 | required = False, |
---|
| 74 | readonly = False, |
---|
| 75 | ) |
---|
| 76 | |
---|
| 77 | r_code = schema.TextLine( |
---|
| 78 | title = _(u'Response Code'), |
---|
| 79 | default = None, |
---|
| 80 | required = False, |
---|
| 81 | readonly = False, |
---|
| 82 | ) |
---|
| 83 | |
---|
| 84 | r_card_num = schema.TextLine( |
---|
| 85 | title = _(u'Response Card Number'), |
---|
| 86 | default = None, |
---|
| 87 | required = False, |
---|
| 88 | readonly = False, |
---|
| 89 | ) |
---|