@Encoded public class AssignedPromotionCodeHandler extends AbstractResourceHandler
Modifier and Type | Field and Description |
---|---|
protected javax.security.auth.callback.CallbackHandler | activityTokenCallbackHandler
The activity token callback handler.
|
static java.lang.String | COPYRIGHT
IBM Copyright notice field.
|
static java.lang.String | RESOURCE_MAPPING_KEY
The Constant RESOURCE_MAPPING_KEY.
|
static java.lang.String | RESOURCE_NAME
The Constant RESOURCE_NAME.
|
Constructor and Description |
---|
AssignedPromotionCodeHandler() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response | applyPromotioncode(java.lang.String storeId, java.lang.String responseFormat)
This method apply promotion code to the shopping cart.
|
javax.ws.rs.core.Response | getAssignedPromotioncodeInfo(java.lang.String storeId, java.lang.String responseFormat)
Get assigned promotion code info for the shopping cart.
|
java.lang.String | getCalculationUsageIds()
This method returns the calculation usage ids.
|
java.lang.String | getExternalResourceName()
Get the resource name to show externally.
|
OrderHelper | getHelper()
This method returns the Payment instruction helper used to payment instructions (PI) contents
|
java.lang.String | getResourceName()
This method returns the name of the resource used primarily to determine the representation of the resource.
|
javax.ws.rs.core.Response | removePromotionCode(java.lang.String storeId, java.lang.String promoCode, java.lang.String responseFormat)
Remove a promotion code from the shopping cart.
|
protected javax.ws.rs.core.Response | renderAssignedPromotionCode(java.lang.String expression, java.lang.String accessProfile, java.lang.String responseFormat)
Render assigned promotion code.
|
void | setCalculationUsageIds(java.lang.String ids)
This method sets the value for calculation usage ids.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String RESOURCE_NAME
public static final java.lang.String RESOURCE_MAPPING_KEY
@Context protected javax.security.auth.callback.CallbackHandler activityTokenCallbackHandler
public java.lang.String getResourceName()
public OrderHelper getHelper()
public java.lang.String getCalculationUsageIds()
public void setCalculationUsageIds(java.lang.String ids)
public javax.ws.rs.core.Response getAssignedPromotioncodeInfo(java.lang.String storeId, java.lang.String responseFormat)
public javax.ws.rs.core.Response applyPromotioncode(java.lang.String storeId, java.lang.String responseFormat)
public javax.ws.rs.core.Response removePromotionCode(java.lang.String storeId, java.lang.String promoCode, java.lang.String responseFormat)
protected javax.ws.rs.core.Response renderAssignedPromotionCode(java.lang.String expression, java.lang.String accessProfile, java.lang.String responseFormat)
public java.lang.String getExternalResourceName()