Fix lazy loading in Razorpay payment endpoints
All checks were successful
build-and-deploy / build-deploy (push) Successful in 33s
All checks were successful
build-and-deploy / build-deploy (push) Successful in 33s
This commit is contained in:
@@ -25,6 +25,7 @@ import org.springframework.web.bind.annotation.RestController
|
|||||||
import org.springframework.web.client.RestTemplate
|
import org.springframework.web.client.RestTemplate
|
||||||
import org.springframework.web.server.ResponseStatusException
|
import org.springframework.web.server.ResponseStatusException
|
||||||
import org.springframework.http.HttpStatus
|
import org.springframework.http.HttpStatus
|
||||||
|
import org.springframework.transaction.annotation.Transactional
|
||||||
import java.time.OffsetDateTime
|
import java.time.OffsetDateTime
|
||||||
import java.util.Base64
|
import java.util.Base64
|
||||||
import java.util.UUID
|
import java.util.UUID
|
||||||
@@ -41,6 +42,7 @@ class RazorpayPaymentLinksController(
|
|||||||
) {
|
) {
|
||||||
|
|
||||||
@PostMapping("/payment-link")
|
@PostMapping("/payment-link")
|
||||||
|
@Transactional
|
||||||
fun createPaymentLink(
|
fun createPaymentLink(
|
||||||
@PathVariable propertyId: UUID,
|
@PathVariable propertyId: UUID,
|
||||||
@PathVariable bookingId: UUID,
|
@PathVariable bookingId: UUID,
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ import org.springframework.web.bind.annotation.RestController
|
|||||||
import org.springframework.web.client.RestTemplate
|
import org.springframework.web.client.RestTemplate
|
||||||
import org.springframework.web.server.ResponseStatusException
|
import org.springframework.web.server.ResponseStatusException
|
||||||
import org.springframework.http.HttpStatus
|
import org.springframework.http.HttpStatus
|
||||||
|
import org.springframework.transaction.annotation.Transactional
|
||||||
import java.time.OffsetDateTime
|
import java.time.OffsetDateTime
|
||||||
import java.util.Base64
|
import java.util.Base64
|
||||||
import java.util.UUID
|
import java.util.UUID
|
||||||
@@ -41,6 +42,7 @@ class RazorpayQrPayments(
|
|||||||
) {
|
) {
|
||||||
|
|
||||||
@PostMapping("/qr")
|
@PostMapping("/qr")
|
||||||
|
@Transactional
|
||||||
fun createQr(
|
fun createQr(
|
||||||
@PathVariable propertyId: UUID,
|
@PathVariable propertyId: UUID,
|
||||||
@PathVariable bookingId: UUID,
|
@PathVariable bookingId: UUID,
|
||||||
|
|||||||
Reference in New Issue
Block a user