[8247] | 1 | ## $Id: interfaces.py 8821 2012-06-27 07:24:56Z 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 |
---|
[8821] | 21 | from waeup.uniben.interfaces import MessageFactory as _ |
---|
[8247] | 22 | |
---|
| 23 | class ICustomOnlinePayment(IPayment): |
---|
| 24 | """A payment via payment gateways. |
---|
| 25 | |
---|
| 26 | """ |
---|
| 27 | |
---|
| 28 | ac = schema.TextLine( |
---|
| 29 | title = _(u'Activation Code'), |
---|
| 30 | default = None, |
---|
| 31 | required = False, |
---|
| 32 | readonly = False, |
---|
| 33 | ) |
---|
| 34 | |
---|
| 35 | r_amount_approved = schema.Float( |
---|
| 36 | title = _(u'Response Amount Approved'), |
---|
| 37 | default = 0.0, |
---|
| 38 | required = False, |
---|
| 39 | readonly = False, |
---|
| 40 | ) |
---|
| 41 | |
---|
[8430] | 42 | r_code = schema.TextLine( |
---|
| 43 | title = _(u'Response Code'), |
---|
[8247] | 44 | default = None, |
---|
| 45 | required = False, |
---|
| 46 | readonly = False, |
---|
| 47 | ) |
---|
| 48 | |
---|
[8430] | 49 | r_desc = schema.TextLine( |
---|
| 50 | title = _(u'Response Description'), |
---|
[8247] | 51 | default = None, |
---|
| 52 | required = False, |
---|
| 53 | readonly = False, |
---|
| 54 | ) |
---|
| 55 | |
---|
[8430] | 56 | # Only defined in custom package |
---|
| 57 | |
---|
| 58 | r_pay_reference = schema.TextLine( |
---|
| 59 | title = _(u'Response Payment Reference'), |
---|
[8247] | 60 | default = None, |
---|
| 61 | required = False, |
---|
| 62 | readonly = False, |
---|
| 63 | ) |
---|
| 64 | |
---|
| 65 | r_card_num = schema.TextLine( |
---|
| 66 | title = _(u'Response Card Number'), |
---|
| 67 | default = None, |
---|
| 68 | required = False, |
---|
| 69 | readonly = False, |
---|
| 70 | ) |
---|