Pular para o conteúdo principal

UseCreditsRequest

@raizfc/contracts


@raizfc/contracts / UseCreditsRequest

Type Alias: UseCreditsRequest

UseCreditsRequest = Readonly<{ amount: MoneyAmount; note?: string; purpose: string; }>

Defined in: finance/finance.dto.ts:133

purpose stays a free-text label rather than a closed catalog — the only concrete paid internal action scoped to an MVP increment so far is the push campaign (IS-MVP-11.6, "Campanha de push paga com créditos"), which depends on IS-MVP-11.1 and is out of this pack's scope; no spec canonical to this pack defines another fixed-price action to catalog. amount/purpose together already let a caller charge a fixed price for a named action (this endpoint validates/consumes FIFO correctly regardless of what purpose names) — a closed catalog UI belongs to whichever pack ships the first real priced action.