Skip to content

Commit

Permalink
Add withholdingTax property and accessors to BasketItem, PaymentItem,…
Browse files Browse the repository at this point in the history
… and SubMerchantPaymentItemUpdateRequest
  • Loading branch information
tarikkamat committed Dec 26, 2024
1 parent df6377b commit 9d4b4d8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Iyzipay/Model/BasketItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ public class BasketItem : RequestStringConvertible
public String SubMerchantKey { get; set; }
public String SubMerchantPrice { get; set; }
public bool ChargedFromMerchant { get; set; }
public String WithholdingTax { get; set; }

public String ToPKIRequestString()
{
Expand All @@ -26,6 +27,7 @@ public String ToPKIRequestString()
.Append("subMerchantKey", SubMerchantKey)
.AppendPrice("subMerchantPrice", SubMerchantPrice)
.Append("chargedFromMerchant", ChargedFromMerchant)
.AppendPrice("withholdingTax", WithholdingTax)
.GetRequestString();
}
}
Expand Down
1 change: 1 addition & 0 deletions Iyzipay/Model/PaymentItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public class PaymentItem : IyzipayResourceV2
public string SubMerchantPayoutAmount { get; set; }
public string MerchantPayoutAmount { get; set; }
public ConvertedPayout ConvertedPayout { get; set; }
public string WithholdingTax { get; set; }

public static Task<PaymentItem> Update(UpdatePaymentItemRequest request, Options options)
{
Expand Down
2 changes: 2 additions & 0 deletions Iyzipay/Request/UpdatePaymentItemRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ public class UpdatePaymentItemRequest : BaseRequestV2
public string SubMerchantKey { get; set; }
public string PaymentTransactionId { get; set; }
public string SubMerchantPrice { get; set; }
public string WithholdingTax { get; set; }


public override string ToPKIRequestString()
Expand All @@ -16,6 +17,7 @@ public override string ToPKIRequestString()
.Append("subMerchantKey", SubMerchantKey)
.Append("paymentTransactionId", PaymentTransactionId)
.Append("subMerchantPrice", SubMerchantPrice)
.AppendPrice("withholdingTax", WithholdingTax)
.GetRequestString();
}
}
Expand Down

0 comments on commit 9d4b4d8

Please sign in to comment.