Search in sources :

Example 1 with OverdueJson

use of org.killbill.billing.jaxrs.json.OverdueJson in project killbill by killbill.

the class OverdueResource method getOverdueConfigJson.

@TimedResource
@GET
@Produces(APPLICATION_JSON)
@ApiOperation(value = "Retrieve the overdue config as JSON", response = OverdueJson.class)
@ApiResponses(value = {})
public Response getOverdueConfigJson(@javax.ws.rs.core.Context final HttpServletRequest request) throws Exception {
    final TenantContext tenantContext = context.createContext(request);
    final OverdueConfig overdueConfig = overdueApi.getOverdueConfig(tenantContext);
    final OverdueJson result = new OverdueJson(overdueConfig);
    return Response.status(Status.OK).entity(result).build();
}
Also used : OverdueJson(org.killbill.billing.jaxrs.json.OverdueJson) TenantContext(org.killbill.billing.util.callcontext.TenantContext) OverdueConfig(org.killbill.billing.overdue.api.OverdueConfig) DefaultOverdueConfig(org.killbill.billing.overdue.config.DefaultOverdueConfig) TimedResource(org.killbill.commons.metrics.TimedResource) Produces(javax.ws.rs.Produces) GET(javax.ws.rs.GET) ApiOperation(io.swagger.annotations.ApiOperation) ApiResponses(io.swagger.annotations.ApiResponses)

Aggregations

ApiOperation (io.swagger.annotations.ApiOperation)1 ApiResponses (io.swagger.annotations.ApiResponses)1 GET (javax.ws.rs.GET)1 Produces (javax.ws.rs.Produces)1 OverdueJson (org.killbill.billing.jaxrs.json.OverdueJson)1 OverdueConfig (org.killbill.billing.overdue.api.OverdueConfig)1 DefaultOverdueConfig (org.killbill.billing.overdue.config.DefaultOverdueConfig)1 TenantContext (org.killbill.billing.util.callcontext.TenantContext)1 TimedResource (org.killbill.commons.metrics.TimedResource)1