Google Shopping Merchant Products V1 Client - Class ProductFee (1.7.0)

Reference documentation and code samples for the Google Shopping Merchant Products V1 Client class ProductFee.

The product fee attribute containing type and amount.

Generated from protobuf message google.shopping.merchant.products.v1.ProductAttributes.ProductFee

Namespace

Google \ Shopping \ Merchant \ Products \ V1 \ ProductAttributes

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ type int

The type of product fee.

↳ amount Google\Shopping\Type\Price

The amount of product fee.

getType

The type of product fee.

Returns
Type Description
int Enum of type FeeType.

setType

The type of product fee.

Parameter
Name Description
var int

Enum of type FeeType.

Returns
Type Description
$this

getAmount

The amount of product fee.

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

hasAmount

clearAmount

setAmount

The amount of product fee.

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