Class StandardPaymentMode
- java.lang.Object
-
- de.hybris.platform.util.BridgeAbstraction
-
- de.hybris.platform.jalo.Item
-
- de.hybris.platform.jalo.ExtensibleItem
-
- de.hybris.platform.jalo.c2l.LocalizableItem
-
- de.hybris.platform.jalo.GenericItem
-
- de.hybris.platform.jalo.order.payment.GeneratedPaymentMode
-
- de.hybris.platform.jalo.order.payment.PaymentMode
-
- de.hybris.platform.paymentstandard.jalo.GeneratedStandardPaymentMode
-
- de.hybris.platform.paymentstandard.jalo.StandardPaymentMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable
public class StandardPaymentMode extends GeneratedStandardPaymentMode
Base class of the Standard Payment mode, which provides all methods for setting and getting payment prices for this payment mode.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.jalo.GenericItem
GenericItem.GenericItemImpl
-
Nested classes/interfaces inherited from class de.hybris.platform.jalo.c2l.LocalizableItem
LocalizableItem.LocalizableItemImpl
-
Nested classes/interfaces inherited from class de.hybris.platform.jalo.ExtensibleItem
ExtensibleItem.ExtensibleItemImpl
-
Nested classes/interfaces inherited from class de.hybris.platform.jalo.Item
Item.AttributeFilter, Item.AttributeMode, Item.CachedGetter, Item.CachedSetter, Item.ItemAttributeMap, Item.ItemConstraint, Item.ItemImpl, Item.JaloCachedComputationException
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.paymentstandard.jalo.GeneratedStandardPaymentMode
DEFAULT_INITIAL_ATTRIBUTES, NET, PAYMENTMODEVALUES, PAYMENTMODEVALUESHANDLER
-
Fields inherited from class de.hybris.platform.jalo.order.payment.GeneratedPaymentMode
ACTIVE, CODE, DESCRIPTION, NAME, PAYMENTINFOTYPE, SUPPORTEDDELIVERYMODES
-
Fields inherited from class de.hybris.platform.jalo.c2l.LocalizableItem
LANGUAGE_FALLBACK_ENABLED
-
Fields inherited from class de.hybris.platform.jalo.Item
_CREATION_TIME_INTERNAL, _MODIFIED_TIME_INTERNAL, accessorLog, CREATION_TIME, DISABLE_ATTRIBUTE_CHECK, DISABLE_ITEMCHECK_BEFORE_REMOVABLE, EVEN, FEATURE_ACCESSMAP_QUALIFIER, HJMPTS, INITIAL_CREATION_FLAG, isJaloOnly, MODIFIED_TIME, NEGATIVE, NOT_FOUND, OWNER, PK, POSITIVE, SAVE_FROM_SERVICE_LAYER, staticTransientObjects, TYPE
-
Fields inherited from class de.hybris.platform.util.BridgeAbstraction
impl, tenant
-
-
Constructor Summary
Constructors Constructor Description StandardPaymentMode()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StandardPaymentModeValue
addNewDeliveryModeValue(Currency currency, double value)
Deprecated.since the method name is plain wrong ;)StandardPaymentModeValue
addNewPaymentModeValue(Currency currency, double value)
protected StandardPaymentModeValue
createPaymentModeValueInternal(Currency currency, double value)
PriceValue
getCost(SessionContext ctx, AbstractOrder order)
Deprecated.since ages - use de.hybris.platform.order.PaymentModeService.getCost(StandardPaymentModeModel, AbstractOrderModel)StandardPaymentModeValue
getPaymentModeValue(Currency curr)
Deprecated.since ages - use de.hybris.platform.order.PaymentModeService.getCost(StandardPaymentModeModel,CurrencyModel )java.util.Map<Currency,java.lang.Double>
getValues()
Deprecated.since ages - use de.hybris.platform.order.PaymentModeService.getValues(StandardPaymentModeModel)boolean
removeCost(Currency curr)
Deprecated.since ages - use de.hybris.platform.order.PaymentModeService.removeCost(StandardPaymentModeModel, CurrencyModel)void
setCost(Currency curr, double value)
Changes the payment cost for a given currency.void
setValues(java.util.Map<Currency,java.lang.Double> values)
Deprecated.since ages - use de.hybris.platform.order.PaymentModeService.setValues(StandardPaymentModeModel, Map) -
Methods inherited from class de.hybris.platform.paymentstandard.jalo.GeneratedStandardPaymentMode
addToPaymentModeValues, addToPaymentModeValues, getDefaultAttributeModes, getPaymentModeValues, getPaymentModeValues, isNet, isNet, isNetAsPrimitive, isNetAsPrimitive, removeFromPaymentModeValues, removeFromPaymentModeValues, setNet, setNet, setNet, setNet, setPaymentModeValues, setPaymentModeValues
-
Methods inherited from class de.hybris.platform.jalo.order.payment.PaymentMode
addSupportedDeliveryMode, checkRemovable, createItem, getAllDescriptions, getAllNames, getCost, getSupportedDeliveryModes, isSupportedDeliveryMode, remove, removeSupportedDeliveryMode, setAllDescriptions, setAllNames, setCode, setCode
-
Methods inherited from class de.hybris.platform.jalo.order.payment.GeneratedPaymentMode
getAllDescription, getAllDescription, getAllName, getAllName, getCode, getCode, getDescription, getDescription, getName, getName, getPaymentInfoType, getPaymentInfoType, getSupportedDeliveryModes, isActive, isActive, isActiveAsPrimitive, isActiveAsPrimitive, setActive, setActive, setActive, setActive, setAllDescription, setAllDescription, setAllName, setAllName, setDescription, setDescription, setName, setName, setPaymentInfoType, setPaymentInfoType
-
Methods inherited from class de.hybris.platform.jalo.GenericItem
getImplementation, getInitialProperties, getNonInitialAttributes, getRelatedItems, setRelatedItems
-
Methods inherited from class de.hybris.platform.jalo.c2l.LocalizableItem
getAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllValuesSessionContext, getLocalizedProperty, getLocalizedProperty, getLocalizedPropertyInternal, getLocalizedPropertyNames, getLocalizedPropertyNames, hasLanguage, isEmptyValue, isFallbackEnabled, removeLocalizedProperty, removeLocalizedProperty, setAllLocalizedProperties, setAllLocalizedProperties, setLocalizedProperty, setLocalizedProperty
-
Methods inherited from class de.hybris.platform.jalo.ExtensibleItem
createNonClassAccessor, getAllProperties, getAllProperties, getProperty, getProperty, getPropertyNames, getPropertyNames, removeProperty, removeProperty, setAllProperties, setAllProperties, setProperty, setProperty
-
Methods inherited from class de.hybris.platform.jalo.Item
addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addNegativePermission, addPermission, addPositivePermission, assureExtensionsLoaded, changeTypeAfterCreation, checkConstraint, checkItemPermission, checkMandatoryAttribute, checkMandatoryAttribute, checkPermission, checkPermission, clearPermission, compareTo, ctx, doAfterRemove, doBeforeRemove, equals, getAccessorFor, getAllAttributes, getAllAttributes, getAllAttributes, getAllAttributes, getAllAttributesInternal, getAllLinkedItems, getAndCheckCacheBoundItem, getAttribute, getAttribute, getCacheBoundItem, getComposedType, getComposedTypePK, getCreationTime, getCurrentlyRemovingCount, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItemsCount, getLinkedItemsCount, getLinkedItemsCount, getModificationTime, getNegativePermissions, getOwner, getPermissionMap, getPermissions, getPersistenceVersion, getPK, getPositivePermissions, getRestrictedPrincipals, getSession, getSyncObject, getTenant, getTransientObject, getTransientObjectMap, hashCode, hasRegisteredClassAccessorFor, internal_registerClassAccessorFor, internal_registerNonClassAccessorFor, invalidateLocalCaches, isAlive, isCacheBound, isCurrentlyRemoving, isCurrentlyRemoving, isEmptyRelationValue, isInCreate, isInstanceOf, isItemCheckBeforeRemoveableDisabled, isMarkModifiedDisabled, isRelationLocalizationFallbackEnabled, newInstance, notifyExtensionsAfterItemCreation, notifyExtensionsBeforeItemCreation, notifyItemRemoval, notifyManagerAboutItemRemoval, readResolve, registerAccessFor, registerAccessFor, registerJaloInvalidationListeners, remove, removeItemCollection, removeItemCollection, removeLinkedItems, removeLinkedItems, removeLinkedItems, removeLinkedItems, removeLinks, removePartOfItems, removePartOfItems, setAllAttributes, setAllAttributes, setAllAttributesInternal, setAllLinkedItems, setAllLinkedItems, setAllLinkedItems, setAllLinkedItems, setAttribute, setAttribute, setAttributeFromString, setAttributeFromString, setCacheBound, setComposedType, setCreationTime, setImplementation, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setModificationTime, setNonInitialAttributes, setOwner, setPermissionsByMap, setTransientObject, setUseTA, toString, useTA, writeReplace
-
Methods inherited from class de.hybris.platform.util.BridgeAbstraction
setTenant
-
-
-
-
Method Detail
-
setCost
public void setCost(Currency curr, double value)
Changes the payment cost for a given currency.- Parameters:
curr
-value
-
-
getPaymentModeValue
@Deprecated public StandardPaymentModeValue getPaymentModeValue(Currency curr)
Deprecated.since ages - use de.hybris.platform.order.PaymentModeService.getCost(StandardPaymentModeModel,CurrencyModel )Fetches aStandardPaymentModeValue
instance for a given currency. If no such value existsnull
is returned.
-
removeCost
@Deprecated public boolean removeCost(Currency curr)
Deprecated.since ages - use de.hybris.platform.order.PaymentModeService.removeCost(StandardPaymentModeModel, CurrencyModel)Removes the payment cost for a given currency.
-
getValues
@Deprecated public java.util.Map<Currency,java.lang.Double> getValues()
Deprecated.since ages - use de.hybris.platform.order.PaymentModeService.getValues(StandardPaymentModeModel)Returns all cost values for this payment mode. This is a map containing Currency - Double pairs.
-
setValues
@Deprecated public void setValues(java.util.Map<Currency,java.lang.Double> values)
Deprecated.since ages - use de.hybris.platform.order.PaymentModeService.setValues(StandardPaymentModeModel, Map) Sets all values for this payment mode. All previously stored values are replaced by these ones.- Parameters:
values
- a map containing Currency - Double pairs.
-
getCost
@Deprecated public PriceValue getCost(SessionContext ctx, AbstractOrder order) throws JaloPaymentModeException
Deprecated.since ages - use de.hybris.platform.order.PaymentModeService.getCost(StandardPaymentModeModel, AbstractOrderModel)Description copied from class:PaymentMode
Calculates the payment cost of this mode for a given order. This is called when the specified order is calculated the first time or recalculated.This default implementation always returns 0 costs. Each subtype may override this method to implement its own cost model.
- Overrides:
getCost
in classPaymentMode
- Parameters:
ctx
- session contextorder
- the order to calculate costs for- Throws:
JaloPaymentModeException
-
addNewDeliveryModeValue
@Deprecated public StandardPaymentModeValue addNewDeliveryModeValue(Currency currency, double value)
Deprecated.since the method name is plain wrong ;)
-
addNewPaymentModeValue
public StandardPaymentModeValue addNewPaymentModeValue(Currency currency, double value)
-
createPaymentModeValueInternal
protected StandardPaymentModeValue createPaymentModeValueInternal(Currency currency, double value)
-
-