LoyaltyPoints

  • The LoyaltyPoints class represents loyalty reward points with a label, balance, and type.

  • It implements the Parcelable interface for efficient data transfer.

  • A Builder class is available to help create LoyaltyPoints objects.

  • You can retrieve the balance and label using the getBalance() and getLabel() methods respectively.

  • Some methods, like getType() and getValidTimeInterval(), are deprecated and will be removed in the future.

public final class LoyaltyPoints extends Object
implements Parcelable

Parcelable representing the loyalty reward points label, balance, and type.

Nested Class Summary

class LoyaltyPoints.Builder Builder to create a LoyaltyPoints

Inherited Constant Summary

Field Summary

public static final Creator<LoyaltyPoints> CREATOR

Public Method Summary

LoyaltyPointsBalance
getBalance()
Returns the balance.
String
getLabel()
Returns the label.
String
getType()
This method is deprecated. This value is no longer used.
TimeInterval
getValidTimeInterval()
This method is deprecated. This value is unused by the platform and will be removed in the future.
static LoyaltyPoints.Builder
void
writeToParcel(Parcel dest, int flags)

Inherited Method Summary

Fields

public static final Creator<LoyaltyPoints> CREATOR

Public Methods

public LoyaltyPointsBalance getBalance ()

Returns the balance.

public String getLabel ()

Returns the label.

public String getType ()

This method is deprecated.
This value is no longer used.

public TimeInterval getValidTimeInterval ()

This method is deprecated.
This value is unused by the platform and will be removed in the future.

Returns
  • the valid time interval

public static LoyaltyPoints.Builder newBuilder ()

public void writeToParcel (Parcel dest, int flags)