Class UsageChargeModel
- java.lang.Object
-
- de.hybris.platform.servicelayer.model.AbstractItemModel
-
- de.hybris.platform.core.model.ItemModel
-
- de.hybris.platform.subscriptionservices.model.UsageChargeModel
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
PerUnitUsageChargeModel,VolumeUsageChargeModel
public class UsageChargeModel extends ItemModel
Generated model class for type UsageCharge first defined at extension subscriptionservices.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
AbstractItemModel.NewModelContextFactory
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String_SUBSCRIPTIONPRICEPLAN2USAGECHARGERELATIONGenerated relation code constant for relationSubscriptionPricePlan2UsageChargeRelationdefining source attributesubscriptionPricePlanUsagein extensionsubscriptionservices.static java.lang.String_TYPECODEGenerated model type code constant.static java.lang.StringBILLINGTIMEGenerated constant - Attribute key ofUsageCharge.billingTimeattribute defined at extensionsubscriptionservices.static java.lang.StringBLOCKSIZEGenerated constant - Attribute key ofUsageCharge.blockSizeattribute defined at extensionsaprevenuecloudproduct.static java.lang.StringCATALOGVERSIONGenerated constant - Attribute key ofUsageCharge.catalogVersionattribute defined at extensionsubscriptionservices.static java.lang.StringCURRENCYGenerated constant - Attribute key ofUsageCharge.currencyattribute defined at extensionsubscriptionservices.static java.lang.StringIDGenerated constant - Attribute key ofUsageCharge.idattribute defined at extensionsubscriptionservices.static java.lang.StringMINBLOCKSGenerated constant - Attribute key ofUsageCharge.minBlocksattribute defined at extensionsaprevenuecloudproduct.static java.lang.StringNAMEGenerated constant - Attribute key ofUsageCharge.nameattribute defined at extensionsubscriptionservices.static java.lang.StringSUBSCRIPTIONPRICEPLANUSAGEGenerated constant - Attribute key ofUsageCharge.subscriptionPricePlanUsageattribute defined at extensionsubscriptionservices.static java.lang.StringUSAGECHARGEENTRIESGenerated constant - Attribute key ofUsageCharge.usageChargeEntriesattribute defined at extensionsubscriptionservices.static java.lang.StringUSAGEUNITGenerated constant - Attribute key ofUsageCharge.usageUnitattribute defined at extensionsubscriptionservices.-
Fields inherited from class de.hybris.platform.core.model.ItemModel
_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALED
-
Fields inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY
-
-
Constructor Summary
Constructors Constructor Description UsageChargeModel()Generated constructor - Default constructor for generic creation.UsageChargeModel(CatalogVersionModel _catalogVersion, java.lang.String _id, ItemModel _owner, UsageUnitModel _usageUnit)Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersUsageChargeModel(ItemModelContext ctx)Generated constructor - Default constructor for creation with existing contextUsageChargeModel(UsageUnitModel _usageUnit)Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parameters
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BillingTimeModelgetBillingTime()Generated method - Getter of theUsageCharge.billingTimedynamic attribute defined at extensionsubscriptionservices.java.lang.IntegergetBlockSize()Generated method - Getter of theUsageCharge.blockSizeattribute defined at extensionsaprevenuecloudproduct.CatalogVersionModelgetCatalogVersion()Generated method - Getter of theUsageCharge.catalogVersionattribute defined at extensionsubscriptionservices.CurrencyModelgetCurrency()Generated method - Getter of theUsageCharge.currencydynamic attribute defined at extensionsubscriptionservices.java.lang.StringgetId()Generated method - Getter of theUsageCharge.idattribute defined at extensionsubscriptionservices.java.lang.IntegergetMinBlocks()Generated method - Getter of theUsageCharge.minBlocksattribute defined at extensionsaprevenuecloudproduct.java.lang.StringgetName()Generated method - Getter of theUsageCharge.nameattribute defined at extensionsubscriptionservices.java.lang.StringgetName(java.util.Locale loc)Generated method - Getter of theUsageCharge.nameattribute defined at extensionsubscriptionservices.SubscriptionPricePlanModelgetSubscriptionPricePlanUsage()Generated method - Getter of theUsageCharge.subscriptionPricePlanUsageattribute defined at extensionsubscriptionservices.java.util.Collection<UsageChargeEntryModel>getUsageChargeEntries()Generated method - Getter of theUsageCharge.usageChargeEntriesattribute defined at extensionsubscriptionservices.UsageUnitModelgetUsageUnit()Generated method - Getter of theUsageCharge.usageUnitattribute defined at extensionsubscriptionservices.voidsetBlockSize(java.lang.Integer value)Generated method - Setter ofUsageCharge.blockSizeattribute defined at extensionsaprevenuecloudproduct.voidsetCatalogVersion(CatalogVersionModel value)Generated method - Initial setter ofUsageCharge.catalogVersionattribute defined at extensionsubscriptionservices.voidsetId(java.lang.String value)Generated method - Initial setter ofUsageCharge.idattribute defined at extensionsubscriptionservices.voidsetMinBlocks(java.lang.Integer value)Generated method - Setter ofUsageCharge.minBlocksattribute defined at extensionsaprevenuecloudproduct.voidsetName(java.lang.String value)Generated method - Setter ofUsageCharge.nameattribute defined at extensionsubscriptionservices.voidsetName(java.lang.String value, java.util.Locale loc)Generated method - Setter ofUsageCharge.nameattribute defined at extensionsubscriptionservices.voidsetSubscriptionPricePlanUsage(SubscriptionPricePlanModel value)Generated method - Setter ofUsageCharge.subscriptionPricePlanUsageattribute defined at extensionsubscriptionservices.voidsetUsageChargeEntries(java.util.Collection<UsageChargeEntryModel> value)Generated method - Setter ofUsageCharge.usageChargeEntriesattribute defined at extensionsubscriptionservices.voidsetUsageUnit(UsageUnitModel value)Generated method - Setter ofUsageCharge.usageUnitattribute defined at extensionsubscriptionservices.-
Methods inherited from class de.hybris.platform.core.model.ItemModel
getComments, getCreationtime, getModifiedtime, getOwner, isSealed, setComments, setCreationtime, setModifiedtime, setOwner
-
Methods inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
equals, getItemModelContext, getItemtype, getPersistenceContext, getPk, getProperty, getProperty, getTenantId, hashCode, readResolve, setProperty, setProperty, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toString, writeReplace
-
-
-
-
Field Detail
-
_TYPECODE
public static final java.lang.String _TYPECODE
Generated model type code constant.- See Also:
- Constant Field Values
-
_SUBSCRIPTIONPRICEPLAN2USAGECHARGERELATION
public static final java.lang.String _SUBSCRIPTIONPRICEPLAN2USAGECHARGERELATION
Generated relation code constant for relationSubscriptionPricePlan2UsageChargeRelationdefining source attributesubscriptionPricePlanUsagein extensionsubscriptionservices.- See Also:
- Constant Field Values
-
ID
public static final java.lang.String ID
Generated constant - Attribute key ofUsageCharge.idattribute defined at extensionsubscriptionservices.- See Also:
- Constant Field Values
-
CATALOGVERSION
public static final java.lang.String CATALOGVERSION
Generated constant - Attribute key ofUsageCharge.catalogVersionattribute defined at extensionsubscriptionservices.- See Also:
- Constant Field Values
-
NAME
public static final java.lang.String NAME
Generated constant - Attribute key ofUsageCharge.nameattribute defined at extensionsubscriptionservices.- See Also:
- Constant Field Values
-
CURRENCY
public static final java.lang.String CURRENCY
Generated constant - Attribute key ofUsageCharge.currencyattribute defined at extensionsubscriptionservices.- See Also:
- Constant Field Values
-
BILLINGTIME
public static final java.lang.String BILLINGTIME
Generated constant - Attribute key ofUsageCharge.billingTimeattribute defined at extensionsubscriptionservices.- See Also:
- Constant Field Values
-
USAGEUNIT
public static final java.lang.String USAGEUNIT
Generated constant - Attribute key ofUsageCharge.usageUnitattribute defined at extensionsubscriptionservices.- See Also:
- Constant Field Values
-
SUBSCRIPTIONPRICEPLANUSAGE
public static final java.lang.String SUBSCRIPTIONPRICEPLANUSAGE
Generated constant - Attribute key ofUsageCharge.subscriptionPricePlanUsageattribute defined at extensionsubscriptionservices.- See Also:
- Constant Field Values
-
USAGECHARGEENTRIES
public static final java.lang.String USAGECHARGEENTRIES
Generated constant - Attribute key ofUsageCharge.usageChargeEntriesattribute defined at extensionsubscriptionservices.- See Also:
- Constant Field Values
-
BLOCKSIZE
public static final java.lang.String BLOCKSIZE
Generated constant - Attribute key ofUsageCharge.blockSizeattribute defined at extensionsaprevenuecloudproduct.- See Also:
- Constant Field Values
-
MINBLOCKS
public static final java.lang.String MINBLOCKS
Generated constant - Attribute key ofUsageCharge.minBlocksattribute defined at extensionsaprevenuecloudproduct.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
UsageChargeModel
public UsageChargeModel()
Generated constructor - Default constructor for generic creation.
-
UsageChargeModel
public UsageChargeModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context- Parameters:
ctx- the model context to be injected, must not be null
-
UsageChargeModel
@Deprecated(since="4.1.1", forRemoval=true) public UsageChargeModel(UsageUnitModel _usageUnit)Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersGenerated constructor - Constructor with all mandatory attributes.- Parameters:
_usageUnit- initial attribute declared by typeUsageChargeat extensionsubscriptionservices
-
UsageChargeModel
@Deprecated(since="4.1.1", forRemoval=true) public UsageChargeModel(CatalogVersionModel _catalogVersion, java.lang.String _id, ItemModel _owner, UsageUnitModel _usageUnit)Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersGenerated constructor - for all mandatory and initial attributes.- Parameters:
_catalogVersion- initial attribute declared by typeUsageChargeat extensionsubscriptionservices_id- initial attribute declared by typeUsageChargeat extensionsubscriptionservices_owner- initial attribute declared by typeItemat extensioncore_usageUnit- initial attribute declared by typeUsageChargeat extensionsubscriptionservices
-
-
Method Detail
-
getBillingTime
@Accessor(qualifier="billingTime", type=GETTER) public BillingTimeModel getBillingTime()
Generated method - Getter of theUsageCharge.billingTimedynamic attribute defined at extensionsubscriptionservices.- Returns:
- the billingTime - Billing Time
-
getBlockSize
@Accessor(qualifier="blockSize", type=GETTER) public java.lang.Integer getBlockSize()
Generated method - Getter of theUsageCharge.blockSizeattribute defined at extensionsaprevenuecloudproduct.- Returns:
- the blockSize - Block size
-
getCatalogVersion
@Accessor(qualifier="catalogVersion", type=GETTER) public CatalogVersionModel getCatalogVersion()
Generated method - Getter of theUsageCharge.catalogVersionattribute defined at extensionsubscriptionservices.- Returns:
- the catalogVersion - Catalog Version
-
getCurrency
@Accessor(qualifier="currency", type=GETTER) public CurrencyModel getCurrency()
Generated method - Getter of theUsageCharge.currencydynamic attribute defined at extensionsubscriptionservices.- Returns:
- the currency - Currency from parent
-
getId
@Accessor(qualifier="id", type=GETTER) public java.lang.String getId()
Generated method - Getter of theUsageCharge.idattribute defined at extensionsubscriptionservices.- Returns:
- the id - Identifier
-
getMinBlocks
@Accessor(qualifier="minBlocks", type=GETTER) public java.lang.Integer getMinBlocks()
Generated method - Getter of theUsageCharge.minBlocksattribute defined at extensionsaprevenuecloudproduct.- Returns:
- the minBlocks - Minimum blocks
-
getName
@Accessor(qualifier="name", type=GETTER) public java.lang.String getName()
Generated method - Getter of theUsageCharge.nameattribute defined at extensionsubscriptionservices.- Returns:
- the name - Name
-
getName
@Accessor(qualifier="name", type=GETTER) public java.lang.String getName(java.util.Locale loc)
Generated method - Getter of theUsageCharge.nameattribute defined at extensionsubscriptionservices.- Parameters:
loc- the value localization key- Returns:
- the name - Name
- Throws:
java.lang.IllegalArgumentException- if localization key cannot be mapped to data language
-
getSubscriptionPricePlanUsage
@Accessor(qualifier="subscriptionPricePlanUsage", type=GETTER) public SubscriptionPricePlanModel getSubscriptionPricePlanUsage()
Generated method - Getter of theUsageCharge.subscriptionPricePlanUsageattribute defined at extensionsubscriptionservices.- Returns:
- the subscriptionPricePlanUsage
-
getUsageChargeEntries
@Accessor(qualifier="usageChargeEntries", type=GETTER) public java.util.Collection<UsageChargeEntryModel> getUsageChargeEntries()
Generated method - Getter of theUsageCharge.usageChargeEntriesattribute defined at extensionsubscriptionservices. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.- Returns:
- the usageChargeEntries
-
getUsageUnit
@Accessor(qualifier="usageUnit", type=GETTER) public UsageUnitModel getUsageUnit()
Generated method - Getter of theUsageCharge.usageUnitattribute defined at extensionsubscriptionservices.- Returns:
- the usageUnit - Usage Unit
-
setBlockSize
@Accessor(qualifier="blockSize", type=SETTER) public void setBlockSize(java.lang.Integer value)
Generated method - Setter ofUsageCharge.blockSizeattribute defined at extensionsaprevenuecloudproduct.- Parameters:
value- the blockSize - Block size
-
setCatalogVersion
@Accessor(qualifier="catalogVersion", type=SETTER) public void setCatalogVersion(CatalogVersionModel value)
Generated method - Initial setter ofUsageCharge.catalogVersionattribute defined at extensionsubscriptionservices. Can only be used at creation of model - before first save.- Parameters:
value- the catalogVersion - Catalog Version
-
setId
@Accessor(qualifier="id", type=SETTER) public void setId(java.lang.String value)
Generated method - Initial setter ofUsageCharge.idattribute defined at extensionsubscriptionservices. Can only be used at creation of model - before first save.- Parameters:
value- the id - Identifier
-
setMinBlocks
@Accessor(qualifier="minBlocks", type=SETTER) public void setMinBlocks(java.lang.Integer value)
Generated method - Setter ofUsageCharge.minBlocksattribute defined at extensionsaprevenuecloudproduct.- Parameters:
value- the minBlocks - Minimum blocks
-
setName
@Accessor(qualifier="name", type=SETTER) public void setName(java.lang.String value)
Generated method - Setter ofUsageCharge.nameattribute defined at extensionsubscriptionservices.- Parameters:
value- the name - Name
-
setName
@Accessor(qualifier="name", type=SETTER) public void setName(java.lang.String value, java.util.Locale loc)
Generated method - Setter ofUsageCharge.nameattribute defined at extensionsubscriptionservices.- Parameters:
value- the name - Nameloc- the value localization key- Throws:
java.lang.IllegalArgumentException- if localization key cannot be mapped to data language
-
setSubscriptionPricePlanUsage
@Accessor(qualifier="subscriptionPricePlanUsage", type=SETTER) public void setSubscriptionPricePlanUsage(SubscriptionPricePlanModel value)
Generated method - Setter ofUsageCharge.subscriptionPricePlanUsageattribute defined at extensionsubscriptionservices.- Parameters:
value- the subscriptionPricePlanUsage
-
setUsageChargeEntries
@Accessor(qualifier="usageChargeEntries", type=SETTER) public void setUsageChargeEntries(java.util.Collection<UsageChargeEntryModel> value)
Generated method - Setter ofUsageCharge.usageChargeEntriesattribute defined at extensionsubscriptionservices.- Parameters:
value- the usageChargeEntries
-
setUsageUnit
@Accessor(qualifier="usageUnit", type=SETTER) public void setUsageUnit(UsageUnitModel value)
Generated method - Setter ofUsageCharge.usageUnitattribute defined at extensionsubscriptionservices.- Parameters:
value- the usageUnit - Usage Unit
-
-