Default

public class Default implements ICustomerService

Default implementation for ICustomerService.

Constructors

Link copied to clipboard

Properties

Link copied to clipboard
public final static String DESCRIPTOR

Functions

Link copied to clipboard
public Address addAddress(String customerId, String address1, String address2, String address3, String city, String state, String zip, ResultStatus resultStatus)
Creates an address and adds it to the specified customer This call will return immediately with the new address object.
Link copied to clipboard
public Card addCard(String customerId, Card card, ResultStatus resultStatus)
Creates a new vaulted credit/debit card record and adds it to the specified customer This call will return immediately with the new Card object
Link copied to clipboard
public EmailAddress addEmailAddress(String customerId, String emailAddress, ResultStatus resultStatus)
Creates a new email address and adds it to the specified customer This call will return immediately with the new email address object..
Link copied to clipboard
public PhoneNumber addPhoneNumber(String customerId, String phoneNumber, ResultStatus resultStatus)
Creates a new phone number and adds it to the specified customer This call will return immediately with the new phone number object.
Link copied to clipboard
public IBinder asBinder()
Link copied to clipboard
public Customer createCustomer(String firstName, String lastName, boolean marketingAllowed, ResultStatus resultStatus)
Creates a new customer for the merchant bound to the service.
Link copied to clipboard
public void deleteAddress(String customerId, String addressId, ResultStatus resultStatus)
Deletes a given address from the customer.
Link copied to clipboard
public void deleteCard(String customerId, String cardId, ResultStatus resultStatus)
Deletes a given card record from the customer.
Link copied to clipboard
public void deleteCustomer(String customerId, ResultStatus resultStatus)
Deletes a given customer from the merchant.
Link copied to clipboard
public void deleteEmailAddress(String customerId, String emailAddressId, ResultStatus resultStatus)
Deletes a given email address from the customer.
Link copied to clipboard
public void deletePhoneNumber(String customerId, String phoneNumber, ResultStatus resultStatus)
Deletes a given phone number from the customer.
Link copied to clipboard
public Customer getCustomer(String customerId, ResultStatus resultStatus)
Returns a single customer for the merchant bound to the service.
Link copied to clipboard
public List<Customer> getCustomers(String query, ResultStatus resultStatus)
Get a list of customers for the merchant bound to the service.
Link copied to clipboard
public Customer newCustomer(String firstName, String lastName, ResultStatus resultStatus)
Creates a new customer for the merchant bound to the service.
Link copied to clipboard
public void setAddress(String customerId, String addressId, String address1, String address2, String address3, String city, String state, String zip, ResultStatus resultStatus)
Updates a given address on a customer.
Link copied to clipboard
public void setCard(String customerId, String cardId, Card card, ResultStatus resultStatus)
Updates a given debit/credit card record for a customer.
Link copied to clipboard
public void setEmailAddress(String customerId, String emailAddressId, String emailAddress, ResultStatus resultStatus)
Updates a given email address on a customer.
Link copied to clipboard
public void setMarketingAllowed(String customerId, boolean marketingAllowed, ResultStatus resultStatus)
Update the marketing allowed value on a given customer.
Link copied to clipboard
public void setName(String customerId, String firstName, String lastName, ResultStatus resultStatus)
Update the name on the given customer.
Link copied to clipboard
public void setPhoneNumber(String customerId, String phoneNumberId, String phoneNumber, ResultStatus resultStatus)
Updates a given phone number on a customer.