Class PaymentMethodResource

    • Constructor Detail

      • PaymentMethodResource

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

      • getPaymentMethod

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

        @GET
        @Produces("application/json")
        public javax.ws.rs.core.Response getPaymentMethodByKey​(@QueryParam("externalKey")
                                                               String externalKey,
                                                               @QueryParam("includedDeleted") @DefaultValue("false")
                                                               Boolean includedDeleted,
                                                               @QueryParam("withPluginInfo") @DefaultValue("false")
                                                               Boolean withPluginInfo,
                                                               @QueryParam("pluginProperty")
                                                               List<String> pluginPropertiesString,
                                                               @QueryParam("audit") @DefaultValue("NONE")
                                                               AuditMode auditMode,
                                                               @Context
                                                               javax.servlet.http.HttpServletRequest request)
                                                        throws AccountApiException,
                                                               PaymentApiException
        Throws:
        AccountApiException
        PaymentApiException
      • getPaymentMethods

        @GET
        @Path("/pagination")
        @Produces("application/json")
        public javax.ws.rs.core.Response getPaymentMethods​(@QueryParam("offset") @DefaultValue("0")
                                                           Long offset,
                                                           @QueryParam("limit") @DefaultValue("100")
                                                           Long limit,
                                                           @QueryParam("pluginName")
                                                           String pluginName,
                                                           @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
      • searchPaymentMethods

        @GET
        @Path("/search/{searchKey:.*}")
        @Produces("application/json")
        public javax.ws.rs.core.Response searchPaymentMethods​(@PathParam("searchKey")
                                                              String searchKey,
                                                              @QueryParam("offset") @DefaultValue("0")
                                                              Long offset,
                                                              @QueryParam("limit") @DefaultValue("100")
                                                              Long limit,
                                                              @QueryParam("pluginName")
                                                              String pluginName,
                                                              @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,
                                                              AccountApiException
        Throws:
        PaymentApiException
        AccountApiException
      • deletePaymentMethod

        @DELETE
        @Produces("application/json")
        @Path("/{paymentMethodId:\\w+-\\w+-\\w+-\\w+-\\w+}")
        public javax.ws.rs.core.Response deletePaymentMethod​(@PathParam("paymentMethodId")
                                                             UUID paymentMethodId,
                                                             @QueryParam("deleteDefaultPmWithAutoPayOff") @DefaultValue("false")
                                                             Boolean deleteDefaultPaymentMethodWithAutoPayOff,
                                                             @QueryParam("forceDefaultPmDeletion") @DefaultValue("false")
                                                             Boolean forceDefaultPaymentMethodDeletion,
                                                             @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 PaymentApiException,
                                                             AccountApiException
        Throws:
        PaymentApiException
        AccountApiException
      • getCustomFields

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

        @POST
        @Path("/{paymentMethodId:\\w+-\\w+-\\w+-\\w+-\\w+}/customFields")
        @Consumes("application/json")
        @Produces("application/json")
        public javax.ws.rs.core.Response createPaymentMethodCustomFields​(@PathParam("paymentMethodId")
                                                                         UUID paymentMethodId,
                                                                         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
      • modifyPaymentMethodCustomFields

        @PUT
        @Path("/{paymentMethodId:\\w+-\\w+-\\w+-\\w+-\\w+}/customFields")
        @Consumes("application/json")
        @Produces("application/json")
        public javax.ws.rs.core.Response modifyPaymentMethodCustomFields​(@PathParam("paymentMethodId")
                                                                         UUID paymentMethodId,
                                                                         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
      • deletePaymentMethodCustomFields

        @DELETE
        @Path("/{paymentMethodId:\\w+-\\w+-\\w+-\\w+-\\w+}/customFields")
        @Consumes("application/json")
        @Produces("application/json")
        public javax.ws.rs.core.Response deletePaymentMethodCustomFields​(@PathParam("paymentMethodId")
                                                                         UUID paymentMethodId,
                                                                         @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
      • getPaymentMethodAuditLogsWithHistory

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