Interface TmaBillingAccountService
- All Known Implementing Classes:
DefaultTmaBillingAccountService
public interface TmaBillingAccountService
Service responsible for manipulating
TmaBillingAccountModel objects.- Since:
- 6.6
-
Method Summary
Modifier and TypeMethodDescriptioncreateBillingAccount(String billingSystemId, String billingAccountId) Creates a newTmaBillingAccountModelwith given details.createBillingAccountWithParentAccount(String billingSystemId, String billingAccountId, String parentBillingAccountId) Creates a newTmaBillingAccountModelwith given details and attaches it to the given parent account.voiddeleteBillingAccount(String billingSystemId, String billingAccountId) Deletes theTmaBillingAccountModeland it's assciatedTmaSubscriptionBaseModels.findBillingAccount(String billingSystemId, String billingAccountId) Retrieves theTmaBillingAccountModelassociated to a given billing account id and a billing system id.Creates a newTmaBillingAccountModelwith key generators
-
Method Details
-
findBillingAccount
Retrieves theTmaBillingAccountModelassociated to a given billing account id and a billing system id.- Parameters:
billingSystemId- the billing system identifierbillingAccountId- the billing account identifier from the billing system- Returns:
- the
TmaBillingAccountModelif any exists
-
createBillingAccount
Creates a newTmaBillingAccountModelwith given details.- Parameters:
billingSystemId- the billing system identifierbillingAccountId- the billing account identifier from the billing system- Returns:
- the newly created
TmaBillingAccountModel
-
createBillingAccountWithParentAccount
TmaBillingAccountModel createBillingAccountWithParentAccount(String billingSystemId, String billingAccountId, String parentBillingAccountId) Creates a newTmaBillingAccountModelwith given details and attaches it to the given parent account.- Parameters:
billingSystemId- the billing system identifierbillingAccountId- the billing account identifier from the billing systemparentBillingAccountId- 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
Deletes theTmaBillingAccountModeland it's assciatedTmaSubscriptionBaseModels. The billing account is identified by the given billing system id and the billing account id.- Parameters:
billingSystemId- the billing system identifierbillingAccountId- the billing account identifier from the billing system
-
generateBillingAccount
TmaBillingAccountModel generateBillingAccount()Creates a newTmaBillingAccountModelwith key generators- Returns:
- the newly created
TmaBillingAccountModel
-