Class s.l.i.IPaymentOperation(Interface):

Part of stoqlib.lib.interfaces View In Hierarchy

An object implementing IPaymentOperation is a 1:1 mapping to a payment method. It's responsible for the logic specific parts of a method.
Method payment_create This is called when a payment is created
Method payment_delete This is called just before a payment is deleted
Method selectable This is called to find out if the method should
Method get_constant This should return a stoqdriver payment method constant
def payment_create(payment):
This is called when a payment is created
Parameterspaymentthe created payment
def payment_delete(payment):
This is called just before a payment is deleted
Parameterspaymentthe payment which is going to be deleted
def selectable(method):
This is called to find out if the method should be shown in the slave list of payment methods
ReturnsTrue if it should be shown, otherwise
def get_constant(payment):
This should return a stoqdriver payment method constant
Parameterspaymentthe payment whose method we shout return a stoqdrivers constant
Returnsone PaymentMethodConstant
API Documentation for Stoqlib, generated by pydoctor at 2009-07-14 16:00:32.