enrollCustomer

abstract suspend fun enrollCustomer(enrollment: LoyaltyEnrollment): LoyaltyCustomer

Enrolls a customer in the loyalty program. Enrollment requires the customer's consent, which must be included in the request.

Return

A LoyaltyCustomer object

Parameters

enrollment

A LoyaltyEnrollment object with nickname and consent information