Class TmaPaymentMethodResourceStrategy

java.lang.Object
de.hybris.platform.b2ctelcoservices.order.resourcestrategies.impl.TmaPaymentMethodResourceStrategy
All Implemented Interfaces:
TmaAbstractOrderResourceStrategy

public class TmaPaymentMethodResourceStrategy extends Object implements TmaAbstractOrderResourceStrategy
Resource strategy implementation. Validates and updates payment method.
Since:
1911
  • Constructor Details

    • TmaPaymentMethodResourceStrategy

      public TmaPaymentMethodResourceStrategy(de.hybris.platform.commerceservices.customer.CustomerAccountService customerAccountService, de.hybris.platform.servicelayer.model.ModelService modelService)
    • TmaPaymentMethodResourceStrategy

      public TmaPaymentMethodResourceStrategy(de.hybris.platform.commerceservices.customer.CustomerAccountService customerAccountService, de.hybris.platform.servicelayer.model.ModelService modelService, TmaDirectDebitPaymentInfoService directDebitPaymentInfoService)
  • Method Details

    • validateResource

      public TmaCartValidationResult validateResource(CommerceCartParameter parameter)
      Description copied from interface: TmaAbstractOrderResourceStrategy
      Validates that the resources from the CommerceCartParameter are valid to be stored on cart.
      Specified by:
      validateResource in interface TmaAbstractOrderResourceStrategy
      Parameters:
      parameter - the commerce cart parameter storing information to be stored on cart
      Returns:
      TmaCartValidationResult
    • updateResource

      public void updateResource(CommerceCartParameter commerceCartParameter, CommerceCartModification commerceCartModification) throws de.hybris.platform.commerceservices.order.CommerceCartModificationException
      Adds a payment method to the cart if one is provided or removes the payment method from the cart if none is provided.
      Specified by:
      updateResource in interface TmaAbstractOrderResourceStrategy
      Parameters:
      commerceCartParameter - contains attributes used for cart updates
      commerceCartModification - contains the updates made on the cart
      Throws:
      de.hybris.platform.commerceservices.order.CommerceCartModificationException - in case of any error occurs during payment method update
    • getCustomerAccountService

      protected de.hybris.platform.commerceservices.customer.CustomerAccountService getCustomerAccountService()
    • getModelService

      protected de.hybris.platform.servicelayer.model.ModelService getModelService()
    • getDirectDebitPaymentInfoService

      protected TmaDirectDebitPaymentInfoService getDirectDebitPaymentInfoService()