Class OnlineReturnPolicy
Online return policy object. This is currently used to represent return policies for ads and free listings programs.
Implements
Inherited Members
Namespace: Google.Apis.Merchant.accounts_v1beta.Data
Assembly: Google.Apis.Merchant.accounts_v1beta.dll
Syntax
public class OnlineReturnPolicy : IDirectResponseSchema
Properties
AcceptDefectiveOnly
This field specifies if merchant only accepts defective products for returns, and this field is required.
Declaration
[JsonProperty("acceptDefectiveOnly")]
public virtual bool? AcceptDefectiveOnly { get; set; }
Property Value
Type | Description |
---|---|
bool? |
AcceptExchange
This field specifies if merchant allows customers to exchange products, this field is required.
Declaration
[JsonProperty("acceptExchange")]
public virtual bool? AcceptExchange { get; set; }
Property Value
Type | Description |
---|---|
bool? |
Countries
Required. The countries of sale where the return policy applies. The values must be a valid 2 letter ISO 3166 code.
Declaration
[JsonProperty("countries")]
public virtual IList<string> Countries { get; set; }
Property Value
Type | Description |
---|---|
IList<string> |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
ItemConditions
The item conditions accepted for returns must not be empty unless the type of return policy is 'noReturns'.
Declaration
[JsonProperty("itemConditions")]
public virtual IList<string> ItemConditions { get; set; }
Property Value
Type | Description |
---|---|
IList<string> |
Label
Required. This field represents the unique user-defined label of the return policy. It is important to note that the same label cannot be used in different return policies for the same country. Unless a product specifies a specific label attribute, policies will be automatically labeled as 'default'. To assign a custom return policy to certain product groups, follow the instructions provided in the [Return policy label] (https://support.google.com/merchants/answer/9445425). The label can contain up to 50 characters.
Declaration
[JsonProperty("label")]
public virtual string Label { get; set; }
Property Value
Type | Description |
---|---|
string |
Name
Identifier. The name of the OnlineReturnPolicy
resource. Format:
accounts/{account}/onlineReturnPolicies/{return_policy}
Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
Policy
The return policy.
Declaration
[JsonProperty("policy")]
public virtual Policy Policy { get; set; }
Property Value
Type | Description |
---|---|
Policy |
ProcessRefundDays
The field specifies the number of days it takes for merchants to process refunds, field is optional.
Declaration
[JsonProperty("processRefundDays")]
public virtual int? ProcessRefundDays { get; set; }
Property Value
Type | Description |
---|---|
int? |
RestockingFee
The restocking fee that applies to all return reason categories. This would be treated as a free restocking fee if the value is not set.
Declaration
[JsonProperty("restockingFee")]
public virtual RestockingFee RestockingFee { get; set; }
Property Value
Type | Description |
---|---|
RestockingFee |
ReturnMethods
The return methods of how customers can return an item. This value is required to not be empty unless the type of return policy is noReturns.
Declaration
[JsonProperty("returnMethods")]
public virtual IList<string> ReturnMethods { get; set; }
Property Value
Type | Description |
---|---|
IList<string> |
ReturnPolicyId
Output only. Return policy ID generated by Google.
Declaration
[JsonProperty("returnPolicyId")]
public virtual string ReturnPolicyId { get; set; }
Property Value
Type | Description |
---|---|
string |
ReturnPolicyUri
Required. The return policy uri. This can used by Google to do a sanity check for the policy. It must be a valid URL.
Declaration
[JsonProperty("returnPolicyUri")]
public virtual string ReturnPolicyUri { get; set; }
Property Value
Type | Description |
---|---|
string |
ReturnShippingFee
The return shipping fee. Should be set only when customer need to download and print the return label.
Declaration
[JsonProperty("returnShippingFee")]
public virtual ReturnShippingFee ReturnShippingFee { get; set; }
Property Value
Type | Description |
---|---|
ReturnShippingFee |