Reference documentation and code samples for the Google Shopping Merchant Accounts V1 Client class Policy.
The available policies.
Generated from protobuf message google.shopping.merchant.accounts.v1.OnlineReturnPolicy.Policy
Namespace
Google \ Shopping \ Merchant \ Accounts \ V1 \ OnlineReturnPolicyMethods
__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 |
getType
Policy type.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type Type. |
setType
Policy type.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type Type. |
| 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 |
|