Class DefaultTmaBillingAccountService
- java.lang.Object
-
- de.hybris.platform.b2ctelcoservices.services.impl.DefaultTmaBillingAccountService
-
- All Implemented Interfaces:
TmaBillingAccountService
public class DefaultTmaBillingAccountService extends java.lang.Object implements TmaBillingAccountService
Default implementation ofTmaBillingAccountService.- Since:
- 6.6
-
-
Constructor Summary
Constructors Constructor Description DefaultTmaBillingAccountService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TmaBillingAccountModelcreateBillingAccount(java.lang.String billingSystemId, java.lang.String billingAccountId)Creates a newTmaBillingAccountModelwith given details.TmaBillingAccountModelcreateBillingAccountWithParentAccount(java.lang.String billingSystemId, java.lang.String billingAccountId, java.lang.String parentBillingAccountId)Creates a newTmaBillingAccountModelwith given details and attaches it to the given parent account.voiddeleteBillingAccount(java.lang.String billingSystemId, java.lang.String billingAccountId)Deletes theTmaBillingAccountModeland it's assciatedTmaSubscriptionBaseModels.TmaBillingAccountModelfindBillingAccount(java.lang.String billingSystemId, java.lang.String billingAccountId)Retrieves theTmaBillingAccountModelassociated to a given billing account id and a billing system id.TmaBillingAccountModelgenerateBillingAccount()Creates a newTmaBillingAccountModelwith key generatorsprotected de.hybris.platform.servicelayer.model.ModelServicegetModelService()protected TmaBillingAccountDaogetTmaBillingAccountDao()protected de.hybris.platform.servicelayer.keygenerator.impl.PersistentKeyGeneratorgetTmaBillingAccountIdGenerator()protected TmaSubscriptionBaseServicegetTmaSubscriptionBaseService()voidsetDefaultBillingSystemId(java.lang.String defaultBillingSystemId)voidsetModelService(de.hybris.platform.servicelayer.model.ModelService modelService)voidsetTmaBillingAccountDao(TmaBillingAccountDao tmaBillingAccountDao)voidsetTmaBillingAccountIdGenerator(de.hybris.platform.servicelayer.keygenerator.impl.PersistentKeyGenerator tmaBillingAccountIdGenerator)voidsetTmaSubscriptionBaseService(TmaSubscriptionBaseService tmaSubscriptionBaseService)
-
-
-
Method Detail
-
findBillingAccount
public TmaBillingAccountModel findBillingAccount(java.lang.String billingSystemId, java.lang.String billingAccountId)
Description copied from interface:TmaBillingAccountServiceRetrieves theTmaBillingAccountModelassociated to a given billing account id and a billing system id.- Specified by:
findBillingAccountin interfaceTmaBillingAccountService- Parameters:
billingSystemId- the billing system identifierbillingAccountId- the billing account identifier from the billing system- Returns:
- the
TmaBillingAccountModelif any exists
-
createBillingAccount
public TmaBillingAccountModel createBillingAccount(java.lang.String billingSystemId, java.lang.String billingAccountId)
Description copied from interface:TmaBillingAccountServiceCreates a newTmaBillingAccountModelwith given details.- Specified by:
createBillingAccountin interfaceTmaBillingAccountService- Parameters:
billingSystemId- the billing system identifierbillingAccountId- the billing account identifier from the billing system- Returns:
- the newly created
TmaBillingAccountModel
-
createBillingAccountWithParentAccount
public TmaBillingAccountModel createBillingAccountWithParentAccount(java.lang.String billingSystemId, java.lang.String billingAccountId, java.lang.String parentBillingAccountId)
Description copied from interface:TmaBillingAccountServiceCreates a newTmaBillingAccountModelwith given details and attaches it to the given parent account.- Specified by:
createBillingAccountWithParentAccountin interfaceTmaBillingAccountService- 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
@Transactional public void deleteBillingAccount(java.lang.String billingSystemId, java.lang.String billingAccountId)Description copied from interface:TmaBillingAccountServiceDeletes theTmaBillingAccountModeland it's assciatedTmaSubscriptionBaseModels. The billing account is identified by the given billing system id and the billing account id.- Specified by:
deleteBillingAccountin interfaceTmaBillingAccountService- Parameters:
billingSystemId- the billing system identifierbillingAccountId- the billing account identifier from the billing system
-
generateBillingAccount
public TmaBillingAccountModel generateBillingAccount()
Description copied from interface:TmaBillingAccountServiceCreates a newTmaBillingAccountModelwith key generators- Specified by:
generateBillingAccountin interfaceTmaBillingAccountService- Returns:
- the newly created
TmaBillingAccountModel
-
setDefaultBillingSystemId
public void setDefaultBillingSystemId(java.lang.String defaultBillingSystemId)
-
getTmaBillingAccountIdGenerator
protected de.hybris.platform.servicelayer.keygenerator.impl.PersistentKeyGenerator getTmaBillingAccountIdGenerator()
-
setTmaBillingAccountIdGenerator
public void setTmaBillingAccountIdGenerator(de.hybris.platform.servicelayer.keygenerator.impl.PersistentKeyGenerator tmaBillingAccountIdGenerator)
-
getTmaBillingAccountDao
protected TmaBillingAccountDao getTmaBillingAccountDao()
-
setTmaBillingAccountDao
public void setTmaBillingAccountDao(TmaBillingAccountDao tmaBillingAccountDao)
-
getModelService
protected de.hybris.platform.servicelayer.model.ModelService getModelService()
-
setModelService
public void setModelService(de.hybris.platform.servicelayer.model.ModelService modelService)
-
getTmaSubscriptionBaseService
protected TmaSubscriptionBaseService getTmaSubscriptionBaseService()
-
setTmaSubscriptionBaseService
public void setTmaSubscriptionBaseService(TmaSubscriptionBaseService tmaSubscriptionBaseService)
-
-