Skip to content

Commit

Permalink
DEV-27138 adds externalSubMerchantId field to BasketItem and UpdatePa…
Browse files Browse the repository at this point in the history
…ymentItemRequest
  • Loading branch information
ali.gediz committed Nov 5, 2024
1 parent 84ab840 commit eeccdf2
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
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

0 comments on commit eeccdf2

Please sign in to comment.