LoyaltyService

interface LoyaltyService

Interface for managing loyalty accounts, transactions, and rewards. Enables partners to integrate loyalty features into their applications, allowing them to reward customers for purchases and engagement.

Functions

Link copied to clipboard
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.

Link copied to clipboard
open fun enrollCustomerAsync(enrollment: LoyaltyEnrollment, cancellationSignal: CancellationSignal?, callback: WalletCallback<LoyaltyCustomer>)

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

Link copied to clipboard
abstract suspend fun getCustomerProfile(): LoyaltyCustomer

Retrieves a customer's profile from the loyalty program. Only enrolled customers can retrieve their profile.

Link copied to clipboard

Asynchronously retrieves a customer's profile from the loyalty program. Only enrolled customers can retrieve their profile.

Link copied to clipboard
abstract suspend fun issueAccessToken(): LoyaltyAccessToken

Issues an access token for wallet owners already enrolled in the loyalty program. Access token is used to authenticate the client with the loyalty application's SDK and access loyalty features.

Link copied to clipboard

Asynchronously issues an access token for wallet owners already enrolled in the loyalty program. Access token is used to authenticate the client with the loyalty application's SDK and access loyalty features.