Skip to content

cashier.deposit.approved

Direction: server → modules. External Moleculer event name: cashier.deposit.approved.

Source and occurrence

C++ payload: CashierApprovedRecord containing the transaction snapshot and resolved brand. Internal workflow output EventBus name: cashier.workflow.approved. Event code: EV_RECORD_UPDATE (1).

The event is emitted after MngProcessManualCashierTransaction has successfully applied the manual deposit, updated the runtime transaction to CASHIER_STATUS_CREDITED (3), queued its persistence operation, and a matching active cashier.deposit.approved workflow rule has executed the cashier.publish_approved action. Reprocessing an already credited transaction does not emit the event again.

This is asynchronous fire-and-forget publication. It does not confirm delivery or processing by a module.

Workflow conditions

Rules may use brand, cashier fields (id, customer_id, login, amount, converted_amount, currency, account_currency, provider, method, source, approved_by) and the advertised account/customer context fields returned by MngGetWorkflowConditionsByTrigger.

JSON payload

{
  "event_id": "a89e743cf46a4855986aa6769e47a075",
  "event_code": 1,
  "occurred_at": 1789639110,
  "schema_version": 1,
  "brand": "ion4",
  "transaction_id": 111,
  "customer_id": 80,
  "login": 7777853,
  "type": 0,
  "provider": "manual",
  "method": "manual",
  "provider_payment_id": "",
  "amount": 333.0,
  "currency": "USD",
  "account_currency": "USD",
  "converted_amount": 333.0,
  "conversion_rate": 1.0,
  "status": 3,
  "source": 1,
  "approved_by": 2,
  "approved_time": 1789639110,
  "comment": "Manual deposit"
}
Field Type Meaning
brand string Brand resolved from the transaction account
transaction_id integer Cashier transaction identifier
customer_id integer Related customer identifier
login integer Trading account login
type integer 0, deposit
provider string Payment provider; manual for this approval path
method string Payment method
provider_payment_id string Provider-side payment identifier, if present
amount number Requested amount in currency
currency string Requested currency
account_currency string Trading account currency
converted_amount number Amount converted to account currency
conversion_rate number Applied conversion rate
status integer 3, credited
source integer 1, manual source
approved_by integer Approving manager identifier
approved_time integer Approval time in Unix seconds
comment string Transaction comment

See shared outbound rules for metadata, queue limits and delivery guarantees.