2b6f29e775
Adds GivingListItemDto, GivingDto, CreateGivingRequest, UpdateGivingRequest DTOs; IGivingService interface; GivingService implementation with category/date filtering, OfferingSession lock guard (Submitted/Reconciled), and DI registration in Program.cs. Covered by 4 xUnit tests (TDD: red → green). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
16 lines
625 B
C#
16 lines
625 B
C#
namespace ROLAC.API.DTOs.Giving;
|
|
|
|
public class GivingListItemDto
|
|
{
|
|
public int Id { get; set; }
|
|
public int? MemberId { get; set; }
|
|
public string? MemberName { get; set; }
|
|
public int GivingCategoryId { get; set; }
|
|
public string CategoryName { get; set; } = "";
|
|
public decimal Amount { get; set; }
|
|
public string PaymentMethod { get; set; } = "";
|
|
public string GivingDate { get; set; } = ""; // ISO yyyy-MM-dd
|
|
public bool IsAnonymous { get; set; }
|
|
public int? OfferingSessionId { get; set; }
|
|
}
|