Reference documentation and code samples for the Google Shopping Merchant Accounts V1beta Client class SeasonalOverride.
Generated from protobuf message google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.SeasonalOverride
Namespace
Google \ Shopping \ Merchant \ Accounts \ V1beta \ OnlineReturnPolicyMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ return_days |
int
Number of days (from the delivery date) that the product can be returned. |
↳ return_until_date |
Google\Type\Date
Fixed end date until which the product can be returned. |
↳ label |
string
Required. Display name of this seasonal override in Merchant Center. |
↳ start_date |
Google\Type\Date
Required. Defines the date range when this seasonal override applies. Both start_date and end_date are inclusive. The dates of the seasonal overrides should not overlap. |
↳ end_date |
Google\Type\Date
Required. seasonal override end date (inclusive). |
getReturnDays
Number of days (from the delivery date) that the product can be returned.
Returns | |
---|---|
Type | Description |
int |
hasReturnDays
setReturnDays
Number of days (from the delivery date) that the product can be returned.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getReturnUntilDate
Fixed end date until which the product can be returned.
Returns | |
---|---|
Type | Description |
Google\Type\Date|null |
hasReturnUntilDate
setReturnUntilDate
Fixed end date until which the product can be returned.
Parameter | |
---|---|
Name | Description |
var |
Google\Type\Date
|
Returns | |
---|---|
Type | Description |
$this |
getLabel
Required. Display name of this seasonal override in Merchant Center.
Returns | |
---|---|
Type | Description |
string |
setLabel
Required. Display name of this seasonal override in Merchant Center.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getStartDate
Required. Defines the date range when this seasonal override applies.
Both start_date and end_date are inclusive. The dates of the seasonal overrides should not overlap.
Returns | |
---|---|
Type | Description |
Google\Type\Date|null |
hasStartDate
clearStartDate
setStartDate
Required. Defines the date range when this seasonal override applies.
Both start_date and end_date are inclusive. The dates of the seasonal overrides should not overlap.
Parameter | |
---|---|
Name | Description |
var |
Google\Type\Date
|
Returns | |
---|---|
Type | Description |
$this |
getEndDate
Required. seasonal override end date (inclusive).
Returns | |
---|---|
Type | Description |
Google\Type\Date|null |
hasEndDate
clearEndDate
setEndDate
Required. seasonal override end date (inclusive).
Parameter | |
---|---|
Name | Description |
var |
Google\Type\Date
|
Returns | |
---|---|
Type | Description |
$this |
getReturnWindow
Returns | |
---|---|
Type | Description |
string |