From eeccdf28874758fbc3be07cdb4e3094a8300bf89 Mon Sep 17 00:00:00 2001 From: "ali.gediz" Date: Tue, 5 Nov 2024 13:40:52 +0300 Subject: [PATCH] DEV-27138 adds externalSubMerchantId field to BasketItem and UpdatePaymentItemRequest --- src/main/java/com/iyzipay/model/BasketItem.java | 11 +++++++++++ .../com/iyzipay/request/UpdatePaymentItemRequest.java | 11 +++++++++++ 2 files changed, 22 insertions(+) diff --git a/src/main/java/com/iyzipay/model/BasketItem.java b/src/main/java/com/iyzipay/model/BasketItem.java index d7c4fea..70aa3ab 100644 --- a/src/main/java/com/iyzipay/model/BasketItem.java +++ b/src/main/java/com/iyzipay/model/BasketItem.java @@ -13,6 +13,8 @@ public class BasketItem { private String category2; private String itemType; private String subMerchantKey; + + private String externalSubMerchantId; private BigDecimal subMerchantPrice; private boolean chargedFromMerchant; private BigDecimal chargedPriceFromMerchant; @@ -70,6 +72,14 @@ public String getSubMerchantKey() { return subMerchantKey; } + public String getExternalSubMerchantId() { + return externalSubMerchantId; + } + + public void setExternalSubMerchantId(String externalSubMerchantId) { + this.externalSubMerchantId = externalSubMerchantId; + } + public void setSubMerchantKey(String subMerchantKey) { this.subMerchantKey = subMerchantKey; } @@ -108,6 +118,7 @@ public String toString() { .append("category2", category2) .append("itemType", itemType) .append("subMerchantKey", subMerchantKey) + .append("externalSubMerchantId", externalSubMerchantId) .append("subMerchantPrice", subMerchantPrice) .toString(); } diff --git a/src/main/java/com/iyzipay/request/UpdatePaymentItemRequest.java b/src/main/java/com/iyzipay/request/UpdatePaymentItemRequest.java index d795af0..1fefca1 100644 --- a/src/main/java/com/iyzipay/request/UpdatePaymentItemRequest.java +++ b/src/main/java/com/iyzipay/request/UpdatePaymentItemRequest.java @@ -8,6 +8,8 @@ public class UpdatePaymentItemRequest extends Request { private String subMerchantKey; + private String externalSubMerchantId; + private Long paymentTransactionId; private BigDecimal subMerchantPrice; private boolean crossBookingOperation; @@ -21,6 +23,14 @@ public void setSubMerchantKey(String subMerchantKey) { this.subMerchantKey = subMerchantKey; } + public String getExternalSubMerchantId() { + return externalSubMerchantId; + } + + public void setExternalSubMerchantId(String externalSubMerchantId) { + this.externalSubMerchantId = externalSubMerchantId; + } + public Long getPaymentTransactionId() { return paymentTransactionId; } @@ -58,6 +68,7 @@ public String toString() { return new ToStringRequestBuilder(this) .appendSuper(super.toString()) .append("subMerchantKey", subMerchantKey) + .append("externalSubMerchantId", externalSubMerchantId) .append("paymentTransactionId", paymentTransactionId) .append("subMerchantPrice", subMerchantPrice) .toString();