com.elasticpath.cmweb.ajaxservice.impl
Class CsrAjaxServiceImpl

java.lang.Object
  extended by com.elasticpath.service.impl.AbstractEpServiceImpl
      extended by 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.


Constructor Summary
CsrAjaxServiceImpl()
           
 
Method Summary
 Customer addCreditCard(Customer customer, CustomerCreditCard customerCreditCard)
          Adds a new credit card to the given customer.
 java.util.List getSupportedCardTypes()
          Returns a list of supported card types, e.g.
 void setCustomerService(CustomerService customerService)
          Set the customer service.
 
Methods inherited from class com.elasticpath.service.impl.AbstractEpServiceImpl
getElasticPath, setElasticPath
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.elasticpath.service.EpService
getElasticPath, setElasticPath
 

Constructor Detail

CsrAjaxServiceImpl

public CsrAjaxServiceImpl()
Method Detail

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 to
customerCreditCard - 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