using Meezi.API.Services;
using Meezi.Core.Entities;

namespace Meezi.API.Tests;

internal sealed class NoOpLoyaltyService : ILoyaltyService
{
    public Task ApplyEarnOnOrderPaidAsync(
        string cafeId,
        string? customerId,
        decimal paidAmount,
        CancellationToken ct = default) =>
        Task.CompletedTask;

    public Task<(bool Success, LoyaltyRedeemResult? Data, string? ErrorCode)> RedeemOnOrderAsync(
        string cafeId,
        Order order,
        int pointsRequested,
        CancellationToken ct = default) =>
        Task.FromResult<(bool, LoyaltyRedeemResult?, string?)>((false, null, null));
}
