public final class

LoyaltyPoints.Builder

extends Object
java.lang.Object
   ↳ com.google.android.gms.wallet.wobs.LoyaltyPoints.Builder

Class Overview

Builder to create a LoyaltyPoints.

Summary

Public Methods
LoyaltyPoints build()
LoyaltyPoints.Builder setBalance(LoyaltyPointsBalance balance)
Sets the loyalty point balance, such as "500" or "$10.00."
LoyaltyPoints.Builder setLabel(String label)
Sets the loyalty points label, such as "Points."
LoyaltyPoints.Builder setType(String type)
This method is deprecated. This value is no longer used.
LoyaltyPoints.Builder setValidTimeInterval(TimeInterval interval)
Sets the time interval after which the points will expire.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public LoyaltyPoints build ()

Returns
LoyaltyPoints

public LoyaltyPoints.Builder setBalance (LoyaltyPointsBalance balance)

Sets the loyalty point balance, such as "500" or "$10.00."

Parameters
balance LoyaltyPointsBalance
Returns
LoyaltyPoints.Builder

public LoyaltyPoints.Builder setLabel (String label)

Sets the loyalty points label, such as "Points."

Parameters
label String
Returns
LoyaltyPoints.Builder

public LoyaltyPoints.Builder setType (String type)

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

Parameters
type String
Returns
LoyaltyPoints.Builder

public LoyaltyPoints.Builder setValidTimeInterval (TimeInterval interval)

Sets the time interval after which the points will expire. Points will no longer be displayed in the Google Wallet app after points have expired.

Parameters
interval TimeInterval
Returns
LoyaltyPoints.Builder