Interface TuaBillingAccountService
- All Known Implementing Classes:
DefaultTuaBillingAccountService
public interface TuaBillingAccountService
Service responsible for handling
TuaAccountModel related operations.- Since:
- 2208
-
Method Summary
Modifier and TypeMethodDescriptioncreateBillingAccount(Class billingAccountClass) Creates an instance ofTuaAccountModelsubtype.getBillingAccount(String billingAccountId) Returns aTuaAccountModelfor the given id.getBillingAccounts(BaBillingAccountContext billingAccountContext, Integer offset, Integer limit) Returns a list ofTuaAccountModels for the given context.getNumberOfBillingAccountsFor(BaBillingAccountContext billingAccountContext) Retrieves the total number of billing accounts found for a given billingAccountContext.voidremoveBillingAccount(TuaAccountModel billingAccount) Removes the givenTuaAccountModelvoidsaveBillingAccount(TuaAccountModel billingAccountModel) Saves the givenTuaAccountModel.
-
Method Details
-
getBillingAccount
Returns aTuaAccountModelfor the given id.- Parameters:
billingAccountId- identifier ofTuaAccountModel- Returns:
- the
TuaAccountModelfound.
-
getBillingAccounts
List<TuaAccountModel> getBillingAccounts(BaBillingAccountContext billingAccountContext, Integer offset, Integer limit) Returns a list ofTuaAccountModels for the given context.- Parameters:
billingAccountContext- the billing account context, used for filtering of accounts.offset- the offset.limit- the maximum number of returned billing accounts.- Returns:
- the List of
TuaAccountModels found for the given context.
-
getNumberOfBillingAccountsFor
Retrieves the total number of billing accounts found for a given billingAccountContext.- Parameters:
billingAccountContext- the billing account context.- Returns:
- the number of products found.
-
saveBillingAccount
Saves the givenTuaAccountModel.- Parameters:
billingAccountModel- the given billing account.
-
createBillingAccount
Creates an instance ofTuaAccountModelsubtype.- Parameters:
billingAccountClass- the class of theTuaAccountModelsubtype.- Returns:
- the newly created model.
-
removeBillingAccount
Removes the givenTuaAccountModel- Parameters:
billingAccount- the billingAccount.
-