Interface HoldResource


@Path("/holds") @Produces("application/json") @Consumes("application/json") public interface HoldResource
  • Method Details

    • getHoldByHoldId

      @GET @Path("/{holdId}") HoldResponse getHoldByHoldId(@PathParam("holdId") Long holdId)
      Retrieves hold by hold ID.
      Parameters:
      holdId - The id of the hold.
    • updateHold

      @PATCH @Path("/{holdId}") HoldResponse updateHold(@PathParam("holdId") Long holdId, HoldRequest hold)
      Update a hold.
    • deleteHold

      @DELETE @Path("/{holdId}") void deleteHold(@PathParam("holdId") Long holdId)
      Delete hold.
      Parameters:
      holdId - The hold ID to be deleted.
    • getHolds

      @GET HoldResponse[] getHolds()
      Retrieves holds.
    • createHold

      @POST HoldResponse createHold(HoldRequest hold)
      Create hold.
      Parameters:
      hold - the hold to be created.
    • getHoldByMarketplaceSaleIdAndMarketplace

      @GET @Path("/holds/{marketplaceSaleId}/{marketplace}") HoldResponse getHoldByMarketplaceSaleIdAndMarketplace(@PathParam("marketplaceSaleId") String marketplaceSaleId, @PathParam("marketplace") String marketplace)
      Retrieves a hold by the marketplaceName and marketplaceSaleId.
      Parameters:
      marketplaceSaleId - The marketplaceSaleId of the hold.
      marketplace - The name of the market place.