Kaizen
Browse modulesCheckoutcheckout/serverInterfaces

Interface: RefundPolicy

Defined in: server/checkout/deps.ts:57

Refund authorization gate (proposal §Factory & injected deps, §Refunds). authorizeRefund THROWS to deny — WHO may authorize is consumer policy (taproot has no role model). A resolved promise (or a synchronous return) authorizes. RefundService.authorizeRefund marks the request authorized only when this resolves.

Methods

authorizeRefund()

authorizeRefund(ctx: {
  actorId: string | null;
  order: OrderRow;
  refundRequest: RefundRequestRow;
}): void | Promise<void>;

Defined in: server/checkout/deps.ts:58

Parameters

ParameterType
ctx{ actorId: string | null; order: OrderRow; refundRequest: RefundRequestRow; }
ctx.actorIdstring | null
ctx.orderOrderRow
ctx.refundRequestRefundRequestRow

Returns

void | Promise<void>

On this page