public interface ICustomerMaintenance extends ERPInterface
| Modifier and Type | Field and Description |
|---|---|
static int |
ERROR_DUPLICATE
The error type for when the call to the back-end program found a
duplicate customer when it was attempting to add a new customer.
|
static int |
TYPE_ACCOUNT
The customer type value for a main account.
|
static int |
TYPE_SHIPTO
The customer type value for a shipto account.
|
ERROR_CONNECT, ERROR_NONE, ERROR_PROGRAM, WARN_DUPLICATE, WARN_NONE| Modifier and Type | Method and Description |
|---|---|
boolean |
createCustomer(Customer customer,
int type,
java.lang.String initid)
Creates a new customer record in the ERP system.
|
boolean |
deleteCustomer(Customer customer,
java.lang.String initid)
Deletes a customer record in the ERP system.
|
Customer |
getCustomer(java.lang.String customerId)
Retrieves a customer record from the ERP system.
|
Customer |
getCustomer(java.lang.String customerId,
java.lang.String queueId)
Retrieves a customer record from the ERP system.
|
java.util.ArrayList<Customer> |
getShipForCustomers(java.lang.String customerId)
Returns a collection of customer records from the ERP system which have
shipfor id equal to customer id.
|
boolean |
updateCustomer(Customer customer,
java.lang.String initid)
Updates a customer record in the ERP system.
|
getContext, getErrorType, getWarningType, setContext, setErrorType, setWarningTypestatic final int TYPE_ACCOUNT
static final int TYPE_SHIPTO
static final int ERROR_DUPLICATE
boolean createCustomer(Customer customer, int type, java.lang.String initid)
customer - (Customer) The customer object to create. A new
customer id will be assigned and set in this customer object.type - (int) The type of customer that is to be created. Must
be one of the predefined types (TYPE_ACCOUNT, TYPE_SHIPTO).initid - (String) The id of the user initiating the create.true if the customer was successfully added,
otherwise false.boolean updateCustomer(Customer customer, java.lang.String initid)
customer - (Customer) The customer object containing the new
information.initid - (String) The id of the user initiating the update.true if the customer was successfully updated
otherwise false.boolean deleteCustomer(Customer customer, java.lang.String initid)
customer - (Customer) The customer object for the customer to
delete.initid - (String) The id of the user initiating the delete.true if the customer was successfully deleted
otherwise false.Customer getCustomer(java.lang.String customerId)
customerId - (String) The id for the customer to retrieve.Customer getCustomer(java.lang.String customerId, java.lang.String queueId)
customerId - (String) The id for the customer to retrieve.queueId - (String) The value to use when creating the queue key,
if a value other than the current session id is desired.java.util.ArrayList<Customer> getShipForCustomers(java.lang.String customerId)
customerId - (String) The shipfor id for the customers to retrieve.