Google Shopping Merchant Accounts V1beta Client - Class Policy (0.3.0)

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

The available policies.

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

Namespace

Google \ Shopping \ Merchant \ Accounts \ V1beta \ OnlineReturnPolicy

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ type int

Policy type.

↳ days int|string

The number of days items can be returned after delivery, where one day is defined as 24 hours after the delivery timestamp. Required for NUMBER_OF_DAYS_AFTER_DELIVERY returns.

getType

Policy type.

Returns
Type Description
int

setType

Policy type.

Parameter
Name Description
var int
Returns
Type Description
$this

getDays

The number of days items can be returned after delivery, where one day is defined as 24 hours after the delivery timestamp. Required for NUMBER_OF_DAYS_AFTER_DELIVERY returns.

Returns
Type Description
int|string

setDays

The number of days items can be returned after delivery, where one day is defined as 24 hours after the delivery timestamp. Required for NUMBER_OF_DAYS_AFTER_DELIVERY returns.

Parameter
Name Description
var int|string
Returns
Type Description
$this