Package co.mastermindcms.modules.rest
Class EcommerceBillingController
- java.lang.Object
-
- co.mastermindcms.modules.rest.EcommerceBillingController
-
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
@RestController public class EcommerceBillingController extends java.lang.Object implements org.springframework.beans.factory.InitializingBean
-
-
Field Summary
Fields Modifier and Type Field Description private javax.servlet.http.HttpSession
httpSession
private LexOfficeService
lexOfficeService
private OrderService
orderService
private StripeHandlerService
stripeHandlerService
private YookassaHandlerService
yookassaHandlerService
-
Constructor Summary
Constructors Constructor Description EcommerceBillingController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterPropertiesSet()
org.springframework.http.ResponseEntity<?>
handleLexofficeWebhooks(io.rocketbase.lexoffice.model.WebhookCallback payload, javax.servlet.http.HttpServletResponse response)
org.springframework.http.ResponseEntity<?>
handleStripeWebhooks(java.lang.String payload, javax.servlet.http.HttpServletResponse response)
org.springframework.http.ResponseEntity<?>
handleYooKassaWebhooks(java.lang.String payload, javax.servlet.http.HttpServletResponse response)
-
-
-
Field Detail
-
httpSession
@Autowired private javax.servlet.http.HttpSession httpSession
-
orderService
@Autowired private OrderService orderService
-
lexOfficeService
@Autowired private LexOfficeService lexOfficeService
-
stripeHandlerService
@Autowired private StripeHandlerService stripeHandlerService
-
yookassaHandlerService
@Autowired private YookassaHandlerService yookassaHandlerService
-
-
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 interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
java.lang.Exception
-
-