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-27138 adds externalSubMerchantId field to BasketItem and UpdatePa… #159

Merged
merged 1 commit into from
Nov 5, 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
11 changes: 11 additions & 0 deletions src/main/java/com/iyzipay/model/BasketItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -108,6 +118,7 @@ public String toString() {
.append("category2", category2)
.append("itemType", itemType)
.append("subMerchantKey", subMerchantKey)
.append("externalSubMerchantId", externalSubMerchantId)
.append("subMerchantPrice", subMerchantPrice)
.toString();
}
Expand Down
11 changes: 11 additions & 0 deletions src/main/java/com/iyzipay/request/UpdatePaymentItemRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
public class UpdatePaymentItemRequest extends Request {

private String subMerchantKey;
private String externalSubMerchantId;

private Long paymentTransactionId;
private BigDecimal subMerchantPrice;
private boolean crossBookingOperation;
Expand All @@ -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;
}
Expand Down Expand Up @@ -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();
Expand Down
Loading