using Meezi.Core.Enums;

namespace Meezi.API.Models.Crm;

public record CustomerDto(
    string Id,
    string Name,
    string Phone,
    string? NationalId,
    string? BirthDateJalali,
    CustomerGroup Group,
    int LoyaltyPoints,
    string? ReferredBy,
    DateTime CreatedAt);

public record CreateCustomerRequest(
    string Name,
    string Phone,
    string? NationalId,
    string? BirthDateJalali,
    CustomerGroup Group = CustomerGroup.Regular,
    string? ReferredBy = null);

public record UpdateCustomerRequest(
    string? Name,
    string? Phone,
    string? NationalId,
    string? BirthDateJalali,
    CustomerGroup? Group,
    int? LoyaltyPoints,
    string? ReferredBy);
