Changeset 12115
- Timestamp:
- 2 Dec 2014, 08:34:20 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/branches/uli-payments/src/waeup/ikoba/payments/interfaces.py
r12113 r12115 17 17 ## 18 18 import decimal 19 from zope.interface import Attribute20 19 from zope import schema 21 20 from waeup.ikoba.interfaces import ( 22 IIkobaObject, SimpleIkobaVocabulary, application_sessions_vocab, 23 ContextualDictSourceFactoryBase) 21 IIkobaObject, SimpleIkobaVocabulary, ContextualDictSourceFactoryBase) 24 22 from waeup.ikoba.interfaces import MessageFactory as _ 25 23 … … 44 42 DICT_NAME = 'PAYMENT_CATEGORIES' 45 43 44 46 45 class IPaymentsContainer(IIkobaObject): 47 46 """A container for all kind of payment objects. 48 47 49 48 """ 49 50 50 51 51 class IPayment(IIkobaObject): … … 54 54 """ 55 55 payment_id = schema.TextLine( 56 title =u'Payment Identifier',57 default =None,58 required =True,56 title=u'Payment Identifier', 57 default=None, 58 required=True, 59 59 ) 60 60 61 61 payer_id = schema.TextLine( 62 title =u'Payer',63 default =None,64 required =True,62 title=u'Payer', 63 default=None, 64 required=True, 65 65 ) 66 66 67 67 payed_item_id = schema.TextLine( 68 title =u'Payed Item',69 default =None,70 required =True,68 title=u'Payed Item', 69 default=None, 70 required=True, 71 71 ) 72 72 73 73 state = schema.Choice( 74 title =_(u'Payment State'),75 default =STATE_UNPAID,76 vocabulary =payment_states,77 required =True,74 title=_(u'Payment State'), 75 default=STATE_UNPAID, 76 vocabulary=payment_states, 77 required=True, 78 78 ) 79 79 80 80 creation_date = schema.Datetime( 81 title =_(u'Creation Date'),82 readonly =False,83 required =False,81 title=_(u'Creation Date'), 82 readonly=False, 83 required=False, 84 84 ) 85 85 86 86 payment_date = schema.Datetime( 87 title =_(u'Payment Date'),88 required =False,89 readonly =False,87 title=_(u'Payment Date'), 88 required=False, 89 readonly=False, 90 90 ) 91 91 92 92 amount = schema.Decimal( 93 title =_(u'Amount'),94 description =_(93 title=_(u'Amount'), 94 description=_( 95 95 'The overall sum payed, including all taxes fees, etc.'), 96 default =decimal.Decimal("0.00"),97 required =True,98 readonly =False,96 default=decimal.Decimal("0.00"), 97 required=True, 98 readonly=False, 99 99 ) 100 100 … … 106 106 107 107 ac = schema.TextLine( 108 title =_(u'Activation Code'),109 default =None,110 required =False,111 readonly =False,108 title=_(u'Activation Code'), 109 default=None, 110 required=False, 111 readonly=False, 112 112 ) 113 113 114 114 r_amount_approved = schema.Float( 115 title =_(u'Response Amount Approved'),116 default =0.0,117 required =False,118 readonly =False,115 title=_(u'Response Amount Approved'), 116 default=0.0, 117 required=False, 118 readonly=False, 119 119 ) 120 120 121 121 r_code = schema.TextLine( 122 title =_(u'Response Code'),123 default =None,124 required =False,125 readonly =False,122 title=_(u'Response Code'), 123 default=None, 124 required=False, 125 readonly=False, 126 126 ) 127 127 128 128 r_desc = schema.TextLine( 129 title =_(u'Response Description'),130 default =None,131 required =False,132 readonly =False,129 title=_(u'Response Description'), 130 default=None, 131 required=False, 132 readonly=False, 133 133 ) 134 134
Note: See TracChangeset for help on using the changeset viewer.