Class 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
    • Constructor Detail

      • StandardPaymentMode

        public StandardPaymentMode()
    • 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 a StandardPaymentModeValue instance for a given currency. If no such value exists null 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 class PaymentMode
        Parameters:
        ctx - session context
        order - 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 ;)