Class AccountResource

    • Constructor Detail

      • AccountResource

        @Inject
        public AccountResource​(JaxrsUriBuilder uriBuilder,
                               AccountUserApi accountApi,
                               InvoiceUserApi invoiceApi,
                               InvoicePaymentApi invoicePaymentApi,
                               PaymentApi paymentApi,
                               org.killbill.billing.util.api.TagUserApi tagUserApi,
                               org.killbill.billing.util.api.AuditUserApi auditUserApi,
                               org.killbill.billing.util.api.CustomFieldUserApi customFieldUserApi,
                               SubscriptionApi subscriptionApi,
                               OverdueApi overdueApi,
                               org.killbill.clock.Clock clock,
                               JaxrsExecutors jaxrsExecutors,
                               JaxrsConfig jaxrsConfig,
                               Context context,
                               org.killbill.billing.util.api.RecordIdApi recordIdApi,
                               org.killbill.notificationq.api.NotificationQueueService notificationQueueService)
    • Method Detail

      • getAccount

        @GET
        @Path("/{accountId:\\w+-\\w+-\\w+-\\w+-\\w+}")
        @Produces("application/json")
        public javax.ws.rs.core.Response getAccount​(@PathParam("accountId")
                                                    UUID accountId,
                                                    @QueryParam("accountWithBalance") @DefaultValue("false")
                                                    Boolean accountWithBalance,
                                                    @QueryParam("accountWithBalanceAndCBA") @DefaultValue("false")
                                                    Boolean accountWithBalanceAndCBA,
                                                    @QueryParam("audit") @DefaultValue("NONE")
                                                    AuditMode auditMode,
                                                    @Context
                                                    javax.servlet.http.HttpServletRequest request)
                                             throws AccountApiException
        Throws:
        AccountApiException
      • getAccounts

        @GET
        @Path("/pagination")
        @Produces("application/json")
        public javax.ws.rs.core.Response getAccounts​(@QueryParam("offset") @DefaultValue("0")
                                                     Long offset,
                                                     @QueryParam("limit") @DefaultValue("100")
                                                     Long limit,
                                                     @QueryParam("accountWithBalance") @DefaultValue("false")
                                                     Boolean accountWithBalance,
                                                     @QueryParam("accountWithBalanceAndCBA") @DefaultValue("false")
                                                     Boolean accountWithBalanceAndCBA,
                                                     @QueryParam("audit") @DefaultValue("NONE")
                                                     AuditMode auditMode,
                                                     @Context
                                                     javax.servlet.http.HttpServletRequest request)
                                              throws AccountApiException
        Throws:
        AccountApiException
      • searchAccounts

        @GET
        @Path("/search/{searchKey:.*}")
        @Produces("application/json")
        public javax.ws.rs.core.Response searchAccounts​(@PathParam("searchKey")
                                                        String searchKey,
                                                        @QueryParam("offset") @DefaultValue("0")
                                                        Long offset,
                                                        @QueryParam("limit") @DefaultValue("100")
                                                        Long limit,
                                                        @QueryParam("accountWithBalance") @DefaultValue("false")
                                                        Boolean accountWithBalance,
                                                        @QueryParam("accountWithBalanceAndCBA") @DefaultValue("false")
                                                        Boolean accountWithBalanceAndCBA,
                                                        @QueryParam("audit") @DefaultValue("NONE")
                                                        AuditMode auditMode,
                                                        @Context
                                                        javax.servlet.http.HttpServletRequest request)
                                                 throws AccountApiException
        Throws:
        AccountApiException
      • getAccountByKey

        @GET
        @Produces("application/json")
        public javax.ws.rs.core.Response getAccountByKey​(@QueryParam("externalKey")
                                                         String externalKey,
                                                         @QueryParam("accountWithBalance") @DefaultValue("false")
                                                         Boolean accountWithBalance,
                                                         @QueryParam("accountWithBalanceAndCBA") @DefaultValue("false")
                                                         Boolean accountWithBalanceAndCBA,
                                                         @QueryParam("audit") @DefaultValue("NONE")
                                                         AuditMode auditMode,
                                                         @Context
                                                         javax.servlet.http.HttpServletRequest request)
                                                  throws AccountApiException
        Throws:
        AccountApiException
      • createAccount

        @POST
        @Consumes("application/json")
        @Produces("application/json")
        public javax.ws.rs.core.Response createAccount​(AccountJson json,
                                                       @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 AccountApiException
        Throws:
        AccountApiException
      • updateAccount

        @PUT
        @Consumes("application/json")
        @Produces("application/json")
        @Path("/{accountId:\\w+-\\w+-\\w+-\\w+-\\w+}")
        public javax.ws.rs.core.Response updateAccount​(@PathParam("accountId")
                                                       UUID accountId,
                                                       AccountJson json,
                                                       @QueryParam("treatNullAsReset") @DefaultValue("false")
                                                       Boolean treatNullValueAsReset,
                                                       @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 AccountApiException
        Throws:
        AccountApiException
      • rebalanceExistingCBAOnAccount

        @PUT
        @Path("/{accountId:\\w+-\\w+-\\w+-\\w+-\\w+}/cbaRebalancing")
        @Consumes("application/json")
        @Produces("application/json")
        public javax.ws.rs.core.Response rebalanceExistingCBAOnAccount​(@PathParam("accountId")
                                                                       UUID accountId,
                                                                       @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 AccountApiException
        Throws:
        AccountApiException
      • getInvoicesForAccount

        @GET
        @Path("/{accountId:\\w+-\\w+-\\w+-\\w+-\\w+}/invoices")
        @Produces("application/json")
        public javax.ws.rs.core.Response getInvoicesForAccount​(@PathParam("accountId")
                                                               UUID accountId,
                                                               @QueryParam("startDate")
                                                               String startDateStr,
                                                               @QueryParam("endDate")
                                                               String endDateStr,
                                                               @QueryParam("withMigrationInvoices") @DefaultValue("false")
                                                               boolean withMigrationInvoices,
                                                               @QueryParam("unpaidInvoicesOnly") @DefaultValue("false")
                                                               boolean unpaidInvoicesOnly,
                                                               @QueryParam("includeVoidedInvoices") @DefaultValue("false")
                                                               boolean includeVoidedInvoices,
                                                               @QueryParam("includeInvoiceComponents") @DefaultValue("false")
                                                               boolean includeInvoiceComponents,
                                                               @QueryParam("invoicesFilter")
                                                               String invoicesFilter,
                                                               @QueryParam("audit") @DefaultValue("NONE")
                                                               AuditMode auditMode,
                                                               @Context
                                                               javax.servlet.http.HttpServletRequest request)
                                                        throws AccountApiException
        Throws:
        AccountApiException
      • getInvoicesForAccountPaginated

        @GET
        @Path("/{accountId:\\w+-\\w+-\\w+-\\w+-\\w+}/invoices/pagination")
        @Produces("application/json")
        public javax.ws.rs.core.Response getInvoicesForAccountPaginated​(@PathParam("accountId")
                                                                        UUID accountId,
                                                                        @QueryParam("offset") @DefaultValue("0")
                                                                        Long offset,
                                                                        @QueryParam("limit") @DefaultValue("100")
                                                                        Long limit,
                                                                        @QueryParam("audit") @DefaultValue("NONE")
                                                                        AuditMode auditMode,
                                                                        @Context
                                                                        javax.servlet.http.HttpServletRequest request)
                                                                 throws AccountApiException
        Throws:
        AccountApiException
      • getInvoicePayments

        @GET
        @Path("/{accountId:\\w+-\\w+-\\w+-\\w+-\\w+}/invoicePayments")
        @Produces("application/json")
        public javax.ws.rs.core.Response getInvoicePayments​(@PathParam("accountId")
                                                            UUID accountId,
                                                            @QueryParam("withPluginInfo") @DefaultValue("false")
                                                            Boolean withPluginInfo,
                                                            @QueryParam("withAttempts") @DefaultValue("false")
                                                            Boolean withAttempts,
                                                            @QueryParam("pluginProperty")
                                                            List<String> pluginPropertiesString,
                                                            @QueryParam("audit") @DefaultValue("NONE")
                                                            AuditMode auditMode,
                                                            @Context
                                                            javax.servlet.http.HttpServletRequest request)
                                                     throws PaymentApiException,
                                                            AccountApiException
        Throws:
        PaymentApiException
        AccountApiException
      • payAllInvoices

        @POST
        @Produces("application/json")
        @Consumes("application/json")
        @Path("/{accountId:\\w+-\\w+-\\w+-\\w+-\\w+}/invoicePayments")
        public javax.ws.rs.core.Response payAllInvoices​(@PathParam("accountId")
                                                        UUID accountId,
                                                        @QueryParam("paymentMethodId")
                                                        UUID inputPaymentMethodId,
                                                        @QueryParam("externalPayment") @DefaultValue("false")
                                                        Boolean externalPayment,
                                                        @QueryParam("paymentAmount")
                                                        BigDecimal paymentAmount,
                                                        @QueryParam("targetDate")
                                                        String targetDate,
                                                        @QueryParam("pluginProperty")
                                                        List<String> pluginPropertiesString,
                                                        @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 AccountApiException,
                                                        PaymentApiException,
                                                        InvoiceApiException
        Throws:
        AccountApiException
        PaymentApiException
        InvoiceApiException
      • createPaymentMethod

        @POST
        @Path("/{accountId:\\w+-\\w+-\\w+-\\w+-\\w+}/paymentMethods")
        @Consumes("application/json")
        @Produces("application/json")
        public javax.ws.rs.core.Response createPaymentMethod​(@PathParam("accountId")
                                                             UUID accountId,
                                                             PaymentMethodJson json,
                                                             @QueryParam("isDefault") @DefaultValue("false")
                                                             Boolean isDefault,
                                                             @QueryParam("payAllUnpaidInvoices") @DefaultValue("false")
                                                             Boolean payAllUnpaidInvoices,
                                                             @QueryParam("controlPluginName")
                                                             List<String> paymentControlPluginNames,
                                                             @QueryParam("pluginProperty")
                                                             List<String> pluginPropertiesString,
                                                             @HeaderParam("X-Killbill-CreatedBy")
                                                             String createdBy,
                                                             @HeaderParam("X-Killbill-Reason")
                                                             String reason,
                                                             @HeaderParam("X-Killbill-Comment")
                                                             String comment,
                                                             @Context
                                                             javax.ws.rs.core.UriInfo uriInfo,
                                                             @Context
                                                             javax.servlet.http.HttpServletRequest request)
                                                      throws AccountApiException,
                                                             PaymentApiException
        Throws:
        AccountApiException
        PaymentApiException
      • getPaymentMethodsForAccount

        @GET
        @Path("/{accountId:\\w+-\\w+-\\w+-\\w+-\\w+}/paymentMethods")
        @Produces("application/json")
        public javax.ws.rs.core.Response getPaymentMethodsForAccount​(@PathParam("accountId")
                                                                     UUID accountId,
                                                                     @QueryParam("withPluginInfo") @DefaultValue("false")
                                                                     Boolean withPluginInfo,
                                                                     @QueryParam("includedDeleted") @DefaultValue("false")
                                                                     Boolean includedDeleted,
                                                                     @QueryParam("pluginProperty")
                                                                     List<String> pluginPropertiesString,
                                                                     @QueryParam("audit") @DefaultValue("NONE")
                                                                     AuditMode auditMode,
                                                                     @Context
                                                                     javax.servlet.http.HttpServletRequest request)
                                                              throws AccountApiException,
                                                                     PaymentApiException
        Throws:
        AccountApiException
        PaymentApiException
      • refreshPaymentMethods

        @PUT
        @Path("/{accountId:\\w+-\\w+-\\w+-\\w+-\\w+}/paymentMethods/refresh")
        @Produces("application/json")
        public javax.ws.rs.core.Response refreshPaymentMethods​(@PathParam("accountId")
                                                               UUID accountId,
                                                               @QueryParam("pluginName")
                                                               String pluginName,
                                                               @QueryParam("pluginProperty")
                                                               List<String> pluginPropertiesString,
                                                               @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 AccountApiException,
                                                               PaymentApiException
        Throws:
        AccountApiException
        PaymentApiException
      • setDefaultPaymentMethod

        @PUT
        @Consumes("application/json")
        @Produces("application/json")
        @Path("/{accountId:\\w+-\\w+-\\w+-\\w+-\\w+}/paymentMethods/{paymentMethodId:\\w+-\\w+-\\w+-\\w+-\\w+}/setDefault")
        public javax.ws.rs.core.Response setDefaultPaymentMethod​(@PathParam("accountId")
                                                                 UUID accountId,
                                                                 @PathParam("paymentMethodId")
                                                                 UUID paymentMethodId,
                                                                 @QueryParam("payAllUnpaidInvoices") @DefaultValue("false")
                                                                 Boolean payAllUnpaidInvoices,
                                                                 @QueryParam("pluginProperty")
                                                                 List<String> pluginPropertiesString,
                                                                 @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 AccountApiException,
                                                                 PaymentApiException
        Throws:
        AccountApiException
        PaymentApiException
      • getPaymentsForAccount

        @GET
        @Path("/{accountId:\\w+-\\w+-\\w+-\\w+-\\w+}/payments")
        @Produces("application/json")
        public javax.ws.rs.core.Response getPaymentsForAccount​(@PathParam("accountId")
                                                               UUID accountId,
                                                               @QueryParam("withAttempts") @DefaultValue("false")
                                                               Boolean withAttempts,
                                                               @QueryParam("withPluginInfo") @DefaultValue("false")
                                                               Boolean withPluginInfo,
                                                               @QueryParam("pluginProperty")
                                                               List<String> pluginPropertiesString,
                                                               @QueryParam("audit") @DefaultValue("NONE")
                                                               AuditMode auditMode,
                                                               @Context
                                                               javax.servlet.http.HttpServletRequest request)
                                                        throws PaymentApiException
        Throws:
        PaymentApiException
      • processPaymentByExternalKey

        @POST
        @Path("/payments")
        @Consumes("application/json")
        @Produces("application/json")
        public javax.ws.rs.core.Response processPaymentByExternalKey​(PaymentTransactionJson json,
                                                                     @QueryParam("externalKey")
                                                                     String externalKey,
                                                                     @QueryParam("paymentMethodId")
                                                                     UUID paymentMethodId,
                                                                     @QueryParam("controlPluginName")
                                                                     List<String> paymentControlPluginNames,
                                                                     @QueryParam("pluginProperty")
                                                                     List<String> pluginPropertiesString,
                                                                     @HeaderParam("X-Killbill-CreatedBy")
                                                                     String createdBy,
                                                                     @HeaderParam("X-Killbill-Reason")
                                                                     String reason,
                                                                     @HeaderParam("X-Killbill-Comment")
                                                                     String comment,
                                                                     @Context
                                                                     javax.ws.rs.core.UriInfo uriInfo,
                                                                     @Context
                                                                     javax.servlet.http.HttpServletRequest request)
                                                              throws PaymentApiException,
                                                                     AccountApiException
        Throws:
        PaymentApiException
        AccountApiException
      • processPayment

        @POST
        @Path("/{accountId:\\w+-\\w+-\\w+-\\w+-\\w+}/payments")
        @Consumes("application/json")
        @Produces("application/json")
        public javax.ws.rs.core.Response processPayment​(@PathParam("accountId")
                                                        UUID accountId,
                                                        PaymentTransactionJson json,
                                                        @QueryParam("paymentMethodId")
                                                        UUID inputPaymentMethodId,
                                                        @QueryParam("controlPluginName")
                                                        List<String> paymentControlPluginNames,
                                                        @QueryParam("pluginProperty")
                                                        List<String> pluginPropertiesString,
                                                        @HeaderParam("X-Killbill-CreatedBy")
                                                        String createdBy,
                                                        @HeaderParam("X-Killbill-Reason")
                                                        String reason,
                                                        @HeaderParam("X-Killbill-Comment")
                                                        String comment,
                                                        @Context
                                                        javax.ws.rs.core.UriInfo uriInfo,
                                                        @Context
                                                        javax.servlet.http.HttpServletRequest request)
                                                 throws PaymentApiException,
                                                        AccountApiException
        Throws:
        PaymentApiException
        AccountApiException
      • getBlockingStates

        @GET
        @Path("/{accountId:\\w+-\\w+-\\w+-\\w+-\\w+}/block")
        @Produces("application/json")
        public javax.ws.rs.core.Response getBlockingStates​(@PathParam("accountId")
                                                           UUID accountId,
                                                           @QueryParam("blockingStateTypes")
                                                           List<BlockingStateType> typeFilter,
                                                           @QueryParam("blockingStateSvcs")
                                                           List<String> svcsFilter,
                                                           @QueryParam("audit") @DefaultValue("NONE")
                                                           AuditMode auditMode,
                                                           @Context
                                                           javax.servlet.http.HttpServletRequest request)
                                                    throws EntitlementApiException
        Throws:
        EntitlementApiException
      • getBlockingStateAuditLogsWithHistory

        @GET
        @Path("/block/{blockingId:\\w+-\\w+-\\w+-\\w+-\\w+}/auditLogsWithHistory")
        @Produces("application/json")
        public javax.ws.rs.core.Response getBlockingStateAuditLogsWithHistory​(@PathParam("blockingId")
                                                                              UUID blockingId,
                                                                              @Context
                                                                              javax.servlet.http.HttpServletRequest request)
      • getCustomFields

        @GET
        @Path("/{accountId:\\w+-\\w+-\\w+-\\w+-\\w+}/customFields")
        @Produces("application/json")
        public javax.ws.rs.core.Response getCustomFields​(@PathParam("accountId")
                                                         UUID accountId,
                                                         @QueryParam("audit") @DefaultValue("NONE")
                                                         AuditMode auditMode,
                                                         @Context
                                                         javax.servlet.http.HttpServletRequest request)
      • getAllCustomFields

        @GET
        @Path("/{accountId:\\w+-\\w+-\\w+-\\w+-\\w+}/allCustomFields")
        @Produces("application/json")
        public javax.ws.rs.core.Response getAllCustomFields​(@PathParam("accountId")
                                                            UUID accountId,
                                                            @QueryParam("objectType")
                                                            org.killbill.billing.ObjectType objectType,
                                                            @QueryParam("audit") @DefaultValue("NONE")
                                                            AuditMode auditMode,
                                                            @Context
                                                            javax.servlet.http.HttpServletRequest request)
      • createAccountCustomFields

        @POST
        @Path("/{accountId:\\w+-\\w+-\\w+-\\w+-\\w+}/customFields")
        @Consumes("application/json")
        @Produces("application/json")
        public javax.ws.rs.core.Response createAccountCustomFields​(@PathParam("accountId")
                                                                   UUID accountId,
                                                                   List<CustomFieldJson> customFields,
                                                                   @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 org.killbill.billing.util.api.CustomFieldApiException
        Throws:
        org.killbill.billing.util.api.CustomFieldApiException
      • modifyAccountCustomFields

        @PUT
        @Path("/{accountId:\\w+-\\w+-\\w+-\\w+-\\w+}/customFields")
        @Consumes("application/json")
        @Produces("application/json")
        public javax.ws.rs.core.Response modifyAccountCustomFields​(@PathParam("accountId")
                                                                   UUID accountId,
                                                                   List<CustomFieldJson> customFields,
                                                                   @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 org.killbill.billing.util.api.CustomFieldApiException
        Throws:
        org.killbill.billing.util.api.CustomFieldApiException
      • deleteAccountCustomFields

        @DELETE
        @Path("/{accountId:\\w+-\\w+-\\w+-\\w+-\\w+}/customFields")
        @Consumes("application/json")
        @Produces("application/json")
        public javax.ws.rs.core.Response deleteAccountCustomFields​(@PathParam("accountId")
                                                                   UUID accountId,
                                                                   @QueryParam("customField")
                                                                   List<UUID> customFieldList,
                                                                   @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 org.killbill.billing.util.api.CustomFieldApiException
        Throws:
        org.killbill.billing.util.api.CustomFieldApiException
      • getTags

        @GET
        @Path("/{accountId:\\w+-\\w+-\\w+-\\w+-\\w+}/tags")
        @Produces("application/json")
        public javax.ws.rs.core.Response getTags​(@PathParam("accountId")
                                                 UUID accountId,
                                                 @QueryParam("includedDeleted") @DefaultValue("false")
                                                 Boolean includedDeleted,
                                                 @QueryParam("audit") @DefaultValue("NONE")
                                                 AuditMode auditMode,
                                                 @Context
                                                 javax.servlet.http.HttpServletRequest request)
                                          throws org.killbill.billing.util.api.TagDefinitionApiException
        Throws:
        org.killbill.billing.util.api.TagDefinitionApiException
      • getAllTags

        @GET
        @Path("/{accountId:\\w+-\\w+-\\w+-\\w+-\\w+}/allTags")
        @Produces("application/json")
        public javax.ws.rs.core.Response getAllTags​(@PathParam("accountId")
                                                    UUID accountId,
                                                    @QueryParam("objectType")
                                                    org.killbill.billing.ObjectType objectType,
                                                    @QueryParam("includedDeleted") @DefaultValue("false")
                                                    Boolean includedDeleted,
                                                    @QueryParam("audit") @DefaultValue("NONE")
                                                    AuditMode auditMode,
                                                    @Context
                                                    javax.servlet.http.HttpServletRequest request)
                                             throws org.killbill.billing.util.api.TagDefinitionApiException
        Throws:
        org.killbill.billing.util.api.TagDefinitionApiException
      • createAccountTags

        @POST
        @Path("/{accountId:\\w+-\\w+-\\w+-\\w+-\\w+}/tags")
        @Consumes("application/json")
        @Produces("application/json")
        public javax.ws.rs.core.Response createAccountTags​(@PathParam("accountId")
                                                           UUID accountId,
                                                           List<UUID> tagList,
                                                           @HeaderParam("X-Killbill-CreatedBy")
                                                           String createdBy,
                                                           @HeaderParam("X-Killbill-Reason")
                                                           String reason,
                                                           @HeaderParam("X-Killbill-Comment")
                                                           String comment,
                                                           @Context
                                                           javax.ws.rs.core.UriInfo uriInfo,
                                                           @Context
                                                           javax.servlet.http.HttpServletRequest request)
                                                    throws org.killbill.billing.util.api.TagApiException
        Throws:
        org.killbill.billing.util.api.TagApiException
      • deleteAccountTags

        @DELETE
        @Path("/{accountId:\\w+-\\w+-\\w+-\\w+-\\w+}/tags")
        @Consumes("application/json")
        @Produces("application/json")
        public javax.ws.rs.core.Response deleteAccountTags​(@PathParam("accountId")
                                                           UUID accountId,
                                                           @QueryParam("tagDef")
                                                           List<UUID> tagList,
                                                           @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 org.killbill.billing.util.api.TagApiException,
                                                           AccountApiException
        Throws:
        org.killbill.billing.util.api.TagApiException
        AccountApiException
      • getEmails

        @GET
        @Path("/{accountId:\\w+-\\w+-\\w+-\\w+-\\w+}/emails")
        @Produces("application/json")
        public javax.ws.rs.core.Response getEmails​(@PathParam("accountId")
                                                   UUID accountId,
                                                   @Context
                                                   javax.servlet.http.HttpServletRequest request)
      • addEmail

        @POST
        @Path("/{accountId:\\w+-\\w+-\\w+-\\w+-\\w+}/emails")
        @Consumes("application/json")
        @Produces("application/json")
        public javax.ws.rs.core.Response addEmail​(@PathParam("accountId")
                                                  UUID accountId,
                                                  AccountEmailJson json,
                                                  @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 AccountApiException
        Throws:
        AccountApiException
      • removeEmail

        @DELETE
        @Path("/{accountId:\\w+-\\w+-\\w+-\\w+-\\w+}/emails/{email}")
        @Produces("application/json")
        public javax.ws.rs.core.Response removeEmail​(@PathParam("accountId")
                                                     UUID accountId,
                                                     @PathParam("email")
                                                     String email,
                                                     @HeaderParam("X-Killbill-CreatedBy")
                                                     String createdBy,
                                                     @HeaderParam("X-Killbill-Reason")
                                                     String reason,
                                                     @HeaderParam("X-Killbill-Comment")
                                                     String comment,
                                                     @Context
                                                     javax.servlet.http.HttpServletRequest request)
      • getAccountEmailAuditLogsWithHistory

        @GET
        @Path("/{accountId:\\w+-\\w+-\\w+-\\w+-\\w+}/emails/{accountEmailId:\\w+-\\w+-\\w+-\\w+-\\w+}/auditLogsWithHistory")
        @Produces("application/json")
        public javax.ws.rs.core.Response getAccountEmailAuditLogsWithHistory​(@PathParam("accountId")
                                                                             UUID accountId,
                                                                             @PathParam("accountEmailId")
                                                                             UUID accountEmailId,
                                                                             @Context
                                                                             javax.servlet.http.HttpServletRequest request)
                                                                      throws AccountApiException
        Throws:
        AccountApiException
      • getChildrenAccounts

        @GET
        @Path("/{accountId:\\w+-\\w+-\\w+-\\w+-\\w+}/children")
        @Produces("application/json")
        public javax.ws.rs.core.Response getChildrenAccounts​(@PathParam("accountId")
                                                             UUID parentAccountId,
                                                             @QueryParam("accountWithBalance") @DefaultValue("false")
                                                             Boolean accountWithBalance,
                                                             @QueryParam("accountWithBalanceAndCBA") @DefaultValue("false")
                                                             Boolean accountWithBalanceAndCBA,
                                                             @QueryParam("audit") @DefaultValue("NONE")
                                                             AuditMode auditMode,
                                                             @Context
                                                             javax.servlet.http.HttpServletRequest request)
                                                      throws AccountApiException
        Throws:
        AccountApiException
      • transferChildCreditToParent

        @PUT
        @Path("/{childAccountId:\\w+-\\w+-\\w+-\\w+-\\w+}/transferCredit")
        @Consumes("application/json")
        @Produces("application/json")
        public javax.ws.rs.core.Response transferChildCreditToParent​(@PathParam("childAccountId")
                                                                     UUID childAccountId,
                                                                     @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 InvoiceApiException
        Throws:
        InvoiceApiException
      • getAccountAuditLogs

        @GET
        @Path("/{accountId:\\w+-\\w+-\\w+-\\w+-\\w+}/auditLogs")
        @Produces("application/json")
        public javax.ws.rs.core.Response getAccountAuditLogs​(@PathParam("accountId")
                                                             UUID accountId,
                                                             @Context
                                                             javax.servlet.http.HttpServletRequest request)
                                                      throws AccountApiException
        Throws:
        AccountApiException
      • getAccountAuditLogsWithHistory

        @GET
        @Path("/{accountId:\\w+-\\w+-\\w+-\\w+-\\w+}/auditLogsWithHistory")
        @Produces("application/json")
        public javax.ws.rs.core.Response getAccountAuditLogsWithHistory​(@PathParam("accountId")
                                                                        UUID accountId,
                                                                        @Context
                                                                        javax.servlet.http.HttpServletRequest request)
                                                                 throws AccountApiException
        Throws:
        AccountApiException