Class AccountsServiceGrpc.AccountsServiceBlockingStub (0.2.0)

public static final class AccountsServiceGrpc.AccountsServiceBlockingStub extends AbstractBlockingStub<AccountsServiceGrpc.AccountsServiceBlockingStub>

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

Service to support Accounts API.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractBlockingStub > AccountsServiceGrpc.AccountsServiceBlockingStub

Methods

build(Channel channel, CallOptions callOptions)

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

createAndConfigureAccount(CreateAndConfigureAccountRequest request)

public 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
Account

deleteAccount(DeleteAccountRequest request)

public 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
Empty

getAccount(GetAccountRequest request)

public 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
Account

listAccounts(ListAccountsRequest request)

public 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
ListAccountsResponse

listSubAccounts(ListSubAccountsRequest request)

public 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
ListSubAccountsResponse

updateAccount(UpdateAccountRequest request)

public 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
Account