Class AccountsServiceGrpc.AccountsServiceBlockingV2Stub (1.0.0)

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

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.AccountsServiceBlockingV2Stub

Methods

build(Channel channel, CallOptions callOptions)

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

createAndConfigureAccount(CreateAndConfigureAccountRequest request)

public Account createAndConfigureAccount(CreateAndConfigureAccountRequest request)

Creates a 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, advanced account or sub-account. Deleting an advanced account 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.

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)

Note: For the accounts.list method, quota and limits usage are charged for each user, and not for the Merchant Center ID or the advanced account ID. To list several sub-accounts, you should use the accounts.listSubaccounts method, which is more suitable for advanced accounts use case.

Parameter
Name Description
request ListAccountsRequest
Returns
Type Description
ListAccountsResponse

listSubAccounts(ListSubAccountsRequest request)

public ListSubAccountsResponse listSubAccounts(ListSubAccountsRequest request)

List all sub-accounts for a given advanced account. This is a convenience wrapper for the more powerful accounts.list 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, advanced account or sub-account. Executing this method requires admin access.

Parameter
Name Description
request UpdateAccountRequest
Returns
Type Description
Account