Function.useLoyaltySetConsent
function useLoyaltySetConsent(): (consent: boolean | null) => Promise<{
consent: boolean | null;
}>;
Returns a callback to set the customer's marketing-consent decision for the
application (true = opt-in, false = refuse, null = withdraw).
Returns
- A function resolving to the updated consent decision.
(consent: boolean | null) => Promise<{
consent: boolean | null;
}>