Skip to content

Commit

Permalink
DEV-24590 adds 'chargedPriceFromMerchant' field to BasketItem and Upd…
Browse files Browse the repository at this point in the history
…atePaymentItemRequest models (#154)

Co-authored-by: ali.gediz <[email protected]>
  • Loading branch information
aligedizx and ali.gediz authored May 10, 2024
1 parent 3096e83 commit 4da37f1
Show file tree
Hide file tree
Showing 2 changed files with 19 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 @@ -15,6 +15,8 @@ public class BasketItem {
private String subMerchantKey;
private BigDecimal subMerchantPrice;
private boolean chargedFromMerchant;
private BigDecimal chargedPriceFromMerchant;


public String getId() {
return id;
Expand Down Expand Up @@ -88,6 +90,14 @@ public void setChargedFromMerchant(boolean chargedFromMerchant) {
this.chargedFromMerchant = chargedFromMerchant;
}

public BigDecimal getChargedPriceFromMerchant() {
return chargedPriceFromMerchant;
}

public void setChargedPriceFromMerchant(BigDecimal chargedPriceFromMerchant) {
this.chargedPriceFromMerchant = chargedPriceFromMerchant;
}

@Override
public String toString() {
return new ToStringRequestBuilder(this)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ public class UpdatePaymentItemRequest extends Request {
private Long paymentTransactionId;
private BigDecimal subMerchantPrice;
private boolean crossBookingOperation;
private BigDecimal chargedPriceFromMerchant;

public String getSubMerchantKey() {
return subMerchantKey;
Expand Down Expand Up @@ -44,6 +45,14 @@ public void setCrossBookingOperation(boolean crossBookingOperation) {
this.crossBookingOperation = crossBookingOperation;
}

public BigDecimal getChargedPriceFromMerchant() {
return chargedPriceFromMerchant;
}

public void setChargedPriceFromMerchant(BigDecimal chargedPriceFromMerchant) {
this.chargedPriceFromMerchant = chargedPriceFromMerchant;
}

@Override
public String toString() {
return new ToStringRequestBuilder(this)
Expand Down

0 comments on commit 4da37f1

Please sign in to comment.