Skip to content

SudoSOS Back-end API / service/websocket/event-guards / ForTerminalPaymentGuard

Variable: ForTerminalPaymentGuard ​

ts
const ForTerminalPaymentGuard: EventGuard<{
  id?: number;
}>;

ForTerminalPayment guard checks whether the event is about the terminal payment the room is scoped to. Terminal payments are addressed individually rather than by point of sale: once one is cancelled it no longer references a transaction, so there is no point of sale left to route it by.