Interface TuaBillingAccountService

All Known Implementing Classes:
DefaultTuaBillingAccountService

public interface TuaBillingAccountService
Service responsible for handling TuaAccountModel related operations.
Since:
2208
  • Method Details

    • getBillingAccount

      TuaAccountModel getBillingAccount(String billingAccountId)
      Returns a TuaAccountModel for the given id.
      Parameters:
      billingAccountId - identifier of TuaAccountModel
      Returns:
      the TuaAccountModel found.
    • getBillingAccounts

      List<TuaAccountModel> getBillingAccounts(BaBillingAccountContext billingAccountContext, Integer offset, Integer limit)
      Returns a list of TuaAccountModels 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

      Integer getNumberOfBillingAccountsFor(BaBillingAccountContext billingAccountContext)
      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

      void saveBillingAccount(TuaAccountModel billingAccountModel)
      Saves the given TuaAccountModel.
      Parameters:
      billingAccountModel - the given billing account.
    • createBillingAccount

      TuaAccountModel createBillingAccount(Class billingAccountClass)
      Creates an instance of TuaAccountModel subtype.
      Parameters:
      billingAccountClass - the class of the TuaAccountModel subtype.
      Returns:
      the newly created model.
    • removeBillingAccount

      void removeBillingAccount(TuaAccountModel billingAccount)
      Removes the given TuaAccountModel
      Parameters:
      billingAccount - the billingAccount.