Class AccountsServiceClientImpl
AccountsService 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 AccountsServiceClientImpl : AccountsServiceClient
Remarks
Service to support Accounts API.
Constructors
AccountsServiceClientImpl(AccountsServiceClient, AccountsServiceSettings, ILogger)
Constructs a client wrapper for the AccountsService service, with the specified gRPC client and settings.
Declaration
public AccountsServiceClientImpl(AccountsService.AccountsServiceClient grpcClient, AccountsServiceSettings settings, ILogger logger)
Parameters
Type | Name | Description |
---|---|---|
AccountsService.AccountsServiceClient | grpcClient | The underlying gRPC client. |
AccountsServiceSettings | settings | The base AccountsServiceSettings used within this client. |
ILogger | logger | Optional ILogger to use within this client. |
Properties
GrpcClient
The underlying gRPC AccountsService client
Declaration
public override AccountsService.AccountsServiceClient GrpcClient { get; }
Property Value
Type | Description |
---|---|
AccountsService.AccountsServiceClient |
Overrides
Methods
CreateAndConfigureAccount(CreateAndConfigureAccountRequest, CallSettings)
Creates a standalone Merchant Center account with additional configuration. Adds the user that makes the request as an admin for the new account.
Declaration
public override Account CreateAndConfigureAccount(CreateAndConfigureAccountRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
CreateAndConfigureAccountRequest | 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 |
---|---|
Account | The RPC response. |
Overrides
CreateAndConfigureAccountAsync(CreateAndConfigureAccountRequest, CallSettings)
Creates a standalone Merchant Center account with additional configuration. Adds the user that makes the request as an admin for the new account.
Declaration
public override Task<Account> CreateAndConfigureAccountAsync(CreateAndConfigureAccountRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
CreateAndConfigureAccountRequest | 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<Account> | A Task containing the RPC response. |
Overrides
DeleteAccount(DeleteAccountRequest, CallSettings)
Deletes the specified account regardless of its type: standalone, MCA or
sub-account. Deleting an MCA leads to the deletion of all of its
sub-accounts. Executing this method requires admin access.
The deletion succeeds only if the account does not provide services
to any other account and has no processed offers. You can use the force
parameter to override this.
Declaration
public override void DeleteAccount(DeleteAccountRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
DeleteAccountRequest | request | The request object containing all of the parameters for the API call. |
CallSettings | callSettings | If not null, applies overrides to this RPC call. |
Overrides
DeleteAccountAsync(DeleteAccountRequest, CallSettings)
Deletes the specified account regardless of its type: standalone, MCA or
sub-account. Deleting an MCA leads to the deletion of all of its
sub-accounts. Executing this method requires admin access.
The deletion succeeds only if the account does not provide services
to any other account and has no processed offers. You can use the force
parameter to override this.
Declaration
public override Task DeleteAccountAsync(DeleteAccountRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
DeleteAccountRequest | 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 | A Task containing the RPC response. |
Overrides
GetAccount(GetAccountRequest, CallSettings)
Retrieves an account from your Merchant Center account. After inserting, updating, or deleting an account, it may take several minutes before changes take effect.
Declaration
public override Account GetAccount(GetAccountRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
GetAccountRequest | 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 |
---|---|
Account | The RPC response. |
Overrides
GetAccountAsync(GetAccountRequest, CallSettings)
Retrieves an account from your Merchant Center account. After inserting, updating, or deleting an account, it may take several minutes before changes take effect.
Declaration
public override Task<Account> GetAccountAsync(GetAccountRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
GetAccountRequest | 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<Account> | A Task containing the RPC response. |
Overrides
ListAccounts(ListAccountsRequest, CallSettings)
Lists accounts accessible to the calling user and matching the constraints of the request such as page size or filters. This is not just listing the sub-accounts of an MCA, but all accounts the calling user has access to including other MCAs, linked accounts, standalone accounts and so on. If no filter is provided, then it returns accounts the user is directly added to.
Declaration
public override PagedEnumerable<ListAccountsResponse, Account> ListAccounts(ListAccountsRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ListAccountsRequest | 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<ListAccountsResponse, Account> | A pageable sequence of Account resources. |
Overrides
ListAccountsAsync(ListAccountsRequest, CallSettings)
Lists accounts accessible to the calling user and matching the constraints of the request such as page size or filters. This is not just listing the sub-accounts of an MCA, but all accounts the calling user has access to including other MCAs, linked accounts, standalone accounts and so on. If no filter is provided, then it returns accounts the user is directly added to.
Declaration
public override PagedAsyncEnumerable<ListAccountsResponse, Account> ListAccountsAsync(ListAccountsRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ListAccountsRequest | 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<ListAccountsResponse, Account> | A pageable asynchronous sequence of Account resources. |
Overrides
ListSubAccounts(ListSubAccountsRequest, CallSettings)
List all sub-accounts for a given multi client account. This is a
convenience wrapper for the more powerful ListAccounts
method. This
method will produce the same results as calling ListsAccounts
with the
following filter:
relationship(providerId={parent} AND service(type="ACCOUNT_AGGREGATION"))
Declaration
public override PagedEnumerable<ListSubAccountsResponse, Account> ListSubAccounts(ListSubAccountsRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ListSubAccountsRequest | 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<ListSubAccountsResponse, Account> | A pageable sequence of Account resources. |
Overrides
ListSubAccountsAsync(ListSubAccountsRequest, CallSettings)
List all sub-accounts for a given multi client account. This is a
convenience wrapper for the more powerful ListAccounts
method. This
method will produce the same results as calling ListsAccounts
with the
following filter:
relationship(providerId={parent} AND service(type="ACCOUNT_AGGREGATION"))
Declaration
public override PagedAsyncEnumerable<ListSubAccountsResponse, Account> ListSubAccountsAsync(ListSubAccountsRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
ListSubAccountsRequest | 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<ListSubAccountsResponse, Account> | A pageable asynchronous sequence of Account resources. |
Overrides
UpdateAccount(UpdateAccountRequest, CallSettings)
Updates an account regardless of its type: standalone, MCA or sub-account. Executing this method requires admin access.
Declaration
public override Account UpdateAccount(UpdateAccountRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
UpdateAccountRequest | 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 |
---|---|
Account | The RPC response. |
Overrides
UpdateAccountAsync(UpdateAccountRequest, CallSettings)
Updates an account regardless of its type: standalone, MCA or sub-account. Executing this method requires admin access.
Declaration
public override Task<Account> UpdateAccountAsync(UpdateAccountRequest request, CallSettings callSettings = null)
Parameters
Type | Name | Description |
---|---|---|
UpdateAccountRequest | 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<Account> | A Task containing the RPC response. |