diff --git a/src/main/java/com/iyzipay/model/BasketItem.java b/src/main/java/com/iyzipay/model/BasketItem.java index 70aa3ab..03c8c1e 100644 --- a/src/main/java/com/iyzipay/model/BasketItem.java +++ b/src/main/java/com/iyzipay/model/BasketItem.java @@ -19,6 +19,8 @@ public class BasketItem { private boolean chargedFromMerchant; private BigDecimal chargedPriceFromMerchant; + private BigDecimal withholdingTax; + public String getId() { return id; @@ -108,6 +110,14 @@ public void setChargedPriceFromMerchant(BigDecimal chargedPriceFromMerchant) { this.chargedPriceFromMerchant = chargedPriceFromMerchant; } + public BigDecimal getWithholdingTax() { + return withholdingTax; + } + + public void setWithholdingTax(BigDecimal withholdingTax) { + this.withholdingTax = withholdingTax; + } + @Override public String toString() { return new ToStringRequestBuilder(this) diff --git a/src/main/java/com/iyzipay/model/PaymentItem.java b/src/main/java/com/iyzipay/model/PaymentItem.java index 89b85dc..3dde3b8 100644 --- a/src/main/java/com/iyzipay/model/PaymentItem.java +++ b/src/main/java/com/iyzipay/model/PaymentItem.java @@ -31,6 +31,7 @@ public class PaymentItem extends IyzipayResource { private BigDecimal subMerchantPayoutAmount; private BigDecimal merchantPayoutAmount; private ConvertedPayout convertedPayout; + private BigDecimal withholdingTax; public static PaymentItem update(UpdatePaymentItemRequest request, Options options) { String path = "/payment/item"; @@ -193,6 +194,14 @@ public void setConvertedPayout(ConvertedPayout convertedPayout) { this.convertedPayout = convertedPayout; } + public BigDecimal getWithholdingTax() { + return withholdingTax; + } + + public void setWithholdingTax(BigDecimal withholdingTax) { + this.withholdingTax = withholdingTax; + } + @Override public String toString() { return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE); diff --git a/src/main/java/com/iyzipay/request/UpdatePaymentItemRequest.java b/src/main/java/com/iyzipay/request/UpdatePaymentItemRequest.java index 1fefca1..be7b1dd 100644 --- a/src/main/java/com/iyzipay/request/UpdatePaymentItemRequest.java +++ b/src/main/java/com/iyzipay/request/UpdatePaymentItemRequest.java @@ -15,6 +15,8 @@ public class UpdatePaymentItemRequest extends Request { private boolean crossBookingOperation; private BigDecimal chargedPriceFromMerchant; + private BigDecimal withholdingTax; + public String getSubMerchantKey() { return subMerchantKey; } @@ -63,6 +65,14 @@ public void setChargedPriceFromMerchant(BigDecimal chargedPriceFromMerchant) { this.chargedPriceFromMerchant = chargedPriceFromMerchant; } + public BigDecimal getWithholdingTax() { + return withholdingTax; + } + + public void setWithholdingTax(BigDecimal withholdingTax) { + this.withholdingTax = withholdingTax; + } + @Override public String toString() { return new ToStringRequestBuilder(this)