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
_SUBSCRIPTIONPRICEPLAN2USAGECHARGERELATION
Generated relation code constant for relationSubscriptionPricePlan2UsageChargeRelation
defining source attributesubscriptionPricePlanUsage
in extensionsubscriptionservices
.static java.lang.String
_TYPECODE
Generated model type code constant.static java.lang.String
BILLINGTIME
Generated constant - Attribute key ofUsageCharge.billingTime
attribute defined at extensionsubscriptionservices
.static java.lang.String
BLOCKSIZE
Generated constant - Attribute key ofUsageCharge.blockSize
attribute defined at extensionsaprevenuecloudproduct
.static java.lang.String
CATALOGVERSION
Generated constant - Attribute key ofUsageCharge.catalogVersion
attribute defined at extensionsubscriptionservices
.static java.lang.String
CURRENCY
Generated constant - Attribute key ofUsageCharge.currency
attribute defined at extensionsubscriptionservices
.static java.lang.String
ID
Generated constant - Attribute key ofUsageCharge.id
attribute defined at extensionsubscriptionservices
.static java.lang.String
MINBLOCKS
Generated constant - Attribute key ofUsageCharge.minBlocks
attribute defined at extensionsaprevenuecloudproduct
.static java.lang.String
NAME
Generated constant - Attribute key ofUsageCharge.name
attribute defined at extensionsubscriptionservices
.static java.lang.String
SUBSCRIPTIONPRICEPLANUSAGE
Generated constant - Attribute key ofUsageCharge.subscriptionPricePlanUsage
attribute defined at extensionsubscriptionservices
.static java.lang.String
USAGECHARGEENTRIES
Generated constant - Attribute key ofUsageCharge.usageChargeEntries
attribute defined at extensionsubscriptionservices
.static java.lang.String
USAGEUNIT
Generated constant - Attribute key ofUsageCharge.usageUnit
attribute 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 BillingTimeModel
getBillingTime()
Generated method - Getter of theUsageCharge.billingTime
dynamic attribute defined at extensionsubscriptionservices
.java.lang.Integer
getBlockSize()
Generated method - Getter of theUsageCharge.blockSize
attribute defined at extensionsaprevenuecloudproduct
.CatalogVersionModel
getCatalogVersion()
Generated method - Getter of theUsageCharge.catalogVersion
attribute defined at extensionsubscriptionservices
.CurrencyModel
getCurrency()
Generated method - Getter of theUsageCharge.currency
dynamic attribute defined at extensionsubscriptionservices
.java.lang.String
getId()
Generated method - Getter of theUsageCharge.id
attribute defined at extensionsubscriptionservices
.java.lang.Integer
getMinBlocks()
Generated method - Getter of theUsageCharge.minBlocks
attribute defined at extensionsaprevenuecloudproduct
.java.lang.String
getName()
Generated method - Getter of theUsageCharge.name
attribute defined at extensionsubscriptionservices
.java.lang.String
getName(java.util.Locale loc)
Generated method - Getter of theUsageCharge.name
attribute defined at extensionsubscriptionservices
.SubscriptionPricePlanModel
getSubscriptionPricePlanUsage()
Generated method - Getter of theUsageCharge.subscriptionPricePlanUsage
attribute defined at extensionsubscriptionservices
.java.util.Collection<UsageChargeEntryModel>
getUsageChargeEntries()
Generated method - Getter of theUsageCharge.usageChargeEntries
attribute defined at extensionsubscriptionservices
.UsageUnitModel
getUsageUnit()
Generated method - Getter of theUsageCharge.usageUnit
attribute defined at extensionsubscriptionservices
.void
setBlockSize(java.lang.Integer value)
Generated method - Setter ofUsageCharge.blockSize
attribute defined at extensionsaprevenuecloudproduct
.void
setCatalogVersion(CatalogVersionModel value)
Generated method - Initial setter ofUsageCharge.catalogVersion
attribute defined at extensionsubscriptionservices
.void
setId(java.lang.String value)
Generated method - Initial setter ofUsageCharge.id
attribute defined at extensionsubscriptionservices
.void
setMinBlocks(java.lang.Integer value)
Generated method - Setter ofUsageCharge.minBlocks
attribute defined at extensionsaprevenuecloudproduct
.void
setName(java.lang.String value)
Generated method - Setter ofUsageCharge.name
attribute defined at extensionsubscriptionservices
.void
setName(java.lang.String value, java.util.Locale loc)
Generated method - Setter ofUsageCharge.name
attribute defined at extensionsubscriptionservices
.void
setSubscriptionPricePlanUsage(SubscriptionPricePlanModel value)
Generated method - Setter ofUsageCharge.subscriptionPricePlanUsage
attribute defined at extensionsubscriptionservices
.void
setUsageChargeEntries(java.util.Collection<UsageChargeEntryModel> value)
Generated method - Setter ofUsageCharge.usageChargeEntries
attribute defined at extensionsubscriptionservices
.void
setUsageUnit(UsageUnitModel value)
Generated method - Setter ofUsageCharge.usageUnit
attribute 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 relationSubscriptionPricePlan2UsageChargeRelation
defining source attributesubscriptionPricePlanUsage
in extensionsubscriptionservices
.- See Also:
- Constant Field Values
-
ID
public static final java.lang.String ID
Generated constant - Attribute key ofUsageCharge.id
attribute defined at extensionsubscriptionservices
.- See Also:
- Constant Field Values
-
CATALOGVERSION
public static final java.lang.String CATALOGVERSION
Generated constant - Attribute key ofUsageCharge.catalogVersion
attribute defined at extensionsubscriptionservices
.- See Also:
- Constant Field Values
-
NAME
public static final java.lang.String NAME
Generated constant - Attribute key ofUsageCharge.name
attribute defined at extensionsubscriptionservices
.- See Also:
- Constant Field Values
-
CURRENCY
public static final java.lang.String CURRENCY
Generated constant - Attribute key ofUsageCharge.currency
attribute defined at extensionsubscriptionservices
.- See Also:
- Constant Field Values
-
BILLINGTIME
public static final java.lang.String BILLINGTIME
Generated constant - Attribute key ofUsageCharge.billingTime
attribute defined at extensionsubscriptionservices
.- See Also:
- Constant Field Values
-
USAGEUNIT
public static final java.lang.String USAGEUNIT
Generated constant - Attribute key ofUsageCharge.usageUnit
attribute defined at extensionsubscriptionservices
.- See Also:
- Constant Field Values
-
SUBSCRIPTIONPRICEPLANUSAGE
public static final java.lang.String SUBSCRIPTIONPRICEPLANUSAGE
Generated constant - Attribute key ofUsageCharge.subscriptionPricePlanUsage
attribute defined at extensionsubscriptionservices
.- See Also:
- Constant Field Values
-
USAGECHARGEENTRIES
public static final java.lang.String USAGECHARGEENTRIES
Generated constant - Attribute key ofUsageCharge.usageChargeEntries
attribute defined at extensionsubscriptionservices
.- See Also:
- Constant Field Values
-
BLOCKSIZE
public static final java.lang.String BLOCKSIZE
Generated constant - Attribute key ofUsageCharge.blockSize
attribute defined at extensionsaprevenuecloudproduct
.- See Also:
- Constant Field Values
-
MINBLOCKS
public static final java.lang.String MINBLOCKS
Generated constant - Attribute key ofUsageCharge.minBlocks
attribute 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 typeUsageCharge
at 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 typeUsageCharge
at extensionsubscriptionservices
_id
- initial attribute declared by typeUsageCharge
at extensionsubscriptionservices
_owner
- initial attribute declared by typeItem
at extensioncore
_usageUnit
- initial attribute declared by typeUsageCharge
at extensionsubscriptionservices
-
-
Method Detail
-
getBillingTime
@Accessor(qualifier="billingTime", type=GETTER) public BillingTimeModel getBillingTime()
Generated method - Getter of theUsageCharge.billingTime
dynamic 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.blockSize
attribute defined at extensionsaprevenuecloudproduct
.- Returns:
- the blockSize - Block size
-
getCatalogVersion
@Accessor(qualifier="catalogVersion", type=GETTER) public CatalogVersionModel getCatalogVersion()
Generated method - Getter of theUsageCharge.catalogVersion
attribute defined at extensionsubscriptionservices
.- Returns:
- the catalogVersion - Catalog Version
-
getCurrency
@Accessor(qualifier="currency", type=GETTER) public CurrencyModel getCurrency()
Generated method - Getter of theUsageCharge.currency
dynamic 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.id
attribute defined at extensionsubscriptionservices
.- Returns:
- the id - Identifier
-
getMinBlocks
@Accessor(qualifier="minBlocks", type=GETTER) public java.lang.Integer getMinBlocks()
Generated method - Getter of theUsageCharge.minBlocks
attribute defined at extensionsaprevenuecloudproduct
.- Returns:
- the minBlocks - Minimum blocks
-
getName
@Accessor(qualifier="name", type=GETTER) public java.lang.String getName()
Generated method - Getter of theUsageCharge.name
attribute 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.name
attribute 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.subscriptionPricePlanUsage
attribute defined at extensionsubscriptionservices
.- Returns:
- the subscriptionPricePlanUsage
-
getUsageChargeEntries
@Accessor(qualifier="usageChargeEntries", type=GETTER) public java.util.Collection<UsageChargeEntryModel> getUsageChargeEntries()
Generated method - Getter of theUsageCharge.usageChargeEntries
attribute 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.usageUnit
attribute 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.blockSize
attribute 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.catalogVersion
attribute 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.id
attribute 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.minBlocks
attribute 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.name
attribute 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.name
attribute 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.subscriptionPricePlanUsage
attribute 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.usageChargeEntries
attribute defined at extensionsubscriptionservices
.- Parameters:
value
- the usageChargeEntries
-
setUsageUnit
@Accessor(qualifier="usageUnit", type=SETTER) public void setUsageUnit(UsageUnitModel value)
Generated method - Setter ofUsageCharge.usageUnit
attribute defined at extensionsubscriptionservices
.- Parameters:
value
- the usageUnit - Usage Unit
-
-