---
title: CollectionsService.DebtorNameItem
summary: API reference for CollectionsService.DebtorNameItem.
status: draft
owner: SAIF Doc Gen
last_reviewed: 2026-09-24
library: SAIF.Services
reference_type: package
---

# CollectionsService.DebtorNameItem

A small public value-holder type nested inside `CollectionsService`, used to cache the resolved primary-debtor display name for a case while `CollectionsService.GetTasks` backfills the `DebtorName` of each returned `CollectionTask` without re-querying the debtor for every task row belonging to the same case.

## Purpose
- Associates a case ID with its resolved primary debtor display name for a single lookup pass over a set of tasks.

## Context
- Namespace: `SAIF.Services.Collections`
- Assembly/package: `SAIF.Services` (packaged inside the `SAIF.SAIFCode.Core` NuGet package)

## Public members
| Member | Signature | Purpose |
| --- | --- | --- |
| DebtorNameItem(...) | `public DebtorNameItem(long caseId, string debtorName)` | Creates the lookup entry, assigning the supplied case ID and resolved debtor name. |
| CaseId | `public long CaseId { get; set; }` | The case whose primary debtor name has been resolved. |
| DebtorName | `public string DebtorName { get; set; }` | The resolved display name of the case's primary debtor (empty string when the case has no debtors). |

## Behavioral notes
- Instances are created transiently within `CollectionsService.GetTasks` per distinct case ID represented in a task result set and are not persisted or reused beyond that call*.

> **Note:** Statements marked with * were inferred from code structure, naming conventions, or
> contextual evidence where direct confirmation was not available in source artifacts. Statements
> marked with ** could not be confirmed; treat as unknown until verified.

## Sources
- Services/SAIF.Services/Collections/CollectionsService.cs
