Changeset 12138


Ignore:
Timestamp:
4 Dec 2014, 04:01:07 (10 years ago)
Author:
uli
Message:

Try to make IPayment more consistent.

File:
1 edited

Legend:

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

    r12132 r12138  
    5252    """A base representation of payments.
    5353
     54    A payment can be approve()d, which means the act of paying was
     55    really performed. It can also fail for any reason.
     56
    5457    """
    5558    payment_id = schema.TextLine(
     
    99102        )
    100103
     104    def approve():
     105        """Approve a payment.
     106
     107        The payment was approved and can now be considered payed. This
     108        kind of approvement means the final one (in case there are
     109        several instances to ask).
     110        """
     111
     112    def mark_failed(reason=None):
     113        """Mark the payment as failed.
     114
     115        A failed payment was canceled due to technical problems,
     116        insufficient funds, etc.
     117        """
     118
    101119
    102120class IOnlinePayment(IPayment):
Note: See TracChangeset for help on using the changeset viewer.