Class AccountTaxServiceClientImpl
AccountTaxService 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 AccountTaxServiceClientImpl : AccountTaxServiceClient
Remarks
Manages account level tax setting data.
This API defines the following resource model:
- [AccountTax][google.shopping.merchant.accounts.v1main.AccountTax]
Constructors
AccountTaxServiceClientImpl(AccountTaxServiceClient, AccountTaxServiceSettings, ILogger)
Constructs a client wrapper for the AccountTaxService service, with the specified gRPC client and settings.
Declaration
public AccountTaxServiceClientImpl(AccountTaxService.AccountTaxServiceClient grpcClient, AccountTaxServiceSettings settings, ILogger logger)
Parameters
Type | Name | Description |
---|---|---|
AccountTaxService.AccountTaxServiceClient | grpcClient | The underlying gRPC client. |
AccountTaxServiceSettings | settings | The base AccountTaxServiceSettings used within this client. |
ILogger | logger | Optional ILogger to use within this client. |
Properties
GrpcClient
The underlying gRPC AccountTaxService client
Declaration
public override AccountTaxService.AccountTaxServiceClient GrpcClient { get; }
Property Value
Type | Description |
---|---|
AccountTaxService.AccountTaxServiceClient |
Overrides
Methods
GetAccountTax(GetAccountTaxRequest, CallSettings)
Returns the tax rules that match the conditions of GetAccountTaxRequest
Declaration
public override AccountTax GetAccountTax(GetAccountTaxRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
GetAccountTaxRequest | 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 |
---|---|
AccountTax | The RPC response. |
Overrides
GetAccountTaxAsync(GetAccountTaxRequest, CallSettings)
Returns the tax rules that match the conditions of GetAccountTaxRequest
Declaration
public override Task<AccountTax> GetAccountTaxAsync(GetAccountTaxRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
GetAccountTaxRequest | 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<AccountTax> | A Task containing the RPC response. |
Overrides
ListAccountTax(ListAccountTaxRequest, CallSettings)
Lists the tax settings of the sub-accounts only in your Merchant Center account. This method can only be called on a multi-client account, otherwise it'll return an error.
Declaration
public override PagedEnumerable<ListAccountTaxResponse, AccountTax> ListAccountTax(ListAccountTaxRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ListAccountTaxRequest | 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<ListAccountTaxResponse, AccountTax> | A pageable sequence of AccountTax resources. |
Overrides
ListAccountTaxAsync(ListAccountTaxRequest, CallSettings)
Lists the tax settings of the sub-accounts only in your Merchant Center account. This method can only be called on a multi-client account, otherwise it'll return an error.
Declaration
public override PagedAsyncEnumerable<ListAccountTaxResponse, AccountTax> ListAccountTaxAsync(ListAccountTaxRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ListAccountTaxRequest | 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<ListAccountTaxResponse, AccountTax> | A pageable asynchronous sequence of AccountTax resources. |
Overrides
UpdateAccountTax(UpdateAccountTaxRequest, CallSettings)
Updates the tax settings of the account.
Declaration
public override AccountTax UpdateAccountTax(UpdateAccountTaxRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
UpdateAccountTaxRequest | 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 |
---|---|
AccountTax | The RPC response. |
Overrides
UpdateAccountTaxAsync(UpdateAccountTaxRequest, CallSettings)
Updates the tax settings of the account.
Declaration
public override Task<AccountTax> UpdateAccountTaxAsync(UpdateAccountTaxRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
UpdateAccountTaxRequest | 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<AccountTax> | A Task containing the RPC response. |