- Timestamp:
- 11 Mar 2015, 17:08:34 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/branches/uli-payments/src/waeup/ikoba/payments/interfaces.py
r12726 r12734 20 20 from zope import schema 21 21 from zope.component import getUtilitiesFor 22 from zope.container.interfaces import IContainer23 from zope.container.constraints import contains24 22 from zope.interface import Interface, Attribute 25 23 from waeup.ikoba.interfaces import ( … … 88 86 ) 89 87 90 def create_payment(payer, pay ment_item_list, payee):88 def create_payment(payer, payable, payee): 91 89 """Create a payment. 92 90 93 91 For all parameters we expect an object, that implements 94 `IPayer`, `IPay mentItem`, or `IPayee` respectively. If not,92 `IPayer`, `IPayable`, or `IPayee` respectively. If not, 95 93 then the given objects must be at least adaptable to the 96 94 respective interface. … … 106 104 107 105 May result in (None, None). 106 """ 107 108 def store(payment): 109 """Store `payment` in site. 108 110 """ 109 111 … … 232 234 233 235 234 class IPayment(I Container, IIkobaObject):236 class IPayment(IIkobaObject): 235 237 """A base representation of payments. 236 238 … … 256 258 we mark the payment 'failed'. 257 259 """ 258 contains(IPaymentItem)259 260 260 payment_id = schema.TextLine( 261 261 title=u'Payment Identifier', 262 262 default=None, 263 required=True, 264 ) 265 266 title = schema.TextLine( 267 title=u'Payment description.', 268 default=u'', 263 269 required=True, 264 270 ) … … 333 339 """ 334 340 335 def add_payment_item(item):336 """Payments contain payment items.337 338 Add one339 """340 341 341 342 342 class IPayer(Interface):
Note: See TracChangeset for help on using the changeset viewer.