Google Cloud Channel V1 Client - Class CustomerConstraints (1.0.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

Methods

__construct

Constructor.

Parameters
NameDescription
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.

Generated from protobuf field repeated string allowed_regions = 1;

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setAllowedRegions

Allowed geographical regions of the customer.

Generated from protobuf field repeated string allowed_regions = 1;

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getAllowedCustomerTypes

Allowed Customer Type.

Generated from protobuf field repeated .google.cloud.channel.v1.CloudIdentityInfo.CustomerType allowed_customer_types = 2;

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setAllowedCustomerTypes

Allowed Customer Type.

Generated from protobuf field repeated .google.cloud.channel.v1.CloudIdentityInfo.CustomerType allowed_customer_types = 2;

Parameter
NameDescription
var int[]
Returns
TypeDescription
$this

getPromotionalOrderTypes

Allowed Promotional Order Type. Present for Promotional offers.

Generated from protobuf field repeated .google.cloud.channel.v1.PromotionalOrderType promotional_order_types = 3;

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setPromotionalOrderTypes

Allowed Promotional Order Type. Present for Promotional offers.

Generated from protobuf field repeated .google.cloud.channel.v1.PromotionalOrderType promotional_order_types = 3;

Parameter
NameDescription
var int[]
Returns
TypeDescription
$this