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 Type
    Method
    Description
    jakarta.ws.rs.core.Response
    Returns a Response indicating that the coupon could not be created.
    jakarta.ws.rs.core.Response
    Returns a Response indicating that the requested coupon could not be found.
    jakarta.ws.rs.core.Response
    Returns a Response 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 a Response indicating that the requested coupon could not be found.
      Returns:
      a Response containing an error feedback with HTTP status 404 and error code MyCouponConstantsREST.ERROR_COUPON_NOT_FOUND
    • getMissingEmailResponse

      jakarta.ws.rs.core.Response getMissingEmailResponse()
      Returns a Response indicating that the email is missing.
      Returns:
      a Response containing an error feedback with HTTP status 404 and error code MyCouponConstantsREST.ERROR_MISSING_EMAIL
    • getCouldNotCreateACouponResponse

      jakarta.ws.rs.core.Response getCouldNotCreateACouponResponse()
      Returns a Response indicating that the coupon could not be created.
      Returns:
      a Response containing an error feedback with HTTP status 204 and error code MyCouponConstantsREST.ERROR_COUPON_NOT_CREATED