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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Shopping Merchant Accounts V1 Client - Class Policy (1.0.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0 (latest)](/php/docs/reference/shopping-merchant-accounts/latest/V1.OnlineReturnPolicy.Policy)\n- [0.10.0](/php/docs/reference/shopping-merchant-accounts/0.10.0/V1.OnlineReturnPolicy.Policy)\n- [0.9.1](/php/docs/reference/shopping-merchant-accounts/0.9.1/V1.OnlineReturnPolicy.Policy)\n- [0.8.0](/php/docs/reference/shopping-merchant-accounts/0.8.0/V1.OnlineReturnPolicy.Policy)\n- [0.7.0](/php/docs/reference/shopping-merchant-accounts/0.7.0/V1.OnlineReturnPolicy.Policy)\n- [0.6.0](/php/docs/reference/shopping-merchant-accounts/0.6.0/V1.OnlineReturnPolicy.Policy)\n- [0.5.0](/php/docs/reference/shopping-merchant-accounts/0.5.0/V1.OnlineReturnPolicy.Policy)\n- [0.4.0](/php/docs/reference/shopping-merchant-accounts/0.4.0/V1.OnlineReturnPolicy.Policy)\n- [0.3.3](/php/docs/reference/shopping-merchant-accounts/0.3.3/V1.OnlineReturnPolicy.Policy)\n- [0.2.0](/php/docs/reference/shopping-merchant-accounts/0.2.0/V1.OnlineReturnPolicy.Policy)\n- [0.1.0](/php/docs/reference/shopping-merchant-accounts/0.1.0/V1.OnlineReturnPolicy.Policy) \nReference documentation and code samples for the Google Shopping Merchant Accounts V1 Client class Policy.\n\nThe available policies.\n\nGenerated from protobuf message `google.shopping.merchant.accounts.v1.OnlineReturnPolicy.Policy`\n\nNamespace\n---------\n\nGoogle \\\\ Shopping \\\\ Merchant \\\\ Accounts \\\\ V1 \\\\ OnlineReturnPolicy\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getType\n\nPolicy type.\n\n### setType\n\nPolicy type.\n\n### getDays\n\nThe number of days items can be returned after delivery, where one day\nis defined as 24 hours after the delivery timestamp. Required for\n`NUMBER_OF_DAYS_AFTER_DELIVERY` returns.\n\n### setDays\n\nThe number of days items can be returned after delivery, where one day\nis defined as 24 hours after the delivery timestamp. Required for\n`NUMBER_OF_DAYS_AFTER_DELIVERY` returns."]]