Google Shopping Merchant Accounts V1beta Client - Class RestockingFee (0.3.2)

Reference documentation and code samples for the Google Shopping Merchant Accounts V1beta Client class RestockingFee.

The restocking fee. This can be a flat fee or a micro percent.

Generated from protobuf message google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.RestockingFee

Namespace

Google \ Shopping \ Merchant \ Accounts \ V1beta \ OnlineReturnPolicy

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ fixed_fee Google\Shopping\Type\Price

Fixed restocking fee.

↳ micro_percent int

Percent of total price in micros. 15,000,000 means 15% of the total price would be charged.

getFixedFee

Fixed restocking fee.

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

hasFixedFee

setFixedFee

Fixed restocking fee.

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

getMicroPercent

Percent of total price in micros. 15,000,000 means 15% of the total price would be charged.

Returns
Type Description
int

hasMicroPercent

setMicroPercent

Percent of total price in micros. 15,000,000 means 15% of the total price would be charged.

Parameter
Name Description
var int
Returns
Type Description
$this

getType

Returns
Type Description
string