Interface BillingAccountsSearch
- All Known Implementing Classes:
BillingAccountsSearchImpl
public interface BillingAccountsSearch
Client interface for searching billing accounts via the Platform Billing Account v2 (BAS) API at
/billing/v2/billingAccounts.
search(BillingAccountSearchRequest) pages over the customer's billing accounts
matching the supplied criteria, while getByAccountNumber(String) and
getByAccountId(String) fetch a single account by its number or id respectively.
-
Method Summary
Modifier and TypeMethodDescriptiongetByAccountId(String accountId) Returns a single billing account by its account id.getByAccountNumber(String accountNumber) Returns a single billing account by its account number.search(BillingAccountSearchRequest request) Searches the customer's billing accounts using the supplied criteria.
-
Method Details
-
search
Searches the customer's billing accounts using the supplied criteria.- Parameters:
request- the search criteria- Returns:
- a paginated list of matching billing accounts
-
getByAccountNumber
Returns a single billing account by its account number.- Parameters:
accountNumber- the billing account number- Returns:
- the billing account detail
-
getByAccountId
Returns a single billing account by its account id.- Parameters:
accountId- the billing account id- Returns:
- the billing account detail
-