Ignore:
Timestamp:
23 Dec 2014, 13:06:04 (10 years ago)
Author:
uli
Message:

Put all local changes into repos. Sorry for the mess!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/branches/uli-payments/src/waeup/ikoba/payments/interfaces.py

    r12295 r12305  
    8686        )
    8787
    88     def create_payment(payer_id, payee_id, payment_item_id):
     88    def create_payment(payer, payment_item,  payee):
    8989        """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.
    90100        """
    91101
     
    236246
    237247
     248class 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
    238259class IPayer(Interface):
    239260    """A payer.
     
    242263        title=u'Payer ID',
    243264        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,
    244275        )
    245276
Note: See TracChangeset for help on using the changeset viewer.