com.elasticpath.cmweb.ajaxservice.impl
Class CsrAjaxServiceImpl
java.lang.Object
com.elasticpath.service.impl.AbstractEpServiceImpl
com.elasticpath.cmweb.ajaxservice.impl.CsrAjaxServiceImpl
- All Implemented Interfaces:
- CsrAjaxService, EpService
public class CsrAjaxServiceImpl
- extends AbstractEpServiceImpl
- implements CsrAjaxService
This page provides access to functionality and data required by the CSR (Customer Service Representative) tab of the Commerce Manager.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CsrAjaxServiceImpl
public CsrAjaxServiceImpl()
addCreditCard
public Customer addCreditCard(Customer customer,
CustomerCreditCard customerCreditCard)
- Adds a new credit card to the given customer.
Precondition: The card number has not yet been encrypted
- Specified by:
addCreditCard
in interface CsrAjaxService
- Parameters:
customer
- The customer that the card belongs tocustomerCreditCard
- the credit card
- Returns:
- the updated customer
getSupportedCardTypes
public java.util.List getSupportedCardTypes()
- Returns a list of supported card types, e.g. Visa, Mastercard.
- Specified by:
getSupportedCardTypes
in interface CsrAjaxService
- Returns:
- a list of Strings
setCustomerService
public void setCustomerService(CustomerService customerService)
- Set the customer service.
- Parameters:
customerService
- the customer service