Google Cloud Channel V1 Client - Class CustomerConstraints (2.4.1)

Reference documentation and code samples for the Google Cloud Channel V1 Client class CustomerConstraints.

Represents constraints required to purchase the Offer for a customer.

Generated from protobuf message google.cloud.channel.v1.CustomerConstraints

Namespace

Google \ Cloud \ Channel \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ allowed_regions string[]

Allowed geographical regions of the customer.

↳ allowed_customer_types int[]

Allowed Customer Type.

↳ promotional_order_types int[]

Allowed Promotional Order Type. Present for Promotional offers.

getAllowedRegions

Allowed geographical regions of the customer.

Returns
Type Description
Google\Protobuf\RepeatedField<string>

setAllowedRegions

Allowed geographical regions of the customer.

Parameter
Name Description
var string[]
Returns
Type Description
$this

getAllowedCustomerTypes

Allowed Customer Type.

Returns
Type Description
Google\Protobuf\RepeatedField<int>

setAllowedCustomerTypes

Allowed Customer Type.

Parameter
Name Description
var int[]
Returns
Type Description
$this

getPromotionalOrderTypes

Allowed Promotional Order Type. Present for Promotional offers.

Returns
Type Description
Google\Protobuf\RepeatedField<int>

setPromotionalOrderTypes

Allowed Promotional Order Type. Present for Promotional offers.

Parameter
Name Description
var int[]
Returns
Type Description
$this