9185aa227d
- Added CurrentDiscountBalance and ChangeDiscountValue properties to GetCustomerWalletChangeLogResponseDto. - Updated userwallet.proto to include current_discount_balance and change_discount_value fields. - Enhanced CommissionProfile mapping to support GetMyCommissionPayouts requests and responses. - Implemented GetMyCommissionPayouts query and handler to retrieve user commission payouts. - Added validation for GetMyCommissionPayouts query. - Updated UserOrderService to handle user orders, including VAT calculations and wallet transactions. - Enhanced UserWalletService to include new properties in wallet change log responses.
24 lines
861 B
C#
24 lines
861 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;
|
|
}
|