|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AdminOrderMgrIf
AdminOrderMgrIf
Method Summary | |
---|---|
void |
calculateTotals(int scale,
int taxQuantityRule,
AdminOrderProduct orderProduct)
We calculate totalPriceIncTax, totalPriceExTax and tax starting from price which is the price of one product without options and without tax. |
void |
decryptOrder(AdminOrder order)
Decrypt the encrypted parts of an order - but only if the encryption key passed in is non-null and not empty. |
int |
deleteOrder(int ordId)
Deletes an order and all associated records (eg OrderProducts, OrderStatusHistory etc) |
void |
deleteOrderReturn(int orderRetId)
Delete the AdminOrderReturn object and any associated AdminOrderReturnProduct objects |
int |
deleteOrderStatusName(int ordStatId)
Delete an OrderStatusName |
boolean |
doesOrderStatusExist(int ordStatId,
int langId)
Checks to see whether an Order Status already exists with this id and this language id. |
void |
editOrder(AdminOrder order)
Edit an existing order. |
void |
editOrderReturn(AdminOrderReturn orderRet)
Edits an AdminOrderReturn object. |
AdminCreditCard |
encryptCreditCard(AdminCreditCard creditCard,
java.lang.String ek)
Encrypt the credit card details - but only if the encryption key passed in is non-null and not empty. |
com.konakart.app.ExportOrderResponse |
exportOrder(com.konakart.app.ExportOrderOptions options)
Exports the Order |
AdminOrderStatusName[] |
getAllOrderStatuses(int languageId)
Returns an array of AdminOrdersStatusName objects for the languages specified |
int |
getOrderCount(int orderStatus)
Returns a count of the Orders with the specified order status |
AdminOrder |
getOrderForOrderId(int orderId)
Retrieve an order for an orderId, using the default language |
AdminOrder |
getOrderForOrderId(int orderId,
int languageId)
Returns an order for an orderId and a languageId. |
AdminOrderReturnSearchResult |
getOrderReturns(AdminOrderReturnSearch retSearch,
int offset,
int size)
Search for Order Returns |
AdminOrderSearchResult |
getOrders(AdminOrderSearch search,
int offset,
int size,
int languageId)
Returns a set of Orders matching the specified search criteria |
AdminOrder[] |
getOrdersCreatedSince(java.util.Calendar since,
int languageId)
Returns a set of Orders created since the specified date |
AdminOrderSearchResult |
getOrdersLite(AdminOrderSearch search,
int offset,
int size,
int languageId)
Returns a set of Orders matching the specified search criteria - the orders returned are sparsely-populated with: id order number customer name street address city formatted total price inc tax purchase date order status id order status text |
AdminOrderStatusNameSearchResult |
getOrderStatusNames(AdminOrderStatusNameSearch search)
This returns an AdminOrderStatusNameSearchResult object. |
int |
insertIpnHistory(AdminIpnHistory ipnHistory)
Save the AdminIpnHistory object in the database. |
int |
insertOrder(AdminOrder order)
Insert an order. |
int |
insertOrderReturn(AdminOrderReturn orderRet)
Inserts an AdminOrderReturn object and links it to an array of AdminOrderProduct objects in order to identify which products in the order were returned. |
int |
insertOrderStatusName(AdminOrderStatusName ordStat)
Insert an AdminOrderStatusName object |
int |
insertOrderStatusNames(AdminOrderStatusName[] ordStats)
Insert an array of AdminOrderStatusName objects. |
boolean |
isSaveCreditCardDetails()
If true, credit card details will be saved |
void |
refreshConfigs()
Refresh the Configuration variables for this manager |
AdminIpnHistories |
searchForIpnHistory(AdminDataDescriptor dataDesc,
AdminIpnSearch ipnSearch)
Search for IPN History objects |
void |
setCreditCardDetailsOnOrder(AdminCreditCard creditCard)
Set Credit Card details on an existing order |
void |
setRewardPointReservationId(int orderId,
int reservationId)
Updates the reward point reservation id for the order identified by orderId . |
void |
updateOrder(int orderId,
int orderStatus,
java.lang.String comments,
boolean notifyCustomer,
AdminOrderUpdate updateOrder)
Update the order status with optional comments. |
void |
updateOrderStatus(int orderId,
int orderStatus,
java.lang.String comments,
boolean notifyCustomer)
Update the order status with optional comments |
int |
updateOrderStatusName(AdminOrderStatusName ordStat)
Update an AdminOrderStatusName object |
Method Detail |
---|
int getOrderCount(int orderStatus) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
orderStatus
- the order status
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
AdminOrderSearchResult getOrdersLite(AdminOrderSearch search, int offset, int size, int languageId) throws KKAdminException
search
- the Orders search criteria object (can be null)offset
- offset in the dbsize
- max number of records to return from the offsetlanguageId
- the language Id - or it could be DEFAULT_LANG to use the default language
KKAdminException
AdminOrderSearchResult getOrders(AdminOrderSearch search, int offset, int size, int languageId) throws java.lang.Exception
search
- the Orders search criteria object (can be null)offset
- offset in the dbsize
- max number of records to return from the offsetlanguageId
- the language Id - or it could be DEFAILT_LANG to use the default language
java.lang.Exception
AdminOrder[] getOrdersCreatedSince(java.util.Calendar since, int languageId) throws java.lang.Exception
since
- the date to use to define the range of orders to returnlanguageId
- the language id
java.lang.Exception
void updateOrder(int orderId, int orderStatus, java.lang.String comments, boolean notifyCustomer, AdminOrderUpdate updateOrder) throws java.lang.Exception
orderId
- the order idorderStatus
- the new Order Statuscomments
- if not null, these comments are addednotifyCustomer
- if true the customer will be notified by emailupdateOrder
- contains order update data such as who updated the order
java.lang.Exception
void updateOrderStatus(int orderId, int orderStatus, java.lang.String comments, boolean notifyCustomer) throws java.lang.Exception
orderId
- the order idorderStatus
- the new Order Statuscomments
- if not null, these comments are addednotifyCustomer
- if true the customer will be notified by email
java.lang.Exception
AdminOrder getOrderForOrderId(int orderId) throws java.lang.Exception
orderId
-
java.lang.Exception
AdminOrder getOrderForOrderId(int orderId, int languageId) throws java.lang.Exception
orderId
- languageId
-
java.lang.Exception
AdminOrderStatusName[] getAllOrderStatuses(int languageId) throws java.lang.Exception
languageId
-
java.lang.Exception
void calculateTotals(int scale, int taxQuantityRule, AdminOrderProduct orderProduct)
scale
- The scale used in the calculationstaxQuantityRule
- The tax calculation rule to useorderProduct
- int deleteOrder(int ordId) throws KKAdminException
Removes records from :
ordId
- Order id of the order to delete
KKAdminException
AdminOrderStatusNameSearchResult getOrderStatusNames(AdminOrderStatusNameSearch search) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
search
-
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKAdminException
int deleteOrderStatusName(int ordStatId) throws KKAdminException
ordStatId
- An OrderStatusName id
KKAdminException
int insertOrderStatusName(AdminOrderStatusName ordStat) throws KKAdminException
ordStat
- An AdminOrderStatusName object
KKAdminException
int insertOrderStatusNames(AdminOrderStatusName[] ordStats) throws KKAdminException
ordStats
- An AdminOrderStatusName array object
KKAdminException
int updateOrderStatusName(AdminOrderStatusName ordStat) throws KKAdminException
ordStat
- An AdminOrderStatusName object
KKAdminException
boolean doesOrderStatusExist(int ordStatId, int langId) throws org.apache.torque.TorqueException, KKAdminException
ordStatId
- the order status IdlangId
- the language Id
org.apache.torque.TorqueException
KKAdminException
AdminIpnHistories searchForIpnHistory(AdminDataDescriptor dataDesc, AdminIpnSearch ipnSearch) throws java.lang.Exception
dataDesc
- ipnSearch
-
java.lang.Exception
int insertOrderReturn(AdminOrderReturn orderRet) throws java.lang.Exception
orderRet
-
java.lang.Exception
void editOrderReturn(AdminOrderReturn orderRet) throws java.lang.Exception
orderRet
-
java.lang.Exception
void deleteOrderReturn(int orderRetId) throws java.lang.Exception
orderRetId
-
java.lang.Exception
AdminOrderReturnSearchResult getOrderReturns(AdminOrderReturnSearch retSearch, int offset, int size) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
retSearch
- offset
- size
-
KKAdminException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
void editOrder(AdminOrder order) throws java.lang.Exception
updateOrderStatus()
.
The attributes that can be modified are:
order
-
java.lang.Exception
void setCreditCardDetailsOnOrder(AdminCreditCard creditCard) throws java.lang.Exception, KKAdminException
This method only allows you to update the credit card details on an order. In order to change
the order status you must use updateOrderStatus()
.
The Credit Card details are only saved if the ability to save credit card details is enabled in the configuration of the store.
The orderId must be populated in the id field of the AdminCreditCard object.
Before being saved, this sensitive information is encrypted.
No update or insert is done for attributes of the AdminCreditCard object that are set to null. The credit card details are mapped as follows to attributes in the order object:
The following Credit Card attributes can be saved (on the AdminCreditCard object):
creditCard
- the AdminCreditCard object
java.lang.Exception
KKAdminException
int insertIpnHistory(AdminIpnHistory ipnHistory) throws java.lang.Exception
ipnHistory
-
java.lang.Exception
boolean isSaveCreditCardDetails()
void refreshConfigs() throws java.lang.Exception
java.lang.Exception
int insertOrder(AdminOrder order) throws java.lang.Exception
order
-
java.lang.Exception
AdminCreditCard encryptCreditCard(AdminCreditCard creditCard, java.lang.String ek) throws KKAdminException
creditCard
- the original credit card objectek
- the encryption key
KKAdminException
void decryptOrder(AdminOrder order) throws KKAdminException
order
- the order object that will be populated with the unencrypted attributes
KKAdminException
void setRewardPointReservationId(int orderId, int reservationId) throws java.lang.Exception
orderId
.
orderId
- reservationId
-
java.lang.Exception
com.konakart.app.ExportOrderResponse exportOrder(com.konakart.app.ExportOrderOptions options) throws KKAdminException
options
- Defines the options to use for the export of the Order
KKAdminException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |