clearer.management.commands package

Submodules

clearer.management.commands.receive_payment module

class clearer.management.commands.receive_payment.Command(stdout=None, stderr=None, no_color=False, force_color=False)[source]

Bases: django.core.management.base.BaseCommand

add_arguments(parser)[source]

Entry point for subclassed commands to add custom arguments.

error(message)[source]
format_payment(payment)[source]

Helper to show payment packet as something more readable.

handle(*args, **options)[source]

The actual logic of the command. Subclasses must implement this method.

help = 'Receive a single payment from clearing'
notice(message)[source]
success(message)[source]

clearer.management.commands.routing_daemon module

A management command to run a routing daemon to do payments clearing.

class clearer.management.commands.routing_daemon.Command(stdout=None, stderr=None, no_color=False, force_color=False)[source]

Bases: django.core.management.base.BaseCommand

QUEUES = {}
class RoutingService

Bases: object

Provides a payments routing facility. Takes in a payment packet and make a routing (forwarding) decision on where to send the packet.

authorise(payment)

Authorise a single payment packet via the settlement module.

format_payment(payment)

Helper to show payment packet as something more readable.

route(payment)

Route a single packet by finding its destination interface (BIC).

error(message)[source]
handle(*args, **options)[source]

The actual logic of the command. Subclasses must implement this method.

help = 'Runs the router for clearing payments'
notice(message)[source]
success(message)[source]

clearer.management.commands.send_payment module

class clearer.management.commands.send_payment.Command(stdout=None, stderr=None, no_color=False, force_color=False)[source]

Bases: django.core.management.base.BaseCommand

add_arguments(parser)[source]

Entry point for subclassed commands to add custom arguments.

error(message)[source]
handle(*args, **options)[source]

The actual logic of the command. Subclasses must implement this method.

help = 'Send a single payment to clearing'
notice(message)[source]
success(message)[source]