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:
Serializable,Comparable
Base class of the Standard Payment mode, which provides all methods for setting and getting payment prices for this
payment mode.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.jalo.GenericItem
GenericItem.GenericItemImplNested classes/interfaces inherited from class de.hybris.platform.jalo.c2l.LocalizableItem
LocalizableItem.LocalizableItemImplNested classes/interfaces inherited from class de.hybris.platform.jalo.ExtensibleItem
ExtensibleItem.ExtensibleItemImplNested 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, PAYMENTMODEVALUESHANDLERFields inherited from class de.hybris.platform.jalo.order.payment.GeneratedPaymentMode
ACTIVE, CODE, DESCRIPTION, NAME, PAYMENTINFOTYPE, SUPPORTEDDELIVERYMODESFields inherited from class de.hybris.platform.jalo.c2l.LocalizableItem
LANGUAGE_FALLBACK_ENABLEDFields 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, TYPEFields inherited from class de.hybris.platform.util.BridgeAbstraction
impl, tenant -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddNewDeliveryModeValue(Currency currency, double value) Deprecated.since the method name is plain wrong ;)addNewPaymentModeValue(Currency currency, double value) protected StandardPaymentModeValuecreatePaymentModeValueInternal(Currency currency, double value) getCost(SessionContext ctx, AbstractOrder order) Deprecated.since ages - use de.hybris.platform.order.PaymentModeService.getCost(StandardPaymentModeModel, AbstractOrderModel)getPaymentModeValue(Currency curr) Deprecated.since ages - use de.hybris.platform.order.PaymentModeService.getCost(StandardPaymentModeModel,CurrencyModel )Deprecated.since ages - use de.hybris.platform.order.PaymentModeService.getValues(StandardPaymentModeModel)booleanremoveCost(Currency curr) Deprecated.since ages - use de.hybris.platform.order.PaymentModeService.removeCost(StandardPaymentModeModel, CurrencyModel)voidChanges the payment cost for a given currency.voidDeprecated.since ages - use de.hybris.platform.order.PaymentModeService.setValues(StandardPaymentModeModel, Map<Currency, Double>)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, setPaymentModeValuesMethods inherited from class de.hybris.platform.jalo.order.payment.PaymentMode
addSupportedDeliveryMode, checkRemovable, createItem, getAllDescriptions, getAllNames, getCost, getSupportedDeliveryModes, isSupportedDeliveryMode, remove, removeSupportedDeliveryMode, setAllDescriptions, setAllNames, setCode, setCodeMethods 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, setPaymentInfoTypeMethods inherited from class de.hybris.platform.jalo.GenericItem
getImplementation, getInitialProperties, getNonInitialAttributes, getRelatedItems, getRelatedItems, setRelatedItemsMethods 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, setLocalizedPropertyMethods inherited from class de.hybris.platform.jalo.ExtensibleItem
createNonClassAccessor, getAllProperties, getAllProperties, getProperty, getProperty, getPropertyNames, getPropertyNames, removeProperty, removeProperty, setAllProperties, setAllProperties, setProperty, setPropertyMethods 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, getPartOfRemovedSessionMarker, 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, suppressRelation, toString, useTA, writeReplaceMethods inherited from class de.hybris.platform.util.BridgeAbstraction
setTenant
-
Constructor Details
-
StandardPaymentMode
public StandardPaymentMode()
-
-
Method Details
-
setCost
Changes the payment cost for a given currency.- Parameters:
curr-value-
-
getPaymentModeValue
@Deprecated(since="ages", forRemoval=false) public StandardPaymentModeValue getPaymentModeValue(Currency curr) Deprecated.since ages - use de.hybris.platform.order.PaymentModeService.getCost(StandardPaymentModeModel,CurrencyModel )Fetches aStandardPaymentModeValueinstance for a given currency. If no such value existsnullis returned. -
removeCost
Deprecated.since ages - use de.hybris.platform.order.PaymentModeService.removeCost(StandardPaymentModeModel, CurrencyModel)Removes the payment cost for a given currency. -
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.since ages - use de.hybris.platform.order.PaymentModeService.setValues(StandardPaymentModeModel, Map<Currency, Double>)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(since="ages", forRemoval=false) 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:PaymentModeCalculates 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:
getCostin classPaymentMode- Parameters:
ctx- session contextorder- the order to calculate costs for- Throws:
JaloPaymentModeException
-
addNewDeliveryModeValue
@Deprecated(since="ages", forRemoval=false) public StandardPaymentModeValue addNewDeliveryModeValue(Currency currency, double value) Deprecated.since the method name is plain wrong ;) -
addNewPaymentModeValue
-
createPaymentModeValueInternal
-