Class OnlineReturnPolicy
Online return policy object. This is currently used to represent return policies for ads and free listings programs.
Implements
Namespace: Google.Shopping.Merchant.Accounts.V1Beta
Assembly: Google.Shopping.Merchant.Accounts.V1Beta.dll
Syntax
public sealed class OnlineReturnPolicy : IMessage<OnlineReturnPolicy>, IEquatable<OnlineReturnPolicy>, IDeepCloneable<OnlineReturnPolicy>, IBufferMessage, IMessage
Constructors
OnlineReturnPolicy()
Declaration
public OnlineReturnPolicy()
OnlineReturnPolicy(OnlineReturnPolicy)
Declaration
public OnlineReturnPolicy(OnlineReturnPolicy other)
Parameters
| Type | Name | Description |
|---|---|---|
| OnlineReturnPolicy | other |
Properties
AcceptDefectiveOnly
This field specifies if merchant only accepts defective products for returns, and this field is required.
Declaration
public 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
public 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
public RepeatedField<string> Countries { get; }
Property Value
| Type | Description |
|---|---|
| RepeatedField<string> |
HasAcceptDefectiveOnly
Gets whether the "accept_defective_only" field is set
Declaration
public bool HasAcceptDefectiveOnly { get; }
Property Value
| Type | Description |
|---|---|
| bool |
HasAcceptExchange
Gets whether the "accept_exchange" field is set
Declaration
public bool HasAcceptExchange { get; }
Property Value
| Type | Description |
|---|---|
| bool |
HasProcessRefundDays
Gets whether the "process_refund_days" field is set
Declaration
public bool HasProcessRefundDays { get; }
Property Value
| Type | Description |
|---|---|
| bool |
HasReturnLabelSource
Gets whether the "return_label_source" field is set
Declaration
public bool HasReturnLabelSource { get; }
Property Value
| Type | Description |
|---|---|
| bool |
ItemConditions
Optional. The item conditions accepted for returns must not be empty unless the type of return policy is 'noReturns'.
Declaration
public RepeatedField<OnlineReturnPolicy.Types.ItemCondition> ItemConditions { get; }
Property Value
| Type | Description |
|---|---|
| RepeatedField<OnlineReturnPolicy.Types.ItemCondition> |
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
public string Label { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Name
Identifier. The name of the OnlineReturnPolicy resource.
Format: accounts/{account}/onlineReturnPolicies/{return_policy}
Declaration
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
OnlineReturnPolicyName
OnlineReturnPolicyName-typed view over the Name resource name property.
Declaration
public OnlineReturnPolicyName OnlineReturnPolicyName { get; set; }
Property Value
| Type | Description |
|---|---|
| OnlineReturnPolicyName |
Policy
Optional. The return policy.
Declaration
public OnlineReturnPolicy.Types.Policy Policy { get; set; }
Property Value
| Type | Description |
|---|---|
| OnlineReturnPolicy.Types.Policy |
ProcessRefundDays
The field specifies the number of days it takes for merchants to process refunds, field is optional.
Declaration
public 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
public OnlineReturnPolicy.Types.RestockingFee RestockingFee { get; set; }
Property Value
| Type | Description |
|---|---|
| OnlineReturnPolicy.Types.RestockingFee |
ReturnLabelSource
The field specifies the return label source. This field is required when return method is BY_MAIL.
Declaration
public OnlineReturnPolicy.Types.ReturnLabelSource ReturnLabelSource { get; set; }
Property Value
| Type | Description |
|---|---|
| OnlineReturnPolicy.Types.ReturnLabelSource |
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
public RepeatedField<OnlineReturnPolicy.Types.ReturnMethod> ReturnMethods { get; }
Property Value
| Type | Description |
|---|---|
| RepeatedField<OnlineReturnPolicy.Types.ReturnMethod> |
ReturnPolicyId
Output only. Return policy ID generated by Google.
Declaration
public 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
public 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
public OnlineReturnPolicy.Types.ReturnShippingFee ReturnShippingFee { get; set; }
Property Value
| Type | Description |
|---|---|
| OnlineReturnPolicy.Types.ReturnShippingFee |
SeasonalOverrides
Optional. Overrides to the general policy for orders placed during a specific set of time intervals.
Declaration
public RepeatedField<OnlineReturnPolicy.Types.SeasonalOverride> SeasonalOverrides { get; }
Property Value
| Type | Description |
|---|---|
| RepeatedField<OnlineReturnPolicy.Types.SeasonalOverride> |