Completed payment service implementation
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
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; }
|
||||
}
|
||||
Reference in New Issue
Block a user