aaaf7fc1ca
- Proto: add package_id filter to 4 request messages, package_id/package_title to 4 response models - Queries: add PackageId filter to GetUserWeeklyBalances, GetUserCommissionPayouts, GetMyCommissionPayouts, GetMyWeeklyBalances - Handlers: include Package navigation, filter by PackageId, map PackageId/PackageTitle - DTOs: add PackageId + PackageTitle to all response models - Mappings: update CommissionProfile with PackageId/PackageTitle for all admin+customer mappings - NuGet: bump proto version to 0.0.187
28 lines
987 B
C#
28 lines
987 B
C#
using CMSMicroservice.Application.Common.Models;
|
|
using CMSMicroservice.Domain.Enums;
|
|
|
|
namespace CMSMicroservice.Application.CommissionCQ.Queries.GetMyCommissionPayouts;
|
|
|
|
public class GetMyCommissionPayoutsResponseDto
|
|
{
|
|
public MetaData? MetaData { get; set; }
|
|
public List<GetMyCommissionPayoutsResponseModel> Models { get; set; } = new();
|
|
}
|
|
|
|
public class GetMyCommissionPayoutsResponseModel
|
|
{
|
|
public long Id { get; set; }
|
|
public long WeekDefinitionId { get; set; }
|
|
public string WeekDisplayName { get; set; } = string.Empty;
|
|
public int BalancesEarned { get; set; }
|
|
public long TotalAmount { get; set; }
|
|
public string AmountFormatted { get; set; } = string.Empty;
|
|
public CommissionPayoutStatus Status { get; set; }
|
|
public DateTime? CalculatedDate { get; set; }
|
|
public string DatePersian { get; set; } = string.Empty;
|
|
|
|
// Package info
|
|
public long PackageId { get; set; }
|
|
public string PackageTitle { get; set; } = string.Empty;
|
|
}
|