Class AccountsServiceGrpc.AccountsServiceStub (0.2.0)

public static final class AccountsServiceGrpc.AccountsServiceStub extends AbstractAsyncStub<AccountsServiceGrpc.AccountsServiceStub>

A stub to allow clients to do asynchronous rpc calls to service AccountsService.

Service to support Accounts API.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractAsyncStub > AccountsServiceGrpc.AccountsServiceStub

Methods

build(Channel channel, CallOptions callOptions)

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

createAndConfigureAccount(CreateAndConfigureAccountRequest request, StreamObserver<Account> responseObserver)

public void createAndConfigureAccount(CreateAndConfigureAccountRequest request, StreamObserver<Account> responseObserver)

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

Parameters
Name Description
request CreateAndConfigureAccountRequest
responseObserver io.grpc.stub.StreamObserver<Account>

deleteAccount(DeleteAccountRequest request, StreamObserver<Empty> responseObserver)

public void deleteAccount(DeleteAccountRequest request, StreamObserver<Empty> responseObserver)

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.

Parameters
Name Description
request DeleteAccountRequest
responseObserver io.grpc.stub.StreamObserver<Empty>

getAccount(GetAccountRequest request, StreamObserver<Account> responseObserver)

public void getAccount(GetAccountRequest request, StreamObserver<Account> responseObserver)

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

Parameters
Name Description
request GetAccountRequest
responseObserver io.grpc.stub.StreamObserver<Account>

listAccounts(ListAccountsRequest request, StreamObserver<ListAccountsResponse> responseObserver)

public void listAccounts(ListAccountsRequest request, StreamObserver<ListAccountsResponse> responseObserver)

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.

Parameters
Name Description
request ListAccountsRequest
responseObserver io.grpc.stub.StreamObserver<ListAccountsResponse>

listSubAccounts(ListSubAccountsRequest request, StreamObserver<ListSubAccountsResponse> responseObserver)

public void listSubAccounts(ListSubAccountsRequest request, StreamObserver<ListSubAccountsResponse> responseObserver)

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

Parameters
Name Description
request ListSubAccountsRequest
responseObserver io.grpc.stub.StreamObserver<ListSubAccountsResponse>

updateAccount(UpdateAccountRequest request, StreamObserver<Account> responseObserver)

public void updateAccount(UpdateAccountRequest request, StreamObserver<Account> responseObserver)

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

Parameters
Name Description
request UpdateAccountRequest
responseObserver io.grpc.stub.StreamObserver<Account>