Class AccountTaxServiceGrpc.AccountTaxServiceStub (0.5.0)

public static final class AccountTaxServiceGrpc.AccountTaxServiceStub extends AbstractAsyncStub<AccountTaxServiceGrpc.AccountTaxServiceStub>

A stub to allow clients to do asynchronous 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.AbstractAsyncStub > AccountTaxServiceGrpc.AccountTaxServiceStub

Methods

build(Channel channel, CallOptions callOptions)

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

getAccountTax(GetAccountTaxRequest request, StreamObserver<AccountTax> responseObserver)

public void getAccountTax(GetAccountTaxRequest request, StreamObserver<AccountTax> responseObserver)

Returns the tax rules that match the conditions of GetAccountTaxRequest

Parameters
Name Description
request GetAccountTaxRequest
responseObserver io.grpc.stub.StreamObserver<AccountTax>

listAccountTax(ListAccountTaxRequest request, StreamObserver<ListAccountTaxResponse> responseObserver)

public void listAccountTax(ListAccountTaxRequest request, StreamObserver<ListAccountTaxResponse> responseObserver)

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.

Parameters
Name Description
request ListAccountTaxRequest
responseObserver io.grpc.stub.StreamObserver<ListAccountTaxResponse>

updateAccountTax(UpdateAccountTaxRequest request, StreamObserver<AccountTax> responseObserver)

public void updateAccountTax(UpdateAccountTaxRequest request, StreamObserver<AccountTax> responseObserver)

Updates the tax settings of the account.

Parameters
Name Description
request UpdateAccountTaxRequest
responseObserver io.grpc.stub.StreamObserver<AccountTax>