Show / Hide Table of Contents

Class OnlineReturnPolicy

Online return policy object. This is currently used to represent return policies for ads and free listings programs.

Inheritance
object
OnlineReturnPolicy
Implements
IDirectResponseSchema
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Merchant.accounts_v1beta.Data
Assembly: Google.Apis.Merchant.accounts_v1beta.dll
Syntax
public class OnlineReturnPolicy : IDirectResponseSchema

Properties

AcceptDefectiveOnly

Optional. This field specifies if merchant only accepts defective products for returns.

Declaration
[JsonProperty("acceptDefectiveOnly")]
public virtual bool? AcceptDefectiveOnly { get; set; }
Property Value
Type Description
bool?

AcceptExchange

Optional. This field specifies if merchant allows customers to exchange products.

Declaration
[JsonProperty("acceptExchange")]
public virtual bool? AcceptExchange { get; set; }
Property Value
Type Description
bool?

Countries

Required. Immutable. 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

Optional. 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. Immutable. 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

Optional. The return policy.

Declaration
[JsonProperty("policy")]
public virtual Policy Policy { get; set; }
Property Value
Type Description
Policy

ProcessRefundDays

Optional. The field specifies the number of days it takes for merchants to process refunds.

Declaration
[JsonProperty("processRefundDays")]
public virtual int? ProcessRefundDays { get; set; }
Property Value
Type Description
int?

RestockingFee

Optional. 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

ReturnLabelSource

Optional. The field specifies the return label source.

Declaration
[JsonProperty("returnLabelSource")]
public virtual string ReturnLabelSource { get; set; }
Property Value
Type Description
string

ReturnMethods

Optional. 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

Optional. 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

SeasonalOverrides

Optional. Overrides to the general policy for orders placed during a specific set of time intervals.

Declaration
[JsonProperty("seasonalOverrides")]
public virtual IList<SeasonalOverride> SeasonalOverrides { get; set; }
Property Value
Type Description
IList<SeasonalOverride>

Implements

IDirectResponseSchema
In this article
Back to top Generated by DocFX