Class TenantResource

    • Constructor Detail

      • TenantResource

        @Inject
        public TenantResource​(TenantUserApi tenantApi,
                              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,
                              org.killbill.clock.Clock clock,
                              Context context)
    • Method Detail

      • getTenant

        @GET
        @Path("/{tenantId:\\w+-\\w+-\\w+-\\w+-\\w+}")
        @Produces("application/json")
        public javax.ws.rs.core.Response getTenant​(@PathParam("tenantId")
                                                   UUID tenantId)
                                            throws TenantApiException
        Throws:
        TenantApiException
      • createTenant

        @POST
        @Consumes("application/json")
        @Produces("application/json")
        public javax.ws.rs.core.Response createTenant​(TenantJson json,
                                                      @QueryParam("useGlobalDefault") @DefaultValue("false")
                                                      Boolean useGlobalDefault,
                                                      @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 TenantApiException,
                                                      CatalogApiException
        Throws:
        TenantApiException
        CatalogApiException
      • registerPushNotificationCallback

        @POST
        @Path("/registerNotificationCallback")
        @Consumes("application/json")
        @Produces("application/json")
        public javax.ws.rs.core.Response registerPushNotificationCallback​(@QueryParam("cb")
                                                                          String notificationCallback,
                                                                          @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 TenantApiException
        Throws:
        TenantApiException
      • getPushNotificationCallbacks

        @GET
        @Path("/registerNotificationCallback")
        @Produces("application/json")
        public javax.ws.rs.core.Response getPushNotificationCallbacks​(@Context
                                                                      javax.servlet.http.HttpServletRequest request)
                                                               throws TenantApiException
        Throws:
        TenantApiException
      • deletePushNotificationCallbacks

        @DELETE
        @Path("/registerNotificationCallback")
        public javax.ws.rs.core.Response deletePushNotificationCallbacks​(@HeaderParam("X-Killbill-CreatedBy")
                                                                         String createdBy,
                                                                         @HeaderParam("X-Killbill-Reason")
                                                                         String reason,
                                                                         @HeaderParam("X-Killbill-Comment")
                                                                         String comment,
                                                                         @Context
                                                                         javax.servlet.http.HttpServletRequest request)
                                                                  throws TenantApiException
        Throws:
        TenantApiException
      • uploadPluginConfiguration

        @POST
        @Path("/uploadPluginConfig/{pluginName:.*}")
        @Consumes("text/plain")
        @Produces("application/json")
        public javax.ws.rs.core.Response uploadPluginConfiguration​(@PathParam("pluginName")
                                                                   String pluginName,
                                                                   String pluginConfig,
                                                                   @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 TenantApiException
        Throws:
        TenantApiException
      • getPluginConfiguration

        @GET
        @Path("/uploadPluginConfig/{pluginName:.*}")
        @Produces("application/json")
        public javax.ws.rs.core.Response getPluginConfiguration​(@PathParam("pluginName")
                                                                String pluginName,
                                                                @Context
                                                                javax.servlet.http.HttpServletRequest request)
                                                         throws TenantApiException
        Throws:
        TenantApiException
      • deletePluginConfiguration

        @DELETE
        @Path("/uploadPluginConfig/{pluginName:.*}")
        public javax.ws.rs.core.Response deletePluginConfiguration​(@PathParam("pluginName")
                                                                   String pluginName,
                                                                   @HeaderParam("X-Killbill-CreatedBy")
                                                                   String createdBy,
                                                                   @HeaderParam("X-Killbill-Reason")
                                                                   String reason,
                                                                   @HeaderParam("X-Killbill-Comment")
                                                                   String comment,
                                                                   @Context
                                                                   javax.servlet.http.HttpServletRequest request)
                                                            throws TenantApiException
        Throws:
        TenantApiException
      • getAllPluginConfiguration

        @GET
        @Path("/uploadPerTenantConfig/{keyPrefix:.*}/search")
        @Produces("application/json")
        public javax.ws.rs.core.Response getAllPluginConfiguration​(@PathParam("keyPrefix")
                                                                   String keyPrefix,
                                                                   @Context
                                                                   javax.servlet.http.HttpServletRequest request)
                                                            throws TenantApiException
        Throws:
        TenantApiException
      • uploadPerTenantConfiguration

        @POST
        @Path("/uploadPerTenantConfig")
        @Consumes("text/plain")
        @Produces("application/json")
        public javax.ws.rs.core.Response uploadPerTenantConfiguration​(String perTenantConfig,
                                                                      @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 TenantApiException
        Throws:
        TenantApiException
      • getPerTenantConfiguration

        @GET
        @Path("/uploadPerTenantConfig")
        @Produces("application/json")
        public javax.ws.rs.core.Response getPerTenantConfiguration​(@Context
                                                                   javax.servlet.http.HttpServletRequest request)
                                                            throws TenantApiException
        Throws:
        TenantApiException
      • deletePerTenantConfiguration

        @DELETE
        @Path("/uploadPerTenantConfig")
        public javax.ws.rs.core.Response deletePerTenantConfiguration​(@HeaderParam("X-Killbill-CreatedBy")
                                                                      String createdBy,
                                                                      @HeaderParam("X-Killbill-Reason")
                                                                      String reason,
                                                                      @HeaderParam("X-Killbill-Comment")
                                                                      String comment,
                                                                      @Context
                                                                      javax.servlet.http.HttpServletRequest request)
                                                               throws TenantApiException
        Throws:
        TenantApiException
      • uploadPluginPaymentStateMachineConfig

        @POST
        @Path("/uploadPluginPaymentStateMachineConfig/{pluginName:.*}")
        @Consumes("text/plain")
        @Produces("application/json")
        public javax.ws.rs.core.Response uploadPluginPaymentStateMachineConfig​(@PathParam("pluginName")
                                                                               String pluginName,
                                                                               String paymentStateMachineConfig,
                                                                               @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 TenantApiException
        Throws:
        TenantApiException
      • getPluginPaymentStateMachineConfig

        @GET
        @Path("/uploadPluginPaymentStateMachineConfig/{pluginName:.*}")
        @Produces("application/json")
        public javax.ws.rs.core.Response getPluginPaymentStateMachineConfig​(@PathParam("pluginName")
                                                                            String pluginName,
                                                                            @Context
                                                                            javax.servlet.http.HttpServletRequest request)
                                                                     throws TenantApiException
        Throws:
        TenantApiException
      • deletePluginPaymentStateMachineConfig

        @DELETE
        @Path("/uploadPluginPaymentStateMachineConfig/{pluginName:.*}")
        public javax.ws.rs.core.Response deletePluginPaymentStateMachineConfig​(@PathParam("pluginName")
                                                                               String pluginName,
                                                                               @HeaderParam("X-Killbill-CreatedBy")
                                                                               String createdBy,
                                                                               @HeaderParam("X-Killbill-Reason")
                                                                               String reason,
                                                                               @HeaderParam("X-Killbill-Comment")
                                                                               String comment,
                                                                               @Context
                                                                               javax.servlet.http.HttpServletRequest request)
                                                                        throws TenantApiException
        Throws:
        TenantApiException
      • insertUserKeyValue

        @POST
        @Path("/userKeyValue/{keyName:.*}")
        @Consumes("text/plain")
        @Produces("application/json")
        public javax.ws.rs.core.Response insertUserKeyValue​(@PathParam("keyName")
                                                            String key,
                                                            String value,
                                                            @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 TenantApiException
        Throws:
        TenantApiException
      • getUserKeyValue

        @GET
        @Path("/userKeyValue/{keyName:.*}")
        @Produces("application/json")
        public javax.ws.rs.core.Response getUserKeyValue​(@PathParam("keyName")
                                                         String key,
                                                         @Context
                                                         javax.servlet.http.HttpServletRequest request)
                                                  throws TenantApiException
        Throws:
        TenantApiException
      • deleteUserKeyValue

        @DELETE
        @Path("/userKeyValue/{keyName:.*}")
        public javax.ws.rs.core.Response deleteUserKeyValue​(@PathParam("keyName")
                                                            String key,
                                                            @HeaderParam("X-Killbill-CreatedBy")
                                                            String createdBy,
                                                            @HeaderParam("X-Killbill-Reason")
                                                            String reason,
                                                            @HeaderParam("X-Killbill-Comment")
                                                            String comment,
                                                            @Context
                                                            javax.servlet.http.HttpServletRequest request)
                                                     throws TenantApiException
        Throws:
        TenantApiException