using KBX.Shared.Authorization.Generated;
namespace KBX.Shared.Authorization;

public static class KbxSensitiveDataPolicy
{
    public static bool CanRevealOrderRecipient(IKbxPermissionEvaluator permissions)
        => permissions.Has(KbxPermissions.OmsOrderRecipientUnmask);

    public static bool CanExportOrderRecipientUnmasked(IKbxPermissionEvaluator permissions)
        => permissions.Has(KbxPermissions.OmsOrderRecipientExport);

    public static IReadOnlyList<string> OrderRecipientFields { get; } =
        ["receiverName", "phone", "postalCode", "address1", "address2"];
}
