Class StandardPaymentMode

All Implemented Interfaces:
Serializable, 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:
  • Constructor Details

    • StandardPaymentMode

      public StandardPaymentMode()
  • Method Details

    • setCost

      public void setCost(Currency curr, double value)
      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 a StandardPaymentModeValue instance for a given currency. If no such value exists null is returned.
    • removeCost

      @Deprecated(since="ages", forRemoval=false) 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(since="ages", forRemoval=false) public Map<Currency,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(since="ages", forRemoval=false) public void setValues(Map<Currency,Double> values)
      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: 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(since="ages", forRemoval=false) 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)