Class AccountTaxServiceGrpc.AccountTaxServiceFutureStub (0.11.0)

public static final class AccountTaxServiceGrpc.AccountTaxServiceFutureStub extends AbstractFutureStub<AccountTaxServiceGrpc.AccountTaxServiceFutureStub>

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

Manages account level tax setting data. This API defines the following resource model:

  • AccountTax

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractFutureStub > AccountTaxServiceGrpc.AccountTaxServiceFutureStub

Methods

build(Channel channel, CallOptions callOptions)

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

getAccountTax(GetAccountTaxRequest request)

public ListenableFuture<AccountTax> getAccountTax(GetAccountTaxRequest request)

Returns the tax rules that match the conditions of GetAccountTaxRequest

Parameter
Name Description
request GetAccountTaxRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<AccountTax>

listAccountTax(ListAccountTaxRequest request)

public ListenableFuture<ListAccountTaxResponse> listAccountTax(ListAccountTaxRequest request)

Lists the tax settings of the sub-accounts only in your Merchant Center account. This method can only be called on a multi-client account, otherwise it'll return an error.

Parameter
Name Description
request ListAccountTaxRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListAccountTaxResponse>

updateAccountTax(UpdateAccountTaxRequest request)

public ListenableFuture<AccountTax> updateAccountTax(UpdateAccountTaxRequest request)

Updates the tax settings of the account.

Parameter
Name Description
request UpdateAccountTaxRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<AccountTax>