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

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

The return shipping fee. This can either be a fixed fee or a boolean to indicate that the customer pays the actual shipping cost.

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

Namespace

Google \ Shopping \ Merchant \ Accounts \ V1beta \ OnlineReturnPolicy

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ type int

Type of return shipping fee.

↳ fixed_fee Google\Shopping\Type\Price

Fixed return shipping fee amount. This value is only applicable when type is FIXED. We will treat the return shipping fee as free if type is FIXED and this value is not set.

getType

Type of return shipping fee.

Returns
Type Description
int

setType

Type of return shipping fee.

Parameter
Name Description
var int
Returns
Type Description
$this

getFixedFee

Fixed return shipping fee amount. This value is only applicable when type is FIXED. We will treat the return shipping fee as free if type is FIXED and this value is not set.

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

hasFixedFee

clearFixedFee

setFixedFee

Fixed return shipping fee amount. This value is only applicable when type is FIXED. We will treat the return shipping fee as free if type is FIXED and this value is not set.

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