This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@SqlQuery("SELECT * FROM payment_requests p JOIN gateway_accounts g ON p.gateway_account_id = g.id WHERE p.external_id = :externalId AND g.external_id = :accountExternalId" )
@SingleValueResult(PaymentRequest.class)
@SqlQuery("SELECT * FROM payment_requests p JOIN gateway_accounts g ON p.gateway_account_id = g.id WHERE p.external_id = :externalId AND g.external_id = :accountExternalId")
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -19,7 +18,9 @@ public Map<String, Object> getTokenByPaymentRequestId(Long paymentRequestId) {
handle
.createQuery("SELECT * from tokens t WHERE t.payment_request_id = :payment_request_id ORDER BY t.id DESC")
.bind("payment_request_id", paymentRequestId)
.first()
.mapToMap()
.findFirst()
.get()
);
}
@@ -28,8 +29,9 @@ public String getTokenByPaymentRequestExternalId(String externalId) {
handle
.createQuery("SELECT secure_redirect_token from tokens t JOIN payment_requests p ON p.id = t.payment_request_id WHERE p.external_id = :external_id ORDER BY t.id DESC")
.bind("external_id", externalId)
.map(StringColumnMapper.INSTANCE)
.first()
.mapTo(String.class)
.findFirst()
.get()
);
}
@@ -38,7 +40,9 @@ public Map<String, Object> getPaymentRequestById(Long id) {
handle
.createQuery("SELECT * from payment_requests p WHERE p.id = :id")
.bind("id", id)
.first()
.mapToMap()
.findFirst()
.get()
);
}
@@ -47,7 +51,9 @@ public Map<String, Object> getPaymentRequestEventById(Long id) {
handle
.createQuery("SELECT * from payment_request_events p WHERE p.id = :id")
.bind("id", id)
.first()
.mapToMap()
.findFirst()
.get()
);
}
@@ -56,7 +62,9 @@ public Map<String, Object> getTransactionById(Long id) {
handle
.createQuery("SELECT * from transactions t WHERE t.id = :id")
.bind("id", id)
.first()
.mapToMap()
.findFirst()
.get()
);
}
@@ -65,7 +73,9 @@ public Map<String, Object> getPayerById(Long id) {
handle
.createQuery("SELECT * from payers p WHERE p.id = :id")
.bind("id", id)
.first()
.mapToMap()
.findFirst()
.get()
);
}
@@ -74,7 +84,9 @@ public Map<String, Object> getPayerByPaymentRequestExternalId(String externalId)
handle
.createQuery("SELECT p.* from payers p INNER JOIN payment_requests r ON p.payment_request_id = r.id WHERE r.external_id = :externalId")
.bind("externalId", externalId)
.first()
.mapToMap()
.findFirst()
.get()
);
}
@@ -83,7 +95,9 @@ public Map<String, Object> getMandateById(Long id) {
handle
.createQuery("SELECT * from mandates t WHERE t.id = :id")
.bind("id", id)
.first()
.mapToMap()
.findFirst()
.get()
);
}
@@ -92,7 +106,9 @@ public Map<String, Object> getGatewayAccountById(Long id) {
handle
.createQuery("SELECT * from gateway_accounts t WHERE t.id = :id")
.bind("id", id)
.first()
.mapToMap()
.findFirst()
.get()
);
}
@@ -101,7 +117,9 @@ public Map<String, Object> getGoCardlessCustomerById(Long id) {
handle
.createQuery("SELECT * from gocardless_customers g WHERE g.id = :id")
.bind("id", id)
.first()
.mapToMap()
.findFirst()
.get()
);
}
@@ -110,15 +128,20 @@ public Map<String, Object> getGoCardlessMandateById(Long id) {
handle
.createQuery("SELECT * from gocardless_mandates g WHERE g.id = :id")