Class CancelPenaltyModel

java.lang.Object
de.hybris.platform.servicelayer.model.AbstractItemModel
All Implemented Interfaces:
Serializable

public class CancelPenaltyModel extends AbstractFinancialInfoModel
Generated model class for type CancelPenalty first defined at extension travelservices.

This item represents a cancel penalty that can be applied to a rate plan.

See Also:
  • Field Details

    • _TYPECODE

      public static final String _TYPECODE
      Generated model type code constant.
      See Also:
    • _RATEPLANCANCELPENALTYRELATION

      public static final String _RATEPLANCANCELPENALTYRELATION
      Generated relation code constant for relation RatePlanCancelPenaltyRelation defining source attribute ratePlan in extension travelservices.
      See Also:
    • DESCRIPTION

      public static final String DESCRIPTION
      Generated constant - Attribute key of CancelPenalty.description attribute defined at extension travelservices.
      See Also:
    • RATEPLAN

      public static final String RATEPLAN
      Generated constant - Attribute key of CancelPenalty.ratePlan attribute defined at extension travelservices.
      See Also:
  • Constructor Details

    • CancelPenaltyModel

      public CancelPenaltyModel()
      Generated constructor - Default constructor for generic creation.
    • CancelPenaltyModel

      public CancelPenaltyModel(de.hybris.platform.servicelayer.model.ItemModelContext ctx)
      Generated constructor - Default constructor for creation with existing context
      Parameters:
      ctx - the model context to be injected, must not be null
    • CancelPenaltyModel

      @Deprecated(since="4.1.1", forRemoval=true) public CancelPenaltyModel(ItemModel _owner)
      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
      Generated constructor - for all mandatory and initial attributes.
      Parameters:
      _owner - initial attribute declared by type Item at extension core
  • Method Details

    • getDescription

      @Accessor(qualifier="description", type=GETTER) public String getDescription()
      Generated method - Getter of the CancelPenalty.description attribute defined at extension travelservices.
      Returns:
      the description
    • getDescription

      @Accessor(qualifier="description", type=GETTER) public String getDescription(Locale loc)
      Generated method - Getter of the CancelPenalty.description attribute defined at extension travelservices.
      Parameters:
      loc - the value localization key
      Returns:
      the description
      Throws:
      IllegalArgumentException - if localization key cannot be mapped to data language
    • getRatePlan

      @Accessor(qualifier="ratePlan", type=GETTER) public Collection<RatePlanModel> getRatePlan()
      Generated method - Getter of the CancelPenalty.ratePlan attribute defined at extension travelservices. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.
      Returns:
      the ratePlan
    • setDescription

      @Accessor(qualifier="description", type=SETTER) public void setDescription(String value)
      Generated method - Setter of CancelPenalty.description attribute defined at extension travelservices.
      Parameters:
      value - the description
    • setDescription

      @Accessor(qualifier="description", type=SETTER) public void setDescription(String value, Locale loc)
      Generated method - Setter of CancelPenalty.description attribute defined at extension travelservices.
      Parameters:
      value - the description
      loc - the value localization key
      Throws:
      IllegalArgumentException - if localization key cannot be mapped to data language
    • setRatePlan

      @Accessor(qualifier="ratePlan", type=SETTER) public void setRatePlan(Collection<RatePlanModel> value)
      Generated method - Setter of CancelPenalty.ratePlan attribute defined at extension travelservices.
      Parameters:
      value - the ratePlan