Class protos.google.shopping.merchant.accounts.v1beta.OnlineReturnPolicyService (3.2.0)

Represents an OnlineReturnPolicyService

Inheritance

$protobuf.rpc.Service > protos.google.shopping.merchant.accounts.v1beta.OnlineReturnPolicyService

Package

@google-shopping/accounts

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new OnlineReturnPolicyService service.

Parameters
Name Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

create(rpcImpl, requestDelimited, responseDelimited)

public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): OnlineReturnPolicyService;

Creates new OnlineReturnPolicyService service using the specified rpc implementation.

Parameters
Name Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
Type Description
OnlineReturnPolicyService

RPC service. Useful where requests and/or responses are streamed.

createOnlineReturnPolicy(request, callback)

public createOnlineReturnPolicy(request: google.shopping.merchant.accounts.v1beta.ICreateOnlineReturnPolicyRequest, callback: google.shopping.merchant.accounts.v1beta.OnlineReturnPolicyService.CreateOnlineReturnPolicyCallback): void;

Calls CreateOnlineReturnPolicy.

Parameters
Name Description
request ICreateOnlineReturnPolicyRequest

CreateOnlineReturnPolicyRequest message or plain object

callback CreateOnlineReturnPolicyCallback

Node-style callback called with the error, if any, and OnlineReturnPolicy

Returns
Type Description
void

createOnlineReturnPolicy(request)

public createOnlineReturnPolicy(request: google.shopping.merchant.accounts.v1beta.ICreateOnlineReturnPolicyRequest): Promise<google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy>;

Calls CreateOnlineReturnPolicy.

Parameter
Name Description
request ICreateOnlineReturnPolicyRequest

CreateOnlineReturnPolicyRequest message or plain object

Returns
Type Description
Promise<google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy>

Promise

deleteOnlineReturnPolicy(request, callback)

public deleteOnlineReturnPolicy(request: google.shopping.merchant.accounts.v1beta.IDeleteOnlineReturnPolicyRequest, callback: google.shopping.merchant.accounts.v1beta.OnlineReturnPolicyService.DeleteOnlineReturnPolicyCallback): void;

Calls DeleteOnlineReturnPolicy.

Parameters
Name Description
request IDeleteOnlineReturnPolicyRequest

DeleteOnlineReturnPolicyRequest message or plain object

callback DeleteOnlineReturnPolicyCallback

Node-style callback called with the error, if any, and Empty

Returns
Type Description
void

deleteOnlineReturnPolicy(request)

public deleteOnlineReturnPolicy(request: google.shopping.merchant.accounts.v1beta.IDeleteOnlineReturnPolicyRequest): Promise<google.protobuf.Empty>;

Calls DeleteOnlineReturnPolicy.

Parameter
Name Description
request IDeleteOnlineReturnPolicyRequest

DeleteOnlineReturnPolicyRequest message or plain object

Returns
Type Description
Promise<google.protobuf.Empty>

Promise

getOnlineReturnPolicy(request, callback)

public getOnlineReturnPolicy(request: google.shopping.merchant.accounts.v1beta.IGetOnlineReturnPolicyRequest, callback: google.shopping.merchant.accounts.v1beta.OnlineReturnPolicyService.GetOnlineReturnPolicyCallback): void;

Calls GetOnlineReturnPolicy.

Parameters
Name Description
request IGetOnlineReturnPolicyRequest

GetOnlineReturnPolicyRequest message or plain object

callback GetOnlineReturnPolicyCallback

Node-style callback called with the error, if any, and OnlineReturnPolicy

Returns
Type Description
void

getOnlineReturnPolicy(request)

public getOnlineReturnPolicy(request: google.shopping.merchant.accounts.v1beta.IGetOnlineReturnPolicyRequest): Promise<google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy>;

Calls GetOnlineReturnPolicy.

Parameter
Name Description
request IGetOnlineReturnPolicyRequest

GetOnlineReturnPolicyRequest message or plain object

Returns
Type Description
Promise<google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy>

Promise

listOnlineReturnPolicies(request, callback)

public listOnlineReturnPolicies(request: google.shopping.merchant.accounts.v1beta.IListOnlineReturnPoliciesRequest, callback: google.shopping.merchant.accounts.v1beta.OnlineReturnPolicyService.ListOnlineReturnPoliciesCallback): void;

Calls ListOnlineReturnPolicies.

Parameters
Name Description
request IListOnlineReturnPoliciesRequest

ListOnlineReturnPoliciesRequest message or plain object

callback ListOnlineReturnPoliciesCallback

Node-style callback called with the error, if any, and ListOnlineReturnPoliciesResponse

Returns
Type Description
void

listOnlineReturnPolicies(request)

public listOnlineReturnPolicies(request: google.shopping.merchant.accounts.v1beta.IListOnlineReturnPoliciesRequest): Promise<google.shopping.merchant.accounts.v1beta.ListOnlineReturnPoliciesResponse>;

Calls ListOnlineReturnPolicies.

Parameter
Name Description
request IListOnlineReturnPoliciesRequest

ListOnlineReturnPoliciesRequest message or plain object

Returns
Type Description
Promise<google.shopping.merchant.accounts.v1beta.ListOnlineReturnPoliciesResponse>

Promise

updateOnlineReturnPolicy(request, callback)

public updateOnlineReturnPolicy(request: google.shopping.merchant.accounts.v1beta.IUpdateOnlineReturnPolicyRequest, callback: google.shopping.merchant.accounts.v1beta.OnlineReturnPolicyService.UpdateOnlineReturnPolicyCallback): void;

Calls UpdateOnlineReturnPolicy.

Parameters
Name Description
request IUpdateOnlineReturnPolicyRequest

UpdateOnlineReturnPolicyRequest message or plain object

callback UpdateOnlineReturnPolicyCallback

Node-style callback called with the error, if any, and OnlineReturnPolicy

Returns
Type Description
void

updateOnlineReturnPolicy(request)

public updateOnlineReturnPolicy(request: google.shopping.merchant.accounts.v1beta.IUpdateOnlineReturnPolicyRequest): Promise<google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy>;

Calls UpdateOnlineReturnPolicy.

Parameter
Name Description
request IUpdateOnlineReturnPolicyRequest

UpdateOnlineReturnPolicyRequest message or plain object

Returns
Type Description
Promise<google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy>

Promise