- Timestamp:
- 23 Dec 2014, 13:06:04 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/branches/uli-payments/src/waeup/ikoba/payments/interfaces.py
r12295 r12305 86 86 ) 87 87 88 def create_payment(payer _id, payee_id, payment_item_id):88 def create_payment(payer, payment_item, payee): 89 89 """Create a payment. 90 91 For all parameters we expect an object, that implements 92 `IPayer`, `IPaymentItem`, or `IPayee` respectively. If not, 93 then the given objects must be at least adaptable to the 94 respective interface. 95 96 Therfore you can pass in some `Customer` as long as there is 97 some `IPayer` adapter for `Customer` objects defined. 98 99 Returns an `IPayment` object. 90 100 """ 91 101 … … 236 246 237 247 248 class ICreditCard(Interface): 249 """A credit card. 250 251 A credit card is connected to a Payer. 252 """ 253 credit_card_id = schema.TextLine( 254 title=u'Internal Credit Card ID', 255 required=True, 256 ) 257 258 238 259 class IPayer(Interface): 239 260 """A payer. … … 242 263 title=u'Payer ID', 243 264 required=True, 265 ) 266 267 first_name = schema.TextLine( 268 title=u'First Name', 269 required=False, 270 ) 271 272 last_name = schema.TextLine( 273 title=u'Last Name', 274 required=False, 244 275 ) 245 276
Note: See TracChangeset for help on using the changeset viewer.