Class BraintreeResource


  • @Path("/braintree")
    public class BraintreeResource
    extends Object
    • Field Detail

      • producerTemplate

        @Inject
        org.apache.camel.ProducerTemplate producerTemplate
    • Constructor Detail

      • BraintreeResource

        public BraintreeResource()
    • Method Detail

      • generateToken

        @Path("/token")
        @GET
        @Produces("text/plain")
        public String generateToken()
                             throws Exception
        Throws:
        Exception
      • sale

        @Path("/sale")
        @POST
        @Produces("application/json")
        public javax.ws.rs.core.Response sale()
                                       throws Exception
        Throws:
        Exception
      • refund

        @Path("/refund")
        @POST
        @Produces("application/json")
        public javax.ws.rs.core.Response refund​(String transactionId)
                                         throws Exception
        Throws:
        Exception