Class protos.google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy (2.2.0)

Represents an OnlineReturnPolicy.

Package

@google-shopping/accounts

Constructors

(constructor)(properties)

constructor(properties?: google.shopping.merchant.accounts.v1beta.IOnlineReturnPolicy);

Constructs a new OnlineReturnPolicy.

Parameter
Name Description
properties IOnlineReturnPolicy

Properties to set

Properties

_acceptDefectiveOnly

public _acceptDefectiveOnly?: "acceptDefectiveOnly";

OnlineReturnPolicy _acceptDefectiveOnly.

_acceptExchange

public _acceptExchange?: "acceptExchange";

OnlineReturnPolicy _acceptExchange.

_processRefundDays

public _processRefundDays?: "processRefundDays";

OnlineReturnPolicy _processRefundDays.

_returnLabelSource

public _returnLabelSource?: "returnLabelSource";

OnlineReturnPolicy _returnLabelSource.

acceptDefectiveOnly

public acceptDefectiveOnly?: (boolean|null);

OnlineReturnPolicy acceptDefectiveOnly.

acceptExchange

public acceptExchange?: (boolean|null);

OnlineReturnPolicy acceptExchange.

countries

public countries: string[];

OnlineReturnPolicy countries.

itemConditions

public itemConditions: google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.ItemCondition[];

OnlineReturnPolicy itemConditions.

label

public label: string;

OnlineReturnPolicy label.

name

public name: string;

OnlineReturnPolicy name.

policy

public policy?: (google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.IPolicy|null);

OnlineReturnPolicy policy.

processRefundDays

public processRefundDays?: (number|null);

OnlineReturnPolicy processRefundDays.

restockingFee

public restockingFee?: (google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.IRestockingFee|null);

OnlineReturnPolicy restockingFee.

returnLabelSource

public returnLabelSource?: (google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.ReturnLabelSource|keyof typeof google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.ReturnLabelSource|null);

OnlineReturnPolicy returnLabelSource.

returnMethods

public returnMethods: google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.ReturnMethod[];

OnlineReturnPolicy returnMethods.

returnPolicyId

public returnPolicyId: string;

OnlineReturnPolicy returnPolicyId.

returnPolicyUri

public returnPolicyUri: string;

OnlineReturnPolicy returnPolicyUri.

returnShippingFee

public returnShippingFee?: (google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.IReturnShippingFee|null);

OnlineReturnPolicy returnShippingFee.

seasonalOverrides

public seasonalOverrides: google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.ISeasonalOverride[];

OnlineReturnPolicy seasonalOverrides.

Methods

create(properties)

public static create(properties?: google.shopping.merchant.accounts.v1beta.IOnlineReturnPolicy): google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy;

Creates a new OnlineReturnPolicy instance using the specified properties.

Parameter
Name Description
properties IOnlineReturnPolicy

Properties to set

Returns
Type Description
OnlineReturnPolicy

OnlineReturnPolicy instance

decode(reader, length)

public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy;

Decodes an OnlineReturnPolicy message from the specified reader or buffer.

Parameters
Name Description
reader (Reader|Uint8Array)

Reader or buffer to decode from

length number

Message length if known beforehand

Returns
Type Description
OnlineReturnPolicy

OnlineReturnPolicy

decodeDelimited(reader)

public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy;

Decodes an OnlineReturnPolicy message from the specified reader or buffer, length delimited.

Parameter
Name Description
reader (Reader|Uint8Array)

Reader or buffer to decode from

Returns
Type Description
OnlineReturnPolicy

OnlineReturnPolicy

encode(message, writer)

public static encode(message: google.shopping.merchant.accounts.v1beta.IOnlineReturnPolicy, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified OnlineReturnPolicy message. Does not implicitly messages.

Parameters
Name Description
message IOnlineReturnPolicy

OnlineReturnPolicy message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
Type Description
$protobuf.Writer

Writer

encodeDelimited(message, writer)

public static encodeDelimited(message: google.shopping.merchant.accounts.v1beta.IOnlineReturnPolicy, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified OnlineReturnPolicy message, length delimited. Does not implicitly messages.

Parameters
Name Description
message IOnlineReturnPolicy

OnlineReturnPolicy message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
Type Description
$protobuf.Writer

Writer

fromObject(object)

public static fromObject(object: { [k: string]: any }): google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy;

Creates an OnlineReturnPolicy message from a plain object. Also converts values to their respective internal types.

Parameter
Name Description
object { [k: string]: any }

Plain object

Returns
Type Description
OnlineReturnPolicy

OnlineReturnPolicy

getTypeUrl(typeUrlPrefix)

public static getTypeUrl(typeUrlPrefix?: string): string;

Gets the default type url for OnlineReturnPolicy

Parameter
Name Description
typeUrlPrefix string

your custom typeUrlPrefix(default "type.googleapis.com")

Returns
Type Description
string

The default type url

toJSON()

public toJSON(): { [k: string]: any };

Converts this OnlineReturnPolicy to JSON.

Returns
Type Description
{ [k: string]: any }

JSON object

toObject(message, options)

public static toObject(message: google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any };

Creates a plain object from an OnlineReturnPolicy message. Also converts values to other types if specified.

Parameters
Name Description
message OnlineReturnPolicy

OnlineReturnPolicy

options $protobuf.IConversionOptions

Conversion options

Returns
Type Description
{ [k: string]: any }

Plain object

verify(message)

public static verify(message: { [k: string]: any }): (string|null);

Verifies an OnlineReturnPolicy message.

Parameter
Name Description
message { [k: string]: any }

Plain object to verify

Returns
Type Description
(string|null)

null if valid, otherwise the reason why it is not