Interface MyCouponFeedbackHandler
- All Superinterfaces:
com.intershop.sellside.rest.common.v1.capi.handler.FeedbackHandler
- All Known Implementing Classes:
MyCouponFeedbackHandlerImpl
public interface MyCouponFeedbackHandler
extends com.intershop.sellside.rest.common.v1.capi.handler.FeedbackHandler
Handler for REST feedback.
-
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Response
Returns aResponse
indicating that the coupon could not be created.jakarta.ws.rs.core.Response
Returns aResponse
indicating that the requested coupon could not be found.jakarta.ws.rs.core.Response
Returns aResponse
indicating that the email is missing.Methods inherited from interface com.intershop.sellside.rest.common.v1.capi.handler.FeedbackHandler
getAttributeNotFoundFeedbackResource, getFeedback, getFeedbackResponseBuilder, getMethodNotAllowedFeedback, getMissingJSONBodyFeedback, getObjectLockingFailedFeedback
-
Method Details
-
getCouponNotFoundResponse
jakarta.ws.rs.core.Response getCouponNotFoundResponse()Returns aResponse
indicating that the requested coupon could not be found.- Returns:
- a
Response
containing an error feedback with HTTP status 404 and error codeMyCouponConstantsREST.ERROR_COUPON_NOT_FOUND
-
getMissingEmailResponse
jakarta.ws.rs.core.Response getMissingEmailResponse()Returns aResponse
indicating that the email is missing.- Returns:
- a
Response
containing an error feedback with HTTP status 404 and error codeMyCouponConstantsREST.ERROR_MISSING_EMAIL
-
getCouldNotCreateACouponResponse
jakarta.ws.rs.core.Response getCouldNotCreateACouponResponse()Returns aResponse
indicating that the coupon could not be created.- Returns:
- a
Response
containing an error feedback with HTTP status 204 and error codeMyCouponConstantsREST.ERROR_COUPON_NOT_CREATED
-