Pular para o conteúdo principal

TransferCreditsRequest

@raizfc/contracts


@raizfc/contracts / TransferCreditsRequest

Type Alias: TransferCreditsRequest

TransferCreditsRequest = Readonly<{ amount: MoneyAmount; note?: string; targetOwnerId: ID; targetOwnerType: WalletOwnerType; }>

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

SPEC-DOMAIN-WALLET-001 "Transferência só ocorre entre torcida approved e seu time" — the only valid pair is a team and its own approved, linked torcida (in either direction). No fee; FIFO consumption on the source; the destination gets a new CreditLotDto (source: 'transfer_in') whose expiresAt preserves the smallest remaining expiration among the lots consumed (never extended by transferring), per "política de expiração... preservar menor expiração remanescente". Any other targetOwnerType/targetOwnerId pair rejects with TRANSFER_NOT_ALLOWED.