Class s.i.IChequePrinter(IDevice):

Part of stoqdrivers.interfaces View In Hierarchy

Interface specification for cheque printers.
Method get_banks Returns a dictionary of all banks supported by the printer. The
Method print_cheque Prints a cheque
Method get_capabilities Returns a capabilities dictionary, where the keys are the strings
def get_banks():
Returns a dictionary of all banks supported by the printer. The dictionary's key is the bank name and its value are BankConfiguration instances (this classe [BankConfiguration] is used to store and manage the values of each section in the configuration file).
def print_cheque(bank, value, thirdparty, city, date=None):
Prints a cheque
Parametersbankthe code of bank (type: one of codes returned by get_banks method. )
valuethe value of the cheque (type: Decimal )
thirdpartyreceiver of the cheque (type: str )
city (type: str )
datewhen the cheque was payed, optional (type: datetime )
def get_capabilities():
Returns a capabilities dictionary, where the keys are the strings below and its values are Capability instances

* cheque_thirdparty (str) * cheque_value (Decimal) * cheque_city (str)

API Documentation for Stoqdrivers, generated by pydoctor at 2009-04-30 17:14:35.