Class OnlineReturnPolicyServiceClientImpl
OnlineReturnPolicyService client wrapper implementation, for convenient use.
Inherited Members
Namespace: Google.Shopping.Merchant.Accounts.V1Beta
Assembly: Google.Shopping.Merchant.Accounts.V1Beta.dll
Syntax
public sealed class OnlineReturnPolicyServiceClientImpl : OnlineReturnPolicyServiceClient
Remarks
The service facilitates the management of a merchant's remorse return policy configuration, encompassing return policies for both ads and free listings
programs. This API defines the following resource model:
[OnlineReturnPolicy][google.shopping.merchant.accounts.v1.OnlineReturnPolicy]
Constructors
OnlineReturnPolicyServiceClientImpl(OnlineReturnPolicyServiceClient, OnlineReturnPolicyServiceSettings, ILogger)
Constructs a client wrapper for the OnlineReturnPolicyService service, with the specified gRPC client and settings.
Declaration
public OnlineReturnPolicyServiceClientImpl(OnlineReturnPolicyService.OnlineReturnPolicyServiceClient grpcClient, OnlineReturnPolicyServiceSettings settings, ILogger logger)
Parameters
Type | Name | Description |
---|---|---|
OnlineReturnPolicyService.OnlineReturnPolicyServiceClient | grpcClient | The underlying gRPC client. |
OnlineReturnPolicyServiceSettings | settings | The base OnlineReturnPolicyServiceSettings used within this client. |
ILogger | logger | Optional ILogger to use within this client. |
Properties
GrpcClient
The underlying gRPC OnlineReturnPolicyService client
Declaration
public override OnlineReturnPolicyService.OnlineReturnPolicyServiceClient GrpcClient { get; }
Property Value
Type | Description |
---|---|
OnlineReturnPolicyService.OnlineReturnPolicyServiceClient |
Overrides
Methods
GetOnlineReturnPolicy(GetOnlineReturnPolicyRequest, CallSettings)
Gets an existing return policy.
Declaration
public override OnlineReturnPolicy GetOnlineReturnPolicy(GetOnlineReturnPolicyRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
GetOnlineReturnPolicyRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
OnlineReturnPolicy | The RPC response. |
Overrides
GetOnlineReturnPolicyAsync(GetOnlineReturnPolicyRequest, CallSettings)
Gets an existing return policy.
Declaration
public override Task<OnlineReturnPolicy> GetOnlineReturnPolicyAsync(GetOnlineReturnPolicyRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
GetOnlineReturnPolicyRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Task<OnlineReturnPolicy> | A Task containing the RPC response. |
Overrides
ListOnlineReturnPolicies(ListOnlineReturnPoliciesRequest, CallSettings)
Lists all existing return policies.
Declaration
public override PagedEnumerable<ListOnlineReturnPoliciesResponse, OnlineReturnPolicy> ListOnlineReturnPolicies(ListOnlineReturnPoliciesRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ListOnlineReturnPoliciesRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
PagedEnumerable<ListOnlineReturnPoliciesResponse, OnlineReturnPolicy> | A pageable sequence of OnlineReturnPolicy resources. |
Overrides
ListOnlineReturnPoliciesAsync(ListOnlineReturnPoliciesRequest, CallSettings)
Lists all existing return policies.
Declaration
public override PagedAsyncEnumerable<ListOnlineReturnPoliciesResponse, OnlineReturnPolicy> ListOnlineReturnPoliciesAsync(ListOnlineReturnPoliciesRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ListOnlineReturnPoliciesRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
PagedAsyncEnumerable<ListOnlineReturnPoliciesResponse, OnlineReturnPolicy> | A pageable asynchronous sequence of OnlineReturnPolicy resources. |