Files

22 lines
638 B
C#
Raw Permalink Normal View History

2026-05-27 21:33:48 +03:30
using Meezi.API.Services;
using Meezi.Core.Entities;
2026-05-27 21:33:48 +03:30
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));
2026-05-27 21:33:48 +03:30
}