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
      • mapper

        private final com.fasterxml.jackson.databind.ObjectMapper mapper
    • 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
      • handlePayoutPaidEvent

        private java.lang.Object handlePayoutPaidEvent​(com.stripe.model.StripeObject stripeObject)
      • handlePaymentIntentFailedEvent

        private java.lang.Object handlePaymentIntentFailedEvent​(com.stripe.model.StripeObject stripeObject)
      • handlePaymentIntentSucceededEvent

        private java.lang.Object handlePaymentIntentSucceededEvent​(com.stripe.model.StripeObject stripeObject)
      • handlePaymentIntentCreatedEvent

        private java.lang.Object handlePaymentIntentCreatedEvent​(com.stripe.model.StripeObject stripeObject)
      • handleSubscriptionCanceledEvent

        private java.lang.Object handleSubscriptionCanceledEvent​(com.stripe.model.Event event,
                                                                 com.stripe.model.StripeObject stripeObject)
                                                          throws com.stripe.exception.StripeException
        Throws:
        com.stripe.exception.StripeException
      • handleSubscriptionDeletedEvent

        private java.lang.Object handleSubscriptionDeletedEvent​(com.stripe.model.Event event,
                                                                com.stripe.model.StripeObject stripeObject)
      • handleCustomerDeletedEvent

        private java.lang.Object handleCustomerDeletedEvent​(com.stripe.model.Event event,
                                                            com.stripe.model.StripeObject stripeObject)
      • handleLexofficeContactChanged

        private java.lang.Object handleLexofficeContactChanged​(io.rocketbase.lexoffice.model.WebhookCallback payload)
      • afterPropertiesSet

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