Balances Interface

public interface Balances

Resource collection API of Balances.

Method Summary

Modifier and Type Method and Description
abstract Balance getByBillingAccount(String billingAccountId)

Gets the balances for a scope by billingAccountId.

abstract Response<Balance> getByBillingAccountWithResponse(String billingAccountId, Context context)

Gets the balances for a scope by billingAccountId.

abstract Balance getForBillingPeriodByBillingAccount(String billingAccountId, String billingPeriodName)

Gets the balances for a scope by billing period and billingAccountId.

abstract Response<Balance> getForBillingPeriodByBillingAccountWithResponse(String billingAccountId, String billingPeriodName, Context context)

Gets the balances for a scope by billing period and billingAccountId.

Method Details

getByBillingAccount

public abstract Balance getByBillingAccount(String billingAccountId)

Gets the balances for a scope by billingAccountId. Balances are available via this API only for May 1, 2014 or later.

Parameters:

billingAccountId - BillingAccount ID.

Returns:

the balances for a scope by billingAccountId.

getByBillingAccountWithResponse

public abstract Response getByBillingAccountWithResponse(String billingAccountId, Context context)

Gets the balances for a scope by billingAccountId. Balances are available via this API only for May 1, 2014 or later.

Parameters:

billingAccountId - BillingAccount ID.
context - The context to associate with this operation.

Returns:

the balances for a scope by billingAccountId.

getForBillingPeriodByBillingAccount

public abstract Balance getForBillingPeriodByBillingAccount(String billingAccountId, String billingPeriodName)

Gets the balances for a scope by billing period and billingAccountId. Balances are available via this API only for May 1, 2014 or later.

Parameters:

billingAccountId - BillingAccount ID.
billingPeriodName - Billing Period Name.

Returns:

the balances for a scope by billing period and billingAccountId.

getForBillingPeriodByBillingAccountWithResponse

public abstract Response getForBillingPeriodByBillingAccountWithResponse(String billingAccountId, String billingPeriodName, Context context)

Gets the balances for a scope by billing period and billingAccountId. Balances are available via this API only for May 1, 2014 or later.

Parameters:

billingAccountId - BillingAccount ID.
billingPeriodName - Billing Period Name.
context - The context to associate with this operation.

Returns:

the balances for a scope by billing period and billingAccountId.

Applies to