Skip to content

Commit

Permalink
DEV-30204 adds withholdingTax parameter dor basket items
Browse files Browse the repository at this point in the history
  • Loading branch information
recaifurkan committed Dec 26, 2024
1 parent 8f8bb70 commit 90e6af6
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/main/java/com/iyzipay/model/BasketItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ public class BasketItem {
private boolean chargedFromMerchant;
private BigDecimal chargedPriceFromMerchant;

private BigDecimal withholdingTax;


public String getId() {
return id;
Expand Down Expand Up @@ -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)
Expand Down
9 changes: 9 additions & 0 deletions src/main/java/com/iyzipay/model/PaymentItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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);
Expand Down
10 changes: 10 additions & 0 deletions src/main/java/com/iyzipay/request/UpdatePaymentItemRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ public class UpdatePaymentItemRequest extends Request {
private boolean crossBookingOperation;
private BigDecimal chargedPriceFromMerchant;

private BigDecimal withholdingTax;

public String getSubMerchantKey() {
return subMerchantKey;
}
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 90e6af6

Please sign in to comment.