public final class

LoyaltyPointsBalance.Builder

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

Class Overview

Builder to create a LoyaltyPointsBalance.

IMPORTANT: Loyalty points balance can be exactly of one of the following types: integer, string, double or money represented by currency code and amount of money in micros.

Summary

Public Methods
LoyaltyPointsBalance build()
LoyaltyPointsBalance.Builder setDouble(double balance)
The double form of a balance.
LoyaltyPointsBalance.Builder setInt(int balance)
The integer form of a balance
LoyaltyPointsBalance.Builder setMoney(String currencyCode, long currencyMicros)
The money form of a balance
LoyaltyPointsBalance.Builder setString(String balance)
The string form of a balance
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public LoyaltyPointsBalance build ()

public LoyaltyPointsBalance.Builder setDouble (double balance)

The double form of a balance.

Parameters
balance double
Returns
LoyaltyPointsBalance.Builder

public LoyaltyPointsBalance.Builder setInt (int balance)

The integer form of a balance

Parameters
balance int
Returns
LoyaltyPointsBalance.Builder

public LoyaltyPointsBalance.Builder setMoney (String currencyCode, long currencyMicros)

The money form of a balance

Parameters
currencyCode String: The currency code, such as "USD" or "EUR."
currencyMicros long: The unit of money amount in micros. For example, $1 USD would be represented as 1000000 micros.
Returns
LoyaltyPointsBalance.Builder

public LoyaltyPointsBalance.Builder setString (String balance)

The string form of a balance

Parameters
balance String
Returns
LoyaltyPointsBalance.Builder