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

Represents an OnlineReturnPolicyService

Inheritance

$protobuf.rpc.Service > protos.google.shopping.merchant.accounts.v1.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.v1.ICreateOnlineReturnPolicyRequest, callback: google.shopping.merchant.accounts.v1.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.v1.ICreateOnlineReturnPolicyRequest): Promise<google.shopping.merchant.accounts.v1.OnlineReturnPolicy>;

Calls CreateOnlineReturnPolicy.

Parameter
Name Description
request ICreateOnlineReturnPolicyRequest

CreateOnlineReturnPolicyRequest message or plain object

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

Promise

deleteOnlineReturnPolicy(request, callback)

public deleteOnlineReturnPolicy(request: google.shopping.merchant.accounts.v1.IDeleteOnlineReturnPolicyRequest, callback: google.shopping.merchant.accounts.v1.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.v1.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.v1.IGetOnlineReturnPolicyRequest, callback: google.shopping.merchant.accounts.v1.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.v1.IGetOnlineReturnPolicyRequest): Promise<google.shopping.merchant.accounts.v1.OnlineReturnPolicy>;

Calls GetOnlineReturnPolicy.

Parameter
Name Description
request IGetOnlineReturnPolicyRequest

GetOnlineReturnPolicyRequest message or plain object

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

Promise

listOnlineReturnPolicies(request, callback)

public listOnlineReturnPolicies(request: google.shopping.merchant.accounts.v1.IListOnlineReturnPoliciesRequest, callback: google.shopping.merchant.accounts.v1.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.v1.IListOnlineReturnPoliciesRequest): Promise<google.shopping.merchant.accounts.v1.ListOnlineReturnPoliciesResponse>;

Calls ListOnlineReturnPolicies.

Parameter
Name Description
request IListOnlineReturnPoliciesRequest

ListOnlineReturnPoliciesRequest message or plain object

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

Promise