Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DEV-30204 adds withholdingTax parameter for basket items #163

Merged
merged 1 commit into from
Dec 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading