From f550dd1ea65b43cb678107e6cd2ff7bcdd8773d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tuncer=20ERG=C4=B0N?= Date: Wed, 13 Nov 2024 14:58:54 +0300 Subject: [PATCH 1/2] Adds `refundHostReference` field to the Refund model --- src/main/java/com/iyzipay/model/Refund.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/com/iyzipay/model/Refund.java b/src/main/java/com/iyzipay/model/Refund.java index 51b3dab..e1ec285 100644 --- a/src/main/java/com/iyzipay/model/Refund.java +++ b/src/main/java/com/iyzipay/model/Refund.java @@ -16,6 +16,7 @@ public class Refund extends IyzipayResource { private String connectorName; private String authCode; private String hostReference; + private String refundHostReference; public static Refund create(CreateRefundRequest request, Options options) { String path = "/payment/refund"; @@ -81,4 +82,11 @@ public String getHostReference() { public void setHostReference(String hostReference) { this.hostReference = hostReference; } + public String getRefundHostReference() { + return refundHostReference; + } + + public void setRefundHostReference(String refundHostReference) { + this.refundHostReference = refundHostReference; + } } From d4b9c71d3c5152ff2186d9373be03a307f3b7f9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tuncer=20ERG=C4=B0N?= Date: Wed, 13 Nov 2024 14:59:14 +0300 Subject: [PATCH 2/2] Adds `cancelHostReference` field to the Cancel model --- src/main/java/com/iyzipay/model/Cancel.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/java/com/iyzipay/model/Cancel.java b/src/main/java/com/iyzipay/model/Cancel.java index 238a9a7..a2b1953 100644 --- a/src/main/java/com/iyzipay/model/Cancel.java +++ b/src/main/java/com/iyzipay/model/Cancel.java @@ -15,6 +15,7 @@ public class Cancel extends IyzipayResource { private String connectorName; private String authCode; private String hostReference; + private String cancelHostReference; public static Cancel create(CreateCancelRequest request, Options options) { String path = "/payment/cancel"; @@ -72,4 +73,12 @@ public String getHostReference() { public void setHostReference(String hostReference) { this.hostReference = hostReference; } + + public String getCancelHostReference() { + return cancelHostReference; + } + + public void setCancelHostReference(String cancelHostReference) { + this.cancelHostReference = cancelHostReference; + } }