Pular para o conteúdo principal

WalletOwnerType

@raizfc/contracts


@raizfc/contracts / WalletOwnerType

Type Alias: WalletOwnerType

WalletOwnerType = "team" | "torcida"

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

IS-MVP-09.1 scoped this domain to team only, deferring unification with torcida's own stopgap wallet (TorcidaWalletDto, EP-MVP-08.3 — a scalar balance + flat ledger) to a future pack, as a registered decision rather than an inference. IS-MVP-09.3 ("Transferências e consumo de créditos") is that pack: SPEC-DOMAIN-WALLET-001 "Contratos compartilhados" and "Wallet pertence apenas a team ou torcida no MVP" describe one shared CreditLotDto/WalletEntryDto/ FIFO/90-day-expiry model for both owner types, not two parallel systems — so torcida's wallet storage now lives here too. TorcidaWalletDto/TorcidaWalletLedgerEntryDto/ TransferTorcidaWalletRequest are retired (packages/contracts/src/torcida/torcida.dto.ts); torcida's own HTTP surface (/torcidas/:id/wallet*) stays in TorcidasModule for permission locality (its governance membership store is intentionally separate from team's, per TorcidaRecord's module doc), but every read/write is delegated to this module's WalletApplicationService via WalletCreditPort — one shared ledger, two authorization entry points.