From e1fd65a8c2b1de419c9a066b466f31b1f59e31c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Derya=20=C3=87akmak?= <36774966+deryacakmak@users.noreply.github.com> Date: Tue, 15 Oct 2024 13:58:04 +0300 Subject: [PATCH] Add enabledInstallment field to Garanti Pay Init Request (#200) * Add enabledInstallment field to Garanti Pay Init Request * Add enabledInstallment field to Garanti Pay Init Request * update * update * update * update --- Craftgate/Model/WebhookEventType.cs | 4 +++- Craftgate/Request/InitGarantiPayPaymentRequest.cs | 1 + Samples/PaymentSample.cs | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Craftgate/Model/WebhookEventType.cs b/Craftgate/Model/WebhookEventType.cs index 1f593fa..1d8b51a 100644 --- a/Craftgate/Model/WebhookEventType.cs +++ b/Craftgate/Model/WebhookEventType.cs @@ -15,6 +15,8 @@ public enum WebhookEventType [EnumMember(Value = "WALLET_CREATED")] WALLET_CREATED, [EnumMember(Value = "WALLET_TX_CREATED")] WALLET_TX_CREATED, [EnumMember(Value = "BNPL_NOTIFICATION")] BNPL_NOTIFICATION, - [EnumMember(Value = "BANK_ACCOUNT_TRACKING_RECORD")] BANK_ACCOUNT_TRACKING_RECORD + [EnumMember(Value = "BANK_ACCOUNT_TRACKING_RECORD")] BANK_ACCOUNT_TRACKING_RECORD, + [EnumMember(Value = "BKM_EXPRESS_PAYMENT_NOTIFICATION")] BKM_EXPRESS_PAYMENT_NOTIFICATION, + [EnumMember(Value = "MULTI_PAYMENT_COMPLETED")] MULTI_PAYMENT_COMPLETED } } \ No newline at end of file diff --git a/Craftgate/Request/InitGarantiPayPaymentRequest.cs b/Craftgate/Request/InitGarantiPayPaymentRequest.cs index 5847c1a..e8da2ed 100644 --- a/Craftgate/Request/InitGarantiPayPaymentRequest.cs +++ b/Craftgate/Request/InitGarantiPayPaymentRequest.cs @@ -21,5 +21,6 @@ public class InitGarantiPayPaymentRequest public string BankOrderId { get; set; } public IList Items { get; set; } public List Installments { get; set; } + public IList EnabledInstallments { get; set; } } } \ No newline at end of file diff --git a/Samples/PaymentSample.cs b/Samples/PaymentSample.cs index 0713096..40b9a6c 100644 --- a/Samples/PaymentSample.cs +++ b/Samples/PaymentSample.cs @@ -894,6 +894,7 @@ public void Init_GarantiPay_Payment() Currency = Currency.TRY, PaymentGroup = PaymentGroup.LISTING_OR_SUBSCRIPTION, CallbackUrl = "https://www.your-website.com/craftgate-garantipay-callback", + EnabledInstallments = new List {2, 3}, Items = new List { new PaymentItem