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.ResponseReturns aResponseindicating that the coupon could not be created.jakarta.ws.rs.core.ResponseReturns aResponseindicating that the requested coupon could not be found.jakarta.ws.rs.core.ResponseReturns aResponseindicating 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 aResponseindicating that the requested coupon could not be found.- Returns:
- a
Responsecontaining an error feedback with HTTP status 404 and error codeMyCouponConstantsREST.ERROR_COUPON_NOT_FOUND
-
getMissingEmailResponse
jakarta.ws.rs.core.Response getMissingEmailResponse()Returns aResponseindicating that the email is missing.- Returns:
- a
Responsecontaining an error feedback with HTTP status 404 and error codeMyCouponConstantsREST.ERROR_MISSING_EMAIL
-
getCouldNotCreateACouponResponse
jakarta.ws.rs.core.Response getCouldNotCreateACouponResponse()Returns aResponseindicating that the coupon could not be created.- Returns:
- a
Responsecontaining an error feedback with HTTP status 204 and error codeMyCouponConstantsREST.ERROR_COUPON_NOT_CREATED
-