Google Shopping Merchant Loyalty Customers V1 Client - Class LoyaltyCustomer (0.1.1)

Reference documentation and code samples for the Google Shopping Merchant Loyalty Customers V1 Client class LoyaltyCustomer.

Represents a customer’s loyalty information.

Represents loyalty customer data in ManageLoyaltyCustomerMatch API, but is not a resource that can be retrieved or listed by other methods.

Generated from protobuf message google.shopping.merchant.loyaltycustomers.v1.LoyaltyCustomer

Namespace

Google \ Shopping \ Merchant \ LoyaltyCustomers \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ user_identifier UserIdentifier

Required. The identifiers for the customer.

↳ loyalty_tier int

Required. The tier label of the loyalty tier the customer belongs to.

↳ point_balance int|string

Optional. The point balance of the loyalty customer.

getUserIdentifier

Required. The identifiers for the customer.

Returns
Type Description
UserIdentifier|null

hasUserIdentifier

clearUserIdentifier

setUserIdentifier

Required. The identifiers for the customer.

Parameter
Name Description
var UserIdentifier
Returns
Type Description
$this

getLoyaltyTier

Required. The tier label of the loyalty tier the customer belongs to.

Returns
Type Description
int Enum of type LoyaltyTier.

setLoyaltyTier

Required. The tier label of the loyalty tier the customer belongs to.

Parameter
Name Description
var int

Enum of type LoyaltyTier.

Returns
Type Description
$this

getPointBalance

Optional. The point balance of the loyalty customer.

Returns
Type Description
int|string

setPointBalance

Optional. The point balance of the loyalty customer.

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