com.elasticpath.cmweb.ajaxservice
Interface CsrAjaxService

All Superinterfaces:
EpService
All Known Implementing Classes:
CsrAjaxServiceImpl

public interface CsrAjaxService
extends EpService

This page provides access to functionality and data required by the CSR (Customer Service Representative) tab of the Commerce Manager.


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.
 
Methods inherited from interface com.elasticpath.service.EpService
getElasticPath, setElasticPath
 

Method Detail

addCreditCard

Customer addCreditCard(Customer customer,
                       CustomerCreditCard customerCreditCard)
Adds a new credit card to the given customer. Precondition: The card number has not yet been encrypted

Parameters:
customer - The customer that the card belongs to
customerCreditCard - the credit card
Returns:
the updated customer

getSupportedCardTypes

java.util.List getSupportedCardTypes()
Returns a list of supported card types, e.g. Visa, Mastercard.

Returns:
a list of Strings