LoyaltyIdentifier

public class LoyaltyIdentifier

This represents the data that is shared between the terminal and the Android application. Setting the fields is only relevant when sending the data to the terminal, and conversely, getting the fields is only relevant when receiving this object from the terminal.

Methods

create

public static LoyaltyIdentifier create()

Create LoyaltyIdentifier

getConsumerId

public String getConsumerId()

Unique to the phone for customer tracking purposes. This is optional.

getCustomerEmail

public String getCustomerEmail()

The email address of the customer. This is optional.

getCustomerLoyaltyId

public ArrayList<String> getCustomerLoyaltyId()

Loyalty IDs for this customer in the associated program. At least one is required.

getCustomerName

public String getCustomerName()

The name of the customer. This is optional.

getCustomerPhoneNumber

public String getCustomerPhoneNumber()

Available in NFC phone tap. An alternate to Loyalty Id. This is optional.

getLoyaltyPayload

public String getLoyaltyPayload()

Some loyalty providers may only pass through to the POS their encrypted data set. This allows a loyalty provider to include their own proprietary fields to parse on the POS side. This is optional.

getLoyaltyPointsBalance

public String getLoyaltyPointsBalance()

The number of points available to the customer after the matching offer is applied. This is optional.

getProgramId

public String getProgramId()

Unique reference to identify the Loyalty Program.

setConsumerId

public void setConsumerId(String consumerId)

Set consumer ID

See also: .getConsumerId()

setCustomerEmail

public void setCustomerEmail(String customerEmail)

Set customer email

See also: .getCustomerEmail()

setCustomerLoyaltyId

public void setCustomerLoyaltyId(ArrayList<String> customerLoyaltyId)

Set customer loyalty IDs

See also: .getCustomerLoyaltyId()

setCustomerName

public void setCustomerName(String customerName)

Set customer name

See also: .getCustomerName()

setCustomerPhoneNumber

public void setCustomerPhoneNumber(String customerPhoneNumber)

Set customer phone number

See also: .getCustomerPhoneNumber()

setLoyaltyPayload

public void setLoyaltyPayload(String loyaltyPayload)

Set loyalty payload

See also: .getLoyaltyPayload()

setLoyaltyPointsBalance

public void setLoyaltyPointsBalance(String loyaltyPointsBalance)

Set loyalty points balance

See also: .getLoyaltyPointsBalance()

setProgramId

public void setProgramId(String programId)

Set program ID

See also: .getProgramId()