Interface LoyaltyProgramOrBuilder (0.11.0)

public interface LoyaltyProgramOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getCashbackForFutureUse()

public abstract Price getCashbackForFutureUse()

The cashback that can be used for future purchases.

optional .google.shopping.type.Price cashback_for_future_use = 4;

Returns
Type Description
com.google.shopping.type.Price

The cashbackForFutureUse.

getCashbackForFutureUseOrBuilder()

public abstract PriceOrBuilder getCashbackForFutureUseOrBuilder()

The cashback that can be used for future purchases.

optional .google.shopping.type.Price cashback_for_future_use = 4;

Returns
Type Description
com.google.shopping.type.PriceOrBuilder

getLoyaltyPoints()

public abstract long getLoyaltyPoints()

The amount of loyalty points earned on a purchase.

optional int64 loyalty_points = 5;

Returns
Type Description
long

The loyaltyPoints.

getMemberPriceEffectiveDate()

public abstract Interval getMemberPriceEffectiveDate()

A date range during which the item is eligible for member price. If not specified, the member price is always applicable. The date range is represented by a pair of ISO 8601 dates separated by a space, comma, or slash.

optional .google.type.Interval member_price_effective_date = 6;

Returns
Type Description
com.google.type.Interval

The memberPriceEffectiveDate.

getMemberPriceEffectiveDateOrBuilder()

public abstract IntervalOrBuilder getMemberPriceEffectiveDateOrBuilder()

A date range during which the item is eligible for member price. If not specified, the member price is always applicable. The date range is represented by a pair of ISO 8601 dates separated by a space, comma, or slash.

optional .google.type.Interval member_price_effective_date = 6;

Returns
Type Description
com.google.type.IntervalOrBuilder

getPrice()

public abstract Price getPrice()

The price for members of the given tier, that is, the instant discount price. Must be smaller or equal to the regular price.

optional .google.shopping.type.Price price = 3;

Returns
Type Description
com.google.shopping.type.Price

The price.

getPriceOrBuilder()

public abstract PriceOrBuilder getPriceOrBuilder()

The price for members of the given tier, that is, the instant discount price. Must be smaller or equal to the regular price.

optional .google.shopping.type.Price price = 3;

Returns
Type Description
com.google.shopping.type.PriceOrBuilder

getProgramLabel()

public abstract String getProgramLabel()

The label of the loyalty program. This is an internal label that uniquely identifies the relationship between a merchant entity and a loyalty program entity. The label must be provided so that the system can associate the assets below (for example, price and points) with a merchant. The corresponding program must be linked to the merchant account.

optional string program_label = 1;

Returns
Type Description
String

The programLabel.

getProgramLabelBytes()

public abstract ByteString getProgramLabelBytes()

The label of the loyalty program. This is an internal label that uniquely identifies the relationship between a merchant entity and a loyalty program entity. The label must be provided so that the system can associate the assets below (for example, price and points) with a merchant. The corresponding program must be linked to the merchant account.

optional string program_label = 1;

Returns
Type Description
ByteString

The bytes for programLabel.

getShippingLabel()

public abstract String getShippingLabel()

The label of the shipping benefit. If the field has value, this offer has loyalty shipping benefit. If the field value isn't provided, the item is not eligible for loyalty shipping for the given loyalty tier.

optional string shipping_label = 7;

Returns
Type Description
String

The shippingLabel.

getShippingLabelBytes()

public abstract ByteString getShippingLabelBytes()

The label of the shipping benefit. If the field has value, this offer has loyalty shipping benefit. If the field value isn't provided, the item is not eligible for loyalty shipping for the given loyalty tier.

optional string shipping_label = 7;

Returns
Type Description
ByteString

The bytes for shippingLabel.

getTierLabel()

public abstract String getTierLabel()

The label of the tier within the loyalty program. Must match one of the labels within the program.

optional string tier_label = 2;

Returns
Type Description
String

The tierLabel.

getTierLabelBytes()

public abstract ByteString getTierLabelBytes()

The label of the tier within the loyalty program. Must match one of the labels within the program.

optional string tier_label = 2;

Returns
Type Description
ByteString

The bytes for tierLabel.

hasCashbackForFutureUse()

public abstract boolean hasCashbackForFutureUse()

The cashback that can be used for future purchases.

optional .google.shopping.type.Price cashback_for_future_use = 4;

Returns
Type Description
boolean

Whether the cashbackForFutureUse field is set.

hasLoyaltyPoints()

public abstract boolean hasLoyaltyPoints()

The amount of loyalty points earned on a purchase.

optional int64 loyalty_points = 5;

Returns
Type Description
boolean

Whether the loyaltyPoints field is set.

hasMemberPriceEffectiveDate()

public abstract boolean hasMemberPriceEffectiveDate()

A date range during which the item is eligible for member price. If not specified, the member price is always applicable. The date range is represented by a pair of ISO 8601 dates separated by a space, comma, or slash.

optional .google.type.Interval member_price_effective_date = 6;

Returns
Type Description
boolean

Whether the memberPriceEffectiveDate field is set.

hasPrice()

public abstract boolean hasPrice()

The price for members of the given tier, that is, the instant discount price. Must be smaller or equal to the regular price.

optional .google.shopping.type.Price price = 3;

Returns
Type Description
boolean

Whether the price field is set.

hasProgramLabel()

public abstract boolean hasProgramLabel()

The label of the loyalty program. This is an internal label that uniquely identifies the relationship between a merchant entity and a loyalty program entity. The label must be provided so that the system can associate the assets below (for example, price and points) with a merchant. The corresponding program must be linked to the merchant account.

optional string program_label = 1;

Returns
Type Description
boolean

Whether the programLabel field is set.

hasShippingLabel()

public abstract boolean hasShippingLabel()

The label of the shipping benefit. If the field has value, this offer has loyalty shipping benefit. If the field value isn't provided, the item is not eligible for loyalty shipping for the given loyalty tier.

optional string shipping_label = 7;

Returns
Type Description
boolean

Whether the shippingLabel field is set.

hasTierLabel()

public abstract boolean hasTierLabel()

The label of the tier within the loyalty program. Must match one of the labels within the program.

optional string tier_label = 2;

Returns
Type Description
boolean

Whether the tierLabel field is set.