Class EcommerceBillingController

  • All Implemented Interfaces:
    org.springframework.beans.factory.InitializingBean

    @RestController
    public class EcommerceBillingController
    extends java.lang.Object
    implements org.springframework.beans.factory.InitializingBean
    • Field Detail

      • httpSession

        @Autowired
        private javax.servlet.http.HttpSession httpSession
      • orderService

        @Autowired
        private OrderService orderService
    • Constructor Detail

      • EcommerceBillingController

        public EcommerceBillingController()
    • Method Detail

      • handleLexofficeWebhooks

        @PostMapping(value="/api/v1/lexoffice",
                     consumes="application/json")
        @ResponseBody
        public org.springframework.http.ResponseEntity<?> handleLexofficeWebhooks​(@RequestBody
                                                                                  io.rocketbase.lexoffice.model.WebhookCallback payload,
                                                                                  javax.servlet.http.HttpServletResponse response)
                                                                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • handleStripeWebhooks

        @PostMapping("/api/v1/stripe")
        @ResponseBody
        public org.springframework.http.ResponseEntity<?> handleStripeWebhooks​(@RequestBody
                                                                               java.lang.String payload,
                                                                               javax.servlet.http.HttpServletResponse response)
                                                                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • handleYooKassaWebhooks

        @PostMapping("/api/v1/yookassa")
        @ResponseBody
        public org.springframework.http.ResponseEntity<?> handleYooKassaWebhooks​(@RequestBody
                                                                                 java.lang.String payload,
                                                                                 javax.servlet.http.HttpServletResponse response)
                                                                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws java.lang.Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        java.lang.Exception