public final classLoyaltyPointsBalance.BuilderextendsObject
Builder to create aLoyaltyPointsBalance
.
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.
Public Method Summary
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 | |
LoyaltyPointsBalance.Builder |
Inherited Method Summary
Public Methods
publicLoyaltyPointsBalance build()
publicLoyaltyPointsBalance.Builder setDouble(double balance)
The double form of a balance.
publicLoyaltyPointsBalance.Builder setInt(int balance)
The integer form of a balance
publicLoyaltyPointsBalance.Builder setMoney(StringcurrencyCode, long currencyMicros)
The money form of a balance
Parameters
currencyCode | The currency code, such as "USD" or "EUR." |
---|---|
currencyMicros | The unit of money amount in micros. For example, $1 USD would be represented as 1000000 micros. |
publicLoyaltyPointsBalance.Builder setString(Stringbalance)
The string form of a balance