From 09481c6e32f3e1e768cbbcf055c9566e86f87a99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ertu=C4=9Frul=20Berat=20ALLAHVERD=C4=B0?= Date: Wed, 29 Jul 2026 10:48:37 +0300 Subject: [PATCH] Added bnpl limit inquiry request body --- src/main/java/io/craftgate/adapter/PaymentAdapter.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/io/craftgate/adapter/PaymentAdapter.java b/src/main/java/io/craftgate/adapter/PaymentAdapter.java index cf7eb40..725b402 100644 --- a/src/main/java/io/craftgate/adapter/PaymentAdapter.java +++ b/src/main/java/io/craftgate/adapter/PaymentAdapter.java @@ -65,6 +65,7 @@ public PaymentResponse retrieveCheckoutPayment(String token) { String path = "/payment/v1/checkout-payments/" + token; return HttpClient.get(requestOptions.getBaseUrl() + path, createHeaders(path, requestOptions), PaymentResponse.class); } + public void expireCheckoutPayment(String token) { String path = "/payment/v1/checkout-payments/" + token; HttpClient.delete(requestOptions.getBaseUrl() + path, createHeaders(path, requestOptions)); @@ -266,12 +267,12 @@ public BnplPaymentVerifyResponse verifyBnplPayment(Long paymentId) { public BnplLimitInquiryResponse bnplLimitInquiryInit(BnplLimitInquiryRequest bnplLimitInquiryRequest) { String path = "/payment/v1/bnpl-payments/limit-inquiry/init"; - return HttpClient.post(requestOptions.getBaseUrl() + path, createHeaders(bnplLimitInquiryRequest, path, requestOptions), BnplLimitInquiryResponse.class); + return HttpClient.post(requestOptions.getBaseUrl() + path, createHeaders(bnplLimitInquiryRequest, path, requestOptions), bnplLimitInquiryRequest, BnplLimitInquiryResponse.class); } public BnplLimitInquiryResponse bnplLimitInquiry(BnplLimitInquiryRequest bnplLimitInquiryRequest) { String path = "/payment/v1/bnpl-payments/limit-inquiry"; - return HttpClient.post(requestOptions.getBaseUrl() + path, createHeaders(bnplLimitInquiryRequest, path, requestOptions), BnplLimitInquiryResponse.class); + return HttpClient.post(requestOptions.getBaseUrl() + path, createHeaders(bnplLimitInquiryRequest, path, requestOptions), bnplLimitInquiryRequest, BnplLimitInquiryResponse.class); } public InstantTransferBanksResponse retrieveActiveBanks() {