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:
Serializable
- Direct Known Subclasses:
PerUnitUsageChargeModel,VolumeUsageChargeModel
Generated model class for type UsageCharge first defined at extension subscriptionservices.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
AbstractItemModel.NewModelContextFactory -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringGenerated relation code constant for relationSubscriptionPricePlan2UsageChargeRelationdefining source attributesubscriptionPricePlanUsagein extensionsubscriptionservices.static final StringGenerated model type code constant.static final StringGenerated constant - Attribute key ofUsageCharge.billingTimeattribute defined at extensionsubscriptionservices.static final StringGenerated constant - Attribute key ofUsageCharge.catalogVersionattribute defined at extensionsubscriptionservices.static final StringGenerated constant - Attribute key ofUsageCharge.currencyattribute defined at extensionsubscriptionservices.static final StringGenerated constant - Attribute key ofUsageCharge.idattribute defined at extensionsubscriptionservices.static final StringGenerated constant - Attribute key ofUsageCharge.nameattribute defined at extensionsubscriptionservices.static final StringGenerated constant - Attribute key ofUsageCharge.subscriptionPricePlanUsageattribute defined at extensionsubscriptionservices.static final StringGenerated constant - Attribute key ofUsageCharge.usageChargeEntriesattribute defined at extensionsubscriptionservices.static final StringGenerated 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, SEALEDFields inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY -
Constructor Summary
ConstructorsConstructorDescriptionGenerated constructor - Default constructor for generic creation.UsageChargeModel(CatalogVersionModel _catalogVersion, 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 - 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
Modifier and TypeMethodDescriptionGenerated method - Getter of theUsageCharge.billingTimedynamic attribute defined at extensionsubscriptionservices.Generated method - Getter of theUsageCharge.catalogVersionattribute defined at extensionsubscriptionservices.Generated method - Getter of theUsageCharge.currencydynamic attribute defined at extensionsubscriptionservices.getId()Generated method - Getter of theUsageCharge.idattribute defined at extensionsubscriptionservices.getName()Generated method - Getter of theUsageCharge.nameattribute defined at extensionsubscriptionservices.Generated method - Getter of theUsageCharge.nameattribute defined at extensionsubscriptionservices.Generated method - Getter of theUsageCharge.subscriptionPricePlanUsageattribute defined at extensionsubscriptionservices.Generated method - Getter of theUsageCharge.usageChargeEntriesattribute defined at extensionsubscriptionservices.Generated method - Getter of theUsageCharge.usageUnitattribute defined at extensionsubscriptionservices.voidGenerated method - Initial setter ofUsageCharge.catalogVersionattribute defined at extensionsubscriptionservices.voidGenerated method - Initial setter ofUsageCharge.idattribute defined at extensionsubscriptionservices.voidGenerated method - Setter ofUsageCharge.nameattribute defined at extensionsubscriptionservices.voidGenerated method - Setter ofUsageCharge.nameattribute defined at extensionsubscriptionservices.voidGenerated method - Setter ofUsageCharge.subscriptionPricePlanUsageattribute defined at extensionsubscriptionservices.voidGenerated 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, setOwnerMethods 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 Details
-
_TYPECODE
Generated model type code constant.- See Also:
-
_SUBSCRIPTIONPRICEPLAN2USAGECHARGERELATION
Generated relation code constant for relationSubscriptionPricePlan2UsageChargeRelationdefining source attributesubscriptionPricePlanUsagein extensionsubscriptionservices.- See Also:
-
ID
Generated constant - Attribute key ofUsageCharge.idattribute defined at extensionsubscriptionservices.- See Also:
-
CATALOGVERSION
Generated constant - Attribute key ofUsageCharge.catalogVersionattribute defined at extensionsubscriptionservices.- See Also:
-
NAME
Generated constant - Attribute key ofUsageCharge.nameattribute defined at extensionsubscriptionservices.- See Also:
-
CURRENCY
Generated constant - Attribute key ofUsageCharge.currencyattribute defined at extensionsubscriptionservices.- See Also:
-
BILLINGTIME
Generated constant - Attribute key ofUsageCharge.billingTimeattribute defined at extensionsubscriptionservices.- See Also:
-
USAGEUNIT
Generated constant - Attribute key ofUsageCharge.usageUnitattribute defined at extensionsubscriptionservices.- See Also:
-
SUBSCRIPTIONPRICEPLANUSAGE
Generated constant - Attribute key ofUsageCharge.subscriptionPricePlanUsageattribute defined at extensionsubscriptionservices.- See Also:
-
USAGECHARGEENTRIES
Generated constant - Attribute key ofUsageCharge.usageChargeEntriesattribute defined at extensionsubscriptionservices.- See Also:
-
-
Constructor Details
-
UsageChargeModel
public UsageChargeModel()Generated constructor - Default constructor for generic creation. -
UsageChargeModel
Generated constructor - Default constructor for creation with existing context- Parameters:
ctx- the model context to be injected, must not be null
-
UsageChargeModel
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, 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 Details
-
getBillingTime
Generated method - Getter of theUsageCharge.billingTimedynamic attribute defined at extensionsubscriptionservices.- Returns:
- the billingTime - Billing Time
-
getCatalogVersion
Generated method - Getter of theUsageCharge.catalogVersionattribute defined at extensionsubscriptionservices.- Returns:
- the catalogVersion - Catalog Version
-
getCurrency
Generated method - Getter of theUsageCharge.currencydynamic attribute defined at extensionsubscriptionservices.- Returns:
- the currency - Currency from parent
-
getId
Generated method - Getter of theUsageCharge.idattribute defined at extensionsubscriptionservices.- Returns:
- the id - Identifier
-
getName
Generated method - Getter of theUsageCharge.nameattribute defined at extensionsubscriptionservices.- Returns:
- the name - Name
-
getName
Generated method - Getter of theUsageCharge.nameattribute defined at extensionsubscriptionservices.- Parameters:
loc- the value localization key- Returns:
- the name - Name
- Throws:
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 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
Generated method - Getter of theUsageCharge.usageUnitattribute defined at extensionsubscriptionservices.- Returns:
- the usageUnit - Usage Unit
-
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
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
-
setName
Generated method - Setter ofUsageCharge.nameattribute defined at extensionsubscriptionservices.- Parameters:
value- the name - Name
-
setName
Generated method - Setter ofUsageCharge.nameattribute defined at extensionsubscriptionservices.- Parameters:
value- the name - Nameloc- the value localization key- Throws:
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(Collection<UsageChargeEntryModel> value) Generated method - Setter ofUsageCharge.usageChargeEntriesattribute defined at extensionsubscriptionservices.- Parameters:
value- the usageChargeEntries
-
setUsageUnit
Generated method - Setter ofUsageCharge.usageUnitattribute defined at extensionsubscriptionservices.- Parameters:
value- the usageUnit - Usage Unit
-