Google Shopping Merchant Products V1beta Client - Class FreeShippingThreshold (0.1.0)

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

Conditions to be met for a product to have free shipping.

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

Namespace

Google \ Shopping \ Merchant \ Products \ V1beta

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ country string

The CLDR territory code of the country to which an item will ship.

↳ price_threshold Google\Shopping\Type\Price

The minimum product price for the shipping cost to become free. Represented as a number.

getCountry

The CLDR territory code of the country to which an item will ship.

Returns
Type Description
string

hasCountry

clearCountry

setCountry

The CLDR territory code of the country to which an item will ship.

Parameter
Name Description
var string
Returns
Type Description
$this

getPriceThreshold

The minimum product price for the shipping cost to become free. Represented as a number.

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

hasPriceThreshold

clearPriceThreshold

setPriceThreshold

The minimum product price for the shipping cost to become free. Represented as a number.

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