Files
CMS/src/CMSMicroservice.Application/PackageCQ/Commands/InitiateBasePackagePayment/InitiateBasePackagePaymentCommand.cs
T
masoodafar-web 26e1243cfe
Build and Deploy to Kubernetes / build-and-deploy (push) Successful in 3m39s
feat: add base package payment initiation and verification
2025-12-16 02:34:57 +03:30

44 lines
1.1 KiB
C#

using MediatR;
namespace CMSMicroservice.Application.PackageCQ.Commands.InitiateBasePackagePayment;
/// <summary>
/// ثبت اولیه تراکنش و سفارش پکیج پایه (56 میلیون تومان)
/// این Command توسط BFF فراخوانی می‌شود قبل از ارسال کاربر به درگاه
/// </summary>
public record InitiateBasePackagePaymentCommand : IRequest<InitiateBasePackagePaymentResponseDto>
{
/// <summary>
/// شناسه کاربر
/// </summary>
public long UserId { get; init; }
}
public class InitiateBasePackagePaymentResponseDto
{
/// <summary>
/// موفقیت عملیات
/// </summary>
public bool Success { get; set; }
/// <summary>
/// پیام
/// </summary>
public string Message { get; set; } = string.Empty;
/// <summary>
/// شناسه سفارش
/// </summary>
public long OrderId { get; set; }
/// <summary>
/// شناسه تراکنش CMS
/// </summary>
public long TransactionId { get; set; }
/// <summary>
/// مبلغ پکیج
/// </summary>
public long Amount { get; set; }
}