Google Shopping Merchant Products V1beta Client - Class LoyaltyProgram (0.2.0)

Reference documentation and code samples for the Google Shopping Merchant Products V1beta Client class LoyaltyProgram.

A message that represents loyalty program.

Generated from protobuf message google.shopping.merchant.products.v1beta.LoyaltyProgram

Namespace

Google \ Shopping \ Merchant \ Products \ V1beta

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ program_label string

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.

↳ tier_label string

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

↳ price Google\Shopping\Type\Price

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

↳ cashback_for_future_use Google\Shopping\Type\Price

The cashback that can be used for future purchases.

↳ loyalty_points int|string

The amount of loyalty points earned on a purchase.

↳ member_price_effective_date Google\Type\Interval

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.

↳ shipping_label string

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.

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.

Returns
Type Description
string

hasProgramLabel

clearProgramLabel

setProgramLabel

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.

Parameter
Name Description
var string
Returns
Type Description
$this

getTierLabel

The label of the tier within the loyalty program.

Must match one of the labels within the program.

Returns
Type Description
string

hasTierLabel

clearTierLabel

setTierLabel

The label of the tier within the loyalty program.

Must match one of the labels within the program.

Parameter
Name Description
var string
Returns
Type Description
$this

getPrice

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

Returns
Type Description
Google\Shopping\Type\Price|null

hasPrice

clearPrice

setPrice

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

Parameter
Name Description
var Google\Shopping\Type\Price
Returns
Type Description
$this

getCashbackForFutureUse

The cashback that can be used for future purchases.

Returns
Type Description
Google\Shopping\Type\Price|null

hasCashbackForFutureUse

clearCashbackForFutureUse

setCashbackForFutureUse

The cashback that can be used for future purchases.

Parameter
Name Description
var Google\Shopping\Type\Price
Returns
Type Description
$this

getLoyaltyPoints

The amount of loyalty points earned on a purchase.

Returns
Type Description
int|string

hasLoyaltyPoints

clearLoyaltyPoints

setLoyaltyPoints

The amount of loyalty points earned on a purchase.

Parameter
Name Description
var int|string
Returns
Type Description
$this

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.

Returns
Type Description
Google\Type\Interval|null

hasMemberPriceEffectiveDate

clearMemberPriceEffectiveDate

setMemberPriceEffectiveDate

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.

Parameter
Name Description
var Google\Type\Interval
Returns
Type Description
$this

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.

Returns
Type Description
string

hasShippingLabel

clearShippingLabel

setShippingLabel

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.

Parameter
Name Description
var string
Returns
Type Description
$this