Interface TmaBillingAccountService

All Known Implementing Classes:
DefaultTmaBillingAccountService

public interface TmaBillingAccountService
Service responsible for manipulating TmaBillingAccountModel objects.
Since:
6.6
  • Method Details

    • findBillingAccount

      TmaBillingAccountModel findBillingAccount(String billingSystemId, String billingAccountId)
      Retrieves the TmaBillingAccountModel associated to a given billing account id and a billing system id.
      Parameters:
      billingSystemId - the billing system identifier
      billingAccountId - the billing account identifier from the billing system
      Returns:
      the TmaBillingAccountModel if any exists
    • createBillingAccount

      TmaBillingAccountModel createBillingAccount(String billingSystemId, String billingAccountId)
      Creates a new TmaBillingAccountModel with given details.
      Parameters:
      billingSystemId - the billing system identifier
      billingAccountId - the billing account identifier from the billing system
      Returns:
      the newly created TmaBillingAccountModel
    • createBillingAccountWithParentAccount

      TmaBillingAccountModel createBillingAccountWithParentAccount(String billingSystemId, String billingAccountId, String parentBillingAccountId)
      Creates a new TmaBillingAccountModel with given details and attaches it to the given parent account.
      Parameters:
      billingSystemId - the billing system identifier
      billingAccountId - the billing account identifier from the billing system
      parentBillingAccountId - the billing account identifier of the parent billing account from the billing system, to which the newly created billing account is associated
      Returns:
      the newly created TmaBillingAccountModel
    • deleteBillingAccount

      void deleteBillingAccount(String billingSystemId, String billingAccountId)
      Deletes the TmaBillingAccountModel and it's assciated TmaSubscriptionBaseModels. The billing account is identified by the given billing system id and the billing account id.
      Parameters:
      billingSystemId - the billing system identifier
      billingAccountId - the billing account identifier from the billing system
    • generateBillingAccount

      TmaBillingAccountModel generateBillingAccount()
      Creates a new TmaBillingAccountModel with key generators
      Returns:
      the newly created TmaBillingAccountModel