Class CatalogResource

    • Constructor Detail

      • CatalogResource

        @Inject
        public CatalogResource​(JaxrsUriBuilder uriBuilder,
                               org.killbill.billing.util.api.TagUserApi tagUserApi,
                               org.killbill.billing.util.api.CustomFieldUserApi customFieldUserApi,
                               org.killbill.billing.util.api.AuditUserApi auditUserApi,
                               AccountUserApi accountUserApi,
                               PaymentApi paymentApi,
                               InvoicePaymentApi invoicePaymentApi,
                               CatalogUserApi catalogUserApi,
                               SubscriptionApi subscriptionApi,
                               org.killbill.clock.Clock clock,
                               Context context)
    • Method Detail

      • getCatalogXmlOriginal

        @GET
        @Produces("text/xml")
        public javax.ws.rs.core.Response getCatalogXmlOriginal​(@QueryParam("requestedDate")
                                                               String requestedDate,
                                                               @QueryParam("accountId")
                                                               UUID accountId,
                                                               @Context
                                                               javax.servlet.http.HttpServletRequest request)
                                                        throws Exception
        Throws:
        Exception
      • getCatalogXml

        @Path("/xml")
        @GET
        @Produces("text/xml")
        public javax.ws.rs.core.Response getCatalogXml​(@QueryParam("requestedDate")
                                                       String requestedDate,
                                                       @QueryParam("accountId")
                                                       UUID accountId,
                                                       @Context
                                                       javax.servlet.http.HttpServletRequest request)
                                                throws Exception
        Throws:
        Exception
      • uploadCatalogXmlOriginal

        @POST
        @Consumes("text/xml")
        public javax.ws.rs.core.Response uploadCatalogXmlOriginal​(String catalogXML,
                                                                  @HeaderParam("X-Killbill-CreatedBy")
                                                                  String createdBy,
                                                                  @HeaderParam("X-Killbill-Reason")
                                                                  String reason,
                                                                  @HeaderParam("X-Killbill-Comment")
                                                                  String comment,
                                                                  @Context
                                                                  javax.servlet.http.HttpServletRequest request,
                                                                  @Context
                                                                  javax.ws.rs.core.UriInfo uriInfo)
                                                           throws Exception
        Throws:
        Exception
      • uploadCatalogXml

        @POST
        @Path("/xml")
        @Consumes("text/xml")
        public javax.ws.rs.core.Response uploadCatalogXml​(String catalogXML,
                                                          @HeaderParam("X-Killbill-CreatedBy")
                                                          String createdBy,
                                                          @HeaderParam("X-Killbill-Reason")
                                                          String reason,
                                                          @HeaderParam("X-Killbill-Comment")
                                                          String comment,
                                                          @Context
                                                          javax.servlet.http.HttpServletRequest request,
                                                          @Context
                                                          javax.ws.rs.core.UriInfo uriInfo)
                                                   throws Exception
        Throws:
        Exception
      • validateCatalogXml

        @POST
        @Path("/xml/validate")
        @Consumes("text/xml")
        @Produces("application/json")
        public javax.ws.rs.core.Response validateCatalogXml​(String catalogXML,
                                                            @HeaderParam("X-Killbill-CreatedBy")
                                                            String createdBy,
                                                            @HeaderParam("X-Killbill-Reason")
                                                            String reason,
                                                            @HeaderParam("X-Killbill-Comment")
                                                            String comment,
                                                            @Context
                                                            javax.servlet.http.HttpServletRequest request,
                                                            @Context
                                                            javax.ws.rs.core.UriInfo uriInfo)
                                                     throws Exception
        Throws:
        Exception
      • getCatalogJson

        @GET
        @Produces("application/json")
        public javax.ws.rs.core.Response getCatalogJson​(@QueryParam("requestedDate")
                                                        String requestedDate,
                                                        @QueryParam("accountId")
                                                        UUID accountId,
                                                        @Context
                                                        javax.servlet.http.HttpServletRequest request)
                                                 throws Exception
        Throws:
        Exception
      • getCatalogVersions

        @GET
        @Path("/versions")
        @Produces("application/json")
        public javax.ws.rs.core.Response getCatalogVersions​(@QueryParam("accountId")
                                                            UUID accountId,
                                                            @Context
                                                            javax.servlet.http.HttpServletRequest request)
                                                     throws Exception
        Throws:
        Exception
      • getAvailableAddons

        @GET
        @Path("/availableAddons")
        @Produces("application/json")
        public javax.ws.rs.core.Response getAvailableAddons​(@QueryParam("baseProductName")
                                                            String baseProductName,
                                                            @Nullable @QueryParam("priceListName")
                                                            String priceListName,
                                                            @QueryParam("accountId")
                                                            UUID accountId,
                                                            @Context
                                                            javax.servlet.http.HttpServletRequest request)
                                                     throws CatalogApiException
        Throws:
        CatalogApiException
      • getAvailableBasePlans

        @GET
        @Path("/availableBasePlans")
        @Produces("application/json")
        public javax.ws.rs.core.Response getAvailableBasePlans​(@QueryParam("accountId")
                                                               UUID accountId,
                                                               @Context
                                                               javax.servlet.http.HttpServletRequest request)
                                                        throws CatalogApiException
        Throws:
        CatalogApiException
      • getProductForSubscriptionAndDate

        @GET
        @Path("/product")
        @Produces("application/json")
        public javax.ws.rs.core.Response getProductForSubscriptionAndDate​(@QueryParam("subscriptionId")
                                                                          UUID subscriptionId,
                                                                          @QueryParam("requestedDate")
                                                                          String requestedDateString,
                                                                          @Context
                                                                          javax.servlet.http.HttpServletRequest request)
                                                                   throws SubscriptionApiException
        Throws:
        SubscriptionApiException
      • getPriceListForSubscriptionAndDate

        @GET
        @Path("/priceList")
        @Produces("application/json")
        public javax.ws.rs.core.Response getPriceListForSubscriptionAndDate​(@QueryParam("subscriptionId")
                                                                            UUID subscriptionId,
                                                                            @QueryParam("requestedDate")
                                                                            String requestedDateString,
                                                                            @Context
                                                                            javax.servlet.http.HttpServletRequest request)
                                                                     throws SubscriptionApiException
        Throws:
        SubscriptionApiException
      • addSimplePlan

        @POST
        @Path("/simplePlan")
        @Consumes("application/json")
        @Produces("application/json")
        public javax.ws.rs.core.Response addSimplePlan​(SimplePlanJson simplePlan,
                                                       @HeaderParam("X-Killbill-CreatedBy")
                                                       String createdBy,
                                                       @HeaderParam("X-Killbill-Reason")
                                                       String reason,
                                                       @HeaderParam("X-Killbill-Comment")
                                                       String comment,
                                                       @Context
                                                       javax.servlet.http.HttpServletRequest request,
                                                       @Context
                                                       javax.ws.rs.core.UriInfo uriInfo)
                                                throws Exception
        Throws:
        Exception