Paradaux
IssuesPAR-57BacklogOpen ↗
0

PAPI Support — Expose Placeholders for Firm Balance

Add PlaceholderAPI support exposing firm details — notably firm balance — as placeholders.

Technical notes — No PlaceholderAPI expansion exists anywhere in the economy plugins. Firm balance is computed internally by FirmTransactionServiceImpl.getAggregateBalance (sums treasury.getBalanceByAccountId over FirmAccountsMapper.listAccountsByFirm). Add a PlaceholderExpansion (soft-depend PAPI in plugin.yml, register in onEnable) backed by the public BusinessApi, wiring %business_firm_balance_<name>%. Blocked on PAR-22 — needs a public FirmApi.getTotalBalance first.

Comments

tesks · Jun 4, 2026, 9:56 AM

Code context — No PlaceholderAPI expansion exists anywhere in the economy plugins. Firm balance is computed internally by FirmTransactionServiceImpl.getAggregateBalance (sums treasury.getBalanceByAccountId over FirmAccountsMapper.listAccountsByFirm).

Approach: add a PlaceholderExpansion (soft-depend PAPI in plugin.yml, register in onEnable) backed by the public BusinessApi, wiring %business_firm_balance_<name>%. Blocked on PAR-22 — needs a public FirmApi.getTotalBalance first.

Activity

  • ParadauxIO linked a commit — Commit 8d9588b — Expose firm total balance in the public BusinessApi (PAR-22)Jun 7, 2026, 2:49 PM
  • ParadauxIO linked a commit — Commit 8d9588b — Expose firm total balance in the public BusinessApi (PAR-22)Jun 5, 2026, 11:16 AM
  • tesks set priority to Priority → NormalJun 5, 2026, 6:51 AM
  • tesks updated labels (Labels updated)Jun 4, 2026, 8:54 PM
  • tesks changed status to Status → BacklogJun 4, 2026, 8:54 PM
  • tesks description: Description updatedJun 4, 2026, 10:01 AM
  • tesks commentedJun 4, 2026, 9:56 AM
  • tesks assigned Assigned to rianJun 4, 2026, 9:37 AM