Represents an OnlineReturnPolicyService
Inheritance
$protobuf.rpc.Service > protos.google.shopping.merchant.accounts.v1beta.OnlineReturnPolicyServicePackage
@google-shopping/accountsConstructors
(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. |
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 |