Renders a FullHouse account statement as a JSON payload containing account details, per-contract transaction lists, settlement amounts, and PayFast payment links.
PaymentReport — set as ReportType in def_report.
def Render(self, Param1="", Param2="", Param3="") -> str:
Param1 is the account number or ID number (first 10 characters used). Returns a pretty-printed JSON string. Data is sourced from trader.meta_statement_rolling. Returns a single space if the account number is empty.
Cleannumber(TotalDue)Strips any anomalous characters from a numeric string and returns the cleaned result.
The JSON output uses an OrderedDict to preserve field order. Each contract in the Account array includes Contractno, Transactions (date/ref/amount list), Settle, Stdinst, Arrears, Nowdue, and a per-contract Paymentlink. Settlement amounts are computed live via the {fhsettlement:Contract} text processor. The account-level SettlementAmount is the sum across all contracts. PayFast links target receiver 13611541. Example API URL is documented in the module docstring.