54 lines
1.1 KiB
C#
54 lines
1.1 KiB
C#
namespace LiteCharms.Features.MidrandBooks.Payments.Models;
|
|
|
|
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; }
|
|
}
|