public interface AdminRewardPointMgrIf
Modifier and Type | Method and Description |
---|---|
int |
addPoints(int customerId,
int points,
java.lang.String code,
java.lang.String description)
Adds a number of reward points to the total for customer identified by the
sessionId parameter. |
int |
deletePoints(int customerId,
int points,
java.lang.String code,
java.lang.String description)
Deletes a number of reward points from the total for the customer identified by the
sessionId parameter. |
void |
deleteReservedPoints(int customerId,
int reservationId,
java.lang.String code,
java.lang.String description)
Verifies that the
reservationId parameter exists and that it belongs to the
customer identified by the sessionId parameter. |
int |
freeReservedPoints(int customerId,
int reservationId)
Verifies that the
reservationId parameter exists and that it belongs to the
customer identified by the sessionId parameter. |
AdminRewardPointSearchResult |
getRewardPoints(AdminRewardPointSearch search,
int offset,
int size)
Used to search for reward points belonging to a customer.
|
int |
pointsAvailable(int customerId)
Calculates the number of reward points available for the customer identified by the
sessionId parameter. |
int |
reservePoints(int customerId,
int points)
Removes a number of reward points from the total for the customer identified by the
sessionId parameter. |
int pointsAvailable(int customerId) throws java.lang.Exception
sessionId
parameter.customerId
- the customerIdjava.lang.Exception
- an unexpected exceptionint addPoints(int customerId, int points, java.lang.String code, java.lang.String description) throws java.lang.Exception
sessionId
parameter.customerId
- the customerIdpoints
- the pointscode
- An optional code to categorize the reason for awarding the pointsdescription
- An optional description describing why the points were awardedjava.lang.Exception
- an unexpected exceptionint deletePoints(int customerId, int points, java.lang.String code, java.lang.String description) throws java.lang.Exception
sessionId
parameter.customerId
- the customerIdpoints
- the pointscode
- An optional code to categorize the reason for redeeming the pointsdescription
- An optional description describing how the points were redeemedjava.lang.Exception
- an unexpected exceptionint reservePoints(int customerId, int points) throws java.lang.Exception
sessionId
parameter. The removed points are not deleted but reserved, so that
they are no longer available for spending but may be deleted once the order has been paid for
or shipped. If the order is never fulfilled, then the reserved points may be freed and
returned to the available total.customerId
- the customerIdpoints
- the pointsjava.lang.Exception
- an unexpected exceptionvoid deleteReservedPoints(int customerId, int reservationId, java.lang.String code, java.lang.String description) throws java.lang.Exception
reservationId
parameter exists and that it belongs to the
customer identified by the sessionId
parameter. The reserved points are normally
deleted once the order has been paid for or shipped. If the order is never fulfilled, then
the reserved points may be freed and returned to the available total. Once deleted. the
points can no longer be returned to the total.customerId
- the customerIdreservationId
- the reservationIdcode
- An optional code to categorize the reason for redeeming the pointsdescription
- An optional description describing how the points were redeemedjava.lang.Exception
- an unexpected exceptionint freeReservedPoints(int customerId, int reservationId) throws java.lang.Exception
reservationId
parameter exists and that it belongs to the
customer identified by the sessionId
parameter. The reserved points may be freed
and returned to the available total using this API call. The method checks to see whether
some or all of the points have expired while they were in the reserved state.customerId
- the customerIdreservationId
- the reservationIdjava.lang.Exception
- an unexpected exceptionAdminRewardPointSearchResult getRewardPoints(AdminRewardPointSearch search, int offset, int size) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
search
- the searchoffset
- the offsetsize
- the sizeKKAdminException
- an unexpected exception in the KonaKart Admin engineorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)Copyright © 2018 DS Data Systems UK Ltd.