75 lines
1.6 KiB
C#
75 lines
1.6 KiB
C#
namespace LiteCharms.Features.MidrandBooks.Payments.Models;
|
|
|
|
public sealed record CreateGatewayLedgerEntry
|
|
{
|
|
public string? CustomerEmail { get; set; }
|
|
|
|
public required long OrderId { get; set; }
|
|
|
|
public required long PaymentId { get; set; }
|
|
|
|
public string? MerchantPaymentId { get; set; }
|
|
|
|
public string? PayfastPaymentId { get; set; }
|
|
|
|
public string? PaymentStatus { get; set; }
|
|
|
|
public decimal AmountGross { get; set; }
|
|
|
|
public decimal AmountFee { get; set; }
|
|
|
|
public decimal AmountNet { get; set; }
|
|
}
|
|
|
|
public sealed record UpdateRefund
|
|
{
|
|
public long OrderId { get; set; }
|
|
|
|
public RefundStatus Status { get; set; }
|
|
|
|
public string? Reason { get; set; }
|
|
|
|
public decimal Amount { get; set; }
|
|
};
|
|
|
|
public sealed record CreateRefund
|
|
{
|
|
public long OrderId { get; set; }
|
|
|
|
public RefundTypes Type { get; set; }
|
|
|
|
public RefundStatus Status { get; set; }
|
|
|
|
public string? Reason { get; set; }
|
|
|
|
public decimal Amount { get; set; }
|
|
}
|
|
|
|
public sealed record CreateLedgerEntry
|
|
{
|
|
public required LedgerStatuses Status { get; set; }
|
|
|
|
public required long OrderId { get; set; }
|
|
|
|
public required long PaymentId { get; set; }
|
|
|
|
public required long CustomerId { get; set; }
|
|
|
|
public string? PaymentGatewayReference { get; set; }
|
|
|
|
public long? PaymentGatewayId { get; set; }
|
|
}
|
|
|
|
public sealed record CreatePaymentGateway
|
|
{
|
|
public required string? Name { get; set; }
|
|
|
|
public string? Website { get; set; }
|
|
|
|
public required string? MerchantId { get; set; }
|
|
|
|
public required string? MerchantKey { get; set; }
|
|
|
|
public bool IsSandbox { get; set; }
|
|
}
|