Class AccountsServiceGrpc.AccountsServiceFutureStub (0.1.0)

public static final class AccountsServiceGrpc.AccountsServiceFutureStub extends AbstractFutureStub<AccountsServiceGrpc.AccountsServiceFutureStub>

A stub to allow clients to do ListenableFuture-style rpc calls to service AccountsService.

Service to support Accounts API.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractFutureStub > AccountsServiceGrpc.AccountsServiceFutureStub

Methods

build(Channel channel, CallOptions callOptions)

protected AccountsServiceGrpc.AccountsServiceFutureStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
AccountsServiceGrpc.AccountsServiceFutureStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

createAndConfigureAccount(CreateAndConfigureAccountRequest request)

public ListenableFuture<Account> createAndConfigureAccount(CreateAndConfigureAccountRequest request)

Creates a standalone Merchant Center account with additional configuration. Adds the user that makes the request as an admin for the new account.

Parameter
Name Description
request CreateAndConfigureAccountRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Account>

deleteAccount(DeleteAccountRequest request)

public ListenableFuture<Empty> deleteAccount(DeleteAccountRequest request)

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.

Parameter
Name Description
request DeleteAccountRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Empty>

getAccount(GetAccountRequest request)

public ListenableFuture<Account> getAccount(GetAccountRequest request)

Retrieves an account from your Merchant Center account. After inserting, updating, or deleting an account, it may take several minutes before changes take effect.

Parameter
Name Description
request GetAccountRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Account>

listAccounts(ListAccountsRequest request)

public ListenableFuture<ListAccountsResponse> listAccounts(ListAccountsRequest request)

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.

Parameter
Name Description
request ListAccountsRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListAccountsResponse>

listSubAccounts(ListSubAccountsRequest request)

public ListenableFuture<ListSubAccountsResponse> listSubAccounts(ListSubAccountsRequest request)

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"))

Parameter
Name Description
request ListSubAccountsRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListSubAccountsResponse>

updateAccount(UpdateAccountRequest request)

public ListenableFuture<Account> updateAccount(UpdateAccountRequest request)

Updates an account regardless of its type: standalone, MCA or sub-account. Executing this method requires admin access.

Parameter
Name Description
request UpdateAccountRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Account>