diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES
index e52f909..df33292 100644
--- a/.openapi-generator/FILES
+++ b/.openapi-generator/FILES
@@ -24,6 +24,7 @@ docs/CardlessEMIEntity.md
docs/CardlessEMIPaymentMethod.md
docs/CardlessEMIQueries.md
docs/CashbackDetails.md
+docs/CreateCustomerRequest.md
docs/CreateLinkRequest.md
docs/CreateOfferRequest.md
docs/CreateOrderRequest.md
@@ -33,6 +34,8 @@ docs/CreateTerminalTransactionRequest.md
docs/CryptogramEntity.md
docs/CustomerDetails.md
docs/CustomerDetailsCardlessEMI.md
+docs/CustomerEntity.md
+docs/CustomersApi.md
docs/DiscountDetails.md
docs/EMIOffer.md
docs/EMIPlansArray.md
@@ -61,7 +64,7 @@ docs/InstrumentWebhookData.md
docs/InstrumentWebhookDataEntity.md
docs/LinkCustomerDetailsEntity.md
docs/LinkEntity.md
-docs/LinkMetaEntity.md
+docs/LinkMetaResponseEntity.md
docs/LinkNotifyEntity.md
docs/NetBankingPaymentMethod.md
docs/Netbanking.md
@@ -111,7 +114,6 @@ docs/PaymentMethodUPIInPaymentsEntity.md
docs/PaymentMethodsFilters.md
docs/PaymentMethodsQueries.md
docs/PaymentModeDetails.md
-docs/PaymentURLObject.md
docs/PaymentWebhook.md
docs/PaymentWebhookCustomerEntity.md
docs/PaymentWebhookDataEntity.md
@@ -124,18 +126,15 @@ docs/ReconEntity.md
docs/ReconEntityDataInner.md
docs/RefundEntity.md
docs/RefundSpeed.md
-docs/RefundURLObject.md
docs/RefundWebhook.md
docs/RefundWebhookDataEntity.md
docs/RefundsApi.md
docs/SavedInstrumentMeta.md
docs/SettlementEntity.md
docs/SettlementFetchReconRequest.md
-docs/SettlementFetchReconRequestFilters.md
docs/SettlementReconEntity.md
docs/SettlementReconEntityDataInner.md
docs/SettlementReconciliationApi.md
-docs/SettlementURLObject.md
docs/SettlementWebhook.md
docs/SettlementWebhookDataEntity.md
docs/SettlementsApi.md
@@ -143,6 +142,7 @@ docs/SoftPOSApi.md
docs/TerminalDetails.md
docs/TerminalEntity.md
docs/TerminalTransactionEntity.md
+docs/TerminateOrderRequest.md
docs/TokenVaultApi.md
docs/UPIAuthorizeDetails.md
docs/UPIPaymentMethod.md
@@ -150,6 +150,7 @@ docs/Upi.md
docs/VendorSplit.md
docs/WalletOffer.md
git_push.sh
+src/cashfree_pg.Test/Api/CustomersApiTests.cs
src/cashfree_pg.Test/Api/EligibilityApiTests.cs
src/cashfree_pg.Test/Api/OffersApiTests.cs
src/cashfree_pg.Test/Api/OrdersApiTests.cs
@@ -181,6 +182,7 @@ src/cashfree_pg.Test/Model/CardlessEMIPaymentMethodTests.cs
src/cashfree_pg.Test/Model/CardlessEMIQueriesTests.cs
src/cashfree_pg.Test/Model/CardlessEMITests.cs
src/cashfree_pg.Test/Model/CashbackDetailsTests.cs
+src/cashfree_pg.Test/Model/CreateCustomerRequestTests.cs
src/cashfree_pg.Test/Model/CreateLinkRequestTests.cs
src/cashfree_pg.Test/Model/CreateOfferRequestTests.cs
src/cashfree_pg.Test/Model/CreateOrderRequestTests.cs
@@ -190,6 +192,7 @@ src/cashfree_pg.Test/Model/CreateTerminalTransactionRequestTests.cs
src/cashfree_pg.Test/Model/CryptogramEntityTests.cs
src/cashfree_pg.Test/Model/CustomerDetailsCardlessEMITests.cs
src/cashfree_pg.Test/Model/CustomerDetailsTests.cs
+src/cashfree_pg.Test/Model/CustomerEntityTests.cs
src/cashfree_pg.Test/Model/DiscountDetailsTests.cs
src/cashfree_pg.Test/Model/EMIOfferTests.cs
src/cashfree_pg.Test/Model/EMIPlansArrayTests.cs
@@ -217,7 +220,7 @@ src/cashfree_pg.Test/Model/InstrumentWebhookDataTests.cs
src/cashfree_pg.Test/Model/InstrumentWebhookTests.cs
src/cashfree_pg.Test/Model/LinkCustomerDetailsEntityTests.cs
src/cashfree_pg.Test/Model/LinkEntityTests.cs
-src/cashfree_pg.Test/Model/LinkMetaEntityTests.cs
+src/cashfree_pg.Test/Model/LinkMetaResponseEntityTests.cs
src/cashfree_pg.Test/Model/LinkNotifyEntityTests.cs
src/cashfree_pg.Test/Model/NetBankingPaymentMethodTests.cs
src/cashfree_pg.Test/Model/NetbankingTests.cs
@@ -263,7 +266,6 @@ src/cashfree_pg.Test/Model/PaymentMethodUPIInPaymentsEntityTests.cs
src/cashfree_pg.Test/Model/PaymentMethodsFiltersTests.cs
src/cashfree_pg.Test/Model/PaymentMethodsQueriesTests.cs
src/cashfree_pg.Test/Model/PaymentModeDetailsTests.cs
-src/cashfree_pg.Test/Model/PaymentURLObjectTests.cs
src/cashfree_pg.Test/Model/PaymentWebhookCustomerEntityTests.cs
src/cashfree_pg.Test/Model/PaymentWebhookDataEntityTests.cs
src/cashfree_pg.Test/Model/PaymentWebhookErrorEntityTests.cs
@@ -275,27 +277,26 @@ src/cashfree_pg.Test/Model/ReconEntityDataInnerTests.cs
src/cashfree_pg.Test/Model/ReconEntityTests.cs
src/cashfree_pg.Test/Model/RefundEntityTests.cs
src/cashfree_pg.Test/Model/RefundSpeedTests.cs
-src/cashfree_pg.Test/Model/RefundURLObjectTests.cs
src/cashfree_pg.Test/Model/RefundWebhookDataEntityTests.cs
src/cashfree_pg.Test/Model/RefundWebhookTests.cs
src/cashfree_pg.Test/Model/SavedInstrumentMetaTests.cs
src/cashfree_pg.Test/Model/SettlementEntityTests.cs
-src/cashfree_pg.Test/Model/SettlementFetchReconRequestFiltersTests.cs
src/cashfree_pg.Test/Model/SettlementFetchReconRequestTests.cs
src/cashfree_pg.Test/Model/SettlementReconEntityDataInnerTests.cs
src/cashfree_pg.Test/Model/SettlementReconEntityTests.cs
-src/cashfree_pg.Test/Model/SettlementURLObjectTests.cs
src/cashfree_pg.Test/Model/SettlementWebhookDataEntityTests.cs
src/cashfree_pg.Test/Model/SettlementWebhookTests.cs
src/cashfree_pg.Test/Model/TerminalDetailsTests.cs
src/cashfree_pg.Test/Model/TerminalEntityTests.cs
src/cashfree_pg.Test/Model/TerminalTransactionEntityTests.cs
+src/cashfree_pg.Test/Model/TerminateOrderRequestTests.cs
src/cashfree_pg.Test/Model/UPIAuthorizeDetailsTests.cs
src/cashfree_pg.Test/Model/UPIPaymentMethodTests.cs
src/cashfree_pg.Test/Model/UpiTests.cs
src/cashfree_pg.Test/Model/VendorSplitTests.cs
src/cashfree_pg.Test/Model/WalletOfferTests.cs
src/cashfree_pg.Test/cashfree_pg.Test.csproj
+src/cashfree_pg/Api/CustomersApi.cs
src/cashfree_pg/Api/EligibilityApi.cs
src/cashfree_pg/Api/OffersApi.cs
src/cashfree_pg/Api/OrdersApi.cs
@@ -344,6 +345,7 @@ src/cashfree_pg/Model/CardlessEMIEntity.cs
src/cashfree_pg/Model/CardlessEMIPaymentMethod.cs
src/cashfree_pg/Model/CardlessEMIQueries.cs
src/cashfree_pg/Model/CashbackDetails.cs
+src/cashfree_pg/Model/CreateCustomerRequest.cs
src/cashfree_pg/Model/CreateLinkRequest.cs
src/cashfree_pg/Model/CreateOfferRequest.cs
src/cashfree_pg/Model/CreateOrderRequest.cs
@@ -353,6 +355,7 @@ src/cashfree_pg/Model/CreateTerminalTransactionRequest.cs
src/cashfree_pg/Model/CryptogramEntity.cs
src/cashfree_pg/Model/CustomerDetails.cs
src/cashfree_pg/Model/CustomerDetailsCardlessEMI.cs
+src/cashfree_pg/Model/CustomerEntity.cs
src/cashfree_pg/Model/DiscountDetails.cs
src/cashfree_pg/Model/EMIOffer.cs
src/cashfree_pg/Model/EMIPlansArray.cs
@@ -380,7 +383,7 @@ src/cashfree_pg/Model/InstrumentWebhookData.cs
src/cashfree_pg/Model/InstrumentWebhookDataEntity.cs
src/cashfree_pg/Model/LinkCustomerDetailsEntity.cs
src/cashfree_pg/Model/LinkEntity.cs
-src/cashfree_pg/Model/LinkMetaEntity.cs
+src/cashfree_pg/Model/LinkMetaResponseEntity.cs
src/cashfree_pg/Model/LinkNotifyEntity.cs
src/cashfree_pg/Model/NetBankingPaymentMethod.cs
src/cashfree_pg/Model/Netbanking.cs
@@ -426,7 +429,6 @@ src/cashfree_pg/Model/PaymentMethodUPIInPaymentsEntity.cs
src/cashfree_pg/Model/PaymentMethodsFilters.cs
src/cashfree_pg/Model/PaymentMethodsQueries.cs
src/cashfree_pg/Model/PaymentModeDetails.cs
-src/cashfree_pg/Model/PaymentURLObject.cs
src/cashfree_pg/Model/PaymentWebhook.cs
src/cashfree_pg/Model/PaymentWebhookCustomerEntity.cs
src/cashfree_pg/Model/PaymentWebhookDataEntity.cs
@@ -438,21 +440,19 @@ src/cashfree_pg/Model/ReconEntity.cs
src/cashfree_pg/Model/ReconEntityDataInner.cs
src/cashfree_pg/Model/RefundEntity.cs
src/cashfree_pg/Model/RefundSpeed.cs
-src/cashfree_pg/Model/RefundURLObject.cs
src/cashfree_pg/Model/RefundWebhook.cs
src/cashfree_pg/Model/RefundWebhookDataEntity.cs
src/cashfree_pg/Model/SavedInstrumentMeta.cs
src/cashfree_pg/Model/SettlementEntity.cs
src/cashfree_pg/Model/SettlementFetchReconRequest.cs
-src/cashfree_pg/Model/SettlementFetchReconRequestFilters.cs
src/cashfree_pg/Model/SettlementReconEntity.cs
src/cashfree_pg/Model/SettlementReconEntityDataInner.cs
-src/cashfree_pg/Model/SettlementURLObject.cs
src/cashfree_pg/Model/SettlementWebhook.cs
src/cashfree_pg/Model/SettlementWebhookDataEntity.cs
src/cashfree_pg/Model/TerminalDetails.cs
src/cashfree_pg/Model/TerminalEntity.cs
src/cashfree_pg/Model/TerminalTransactionEntity.cs
+src/cashfree_pg/Model/TerminateOrderRequest.cs
src/cashfree_pg/Model/UPIAuthorizeDetails.cs
src/cashfree_pg/Model/UPIPaymentMethod.cs
src/cashfree_pg/Model/Upi.cs
diff --git a/cashfree_pg.sln b/cashfree_pg.sln
index d734183..b7e6257 100644
--- a/cashfree_pg.sln
+++ b/cashfree_pg.sln
@@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "cashfree_pg", "src\cashfree_pg\cashfree_pg.csproj", "{F258172F-E7BD-4FF4-9E7F-6FC5BE78C860}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "cashfree_pg", "src\cashfree_pg\cashfree_pg.csproj", "{42776C40-DD94-42B2-9D73-7853E7413FF8}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "cashfree_pg.Test", "src\cashfree_pg.Test\cashfree_pg.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}"
EndProject
@@ -12,10 +12,10 @@ Global
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {F258172F-E7BD-4FF4-9E7F-6FC5BE78C860}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {F258172F-E7BD-4FF4-9E7F-6FC5BE78C860}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {F258172F-E7BD-4FF4-9E7F-6FC5BE78C860}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {F258172F-E7BD-4FF4-9E7F-6FC5BE78C860}.Release|Any CPU.Build.0 = Release|Any CPU
+ {42776C40-DD94-42B2-9D73-7853E7413FF8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {42776C40-DD94-42B2-9D73-7853E7413FF8}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {42776C40-DD94-42B2-9D73-7853E7413FF8}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {42776C40-DD94-42B2-9D73-7853E7413FF8}.Release|Any CPU.Build.0 = Release|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU
diff --git a/docs/CreateCustomerRequest.md b/docs/CreateCustomerRequest.md
new file mode 100644
index 0000000..1f075f0
--- /dev/null
+++ b/docs/CreateCustomerRequest.md
@@ -0,0 +1,13 @@
+# cashfree_pg.Model.CreateCustomerRequest
+Request body to create a customer at cashfree
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**customer_phone** | **string** | Customer Phone Number |
+**customer_email** | **string** | Customer Email | [optional]
+**customer_name** | **string** | Customer Name | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/CreateLinkRequest.md b/docs/CreateLinkRequest.md
index 2dd8353..d513b09 100644
--- a/docs/CreateLinkRequest.md
+++ b/docs/CreateLinkRequest.md
@@ -16,7 +16,7 @@ Name | Type | Description | Notes
**link_notify** | [**LinkNotifyEntity**](LinkNotifyEntity.md) | | [optional]
**link_auto_reminders** | **bool** | If \"true\", reminders will be sent to customers for collecting payments. | [optional]
**link_notes** | **Dictionary<string, string>** | Key-value pair that can be used to store additional information about the entity. Maximum 5 key-value pairs | [optional]
-**link_meta** | [**LinkMetaEntity**](LinkMetaEntity.md) | | [optional]
+**link_meta** | [**LinkMetaResponseEntity**](LinkMetaResponseEntity.md) | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/CreateTerminalTransactionRequest.md b/docs/CreateTerminalTransactionRequest.md
index b564003..9aa4b55 100644
--- a/docs/CreateTerminalTransactionRequest.md
+++ b/docs/CreateTerminalTransactionRequest.md
@@ -5,8 +5,8 @@ Request body to create a terminal transaction
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**cf_order_id** | **long** | cashfree order ID that was returned while creating an order. |
-**cf_terminal_id** | **long** | cashfree terminal id. this is a required parameter when you do not provide the terminal phone number. | [optional]
+**cf_order_id** | **string** | cashfree order ID that was returned while creating an order. |
+**cf_terminal_id** | **string** | cashfree terminal id. this is a required parameter when you do not provide the terminal phone number. | [optional]
**payment_method** | **string** | mention the payment method used for the transaction. possible values - QR_CODE, LINK. |
**terminal_phone_no** | **string** | agent mobile number assigned to the terminal. this is a required parameter when you do not provide the cf_terminal_id. | [optional]
diff --git a/docs/CustomerDetails.md b/docs/CustomerDetails.md
index 2eeea10..f637888 100644
--- a/docs/CustomerDetails.md
+++ b/docs/CustomerDetails.md
@@ -12,6 +12,7 @@ Name | Type | Description | Notes
**customer_bank_account_number** | **string** | Customer bank account. Required if you want to do a bank account check (TPV) | [optional]
**customer_bank_ifsc** | **string** | Customer bank IFSC. Required if you want to do a bank account check (TPV) | [optional]
**customer_bank_code** | **decimal** | Customer bank code. Required for net banking payments, if you want to do a bank account check (TPV) | [optional]
+**customer_uid** | **string** | Customer identifier at Cashfree. You will get this when you create/get customer | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/CustomerEntity.md b/docs/CustomerEntity.md
new file mode 100644
index 0000000..d41c64a
--- /dev/null
+++ b/docs/CustomerEntity.md
@@ -0,0 +1,14 @@
+# cashfree_pg.Model.CustomerEntity
+The complete customer entity
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**customer_uid** | **string** | unique id generated by cashfree for your customer | [optional]
+**customer_phone** | **string** | Customer Phone Number | [optional]
+**customer_email** | **string** | Customer Email | [optional]
+**customer_name** | **string** | Customer Name | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/CustomersApi.md b/docs/CustomersApi.md
new file mode 100644
index 0000000..dcb505a
--- /dev/null
+++ b/docs/CustomersApi.md
@@ -0,0 +1,97 @@
+# cashfree_pg.Api.CustomersApi
+
+All URIs are relative to *https://sandbox.cashfree.com/pg*
+
+| Method | HTTP request | Description |
+|--------|--------------|-------------|
+| [**PGCreateCustomer**](CustomersApi.md#pgcreatecustomer) | **POST** /customers | Create Customer at Cashfree |
+
+
+# **PGCreateCustomer**
+> CustomerEntity PGCreateCustomer (string xApiVersion, CreateCustomerRequest createCustomerRequest, string? xRequestId = null, Guid? xIdempotencyKey = null)
+
+Create Customer at Cashfree
+
+Create Customer at Cashfree
+
+### Example
+```csharp
+using System.Collections.Generic;
+using System.Diagnostics;
+using cashfree_pg.Client;
+using cashfree_pg.Model;
+
+namespace Example
+{
+ public class PGCreateCustomerExample
+ {
+ public static void Main()
+ {
+ // Configuration
+ Cashfree.XClientId = "";
+ Cashfree.XClientSecret = "";
+ Cashfree.XEnvironment = Cashfree.SANDBOX;
+
+ // Instance of Cashfree
+ var cashfree = new Cashfree();
+
+
+ var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01")
+ var createCustomerRequest = new CreateCustomerRequest(); // CreateCustomerRequest | Request to create a new customer at Cashfree
+ var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
+ var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+
+ try
+ {
+ // Create Customer at Cashfree
+ CustomerEntity result = cashfree.PGCreateCustomer(xApiVersion, createCustomerRequest, xRequestId, xIdempotencyKey);
+ Debug.WriteLine(result);
+ }
+ catch (ApiException e)
+ {
+ Debug.Print("Exception when calling CustomersApi.PGCreateCustomer: " + e.Message);
+ Debug.Print("Status Code: " + e.ErrorCode);
+ Debug.Print(e.StackTrace);
+ }
+ }
+ }
+}
+```
+
+### Parameters
+
+| Name | Type | Description | Notes |
+|------|------|-------------|-------|
+| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] |
+| **createCustomerRequest** | [**CreateCustomerRequest**](CreateCustomerRequest.md) | Request to create a new customer at Cashfree | |
+| **xRequestId** | **string?** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | [optional] |
+| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
+
+### Return type
+
+[**CustomerEntity**](CustomerEntity.md)
+
+### Authorization
+
+[XPartnerAPIKey](../README.md#XPartnerAPIKey), [XClientSecret](../README.md#XClientSecret), [XPartnerMerchantID](../README.md#XPartnerMerchantID), [XClientID](../README.md#XClientID), [XClientSignatureHeader](../README.md#XClientSignatureHeader)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | OK | * x-api-version -
* x-ratelimit-limit -
* x-ratelimit-remaining -
* x-ratelimit-retry -
* x-ratelimit-type -
* x-request-id -
* x-idempotency-key -
* x-idempotency-replayed -
|
+| **400** | Bad request error | * x-api-version -
* x-ratelimit-limit -
* x-ratelimit-remaining -
* x-ratelimit-retry -
* x-ratelimit-type -
* x-request-id -
* x-idempotency-key -
* x-idempotency-replayed -
|
+| **401** | Authentication Error | * x-api-version -
* x-ratelimit-limit -
* x-ratelimit-remaining -
* x-ratelimit-retry -
* x-ratelimit-type -
* x-request-id -
* x-idempotency-key -
* x-idempotency-replayed -
|
+| **404** | Resource Not found | * x-api-version -
* x-ratelimit-limit -
* x-ratelimit-remaining -
* x-ratelimit-retry -
* x-ratelimit-type -
* x-request-id -
* x-idempotency-key -
* x-idempotency-replayed -
|
+| **409** | Resource already present | * x-api-version -
* x-ratelimit-limit -
* x-ratelimit-remaining -
* x-ratelimit-retry -
* x-ratelimit-type -
* x-request-id -
* x-idempotency-key -
* x-idempotency-replayed -
|
+| **422** | Idempotency error | * x-api-version -
* x-ratelimit-limit -
* x-ratelimit-remaining -
* x-ratelimit-retry -
* x-ratelimit-type -
* x-request-id -
* x-idempotency-key -
* x-idempotency-replayed -
|
+| **429** | Rate Limit Error | * x-api-version -
* x-ratelimit-limit -
* x-ratelimit-remaining -
* x-ratelimit-retry -
* x-ratelimit-type -
* x-request-id -
* x-idempotency-key -
* x-idempotency-replayed -
|
+| **500** | API related Error | * x-api-version -
* x-ratelimit-limit -
* x-ratelimit-remaining -
* x-ratelimit-retry -
* x-ratelimit-type -
* x-request-id -
* x-idempotency-key -
* x-idempotency-replayed -
|
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/docs/EligibilityApi.md b/docs/EligibilityApi.md
index 3215551..d868831 100644
--- a/docs/EligibilityApi.md
+++ b/docs/EligibilityApi.md
@@ -4,16 +4,16 @@ All URIs are relative to *https://sandbox.cashfree.com/pg*
| Method | HTTP request | Description |
|--------|--------------|-------------|
-| [**PGEligibilityFetchCardlessEMI**](EligibilityApi.md#pgeligibilityfetchcardlessemi) | **POST** /eligibility/cardlessemi | Get Eligible Cardless EMI |
-| [**PGEligibilityFetchOffers**](EligibilityApi.md#pgeligibilityfetchoffers) | **POST** /eligibility/offers | Get Eligible Offers |
-| [**PGEligibilityFetchPaylater**](EligibilityApi.md#pgeligibilityfetchpaylater) | **POST** /eligibility/paylater | Get Eligible Paylater |
-| [**PGEligibilityFetchPaymentMethods**](EligibilityApi.md#pgeligibilityfetchpaymentmethods) | **POST** /eligibility/payment_methods | Get Eligible Payment Methods |
+| [**PGEligibilityFetchCardlessEMI**](EligibilityApi.md#pgeligibilityfetchcardlessemi) | **POST** /eligibility/cardlessemi | Get Eligible Cardless EMI Payment Methods for a customer on an order |
+| [**PGEligibilityFetchOffers**](EligibilityApi.md#pgeligibilityfetchoffers) | **POST** /eligibility/offers | Get Eligible Offers for an Order |
+| [**PGEligibilityFetchPaylater**](EligibilityApi.md#pgeligibilityfetchpaylater) | **POST** /eligibility/paylater | Get Eligible Paylater for a customer on an order |
+| [**PGEligibilityFetchPaymentMethods**](EligibilityApi.md#pgeligibilityfetchpaymentmethods) | **POST** /eligibility/payment_methods | Get eligible Payment Methods |
# **PGEligibilityFetchCardlessEMI**
> List<EligibilityCardlessEMIEntity> PGEligibilityFetchCardlessEMI (string xApiVersion, EligibilityFetchCardlessEMIRequest eligibilityFetchCardlessEMIRequest, string? xRequestId = null, Guid? xIdempotencyKey = null)
-Get Eligible Cardless EMI
+Get Eligible Cardless EMI Payment Methods for a customer on an order
Use this API to get eligible Cardless EMI Payment Methods available for a customer on an order basis their phone number.
@@ -39,14 +39,14 @@ namespace Example
var cashfree = new Cashfree();
- var xApiVersion = 2022-09-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2022-09-01")
+ var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01")
var eligibilityFetchCardlessEMIRequest = new EligibilityFetchCardlessEMIRequest(); // EligibilityFetchCardlessEMIRequest | Request Body to get eligible cardless emi options for a customer and order
var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
- var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
try
{
- // Get Eligible Cardless EMI
+ // Get Eligible Cardless EMI Payment Methods for a customer on an order
List result = cashfree.PGEligibilityFetchCardlessEMI(xApiVersion, eligibilityFetchCardlessEMIRequest, xRequestId, xIdempotencyKey);
Debug.WriteLine(result);
}
@@ -65,10 +65,10 @@ namespace Example
| Name | Type | Description | Notes |
|------|------|-------------|-------|
-| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] |
+| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] |
| **eligibilityFetchCardlessEMIRequest** | [**EligibilityFetchCardlessEMIRequest**](EligibilityFetchCardlessEMIRequest.md) | Request Body to get eligible cardless emi options for a customer and order | |
| **xRequestId** | **string?** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | [optional] |
-| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
+| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
### Return type
@@ -103,7 +103,7 @@ namespace Example
# **PGEligibilityFetchOffers**
> List<EligibilityOfferEntity> PGEligibilityFetchOffers (string xApiVersion, EligibilityFetchOffersRequest eligibilityFetchOffersRequest, string? xRequestId = null, Guid? xIdempotencyKey = null)
-Get Eligible Offers
+Get Eligible Offers for an Order
Use this API to get eligible offers for an order_id or order amount.
@@ -129,14 +129,14 @@ namespace Example
var cashfree = new Cashfree();
- var xApiVersion = 2022-09-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2022-09-01")
+ var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01")
var eligibilityFetchOffersRequest = new EligibilityFetchOffersRequest(); // EligibilityFetchOffersRequest | Request Body to get eligible offers for a customer and order
var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
- var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
try
{
- // Get Eligible Offers
+ // Get Eligible Offers for an Order
List result = cashfree.PGEligibilityFetchOffers(xApiVersion, eligibilityFetchOffersRequest, xRequestId, xIdempotencyKey);
Debug.WriteLine(result);
}
@@ -155,10 +155,10 @@ namespace Example
| Name | Type | Description | Notes |
|------|------|-------------|-------|
-| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] |
+| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] |
| **eligibilityFetchOffersRequest** | [**EligibilityFetchOffersRequest**](EligibilityFetchOffersRequest.md) | Request Body to get eligible offers for a customer and order | |
| **xRequestId** | **string?** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | [optional] |
-| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
+| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
### Return type
@@ -192,7 +192,7 @@ namespace Example
# **PGEligibilityFetchPaylater**
> List<EligibilityPaylaterEntity> PGEligibilityFetchPaylater (string xApiVersion, EligibilityFetchPaylaterRequest eligibilityFetchPaylaterRequest, string? xRequestId = null, Guid? xIdempotencyKey = null)
-Get Eligible Paylater
+Get Eligible Paylater for a customer on an order
Use this API to get eligible Paylater Payment Methods for a customer on an order.
@@ -218,14 +218,14 @@ namespace Example
var cashfree = new Cashfree();
- var xApiVersion = 2022-09-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2022-09-01")
+ var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01")
var eligibilityFetchPaylaterRequest = new EligibilityFetchPaylaterRequest(); // EligibilityFetchPaylaterRequest | Request Body to get eligible paylater options for a customer and order
var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
- var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
try
{
- // Get Eligible Paylater
+ // Get Eligible Paylater for a customer on an order
List result = cashfree.PGEligibilityFetchPaylater(xApiVersion, eligibilityFetchPaylaterRequest, xRequestId, xIdempotencyKey);
Debug.WriteLine(result);
}
@@ -244,10 +244,10 @@ namespace Example
| Name | Type | Description | Notes |
|------|------|-------------|-------|
-| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] |
+| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] |
| **eligibilityFetchPaylaterRequest** | [**EligibilityFetchPaylaterRequest**](EligibilityFetchPaylaterRequest.md) | Request Body to get eligible paylater options for a customer and order | |
| **xRequestId** | **string?** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | [optional] |
-| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
+| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
### Return type
@@ -282,7 +282,7 @@ namespace Example
# **PGEligibilityFetchPaymentMethods**
> List<EligibilityPaymentMethodsEntity> PGEligibilityFetchPaymentMethods (string xApiVersion, EligibilityFetchPaymentMethodsRequest eligibilityFetchPaymentMethodsRequest, string? xRequestId = null, Guid? xIdempotencyKey = null)
-Get Eligible Payment Methods
+Get eligible Payment Methods
Use this API to get eligible Payment Methods
@@ -308,14 +308,14 @@ namespace Example
var cashfree = new Cashfree();
- var xApiVersion = 2022-09-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2022-09-01")
+ var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01")
var eligibilityFetchPaymentMethodsRequest = new EligibilityFetchPaymentMethodsRequest(); // EligibilityFetchPaymentMethodsRequest | Request Body to get eligible payment methods for an account and order
var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
- var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
try
{
- // Get Eligible Payment Methods
+ // Get eligible Payment Methods
List result = cashfree.PGEligibilityFetchPaymentMethods(xApiVersion, eligibilityFetchPaymentMethodsRequest, xRequestId, xIdempotencyKey);
Debug.WriteLine(result);
}
@@ -334,10 +334,10 @@ namespace Example
| Name | Type | Description | Notes |
|------|------|-------------|-------|
-| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] |
+| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] |
| **eligibilityFetchPaymentMethodsRequest** | [**EligibilityFetchPaymentMethodsRequest**](EligibilityFetchPaymentMethodsRequest.md) | Request Body to get eligible payment methods for an account and order | |
| **xRequestId** | **string?** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | [optional] |
-| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
+| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
### Return type
diff --git a/docs/FetchSettlementsRequestFilters.md b/docs/FetchSettlementsRequestFilters.md
index 162ec1f..c68fba5 100644
--- a/docs/FetchSettlementsRequestFilters.md
+++ b/docs/FetchSettlementsRequestFilters.md
@@ -5,7 +5,7 @@ Specify either the Settlement ID, Settlement UTR, or start date and end date to
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**cf_settlement_ids** | **List<long>** | List of settlement IDs for which you want the settlement reconciliation details. | [optional]
+**cf_settlement_ids** | **List<string>** | List of settlement IDs for which you want the settlement reconciliation details. | [optional]
**settlement_utrs** | **List<string>** | List of settlement UTRs for which you want the settlement reconciliation details. | [optional]
**start_date** | **string** | Specify the start date from when you want the settlement reconciliation details. | [optional]
**end_date** | **string** | Specify the end date till when you want the settlement reconciliation details. | [optional]
diff --git a/docs/LinkEntity.md b/docs/LinkEntity.md
index 6240ccc..4f42812 100644
--- a/docs/LinkEntity.md
+++ b/docs/LinkEntity.md
@@ -5,7 +5,7 @@ Payment link success creation response object
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**cf_link_id** | **long** | | [optional]
+**cf_link_id** | **string** | | [optional]
**link_id** | **string** | | [optional]
**link_status** | **string** | | [optional]
**link_currency** | **string** | | [optional]
@@ -16,7 +16,7 @@ Name | Type | Description | Notes
**link_purpose** | **string** | | [optional]
**link_created_at** | **string** | | [optional]
**customer_details** | [**LinkCustomerDetailsEntity**](LinkCustomerDetailsEntity.md) | | [optional]
-**link_meta** | **Dictionary<string, string>** | Payment link meta information object. | [optional]
+**link_meta** | [**LinkMetaResponseEntity**](LinkMetaResponseEntity.md) | | [optional]
**link_url** | **string** | | [optional]
**link_expiry_time** | **string** | | [optional]
**link_notes** | **Dictionary<string, string>** | Key-value pair that can be used to store additional information about the entity. Maximum 5 key-value pairs | [optional]
diff --git a/docs/LinkMetaResponseEntity.md b/docs/LinkMetaResponseEntity.md
new file mode 100644
index 0000000..e81b137
--- /dev/null
+++ b/docs/LinkMetaResponseEntity.md
@@ -0,0 +1,14 @@
+# cashfree_pg.Model.LinkMetaResponseEntity
+Payment link meta information object
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**notify_url** | **string** | Notification URL for server-server communication. It should be an https URL. | [optional]
+**upi_intent** | **bool** | If \"true\", link will directly open UPI Intent flow on mobile, and normal link flow elsewhere | [optional]
+**return_url** | **string** | The URL to which user will be redirected to after the payment is done on the link. Maximum length: 250. | [optional]
+**payment_methods** | **string** | Allowed payment modes for this link. Pass comma-separated values among following options - \"cc\", \"dc\", \"ccc\", \"ppc\", \"nb\", \"upi\", \"paypal\", \"app\". Leave it blank to show all available payment methods | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/OfferValidations.md b/docs/OfferValidations.md
index 791238e..89ad171 100644
--- a/docs/OfferValidations.md
+++ b/docs/OfferValidations.md
@@ -7,7 +7,6 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**min_amount** | **decimal** | Minimum Amount for Offer to be Applicable | [optional]
**payment_method** | [**OfferValidationsPaymentMethod**](OfferValidationsPaymentMethod.md) | |
-**max_allowed** | **decimal** | Maximum amount of Offer that can be availed. |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/OffersApi.md b/docs/OffersApi.md
index 10feb42..2fdf17d 100644
--- a/docs/OffersApi.md
+++ b/docs/OffersApi.md
@@ -37,10 +37,10 @@ namespace Example
var cashfree = new Cashfree();
- var xApiVersion = 2022-09-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2022-09-01")
+ var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01")
var createOfferRequest = new CreateOfferRequest(); // CreateOfferRequest | Request body to create an offer at Cashfree
var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
- var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
try
{
@@ -63,10 +63,10 @@ namespace Example
| Name | Type | Description | Notes |
|------|------|-------------|-------|
-| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] |
+| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] |
| **createOfferRequest** | [**CreateOfferRequest**](CreateOfferRequest.md) | Request body to create an offer at Cashfree | |
| **xRequestId** | **string?** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | [optional] |
-| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
+| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
### Return type
@@ -126,10 +126,10 @@ namespace Example
var cashfree = new Cashfree();
- var xApiVersion = 2022-09-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2022-09-01")
+ var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01")
var offerId = d2b430fb-1afe-455a-af31-66d00377b29a; // string | The offer ID for which you want to view the offer details.
var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
- var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
try
{
@@ -152,10 +152,10 @@ namespace Example
| Name | Type | Description | Notes |
|------|------|-------------|-------|
-| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] |
+| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] |
| **offerId** | **string** | The offer ID for which you want to view the offer details. | |
| **xRequestId** | **string?** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | [optional] |
-| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
+| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
### Return type
diff --git a/docs/OrderAuthenticateEntity.md b/docs/OrderAuthenticateEntity.md
index ab14c62..d08f098 100644
--- a/docs/OrderAuthenticateEntity.md
+++ b/docs/OrderAuthenticateEntity.md
@@ -5,7 +5,7 @@ This is the response shared when merchant inovkes the OTP submit or resend API
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**cf_payment_id** | **decimal** | The payment id for which this request was sent | [optional]
+**cf_payment_id** | **string** | The payment id for which this request was sent | [optional]
**action** | **string** | The action that was invoked for this request. | [optional]
**authenticate_status** | **string** | Status of the is action. Will be either failed or successful. If the action is successful, you should still call the authorization status to verify the final payment status. | [optional]
**payment_message** | **string** | Human readable message which describes the status in more detail | [optional]
diff --git a/docs/OrderEntity.md b/docs/OrderEntity.md
index 4b9f26c..75bc110 100644
--- a/docs/OrderEntity.md
+++ b/docs/OrderEntity.md
@@ -5,12 +5,12 @@ The complete order entity
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**cf_order_id** | **long** | unique id generated by cashfree for your order | [optional]
+**cf_order_id** | **string** | unique id generated by cashfree for your order | [optional]
**order_id** | **string** | order_id sent during the api request | [optional]
**entity** | **string** | Type of the entity. | [optional]
**order_currency** | **string** | Currency of the order. Example INR | [optional]
**order_amount** | **decimal** | | [optional]
-**order_status** | **string** | Possible values are - `ACTIVE`: Order does not have a sucessful transaction yet - `PAID`: Order is PAID with one successful transaction - `EXPIRED`: Order was not PAID and not it has expired. No transaction can be initiated for an EXPIRED order. | [optional]
+**order_status** | **string** | Possible values are - `ACTIVE`: Order does not have a sucessful transaction yet - `PAID`: Order is PAID with one successful transaction - `EXPIRED`: Order was not PAID and not it has expired. No transaction can be initiated for an EXPIRED order. `TERMINATED`: Order terminated `TERMINATION_REQUESTED`: Order termination requested | [optional]
**payment_session_id** | **string** | | [optional]
**order_expiry_time** | **DateTime** | | [optional]
**order_note** | **string** | Additional note for order | [optional]
@@ -18,9 +18,6 @@ Name | Type | Description | Notes
**order_splits** | [**List<VendorSplit>**](VendorSplit.md) | | [optional]
**customer_details** | [**CustomerDetails**](CustomerDetails.md) | | [optional]
**order_meta** | [**OrderMeta**](OrderMeta.md) | | [optional]
-**payments** | [**PaymentURLObject**](PaymentURLObject.md) | | [optional]
-**settlements** | [**SettlementURLObject**](SettlementURLObject.md) | | [optional]
-**refunds** | [**RefundURLObject**](RefundURLObject.md) | | [optional]
**order_tags** | **Dictionary<string, string>** | Custom Tags in thr form of {\"key\":\"value\"} which can be passed for an order. A maximum of 10 tags can be added | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/OrderMeta.md b/docs/OrderMeta.md
index 2570339..b301392 100644
--- a/docs/OrderMeta.md
+++ b/docs/OrderMeta.md
@@ -5,7 +5,7 @@ Optional meta details to control how the customer pays and how payment journey c
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**return_url** | **string** | The URL to which user will be redirected to after the payment on bank OTP page. Maximum length: 250. The return_url must contain placeholder {order_id}. When redirecting the customer back to the return url from the bank’s OTP page, Cashfree will replace this placeholder with the actual value for that order. | [optional]
+**return_url** | **string** | The URL to which user will be redirected to after the payment on bank OTP page. Maximum length: 250. We suggest to keep context of order_id in your return_url so that you can identify the order when customer lands on your page. Example of return_url format could be https://example.com/return?order_id=myOrderId | [optional]
**notify_url** | **string** | Notification URL for server-server communication. Useful when user's connection drops while re-directing. NotifyUrl should be an https URL. Maximum length: 250. | [optional]
**payment_methods** | **Object** | Allowed payment modes for this order. Pass comma-separated values among following options - \"cc\", \"dc\", \"ccc\", \"ppc\",\"nb\",\"upi\",\"paypal\",\"app\",\"paylater\",\"cardlessemi\",\"dcemi\",\"ccemi\",\"banktransfer\". Leave it blank to show all available payment methods | [optional]
diff --git a/docs/OrdersApi.md b/docs/OrdersApi.md
index 79c87cb..9c52bdc 100644
--- a/docs/OrdersApi.md
+++ b/docs/OrdersApi.md
@@ -6,6 +6,7 @@ All URIs are relative to *https://sandbox.cashfree.com/pg*
|--------|--------------|-------------|
| [**PGCreateOrder**](OrdersApi.md#pgcreateorder) | **POST** /orders | Create Order |
| [**PGFetchOrder**](OrdersApi.md#pgfetchorder) | **GET** /orders/{order_id} | Get Order |
+| [**PGTerminateOrder**](OrdersApi.md#pgterminateorder) | **PATCH** /orders/{order_id} | Terminate Order |
# **PGCreateOrder**
@@ -37,10 +38,10 @@ namespace Example
var cashfree = new Cashfree();
- var xApiVersion = 2022-09-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2022-09-01")
+ var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01")
var createOrderRequest = new CreateOrderRequest(); // CreateOrderRequest | Request body to create an order at cashfree
var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
- var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
try
{
@@ -63,10 +64,10 @@ namespace Example
| Name | Type | Description | Notes |
|------|------|-------------|-------|
-| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] |
+| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] |
| **createOrderRequest** | [**CreateOrderRequest**](CreateOrderRequest.md) | Request body to create an order at cashfree | |
| **xRequestId** | **string?** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | [optional] |
-| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
+| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
### Return type
@@ -126,10 +127,10 @@ namespace Example
var cashfree = new Cashfree();
- var xApiVersion = 2022-09-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2022-09-01")
+ var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01")
var orderId = your-order-id; // string | The id which uniquely identifies your order
var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
- var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
try
{
@@ -152,10 +153,10 @@ namespace Example
| Name | Type | Description | Notes |
|------|------|-------------|-------|
-| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] |
+| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] |
| **orderId** | **string** | The id which uniquely identifies your order | |
| **xRequestId** | **string?** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | [optional] |
-| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
+| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
### Return type
@@ -185,3 +186,94 @@ namespace Example
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **PGTerminateOrder**
+> OrderEntity PGTerminateOrder (string xApiVersion, string orderId, TerminateOrderRequest terminateOrderRequest, string? xRequestId = null, Guid? xIdempotencyKey = null)
+
+Terminate Order
+
+Use this API to terminate the order that was created at Cashfree's using the `order_id`.
+
+### Example
+```csharp
+using System.Collections.Generic;
+using System.Diagnostics;
+using cashfree_pg.Client;
+using cashfree_pg.Model;
+
+namespace Example
+{
+ public class PGTerminateOrderExample
+ {
+ public static void Main()
+ {
+ // Configuration
+ Cashfree.XClientId = "";
+ Cashfree.XClientSecret = "";
+ Cashfree.XEnvironment = Cashfree.SANDBOX;
+
+ // Instance of Cashfree
+ var cashfree = new Cashfree();
+
+
+ var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01")
+ var orderId = your-order-id; // string | The id which uniquely identifies your order
+ var terminateOrderRequest = new TerminateOrderRequest(); // TerminateOrderRequest | Request body to terminate an order at cashfree
+ var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
+ var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+
+ try
+ {
+ // Terminate Order
+ OrderEntity result = cashfree.PGTerminateOrder(xApiVersion, orderId, terminateOrderRequest, xRequestId, xIdempotencyKey);
+ Debug.WriteLine(result);
+ }
+ catch (ApiException e)
+ {
+ Debug.Print("Exception when calling OrdersApi.PGTerminateOrder: " + e.Message);
+ Debug.Print("Status Code: " + e.ErrorCode);
+ Debug.Print(e.StackTrace);
+ }
+ }
+ }
+}
+```
+
+### Parameters
+
+| Name | Type | Description | Notes |
+|------|------|-------------|-------|
+| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] |
+| **orderId** | **string** | The id which uniquely identifies your order | |
+| **terminateOrderRequest** | [**TerminateOrderRequest**](TerminateOrderRequest.md) | Request body to terminate an order at cashfree | |
+| **xRequestId** | **string?** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | [optional] |
+| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
+
+### Return type
+
+[**OrderEntity**](OrderEntity.md)
+
+### Authorization
+
+[XPartnerAPIKey](../README.md#XPartnerAPIKey), [XClientSecret](../README.md#XClientSecret), [XPartnerMerchantID](../README.md#XPartnerMerchantID), [XClientID](../README.md#XClientID), [XClientSignatureHeader](../README.md#XClientSignatureHeader)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | OK | * x-api-version -
* x-ratelimit-limit -
* x-ratelimit-remaining -
* x-ratelimit-retry -
* x-ratelimit-type -
* x-request-id -
* x-idempotency-key -
* x-idempotency-replayed -
|
+| **400** | Bad request error | * x-api-version -
* x-ratelimit-limit -
* x-ratelimit-remaining -
* x-ratelimit-retry -
* x-ratelimit-type -
* x-request-id -
* x-idempotency-key -
* x-idempotency-replayed -
|
+| **401** | Authentication Error | * x-api-version -
* x-ratelimit-limit -
* x-ratelimit-remaining -
* x-ratelimit-retry -
* x-ratelimit-type -
* x-request-id -
* x-idempotency-key -
* x-idempotency-replayed -
|
+| **404** | Resource Not found | * x-api-version -
* x-ratelimit-limit -
* x-ratelimit-remaining -
* x-ratelimit-retry -
* x-ratelimit-type -
* x-request-id -
* x-idempotency-key -
* x-idempotency-replayed -
|
+| **409** | Resource already present | * x-api-version -
* x-ratelimit-limit -
* x-ratelimit-remaining -
* x-ratelimit-retry -
* x-ratelimit-type -
* x-request-id -
* x-idempotency-key -
* x-idempotency-replayed -
|
+| **422** | Idempotency error | * x-api-version -
* x-ratelimit-limit -
* x-ratelimit-remaining -
* x-ratelimit-retry -
* x-ratelimit-type -
* x-request-id -
* x-idempotency-key -
* x-idempotency-replayed -
|
+| **429** | Rate Limit Error | * x-api-version -
* x-ratelimit-limit -
* x-ratelimit-remaining -
* x-ratelimit-retry -
* x-ratelimit-type -
* x-request-id -
* x-idempotency-key -
* x-idempotency-replayed -
|
+| **500** | API related Error | * x-api-version -
* x-ratelimit-limit -
* x-ratelimit-remaining -
* x-ratelimit-retry -
* x-ratelimit-type -
* x-request-id -
* x-idempotency-key -
* x-idempotency-replayed -
|
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/docs/PGReconciliationApi.md b/docs/PGReconciliationApi.md
index abe810d..2e3f39a 100644
--- a/docs/PGReconciliationApi.md
+++ b/docs/PGReconciliationApi.md
@@ -36,11 +36,11 @@ namespace Example
var cashfree = new Cashfree();
- var xApiVersion = 2022-09-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2022-09-01")
+ var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01")
var fetchReconRequest = new FetchReconRequest(); // FetchReconRequest | Request Body for the reconciliation
var contentType = application/json; // string? | application/json (optional)
var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
- var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
var accept = application/json; // string? | application/json (optional)
try
@@ -64,11 +64,11 @@ namespace Example
| Name | Type | Description | Notes |
|------|------|-------------|-------|
-| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] |
+| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] |
| **fetchReconRequest** | [**FetchReconRequest**](FetchReconRequest.md) | Request Body for the reconciliation | |
| **contentType** | **string?** | application/json | [optional] |
| **xRequestId** | **string?** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | [optional] |
-| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
+| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
| **accept** | **string?** | application/json | [optional] |
### Return type
diff --git a/docs/PayOrderEntity.md b/docs/PayOrderEntity.md
index 6427de1..7e2c3c6 100644
--- a/docs/PayOrderEntity.md
+++ b/docs/PayOrderEntity.md
@@ -6,7 +6,7 @@ Order Pay response once you create a transaction for that order
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**payment_amount** | **decimal** | total amount payable | [optional]
-**cf_payment_id** | **long** | Payment identifier created by Cashfree | [optional]
+**cf_payment_id** | **string** | Payment identifier created by Cashfree | [optional]
**payment_method** | **string** | One of [\"upi\", \"netbanking\", \"card\", \"app\", \"cardless_emi\", \"paylater\", \"banktransfer\"] | [optional]
**channel** | **string** | One of [\"link\", \"collect\", \"qrcode\"]. In an older version we used to support different channels like 'gpay', 'phonepe' etc. However, we now support only the following channels - link, collect and qrcode. To process payments using gpay, you will have to provide channel as 'link' and provider as 'gpay' | [optional]
**action** | **string** | One of [\"link\", \"custom\", \"form\"] | [optional]
diff --git a/docs/PaymentEntity.md b/docs/PaymentEntity.md
index 2d03c0e..36f685a 100644
--- a/docs/PaymentEntity.md
+++ b/docs/PaymentEntity.md
@@ -5,7 +5,7 @@ payment entity full object
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**cf_payment_id** | **long** | | [optional]
+**cf_payment_id** | **string** | | [optional]
**order_id** | **string** | | [optional]
**entity** | **string** | | [optional]
**error_details** | [**ErrorDetailsInPaymentsEntity**](ErrorDetailsInPaymentsEntity.md) | | [optional]
diff --git a/docs/PaymentLinksApi.md b/docs/PaymentLinksApi.md
index ef93b21..3301d66 100644
--- a/docs/PaymentLinksApi.md
+++ b/docs/PaymentLinksApi.md
@@ -39,10 +39,10 @@ namespace Example
var cashfree = new Cashfree();
- var xApiVersion = 2022-09-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2022-09-01")
+ var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01")
var linkId = your-link-id; // string | The payment link ID for which you want to view the details.
var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
- var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
try
{
@@ -65,10 +65,10 @@ namespace Example
| Name | Type | Description | Notes |
|------|------|-------------|-------|
-| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] |
+| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] |
| **linkId** | **string** | The payment link ID for which you want to view the details. | |
| **xRequestId** | **string?** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | [optional] |
-| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
+| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
### Return type
@@ -128,10 +128,10 @@ namespace Example
var cashfree = new Cashfree();
- var xApiVersion = 2022-09-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2022-09-01")
+ var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01")
var createLinkRequest = new CreateLinkRequest(); // CreateLinkRequest | Request Body to Create Payment Links
var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
- var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
try
{
@@ -154,10 +154,10 @@ namespace Example
| Name | Type | Description | Notes |
|------|------|-------------|-------|
-| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] |
+| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] |
| **createLinkRequest** | [**CreateLinkRequest**](CreateLinkRequest.md) | Request Body to Create Payment Links | |
| **xRequestId** | **string?** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | [optional] |
-| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
+| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
### Return type
@@ -217,10 +217,10 @@ namespace Example
var cashfree = new Cashfree();
- var xApiVersion = 2022-09-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2022-09-01")
+ var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01")
var linkId = your-link-id; // string | The payment link ID for which you want to view the details.
var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
- var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
try
{
@@ -243,10 +243,10 @@ namespace Example
| Name | Type | Description | Notes |
|------|------|-------------|-------|
-| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] |
+| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] |
| **linkId** | **string** | The payment link ID for which you want to view the details. | |
| **xRequestId** | **string?** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | [optional] |
-| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
+| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
### Return type
@@ -307,10 +307,10 @@ namespace Example
var cashfree = new Cashfree();
- var xApiVersion = 2022-09-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2022-09-01")
+ var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01")
var linkId = your-link-id; // string | The payment link ID for which you want to view the details.
var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
- var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
try
{
@@ -333,10 +333,10 @@ namespace Example
| Name | Type | Description | Notes |
|------|------|-------------|-------|
-| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] |
+| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] |
| **linkId** | **string** | The payment link ID for which you want to view the details. | |
| **xRequestId** | **string?** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | [optional] |
-| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
+| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
### Return type
diff --git a/docs/PaymentMethodsFilters.md b/docs/PaymentMethodsFilters.md
index ad77739..7683c6f 100644
--- a/docs/PaymentMethodsFilters.md
+++ b/docs/PaymentMethodsFilters.md
@@ -1,5 +1,5 @@
# cashfree_pg.Model.PaymentMethodsFilters
-Filter for specific Payment Methods
+Filter for Payment Methods
## Properties
diff --git a/docs/PaymentsApi.md b/docs/PaymentsApi.md
index b954366..e68dd57 100644
--- a/docs/PaymentsApi.md
+++ b/docs/PaymentsApi.md
@@ -40,11 +40,11 @@ namespace Example
var cashfree = new Cashfree();
- var xApiVersion = 2022-09-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2022-09-01")
+ var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01")
var orderId = your-order-id; // string | The id which uniquely identifies your order
var authorizeOrderRequest = new AuthorizeOrderRequest(); // AuthorizeOrderRequest | Request to Capture or Void Transactions
var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
- var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
try
{
@@ -67,11 +67,11 @@ namespace Example
| Name | Type | Description | Notes |
|------|------|-------------|-------|
-| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] |
+| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] |
| **orderId** | **string** | The id which uniquely identifies your order | |
| **authorizeOrderRequest** | [**AuthorizeOrderRequest**](AuthorizeOrderRequest.md) | Request to Capture or Void Transactions | |
| **xRequestId** | **string?** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | [optional] |
-| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
+| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
### Return type
@@ -132,11 +132,11 @@ namespace Example
var cashfree = new Cashfree();
- var xApiVersion = 2022-09-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2022-09-01")
+ var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01")
var cfPaymentId = 121224562; // string | The Cashfree payment or transaction ID.
var orderAuthenticatePaymentRequest = new OrderAuthenticatePaymentRequest(); // OrderAuthenticatePaymentRequest | Request body to submit/resend headless OTP. To use this API make sure you have headless OTP enabled for your account
var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
- var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
try
{
@@ -159,11 +159,11 @@ namespace Example
| Name | Type | Description | Notes |
|------|------|-------------|-------|
-| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] |
+| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] |
| **cfPaymentId** | **string** | The Cashfree payment or transaction ID. | |
| **orderAuthenticatePaymentRequest** | [**OrderAuthenticatePaymentRequest**](OrderAuthenticatePaymentRequest.md) | Request body to submit/resend headless OTP. To use this API make sure you have headless OTP enabled for your account | |
| **xRequestId** | **string?** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | [optional] |
-| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
+| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
### Return type
@@ -224,11 +224,11 @@ namespace Example
var cashfree = new Cashfree();
- var xApiVersion = 2022-09-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2022-09-01")
+ var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01")
var orderId = your-order-id; // string | The id which uniquely identifies your order
var cfPaymentId = 121224562; // string | The Cashfree payment or transaction ID.
var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
- var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
try
{
@@ -251,11 +251,11 @@ namespace Example
| Name | Type | Description | Notes |
|------|------|-------------|-------|
-| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] |
+| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] |
| **orderId** | **string** | The id which uniquely identifies your order | |
| **cfPaymentId** | **string** | The Cashfree payment or transaction ID. | |
| **xRequestId** | **string?** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | [optional] |
-| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
+| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
### Return type
@@ -316,10 +316,10 @@ namespace Example
var cashfree = new Cashfree();
- var xApiVersion = 2022-09-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2022-09-01")
+ var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01")
var orderId = your-order-id; // string | The id which uniquely identifies your order
var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
- var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
try
{
@@ -342,10 +342,10 @@ namespace Example
| Name | Type | Description | Notes |
|------|------|-------------|-------|
-| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] |
+| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] |
| **orderId** | **string** | The id which uniquely identifies your order | |
| **xRequestId** | **string?** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | [optional] |
-| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
+| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
### Return type
@@ -406,10 +406,10 @@ namespace Example
var cashfree = new Cashfree();
- var xApiVersion = 2022-09-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2022-09-01")
+ var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01")
var payOrderRequest = new PayOrderRequest(); // PayOrderRequest | Request body to create a transaction at cashfree using `payment_session_id`
var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
- var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
try
{
@@ -432,10 +432,10 @@ namespace Example
| Name | Type | Description | Notes |
|------|------|-------------|-------|
-| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] |
+| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] |
| **payOrderRequest** | [**PayOrderRequest**](PayOrderRequest.md) | Request body to create a transaction at cashfree using `payment_session_id` | |
| **xRequestId** | **string?** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | [optional] |
-| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
+| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
### Return type
diff --git a/docs/ReconEntityDataInner.md b/docs/ReconEntityDataInner.md
index ac57970..723f403 100644
--- a/docs/ReconEntityDataInner.md
+++ b/docs/ReconEntityDataInner.md
@@ -23,8 +23,8 @@ Name | Type | Description | Notes
**payment_time** | **string** | Date and time when the payment was initiated. | [optional]
**payment_service_charge** | **decimal** | Service charge applicable for the payment. | [optional]
**payment_service_tax** | **decimal** | Service tax applicable on the payment. | [optional]
-**cf_payment_id** | **long** | Cashfree Payments unique ID to identify a payment. | [optional]
-**cf_settlement_id** | **int** | Unique ID to identify the settlement. | [optional]
+**cf_payment_id** | **string** | Cashfree Payments unique ID to identify a payment. | [optional]
+**cf_settlement_id** | **string** | Unique ID to identify the settlement. | [optional]
**settlement_date** | **string** | Date and time when the settlement was processed. | [optional]
**settlement_utr** | **string** | Unique transaction reference number of the settlement. | [optional]
**split_service_charge** | **decimal** | Service charge that is applicable for splitting the payment. | [optional]
diff --git a/docs/RefundEntity.md b/docs/RefundEntity.md
index c966254..b4f38f2 100644
--- a/docs/RefundEntity.md
+++ b/docs/RefundEntity.md
@@ -5,7 +5,7 @@ The refund entity
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**cf_payment_id** | **long** | Cashfree Payments ID of the payment for which refund is initiated | [optional]
+**cf_payment_id** | **string** | Cashfree Payments ID of the payment for which refund is initiated | [optional]
**cf_refund_id** | **string** | Cashfree Payments ID for a refund | [optional]
**order_id** | **string** | Merchant’s order Id of the order for which refund is initiated | [optional]
**refund_id** | **string** | Merchant’s refund ID of the refund | [optional]
diff --git a/docs/RefundsApi.md b/docs/RefundsApi.md
index 60be119..aad272d 100644
--- a/docs/RefundsApi.md
+++ b/docs/RefundsApi.md
@@ -38,11 +38,11 @@ namespace Example
var cashfree = new Cashfree();
- var xApiVersion = 2022-09-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2022-09-01")
+ var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01")
var orderId = your-order-id; // string | The id which uniquely identifies your order
var orderCreateRefundRequest = new OrderCreateRefundRequest(); // OrderCreateRefundRequest | Request Body to Create Refunds
var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
- var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
try
{
@@ -65,11 +65,11 @@ namespace Example
| Name | Type | Description | Notes |
|------|------|-------------|-------|
-| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] |
+| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] |
| **orderId** | **string** | The id which uniquely identifies your order | |
| **orderCreateRefundRequest** | [**OrderCreateRefundRequest**](OrderCreateRefundRequest.md) | Request Body to Create Refunds | |
| **xRequestId** | **string?** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | [optional] |
-| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
+| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
### Return type
@@ -130,11 +130,11 @@ namespace Example
var cashfree = new Cashfree();
- var xApiVersion = 2022-09-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2022-09-01")
+ var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01")
var orderId = your-order-id; // string | The id which uniquely identifies your order
var refundId = some-refund-id; // string | Refund Id of the refund you want to fetch.
var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
- var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
try
{
@@ -157,11 +157,11 @@ namespace Example
| Name | Type | Description | Notes |
|------|------|-------------|-------|
-| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] |
+| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] |
| **orderId** | **string** | The id which uniquely identifies your order | |
| **refundId** | **string** | Refund Id of the refund you want to fetch. | |
| **xRequestId** | **string?** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | [optional] |
-| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
+| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
### Return type
@@ -222,10 +222,10 @@ namespace Example
var cashfree = new Cashfree();
- var xApiVersion = 2022-09-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2022-09-01")
+ var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01")
var orderId = your-order-id; // string | The id which uniquely identifies your order
var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
- var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
try
{
@@ -248,10 +248,10 @@ namespace Example
| Name | Type | Description | Notes |
|------|------|-------------|-------|
-| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] |
+| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] |
| **orderId** | **string** | The id which uniquely identifies your order | |
| **xRequestId** | **string?** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | [optional] |
-| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
+| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
### Return type
diff --git a/docs/SettlementEntity.md b/docs/SettlementEntity.md
index 43bfdb7..e48100f 100644
--- a/docs/SettlementEntity.md
+++ b/docs/SettlementEntity.md
@@ -5,8 +5,8 @@ Settlement entity object
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**cf_payment_id** | **long** | | [optional]
-**cf_settlement_id** | **long** | | [optional]
+**cf_payment_id** | **string** | | [optional]
+**cf_settlement_id** | **string** | | [optional]
**settlement_currency** | **string** | | [optional]
**order_id** | **string** | | [optional]
**entity** | **string** | | [optional]
diff --git a/docs/SettlementFetchReconRequest.md b/docs/SettlementFetchReconRequest.md
index 490635b..856fc57 100644
--- a/docs/SettlementFetchReconRequest.md
+++ b/docs/SettlementFetchReconRequest.md
@@ -6,7 +6,7 @@ Recon Request Object
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**pagination** | [**FetchSettlementsRequestPagination**](FetchSettlementsRequestPagination.md) | |
-**filters** | [**SettlementFetchReconRequestFilters**](SettlementFetchReconRequestFilters.md) | |
+**filters** | [**FetchSettlementsRequestFilters**](FetchSettlementsRequestFilters.md) | |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/SettlementReconEntityDataInner.md b/docs/SettlementReconEntityDataInner.md
index 9eeedf1..48c8121 100644
--- a/docs/SettlementReconEntityDataInner.md
+++ b/docs/SettlementReconEntityDataInner.md
@@ -23,8 +23,8 @@ Name | Type | Description | Notes
**payment_time** | **string** | Date and time when the payment was initiated. | [optional]
**payment_service_charge** | **decimal** | Service charge applicable for the payment. | [optional]
**payment_service_tax** | **decimal** | Service tax applicable on the payment. | [optional]
-**cf_payment_id** | **long** | Cashfree Payments unique ID to identify a payment. | [optional]
-**cf_settlement_id** | **int** | Unique ID to identify the settlement. | [optional]
+**cf_payment_id** | **string** | Cashfree Payments unique ID to identify a payment. | [optional]
+**cf_settlement_id** | **string** | Unique ID to identify the settlement. | [optional]
**settlement_date** | **string** | Date and time when the settlement was processed. | [optional]
**settlement_utr** | **string** | Unique transaction reference number of the settlement. | [optional]
**split_service_charge** | **decimal** | Service charge that is applicable for splitting the payment. | [optional]
diff --git a/docs/SettlementReconciliationApi.md b/docs/SettlementReconciliationApi.md
index 71ab3b6..7b38d6c 100644
--- a/docs/SettlementReconciliationApi.md
+++ b/docs/SettlementReconciliationApi.md
@@ -37,11 +37,11 @@ namespace Example
var cashfree = new Cashfree();
- var xApiVersion = 2022-09-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2022-09-01")
+ var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01")
var fetchSettlementsRequest = new FetchSettlementsRequest(); // FetchSettlementsRequest | Request Body to get the settlements
var contentType = application/json; // string? | application/json (optional)
var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
- var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
var accept = application/json; // string? | application/json (optional)
try
@@ -65,11 +65,11 @@ namespace Example
| Name | Type | Description | Notes |
|------|------|-------------|-------|
-| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] |
+| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] |
| **fetchSettlementsRequest** | [**FetchSettlementsRequest**](FetchSettlementsRequest.md) | Request Body to get the settlements | |
| **contentType** | **string?** | application/json | [optional] |
| **xRequestId** | **string?** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | [optional] |
-| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
+| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
| **accept** | **string?** | application/json | [optional] |
### Return type
@@ -130,11 +130,11 @@ namespace Example
var cashfree = new Cashfree();
- var xApiVersion = 2022-09-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2022-09-01")
+ var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01")
var settlementFetchReconRequest = new SettlementFetchReconRequest(); // SettlementFetchReconRequest | Request Body for the settlement reconciliation
var contentType = application/json; // string? | application/json (optional)
var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
- var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
var accept = application/json; // string? | application/json (optional)
try
@@ -158,11 +158,11 @@ namespace Example
| Name | Type | Description | Notes |
|------|------|-------------|-------|
-| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] |
+| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] |
| **settlementFetchReconRequest** | [**SettlementFetchReconRequest**](SettlementFetchReconRequest.md) | Request Body for the settlement reconciliation | |
| **contentType** | **string?** | application/json | [optional] |
| **xRequestId** | **string?** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | [optional] |
-| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
+| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
| **accept** | **string?** | application/json | [optional] |
### Return type
diff --git a/docs/SettlementsApi.md b/docs/SettlementsApi.md
index 369d1d8..50df722 100644
--- a/docs/SettlementsApi.md
+++ b/docs/SettlementsApi.md
@@ -36,10 +36,10 @@ namespace Example
var cashfree = new Cashfree();
- var xApiVersion = 2022-09-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2022-09-01")
+ var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01")
var orderId = your-order-id; // string | The id which uniquely identifies your order
var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
- var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
try
{
@@ -62,10 +62,10 @@ namespace Example
| Name | Type | Description | Notes |
|------|------|-------------|-------|
-| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] |
+| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] |
| **orderId** | **string** | The id which uniquely identifies your order | |
| **xRequestId** | **string?** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | [optional] |
-| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
+| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
### Return type
diff --git a/docs/SoftPOSApi.md b/docs/SoftPOSApi.md
index c569e1a..05f0840 100644
--- a/docs/SoftPOSApi.md
+++ b/docs/SoftPOSApi.md
@@ -5,7 +5,7 @@ All URIs are relative to *https://sandbox.cashfree.com/pg*
| Method | HTTP request | Description |
|--------|--------------|-------------|
| [**SposCreateTerminal**](SoftPOSApi.md#sposcreateterminal) | **POST** /terminal | Create Terminal |
-| [**SposCreateTerminalTransaction**](SoftPOSApi.md#sposcreateterminaltransaction) | **POST** /terminal/transactions | Create Terminal |
+| [**SposCreateTerminalTransaction**](SoftPOSApi.md#sposcreateterminaltransaction) | **POST** /terminal/transactions | Create Terminal Transaction |
| [**SposFetchTerminal**](SoftPOSApi.md#sposfetchterminal) | **GET** /terminal/{terminal_phone_no} | Get terminal status using phone number |
| [**SposFetchTerminalQRCodes**](SoftPOSApi.md#sposfetchterminalqrcodes) | **GET** /terminal/qrcodes | Fetch Terminal QR Codes |
@@ -39,10 +39,10 @@ namespace Example
var cashfree = new Cashfree();
- var xApiVersion = 2022-09-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2022-09-01")
+ var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01")
var createTerminalRequest = new CreateTerminalRequest(); // CreateTerminalRequest | Request Body to Create Terminal for SPOS
var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
- var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
try
{
@@ -65,10 +65,10 @@ namespace Example
| Name | Type | Description | Notes |
|------|------|-------------|-------|
-| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] |
+| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] |
| **createTerminalRequest** | [**CreateTerminalRequest**](CreateTerminalRequest.md) | Request Body to Create Terminal for SPOS | |
| **xRequestId** | **string?** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | [optional] |
-| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
+| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
### Return type
@@ -102,7 +102,7 @@ namespace Example
# **SposCreateTerminalTransaction**
> TerminalTransactionEntity SposCreateTerminalTransaction (string xApiVersion, CreateTerminalTransactionRequest createTerminalTransactionRequest, string? xRequestId = null, Guid? xIdempotencyKey = null)
-Create Terminal
+Create Terminal Transaction
Use this API to create a new terminal transaction. To use this API you should first create an order using the Create Order API. Also, you need to enter the terminal details while creating the order and pass the same terminal information while creating a transaction using the below mentioned API.
@@ -128,14 +128,14 @@ namespace Example
var cashfree = new Cashfree();
- var xApiVersion = 2022-09-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2022-09-01")
+ var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01")
var createTerminalTransactionRequest = new CreateTerminalTransactionRequest(); // CreateTerminalTransactionRequest | Request body to create a terminal transaction
var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
- var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
try
{
- // Create Terminal
+ // Create Terminal Transaction
TerminalTransactionEntity result = cashfree.SposCreateTerminalTransaction(xApiVersion, createTerminalTransactionRequest, xRequestId, xIdempotencyKey);
Debug.WriteLine(result);
}
@@ -154,10 +154,10 @@ namespace Example
| Name | Type | Description | Notes |
|------|------|-------------|-------|
-| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] |
+| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] |
| **createTerminalTransactionRequest** | [**CreateTerminalTransactionRequest**](CreateTerminalTransactionRequest.md) | Request body to create a terminal transaction | |
| **xRequestId** | **string?** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | [optional] |
-| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
+| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
### Return type
@@ -217,10 +217,10 @@ namespace Example
var cashfree = new Cashfree();
- var xApiVersion = 2022-09-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2022-09-01")
+ var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01")
var terminalPhoneNo = 6309291183; // string | The terminal for which you want to view the order details.
var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
- var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
try
{
@@ -243,10 +243,10 @@ namespace Example
| Name | Type | Description | Notes |
|------|------|-------------|-------|
-| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] |
+| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] |
| **terminalPhoneNo** | **string** | The terminal for which you want to view the order details. | |
| **xRequestId** | **string?** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | [optional] |
-| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
+| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
### Return type
@@ -306,11 +306,11 @@ namespace Example
var cashfree = new Cashfree();
- var xApiVersion = 2022-09-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2022-09-01")
+ var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01")
var terminalPhoneNo = 9876543214; // string | Phone number assigned to the terminal. Required if you are not providing the cf_terminal_id in the request.
var cfTerminalId = 123344; // string | Cashfree terminal id for which you want to get staticQRs. Required if you are not providing the terminal_phone_number in the request.
var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
- var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
try
{
@@ -333,11 +333,11 @@ namespace Example
| Name | Type | Description | Notes |
|------|------|-------------|-------|
-| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] |
+| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] |
| **terminalPhoneNo** | **string** | Phone number assigned to the terminal. Required if you are not providing the cf_terminal_id in the request. | |
| **cfTerminalId** | **string** | Cashfree terminal id for which you want to get staticQRs. Required if you are not providing the terminal_phone_number in the request. | |
| **xRequestId** | **string?** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | [optional] |
-| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
+| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
### Return type
diff --git a/docs/TerminalDetails.md b/docs/TerminalDetails.md
index e6d30cd..f9a663c 100644
--- a/docs/TerminalDetails.md
+++ b/docs/TerminalDetails.md
@@ -6,7 +6,7 @@ Use this if you are creating an order for cashfree's softPOS
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**added_on** | **string** | date time at which terminal is added | [optional]
-**cf_terminal_id** | **int** | cashfree terminal id | [optional]
+**cf_terminal_id** | **string** | cashfree terminal id | [optional]
**last_updated_on** | **string** | last instant when this terminal was updated | [optional]
**terminal_address** | **string** | location of terminal | [optional]
**terminal_id** | **string** | terminal id for merchant reference |
diff --git a/docs/TerminalTransactionEntity.md b/docs/TerminalTransactionEntity.md
index eff034b..f55ce41 100644
--- a/docs/TerminalTransactionEntity.md
+++ b/docs/TerminalTransactionEntity.md
@@ -5,7 +5,7 @@ Create terminal response object
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**cf_payment_id** | **long** | | [optional]
+**cf_payment_id** | **string** | | [optional]
**payment_amount** | **int** | | [optional]
**payment_method** | **string** | | [optional]
**payment_url** | **string** | | [optional]
diff --git a/docs/TerminateOrderRequest.md b/docs/TerminateOrderRequest.md
new file mode 100644
index 0000000..b1aadb6
--- /dev/null
+++ b/docs/TerminateOrderRequest.md
@@ -0,0 +1,11 @@
+# cashfree_pg.Model.TerminateOrderRequest
+Request to terminate an active order at Cashfree
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**order_status** | **string** | To terminate an order, pass order_status as \"TERMINATE\". Please note, order might not be terminated - confirm with the order_status in response. \"TERMINATION_REQUESTED\" states that the request is recieved and we are working on it. If the order terminates successfully, status will change to \"TERMINATED\". Incase there's any active transaction which moved to success - order might not get terminated. |
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/TokenVaultApi.md b/docs/TokenVaultApi.md
index 0e7596e..32694b2 100644
--- a/docs/TokenVaultApi.md
+++ b/docs/TokenVaultApi.md
@@ -39,11 +39,11 @@ namespace Example
var cashfree = new Cashfree();
- var xApiVersion = 2022-09-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2022-09-01")
+ var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01")
var customerId = your-customer-id; // string | Your Customer ID that you had sent during create order API `POST/orders`
var instrumentId = some-instrument-id; // string | The instrument_id which needs to be deleted
var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
- var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
try
{
@@ -66,11 +66,11 @@ namespace Example
| Name | Type | Description | Notes |
|------|------|-------------|-------|
-| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] |
+| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] |
| **customerId** | **string** | Your Customer ID that you had sent during create order API `POST/orders` | |
| **instrumentId** | **string** | The instrument_id which needs to be deleted | |
| **xRequestId** | **string?** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | [optional] |
-| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
+| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
### Return type
@@ -131,11 +131,11 @@ namespace Example
var cashfree = new Cashfree();
- var xApiVersion = 2022-09-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2022-09-01")
+ var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01")
var customerId = your-customer-id; // string | Your Customer ID that you had sent during create order API `POST/orders`
var instrumentId = some-instrument-id; // string | The instrument_id of the saved instrument which needs to be queried
var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
- var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
try
{
@@ -158,11 +158,11 @@ namespace Example
| Name | Type | Description | Notes |
|------|------|-------------|-------|
-| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] |
+| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] |
| **customerId** | **string** | Your Customer ID that you had sent during create order API `POST/orders` | |
| **instrumentId** | **string** | The instrument_id of the saved instrument which needs to be queried | |
| **xRequestId** | **string?** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | [optional] |
-| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
+| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
### Return type
@@ -223,11 +223,11 @@ namespace Example
var cashfree = new Cashfree();
- var xApiVersion = 2022-09-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2022-09-01")
+ var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01")
var customerId = your-customer-id; // string | Your Customer ID that you had sent during create order API `POST/orders`
var instrumentType = card; // string | Payment mode or type of saved instrument
var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
- var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
try
{
@@ -250,11 +250,11 @@ namespace Example
| Name | Type | Description | Notes |
|------|------|-------------|-------|
-| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] |
+| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] |
| **customerId** | **string** | Your Customer ID that you had sent during create order API `POST/orders` | |
| **instrumentType** | **string** | Payment mode or type of saved instrument | |
| **xRequestId** | **string?** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | [optional] |
-| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
+| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
### Return type
@@ -314,11 +314,11 @@ namespace Example
var cashfree = new Cashfree();
- var xApiVersion = 2022-09-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2022-09-01")
+ var xApiVersion = 2023-08-01; // string | API version to be used. Format is in YYYY-MM-DD (default to "2023-08-01")
var customerId = your-customer-id; // string | Your Customer ID that you had sent during create order API `POST/orders`
var instrumentId = some-instrument-id; // string | The instrument_id of the saved card instrument which needs to be queried
var xRequestId = 4dfb9780-46fe-11ee-be56-0242ac120002; // string? | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
- var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ var xIdempotencyKey = 47bf8872-46fe-11ee-be56-0242ac120002; // Guid? | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
try
{
@@ -341,11 +341,11 @@ namespace Example
| Name | Type | Description | Notes |
|------|------|-------------|-------|
-| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2022-09-01"] |
+| **xApiVersion** | **string** | API version to be used. Format is in YYYY-MM-DD | [default to "2023-08-01"] |
| **customerId** | **string** | Your Customer ID that you had sent during create order API `POST/orders` | |
| **instrumentId** | **string** | The instrument_id of the saved card instrument which needs to be queried | |
| **xRequestId** | **string?** | Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree | [optional] |
-| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
+| **xIdempotencyKey** | **Guid?** | An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. | [optional] |
### Return type
diff --git a/src/cashfree_pg/Client/ApiClient.cs b/src/cashfree_pg/Client/ApiClient.cs
index 800c925..072da15 100644
--- a/src/cashfree_pg/Client/ApiClient.cs
+++ b/src/cashfree_pg/Client/ApiClient.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -94,7 +94,7 @@ public class Cashfree {
public static CFEnvironment SANDBOX = CFEnvironment.SANDBOX;
public static CFEnvironment PRODUCTION = CFEnvironment.PRODUCTION;
- public static string XApiVersion = "2022-09-01";
+ public static string XApiVersion = "2023-08-01";
///
/// The client for accessing this underlying API synchronously.
@@ -129,13 +129,150 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
}
///
- /// Get Eligible Cardless EMI Use this API to get eligible Cardless EMI Payment Methods available for a customer on an order basis their phone number.
+ /// Create Customer at Cashfree Create Customer at Cashfree
+ ///
+ /// Thrown when fails to make API call
+ /// API version to be used. Format is in YYYY-MM-DD
+ /// Request to create a new customer at Cashfree
+ /// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
+ /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ /// ApiResponse of CustomerEntity
+ public cashfree_pg.Client.ApiResponse PGCreateCustomer(string xApiVersion, CreateCustomerRequest createCustomerRequest, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), Configuration? configuration = null)
+ {
+ var env = "sandbox";
+ if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) {
+ env = "production";
+ }
+ if(Cashfree.XEnableErrorAnalytics) {
+ using (SentrySdk.Init(o =>
+ {
+ o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960";
+ // When configuring for the first time, to see what the SDK is doing:
+ o.Debug = true;
+ // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring.
+ // We recommend adjusting this value in production.
+ o.TracesSampleRate = 1.0;
+ // Enable Global Mode if running in a client app
+ o.IsGlobalModeEnabled = false;
+ o.EnableTracing = true;
+ o.AttachStacktrace = true;
+ o.Environment = env;
+ o.Release = "4.0.0";
+ o.AddEventProcessor(new CashfreeEventProcessor());
+ }));
+ }
+ var config = new Configuration();
+ if(configuration != null) {
+ config = configuration;
+ }
+ this.Client = new cashfree_pg.Client.ApiClient("https://sandbox.cashfree.com/pg");
+ if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) {
+ this.Client = new cashfree_pg.Client.ApiClient("https://api.cashfree.com/pg");
+ }
+ // verify the required parameter 'xApiVersion' is set
+ if (xApiVersion == null)
+ throw new cashfree_pg.Client.ApiException(400, "Missing required parameter 'xApiVersion' when calling CustomersApi->PGCreateCustomer");
+
+ // verify the required parameter 'createCustomerRequest' is set
+ if (createCustomerRequest == null)
+ throw new cashfree_pg.Client.ApiException(400, "Missing required parameter 'createCustomerRequest' when calling CustomersApi->PGCreateCustomer");
+
+ cashfree_pg.Client.RequestOptions localVarRequestOptions = new cashfree_pg.Client.RequestOptions();
+
+ string[] _contentTypes = new string[] {
+ "application/json"
+ };
+
+ // to determine the Accept header
+ string[] _accepts = new string[] {
+ "application/json"
+ };
+
+ var localVarContentType = cashfree_pg.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
+ if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
+
+ var localVarAccept = cashfree_pg.Client.ClientUtils.SelectHeaderAccept(_accepts);
+ if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
+
+ localVarRequestOptions.HeaderParameters.Add("x-api-version", cashfree_pg.Client.ClientUtils.ParameterToString(xApiVersion)); // header parameter
+ if (xRequestId != null)
+ {
+ localVarRequestOptions.HeaderParameters.Add("x-request-id", cashfree_pg.Client.ClientUtils.ParameterToString(xRequestId)); // header parameter
+ }
+ if (xIdempotencyKey != null)
+ {
+ localVarRequestOptions.HeaderParameters.Add("x-idempotency-key", cashfree_pg.Client.ClientUtils.ParameterToString(xIdempotencyKey)); // header parameter
+ }
+ localVarRequestOptions.Data = createCustomerRequest;
+
+ // authentication (XPartnerAPIKey) required
+
+
+ // authentication (XClientSecret) required
+
+
+ // authentication (XPartnerMerchantID) required
+
+
+ // authentication (XClientID) required
+
+
+ // authentication (XClientSignatureHeader) required
+
+
+
+ if (!string.IsNullOrEmpty(Cashfree.XClientId))
+ {
+ localVarRequestOptions.HeaderParameters.Add("x-client-id", Cashfree.XClientId);
+ }
+
+ if (!string.IsNullOrEmpty(Cashfree.XClientSecret))
+ {
+ localVarRequestOptions.HeaderParameters.Add("x-client-secret", Cashfree.XClientSecret);
+ }
+
+ if (!string.IsNullOrEmpty(Cashfree.XPartnerApiKey))
+ {
+ localVarRequestOptions.HeaderParameters.Add("x-partner-apikey", Cashfree.XPartnerApiKey);
+ }
+
+ if (!string.IsNullOrEmpty(Cashfree.XPartnerMerchantId))
+ {
+ localVarRequestOptions.HeaderParameters.Add("x-partner-merchantid", Cashfree.XPartnerMerchantId);
+ }
+
+ if (!string.IsNullOrEmpty(Cashfree.XClientSignature))
+ {
+ localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature);
+ }
+
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.0");
+
+ // make the HTTP request
+ var localVarResponse = this.Client.Post("/customers", localVarRequestOptions, config);
+
+ if (this.ExceptionFactory != null)
+ {
+ Exception _exception = this.ExceptionFactory("PGCreateCustomer", localVarResponse);
+ if (_exception != null) {
+ if(Cashfree.XEnableErrorAnalytics) {
+ var sentryEvent = new SentryEvent(_exception);
+ SentrySdk.CaptureEvent(sentryEvent);
+ }
+ throw _exception;
+ }
+ }
+
+ return localVarResponse;
+ }
+ ///
+ /// Get Eligible Cardless EMI Payment Methods for a customer on an order Use this API to get eligible Cardless EMI Payment Methods available for a customer on an order basis their phone number.
///
/// Thrown when fails to make API call
/// API version to be used. Format is in YYYY-MM-DD
/// Request Body to get eligible cardless emi options for a customer and order
/// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
- /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
/// ApiResponse of List<EligibilityCardlessEMIEntity>
public cashfree_pg.Client.ApiResponse> PGEligibilityFetchCardlessEMI(string xApiVersion, EligibilityFetchCardlessEMIRequest eligibilityFetchCardlessEMIRequest, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), Configuration? configuration = null)
{
@@ -157,7 +294,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "3.1.4";
+ o.Release = "4.0.0";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -246,7 +383,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature);
}
- localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.4");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.0");
// make the HTTP request
var localVarResponse = this.Client.Post>("/eligibility/cardlessemi", localVarRequestOptions, config);
@@ -266,13 +403,13 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
return localVarResponse;
}
///
- /// Get Eligible Offers Use this API to get eligible offers for an order_id or order amount.
+ /// Get Eligible Offers for an Order Use this API to get eligible offers for an order_id or order amount.
///
/// Thrown when fails to make API call
/// API version to be used. Format is in YYYY-MM-DD
/// Request Body to get eligible offers for a customer and order
/// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
- /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
/// ApiResponse of List<EligibilityOfferEntity>
public cashfree_pg.Client.ApiResponse> PGEligibilityFetchOffers(string xApiVersion, EligibilityFetchOffersRequest eligibilityFetchOffersRequest, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), Configuration? configuration = null)
{
@@ -294,7 +431,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "3.1.4";
+ o.Release = "4.0.0";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -383,7 +520,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature);
}
- localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.4");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.0");
// make the HTTP request
var localVarResponse = this.Client.Post>("/eligibility/offers", localVarRequestOptions, config);
@@ -403,13 +540,13 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
return localVarResponse;
}
///
- /// Get Eligible Paylater Use this API to get eligible Paylater Payment Methods for a customer on an order.
+ /// Get Eligible Paylater for a customer on an order Use this API to get eligible Paylater Payment Methods for a customer on an order.
///
/// Thrown when fails to make API call
/// API version to be used. Format is in YYYY-MM-DD
/// Request Body to get eligible paylater options for a customer and order
/// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
- /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
/// ApiResponse of List<EligibilityPaylaterEntity>
public cashfree_pg.Client.ApiResponse> PGEligibilityFetchPaylater(string xApiVersion, EligibilityFetchPaylaterRequest eligibilityFetchPaylaterRequest, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), Configuration? configuration = null)
{
@@ -431,7 +568,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "3.1.4";
+ o.Release = "4.0.0";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -520,7 +657,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature);
}
- localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.4");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.0");
// make the HTTP request
var localVarResponse = this.Client.Post>("/eligibility/paylater", localVarRequestOptions, config);
@@ -540,13 +677,13 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
return localVarResponse;
}
///
- /// Get Eligible Payment Methods Use this API to get eligible Payment Methods
+ /// Get eligible Payment Methods Use this API to get eligible Payment Methods
///
/// Thrown when fails to make API call
/// API version to be used. Format is in YYYY-MM-DD
/// Request Body to get eligible payment methods for an account and order
/// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
- /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
/// ApiResponse of List<EligibilityPaymentMethodsEntity>
public cashfree_pg.Client.ApiResponse> PGEligibilityFetchPaymentMethods(string xApiVersion, EligibilityFetchPaymentMethodsRequest eligibilityFetchPaymentMethodsRequest, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), Configuration? configuration = null)
{
@@ -568,7 +705,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "3.1.4";
+ o.Release = "4.0.0";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -657,7 +794,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature);
}
- localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.4");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.0");
// make the HTTP request
var localVarResponse = this.Client.Post>("/eligibility/payment_methods", localVarRequestOptions, config);
@@ -683,7 +820,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
/// API version to be used. Format is in YYYY-MM-DD
/// Request body to create an offer at Cashfree
/// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
- /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
/// ApiResponse of OfferEntity
public cashfree_pg.Client.ApiResponse PGCreateOffer(string xApiVersion, CreateOfferRequest createOfferRequest, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), Configuration? configuration = null)
{
@@ -705,7 +842,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "3.1.4";
+ o.Release = "4.0.0";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -794,7 +931,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature);
}
- localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.4");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.0");
// make the HTTP request
var localVarResponse = this.Client.Post("/offers", localVarRequestOptions, config);
@@ -820,7 +957,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
/// API version to be used. Format is in YYYY-MM-DD
/// The offer ID for which you want to view the offer details.
/// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
- /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
/// ApiResponse of OfferEntity
public cashfree_pg.Client.ApiResponse PGFetchOffer(string xApiVersion, string offerId, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), Configuration? configuration = null)
{
@@ -842,7 +979,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "3.1.4";
+ o.Release = "4.0.0";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -930,7 +1067,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature);
}
- localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.4");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.0");
// make the HTTP request
var localVarResponse = this.Client.Get("/offers/{offer_id}", localVarRequestOptions, config);
@@ -956,7 +1093,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
/// API version to be used. Format is in YYYY-MM-DD
/// Request body to create an order at cashfree
/// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
- /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
/// ApiResponse of OrderEntity
public cashfree_pg.Client.ApiResponse PGCreateOrder(string xApiVersion, CreateOrderRequest createOrderRequest, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), Configuration? configuration = null)
{
@@ -978,7 +1115,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "3.1.4";
+ o.Release = "4.0.0";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -1067,7 +1204,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature);
}
- localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.4");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.0");
// make the HTTP request
var localVarResponse = this.Client.Post("/orders", localVarRequestOptions, config);
@@ -1093,7 +1230,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
/// API version to be used. Format is in YYYY-MM-DD
/// The id which uniquely identifies your order
/// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
- /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
/// ApiResponse of OrderEntity
public cashfree_pg.Client.ApiResponse PGFetchOrder(string xApiVersion, string orderId, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), Configuration? configuration = null)
{
@@ -1115,7 +1252,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "3.1.4";
+ o.Release = "4.0.0";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -1203,7 +1340,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature);
}
- localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.4");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.0");
// make the HTTP request
var localVarResponse = this.Client.Get("/orders/{order_id}", localVarRequestOptions, config);
@@ -1223,6 +1360,149 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
return localVarResponse;
}
///
+ /// Terminate Order Use this API to terminate the order that was created at Cashfree's using the `order_id`.
+ ///
+ /// Thrown when fails to make API call
+ /// API version to be used. Format is in YYYY-MM-DD
+ /// The id which uniquely identifies your order
+ /// Request body to terminate an order at cashfree
+ /// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
+ /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ /// ApiResponse of OrderEntity
+ public cashfree_pg.Client.ApiResponse PGTerminateOrder(string xApiVersion, string orderId, TerminateOrderRequest terminateOrderRequest, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), Configuration? configuration = null)
+ {
+ var env = "sandbox";
+ if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) {
+ env = "production";
+ }
+ if(Cashfree.XEnableErrorAnalytics) {
+ using (SentrySdk.Init(o =>
+ {
+ o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960";
+ // When configuring for the first time, to see what the SDK is doing:
+ o.Debug = true;
+ // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring.
+ // We recommend adjusting this value in production.
+ o.TracesSampleRate = 1.0;
+ // Enable Global Mode if running in a client app
+ o.IsGlobalModeEnabled = false;
+ o.EnableTracing = true;
+ o.AttachStacktrace = true;
+ o.Environment = env;
+ o.Release = "4.0.0";
+ o.AddEventProcessor(new CashfreeEventProcessor());
+ }));
+ }
+ var config = new Configuration();
+ if(configuration != null) {
+ config = configuration;
+ }
+ this.Client = new cashfree_pg.Client.ApiClient("https://sandbox.cashfree.com/pg");
+ if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) {
+ this.Client = new cashfree_pg.Client.ApiClient("https://api.cashfree.com/pg");
+ }
+ // verify the required parameter 'xApiVersion' is set
+ if (xApiVersion == null)
+ throw new cashfree_pg.Client.ApiException(400, "Missing required parameter 'xApiVersion' when calling OrdersApi->PGTerminateOrder");
+
+ // verify the required parameter 'orderId' is set
+ if (orderId == null)
+ throw new cashfree_pg.Client.ApiException(400, "Missing required parameter 'orderId' when calling OrdersApi->PGTerminateOrder");
+
+ // verify the required parameter 'terminateOrderRequest' is set
+ if (terminateOrderRequest == null)
+ throw new cashfree_pg.Client.ApiException(400, "Missing required parameter 'terminateOrderRequest' when calling OrdersApi->PGTerminateOrder");
+
+ cashfree_pg.Client.RequestOptions localVarRequestOptions = new cashfree_pg.Client.RequestOptions();
+
+ string[] _contentTypes = new string[] {
+ "application/json"
+ };
+
+ // to determine the Accept header
+ string[] _accepts = new string[] {
+ "application/json"
+ };
+
+ var localVarContentType = cashfree_pg.Client.ClientUtils.SelectHeaderContentType(_contentTypes);
+ if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType);
+
+ var localVarAccept = cashfree_pg.Client.ClientUtils.SelectHeaderAccept(_accepts);
+ if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept);
+
+ localVarRequestOptions.PathParameters.Add("order_id", cashfree_pg.Client.ClientUtils.ParameterToString(orderId)); // path parameter
+ localVarRequestOptions.HeaderParameters.Add("x-api-version", cashfree_pg.Client.ClientUtils.ParameterToString(xApiVersion)); // header parameter
+ if (xRequestId != null)
+ {
+ localVarRequestOptions.HeaderParameters.Add("x-request-id", cashfree_pg.Client.ClientUtils.ParameterToString(xRequestId)); // header parameter
+ }
+ if (xIdempotencyKey != null)
+ {
+ localVarRequestOptions.HeaderParameters.Add("x-idempotency-key", cashfree_pg.Client.ClientUtils.ParameterToString(xIdempotencyKey)); // header parameter
+ }
+ localVarRequestOptions.Data = terminateOrderRequest;
+
+ // authentication (XPartnerAPIKey) required
+
+
+ // authentication (XClientSecret) required
+
+
+ // authentication (XPartnerMerchantID) required
+
+
+ // authentication (XClientID) required
+
+
+ // authentication (XClientSignatureHeader) required
+
+
+
+ if (!string.IsNullOrEmpty(Cashfree.XClientId))
+ {
+ localVarRequestOptions.HeaderParameters.Add("x-client-id", Cashfree.XClientId);
+ }
+
+ if (!string.IsNullOrEmpty(Cashfree.XClientSecret))
+ {
+ localVarRequestOptions.HeaderParameters.Add("x-client-secret", Cashfree.XClientSecret);
+ }
+
+ if (!string.IsNullOrEmpty(Cashfree.XPartnerApiKey))
+ {
+ localVarRequestOptions.HeaderParameters.Add("x-partner-apikey", Cashfree.XPartnerApiKey);
+ }
+
+ if (!string.IsNullOrEmpty(Cashfree.XPartnerMerchantId))
+ {
+ localVarRequestOptions.HeaderParameters.Add("x-partner-merchantid", Cashfree.XPartnerMerchantId);
+ }
+
+ if (!string.IsNullOrEmpty(Cashfree.XClientSignature))
+ {
+ localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature);
+ }
+
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.0");
+
+ // make the HTTP request
+ var localVarResponse = this.Client.Patch("/orders/{order_id}", localVarRequestOptions, config);
+
+ if (this.ExceptionFactory != null)
+ {
+ Exception _exception = this.ExceptionFactory("PGTerminateOrder", localVarResponse);
+ if (_exception != null) {
+ if(Cashfree.XEnableErrorAnalytics) {
+ var sentryEvent = new SentryEvent(_exception);
+ SentrySdk.CaptureEvent(sentryEvent);
+ }
+ throw _exception;
+ }
+ }
+
+ return localVarResponse;
+ }
+ ///
/// PG Reconciliation - Use this API to get the payment gateway reconciliation details with date range. - It will have events for your payment account
///
/// Thrown when fails to make API call
@@ -1230,7 +1510,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
/// Request Body for the reconciliation
/// application/json (optional)
/// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
- /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
/// application/json (optional)
/// ApiResponse of ReconEntity
public cashfree_pg.Client.ApiResponse PGFetchRecon(string xApiVersion, FetchReconRequest fetchReconRequest, string? contentType = default(string?), string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), string? accept = default(string?), Configuration? configuration = null)
@@ -1253,7 +1533,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "3.1.4";
+ o.Release = "4.0.0";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -1350,7 +1630,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature);
}
- localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.4");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.0");
// make the HTTP request
var localVarResponse = this.Client.Post("/recon", localVarRequestOptions, config);
@@ -1376,7 +1656,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
/// API version to be used. Format is in YYYY-MM-DD
/// The payment link ID for which you want to view the details.
/// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
- /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
/// ApiResponse of LinkEntity
public cashfree_pg.Client.ApiResponse PGCancelLink(string xApiVersion, string linkId, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), Configuration? configuration = null)
{
@@ -1398,7 +1678,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "3.1.4";
+ o.Release = "4.0.0";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -1486,7 +1766,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature);
}
- localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.4");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.0");
// make the HTTP request
var localVarResponse = this.Client.Post("/links/{link_id}/cancel", localVarRequestOptions, config);
@@ -1512,7 +1792,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
/// API version to be used. Format is in YYYY-MM-DD
/// Request Body to Create Payment Links
/// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
- /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
/// ApiResponse of LinkEntity
public cashfree_pg.Client.ApiResponse PGCreateLink(string xApiVersion, CreateLinkRequest createLinkRequest, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), Configuration? configuration = null)
{
@@ -1534,7 +1814,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "3.1.4";
+ o.Release = "4.0.0";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -1623,7 +1903,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature);
}
- localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.4");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.0");
// make the HTTP request
var localVarResponse = this.Client.Post("/links", localVarRequestOptions, config);
@@ -1649,7 +1929,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
/// API version to be used. Format is in YYYY-MM-DD
/// The payment link ID for which you want to view the details.
/// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
- /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
/// ApiResponse of LinkEntity
public cashfree_pg.Client.ApiResponse PGFetchLink(string xApiVersion, string linkId, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), Configuration? configuration = null)
{
@@ -1671,7 +1951,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "3.1.4";
+ o.Release = "4.0.0";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -1759,7 +2039,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature);
}
- localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.4");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.0");
// make the HTTP request
var localVarResponse = this.Client.Get("/links/{link_id}", localVarRequestOptions, config);
@@ -1785,7 +2065,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
/// API version to be used. Format is in YYYY-MM-DD
/// The payment link ID for which you want to view the details.
/// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
- /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
/// ApiResponse of List<OrderEntity>
public cashfree_pg.Client.ApiResponse> PGLinkFetchOrders(string xApiVersion, string linkId, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), Configuration? configuration = null)
{
@@ -1807,7 +2087,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "3.1.4";
+ o.Release = "4.0.0";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -1895,7 +2175,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature);
}
- localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.4");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.0");
// make the HTTP request
var localVarResponse = this.Client.Get>("/links/{link_id}/orders", localVarRequestOptions, config);
@@ -1922,7 +2202,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
/// The id which uniquely identifies your order
/// Request to Capture or Void Transactions
/// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
- /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
/// ApiResponse of PaymentEntity
public cashfree_pg.Client.ApiResponse PGAuthorizeOrder(string xApiVersion, string orderId, AuthorizeOrderRequest authorizeOrderRequest, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), Configuration? configuration = null)
{
@@ -1944,7 +2224,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "3.1.4";
+ o.Release = "4.0.0";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -2038,7 +2318,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature);
}
- localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.4");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.0");
// make the HTTP request
var localVarResponse = this.Client.Post("/orders/{order_id}/authorization", localVarRequestOptions, config);
@@ -2065,7 +2345,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
/// The Cashfree payment or transaction ID.
/// Request body to submit/resend headless OTP. To use this API make sure you have headless OTP enabled for your account
/// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
- /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
/// ApiResponse of OrderAuthenticateEntity
public cashfree_pg.Client.ApiResponse PGOrderAuthenticatePayment(string xApiVersion, string cfPaymentId, OrderAuthenticatePaymentRequest orderAuthenticatePaymentRequest, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), Configuration? configuration = null)
{
@@ -2087,7 +2367,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "3.1.4";
+ o.Release = "4.0.0";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -2166,7 +2446,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature);
}
- localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.4");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.0");
// make the HTTP request
var localVarResponse = this.Client.Post("/orders/pay/authenticate/{cf_payment_id}", localVarRequestOptions, config);
@@ -2193,7 +2473,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
/// The id which uniquely identifies your order
/// The Cashfree payment or transaction ID.
/// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
- /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
/// ApiResponse of PaymentEntity
public cashfree_pg.Client.ApiResponse PGOrderFetchPayment(string xApiVersion, string orderId, string cfPaymentId, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), Configuration? configuration = null)
{
@@ -2215,7 +2495,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "3.1.4";
+ o.Release = "4.0.0";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -2308,7 +2588,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature);
}
- localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.4");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.0");
// make the HTTP request
var localVarResponse = this.Client.Get("/orders/{order_id}/payments/{cf_payment_id}", localVarRequestOptions, config);
@@ -2334,7 +2614,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
/// API version to be used. Format is in YYYY-MM-DD
/// The id which uniquely identifies your order
/// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
- /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
/// ApiResponse of List<PaymentEntity>
public cashfree_pg.Client.ApiResponse> PGOrderFetchPayments(string xApiVersion, string orderId, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), Configuration? configuration = null)
{
@@ -2356,7 +2636,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "3.1.4";
+ o.Release = "4.0.0";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -2444,7 +2724,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature);
}
- localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.4");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.0");
// make the HTTP request
var localVarResponse = this.Client.Get>("/orders/{order_id}/payments", localVarRequestOptions, config);
@@ -2470,7 +2750,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
/// API version to be used. Format is in YYYY-MM-DD
/// Request body to create a transaction at cashfree using `payment_session_id`
/// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
- /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
/// ApiResponse of PayOrderEntity
public cashfree_pg.Client.ApiResponse PGPayOrder(string xApiVersion, PayOrderRequest payOrderRequest, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), Configuration? configuration = null)
{
@@ -2492,7 +2772,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "3.1.4";
+ o.Release = "4.0.0";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -2566,7 +2846,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature);
}
- localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.4");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.0");
// make the HTTP request
var localVarResponse = this.Client.Post("/orders/sessions", localVarRequestOptions, config);
@@ -2593,7 +2873,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
/// The id which uniquely identifies your order
/// Request Body to Create Refunds
/// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
- /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
/// ApiResponse of RefundEntity
public cashfree_pg.Client.ApiResponse PGOrderCreateRefund(string xApiVersion, string orderId, OrderCreateRefundRequest orderCreateRefundRequest, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), Configuration? configuration = null)
{
@@ -2615,7 +2895,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "3.1.4";
+ o.Release = "4.0.0";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -2709,7 +2989,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature);
}
- localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.4");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.0");
// make the HTTP request
var localVarResponse = this.Client.Post("/orders/{order_id}/refunds", localVarRequestOptions, config);
@@ -2736,7 +3016,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
/// The id which uniquely identifies your order
/// Refund Id of the refund you want to fetch.
/// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
- /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
/// ApiResponse of RefundEntity
public cashfree_pg.Client.ApiResponse PGOrderFetchRefund(string xApiVersion, string orderId, string refundId, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), Configuration? configuration = null)
{
@@ -2758,7 +3038,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "3.1.4";
+ o.Release = "4.0.0";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -2851,7 +3131,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature);
}
- localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.4");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.0");
// make the HTTP request
var localVarResponse = this.Client.Get("/orders/{order_id}/refunds/{refund_id}", localVarRequestOptions, config);
@@ -2877,7 +3157,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
/// API version to be used. Format is in YYYY-MM-DD
/// The id which uniquely identifies your order
/// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
- /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
/// ApiResponse of List<RefundEntity>
public cashfree_pg.Client.ApiResponse> PGOrderFetchRefunds(string xApiVersion, string orderId, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), Configuration? configuration = null)
{
@@ -2899,7 +3179,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "3.1.4";
+ o.Release = "4.0.0";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -2987,7 +3267,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature);
}
- localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.4");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.0");
// make the HTTP request
var localVarResponse = this.Client.Get>("/orders/{order_id}/refunds", localVarRequestOptions, config);
@@ -3014,7 +3294,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
/// Request Body to get the settlements
/// application/json (optional)
/// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
- /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
/// application/json (optional)
/// ApiResponse of SettlementEntity
public cashfree_pg.Client.ApiResponse PGFetchSettlements(string xApiVersion, FetchSettlementsRequest fetchSettlementsRequest, string? contentType = default(string?), string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), string? accept = default(string?), Configuration? configuration = null)
@@ -3037,7 +3317,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "3.1.4";
+ o.Release = "4.0.0";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -3134,7 +3414,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature);
}
- localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.4");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.0");
// make the HTTP request
var localVarResponse = this.Client.Post("/settlements", localVarRequestOptions, config);
@@ -3161,7 +3441,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
/// Request Body for the settlement reconciliation
/// application/json (optional)
/// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
- /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
/// application/json (optional)
/// ApiResponse of SettlementReconEntity
public cashfree_pg.Client.ApiResponse PGSettlementFetchRecon(string xApiVersion, SettlementFetchReconRequest settlementFetchReconRequest, string? contentType = default(string?), string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), string? accept = default(string?), Configuration? configuration = null)
@@ -3184,7 +3464,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "3.1.4";
+ o.Release = "4.0.0";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -3281,7 +3561,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature);
}
- localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.4");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.0");
// make the HTTP request
var localVarResponse = this.Client.Post("/settlement/recon", localVarRequestOptions, config);
@@ -3307,7 +3587,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
/// API version to be used. Format is in YYYY-MM-DD
/// The id which uniquely identifies your order
/// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
- /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
/// ApiResponse of SettlementEntity
public cashfree_pg.Client.ApiResponse PGOrderFetchSettlement(string xApiVersion, string orderId, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), Configuration? configuration = null)
{
@@ -3329,7 +3609,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "3.1.4";
+ o.Release = "4.0.0";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -3417,7 +3697,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature);
}
- localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.4");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.0");
// make the HTTP request
var localVarResponse = this.Client.Get("/orders/{order_id}/settlements", localVarRequestOptions, config);
@@ -3443,7 +3723,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
/// API version to be used. Format is in YYYY-MM-DD
/// Request Body to Create Terminal for SPOS
/// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
- /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
/// ApiResponse of TerminalEntity
public cashfree_pg.Client.ApiResponse SposCreateTerminal(string xApiVersion, CreateTerminalRequest createTerminalRequest, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), Configuration? configuration = null)
{
@@ -3465,7 +3745,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "3.1.4";
+ o.Release = "4.0.0";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -3554,7 +3834,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature);
}
- localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.4");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.0");
// make the HTTP request
var localVarResponse = this.Client.Post("/terminal", localVarRequestOptions, config);
@@ -3574,13 +3854,13 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
return localVarResponse;
}
///
- /// Create Terminal Use this API to create a new terminal transaction. To use this API you should first create an order using the Create Order API. Also, you need to enter the terminal details while creating the order and pass the same terminal information while creating a transaction using the below mentioned API.
+ /// Create Terminal Transaction Use this API to create a new terminal transaction. To use this API you should first create an order using the Create Order API. Also, you need to enter the terminal details while creating the order and pass the same terminal information while creating a transaction using the below mentioned API.
///
/// Thrown when fails to make API call
/// API version to be used. Format is in YYYY-MM-DD
/// Request body to create a terminal transaction
/// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
- /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
/// ApiResponse of TerminalTransactionEntity
public cashfree_pg.Client.ApiResponse SposCreateTerminalTransaction(string xApiVersion, CreateTerminalTransactionRequest createTerminalTransactionRequest, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), Configuration? configuration = null)
{
@@ -3602,7 +3882,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "3.1.4";
+ o.Release = "4.0.0";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -3691,7 +3971,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature);
}
- localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.4");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.0");
// make the HTTP request
var localVarResponse = this.Client.Post("/terminal/transactions", localVarRequestOptions, config);
@@ -3717,7 +3997,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
/// API version to be used. Format is in YYYY-MM-DD
/// The terminal for which you want to view the order details.
/// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
- /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
/// ApiResponse of TerminalEntity
public cashfree_pg.Client.ApiResponse SposFetchTerminal(string xApiVersion, string terminalPhoneNo, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), Configuration? configuration = null)
{
@@ -3739,7 +4019,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "3.1.4";
+ o.Release = "4.0.0";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -3827,7 +4107,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature);
}
- localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.4");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.0");
// make the HTTP request
var localVarResponse = this.Client.Get("/terminal/{terminal_phone_no}", localVarRequestOptions, config);
@@ -3854,7 +4134,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
/// Phone number assigned to the terminal. Required if you are not providing the cf_terminal_id in the request.
/// Cashfree terminal id for which you want to get staticQRs. Required if you are not providing the terminal_phone_number in the request.
/// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
- /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
/// ApiResponse of List<FetchTerminalQRCodesEntity>
public cashfree_pg.Client.ApiResponse> SposFetchTerminalQRCodes(string xApiVersion, string terminalPhoneNo, string cfTerminalId, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), Configuration? configuration = null)
{
@@ -3876,7 +4156,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "3.1.4";
+ o.Release = "4.0.0";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -3969,7 +4249,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature);
}
- localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.4");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.0");
// make the HTTP request
var localVarResponse = this.Client.Get>("/terminal/qrcodes", localVarRequestOptions, config);
@@ -3996,7 +4276,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
/// Your Customer ID that you had sent during create order API `POST/orders`
/// The instrument_id which needs to be deleted
/// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
- /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
/// ApiResponse of InstrumentEntity
public cashfree_pg.Client.ApiResponse PGCustomerDeleteInstrument(string xApiVersion, string customerId, string instrumentId, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), Configuration? configuration = null)
{
@@ -4018,7 +4298,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "3.1.4";
+ o.Release = "4.0.0";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -4111,7 +4391,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature);
}
- localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.4");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.0");
// make the HTTP request
var localVarResponse = this.Client.Delete("/customers/{customer_id}/instruments/{instrument_id}", localVarRequestOptions, config);
@@ -4138,7 +4418,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
/// Your Customer ID that you had sent during create order API `POST/orders`
/// The instrument_id of the saved instrument which needs to be queried
/// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
- /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
/// ApiResponse of InstrumentEntity
public cashfree_pg.Client.ApiResponse PGCustomerFetchInstrument(string xApiVersion, string customerId, string instrumentId, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), Configuration? configuration = null)
{
@@ -4160,7 +4440,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "3.1.4";
+ o.Release = "4.0.0";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -4253,7 +4533,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature);
}
- localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.4");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.0");
// make the HTTP request
var localVarResponse = this.Client.Get("/customers/{customer_id}/instruments/{instrument_id}", localVarRequestOptions, config);
@@ -4280,7 +4560,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
/// Your Customer ID that you had sent during create order API `POST/orders`
/// Payment mode or type of saved instrument
/// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
- /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
/// ApiResponse of List<InstrumentEntity>
public cashfree_pg.Client.ApiResponse> PGCustomerFetchInstruments(string xApiVersion, string customerId, string instrumentType, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), Configuration? configuration = null)
{
@@ -4302,7 +4582,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "3.1.4";
+ o.Release = "4.0.0";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -4395,7 +4675,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature);
}
- localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.4");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.0");
// make the HTTP request
var localVarResponse = this.Client.Get>("/customers/{customer_id}/instruments", localVarRequestOptions, config);
@@ -4422,7 +4702,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
/// Your Customer ID that you had sent during create order API `POST/orders`
/// The instrument_id of the saved card instrument which needs to be queried
/// Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree (optional)
- /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
+ /// An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions. (optional)
/// ApiResponse of CryptogramEntity
public cashfree_pg.Client.ApiResponse PGCustomerInstrumentsFetchCryptogram(string xApiVersion, string customerId, string instrumentId, string? xRequestId = default(string?), Guid? xIdempotencyKey = default(Guid?), Configuration? configuration = null)
{
@@ -4444,7 +4724,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "3.1.4";
+ o.Release = "4.0.0";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -4537,7 +4817,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature);
}
- localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.4");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.0");
// make the HTTP request
var localVarResponse = this.Client.Get("/customers/{customer_id}/instruments/{instrument_id}/cryptogram", localVarRequestOptions, config);
diff --git a/src/cashfree_pg/Client/ApiException.cs b/src/cashfree_pg/Client/ApiException.cs
index 86eec3a..b023bfd 100644
--- a/src/cashfree_pg/Client/ApiException.cs
+++ b/src/cashfree_pg/Client/ApiException.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -16,7 +16,7 @@ namespace cashfree_pg.Client
///
/// API Exception
///
- internal class ApiException : Exception
+ public class ApiException : Exception
{
///
/// Gets or sets the error code (HTTP status code)
diff --git a/src/cashfree_pg/Client/ApiResponse.cs b/src/cashfree_pg/Client/ApiResponse.cs
index ed9dede..462235c 100644
--- a/src/cashfree_pg/Client/ApiResponse.cs
+++ b/src/cashfree_pg/Client/ApiResponse.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Client/ClientUtils.cs b/src/cashfree_pg/Client/ClientUtils.cs
index f0e7ae9..b0097c3 100644
--- a/src/cashfree_pg/Client/ClientUtils.cs
+++ b/src/cashfree_pg/Client/ClientUtils.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Client/Configuration.cs b/src/cashfree_pg/Client/Configuration.cs
index 581872f..d960775 100644
--- a/src/cashfree_pg/Client/Configuration.cs
+++ b/src/cashfree_pg/Client/Configuration.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -34,7 +34,7 @@ public class Configuration : IReadableConfiguration
/// Version of the package.
///
/// Version of the package.
- public const string Version = "3.1.4";
+ public const string Version = "4.0.0";
///
/// Identifier for ISO 8601 DateTime Format
@@ -113,7 +113,7 @@ public class Configuration : IReadableConfiguration
public Configuration()
{
Proxy = null;
- UserAgent = WebUtility.UrlEncode("OpenAPI-Generator/3.1.4/csharp");
+ UserAgent = WebUtility.UrlEncode("OpenAPI-Generator/4.0.0/csharp");
BasePath = "https://sandbox.cashfree.com/pg";
DefaultHeaders = new ConcurrentDictionary();
ApiKey = new ConcurrentDictionary();
@@ -541,8 +541,8 @@ public static string ToDebugReport()
string report = "C# SDK (cashfree_pg) Debug Report:\n";
report += " OS: " + System.Environment.OSVersion + "\n";
report += " .NET Framework Version: " + System.Environment.Version + "\n";
- report += " Version of the API: 2022-09-01\n";
- report += " SDK Package Version: 3.1.4\n";
+ report += " Version of the API: 2023-08-01\n";
+ report += " SDK Package Version: 4.0.0\n";
return report;
}
diff --git a/src/cashfree_pg/Client/ExceptionFactory.cs b/src/cashfree_pg/Client/ExceptionFactory.cs
index 7a66cb9..2871198 100644
--- a/src/cashfree_pg/Client/ExceptionFactory.cs
+++ b/src/cashfree_pg/Client/ExceptionFactory.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Client/GlobalConfiguration.cs b/src/cashfree_pg/Client/GlobalConfiguration.cs
index 716e95a..2b51f25 100644
--- a/src/cashfree_pg/Client/GlobalConfiguration.cs
+++ b/src/cashfree_pg/Client/GlobalConfiguration.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Client/HttpMethod.cs b/src/cashfree_pg/Client/HttpMethod.cs
index b4c5acb..8963dc5 100644
--- a/src/cashfree_pg/Client/HttpMethod.cs
+++ b/src/cashfree_pg/Client/HttpMethod.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Client/IApiAccessor.cs b/src/cashfree_pg/Client/IApiAccessor.cs
index 881eaa9..7abc60a 100644
--- a/src/cashfree_pg/Client/IApiAccessor.cs
+++ b/src/cashfree_pg/Client/IApiAccessor.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Client/IAsynchronousClient.cs b/src/cashfree_pg/Client/IAsynchronousClient.cs
index 28e5583..91f85e2 100644
--- a/src/cashfree_pg/Client/IAsynchronousClient.cs
+++ b/src/cashfree_pg/Client/IAsynchronousClient.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Client/IReadableConfiguration.cs b/src/cashfree_pg/Client/IReadableConfiguration.cs
index 515f664..49f7a60 100644
--- a/src/cashfree_pg/Client/IReadableConfiguration.cs
+++ b/src/cashfree_pg/Client/IReadableConfiguration.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Client/ISynchronousClient.cs b/src/cashfree_pg/Client/ISynchronousClient.cs
index 999d801..ef5fb62 100644
--- a/src/cashfree_pg/Client/ISynchronousClient.cs
+++ b/src/cashfree_pg/Client/ISynchronousClient.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Client/Multimap.cs b/src/cashfree_pg/Client/Multimap.cs
index d299867..62bf684 100644
--- a/src/cashfree_pg/Client/Multimap.cs
+++ b/src/cashfree_pg/Client/Multimap.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Client/OpenAPIDateConverter.cs b/src/cashfree_pg/Client/OpenAPIDateConverter.cs
index a148bc3..e502225 100644
--- a/src/cashfree_pg/Client/OpenAPIDateConverter.cs
+++ b/src/cashfree_pg/Client/OpenAPIDateConverter.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Client/RequestOptions.cs b/src/cashfree_pg/Client/RequestOptions.cs
index 549ec26..bdddbac 100644
--- a/src/cashfree_pg/Client/RequestOptions.cs
+++ b/src/cashfree_pg/Client/RequestOptions.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Client/RetryConfiguration.cs b/src/cashfree_pg/Client/RetryConfiguration.cs
index acce7dd..49b12d6 100644
--- a/src/cashfree_pg/Client/RetryConfiguration.cs
+++ b/src/cashfree_pg/Client/RetryConfiguration.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/AbstractOpenAPISchema.cs b/src/cashfree_pg/Model/AbstractOpenAPISchema.cs
index 365f346..8e414d7 100644
--- a/src/cashfree_pg/Model/AbstractOpenAPISchema.cs
+++ b/src/cashfree_pg/Model/AbstractOpenAPISchema.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/ApiError.cs b/src/cashfree_pg/Model/ApiError.cs
index 76bc741..a0a2065 100644
--- a/src/cashfree_pg/Model/ApiError.cs
+++ b/src/cashfree_pg/Model/ApiError.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/ApiError404.cs b/src/cashfree_pg/Model/ApiError404.cs
index f4ddb09..45cdbf0 100644
--- a/src/cashfree_pg/Model/ApiError404.cs
+++ b/src/cashfree_pg/Model/ApiError404.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/ApiError409.cs b/src/cashfree_pg/Model/ApiError409.cs
index f03d21b..49cda30 100644
--- a/src/cashfree_pg/Model/ApiError409.cs
+++ b/src/cashfree_pg/Model/ApiError409.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/ApiError502.cs b/src/cashfree_pg/Model/ApiError502.cs
index 5c7db63..2fc8c56 100644
--- a/src/cashfree_pg/Model/ApiError502.cs
+++ b/src/cashfree_pg/Model/ApiError502.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/App.cs b/src/cashfree_pg/Model/App.cs
index eacd4bc..6665b3c 100644
--- a/src/cashfree_pg/Model/App.cs
+++ b/src/cashfree_pg/Model/App.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/AppPaymentMethod.cs b/src/cashfree_pg/Model/AppPaymentMethod.cs
index cbb4cc0..4c2be80 100644
--- a/src/cashfree_pg/Model/AppPaymentMethod.cs
+++ b/src/cashfree_pg/Model/AppPaymentMethod.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/AuthenticationError.cs b/src/cashfree_pg/Model/AuthenticationError.cs
index b1ec8e3..ef0363a 100644
--- a/src/cashfree_pg/Model/AuthenticationError.cs
+++ b/src/cashfree_pg/Model/AuthenticationError.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/AuthorizationInPaymentsEntity.cs b/src/cashfree_pg/Model/AuthorizationInPaymentsEntity.cs
index 629a213..04d7a56 100644
--- a/src/cashfree_pg/Model/AuthorizationInPaymentsEntity.cs
+++ b/src/cashfree_pg/Model/AuthorizationInPaymentsEntity.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/AuthorizeOrderRequest.cs b/src/cashfree_pg/Model/AuthorizeOrderRequest.cs
index 28b2bb0..27874c4 100644
--- a/src/cashfree_pg/Model/AuthorizeOrderRequest.cs
+++ b/src/cashfree_pg/Model/AuthorizeOrderRequest.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/BadRequestError.cs b/src/cashfree_pg/Model/BadRequestError.cs
index f96fb9c..447adbd 100644
--- a/src/cashfree_pg/Model/BadRequestError.cs
+++ b/src/cashfree_pg/Model/BadRequestError.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/Card.cs b/src/cashfree_pg/Model/Card.cs
index 524175e..ad798d8 100644
--- a/src/cashfree_pg/Model/Card.cs
+++ b/src/cashfree_pg/Model/Card.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/CardEMI.cs b/src/cashfree_pg/Model/CardEMI.cs
index 04dc08d..1e30f75 100644
--- a/src/cashfree_pg/Model/CardEMI.cs
+++ b/src/cashfree_pg/Model/CardEMI.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/CardEMIPaymentMethod.cs b/src/cashfree_pg/Model/CardEMIPaymentMethod.cs
index 8d22831..28bc47a 100644
--- a/src/cashfree_pg/Model/CardEMIPaymentMethod.cs
+++ b/src/cashfree_pg/Model/CardEMIPaymentMethod.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/CardOffer.cs b/src/cashfree_pg/Model/CardOffer.cs
index 3286d00..a1ad9b7 100644
--- a/src/cashfree_pg/Model/CardOffer.cs
+++ b/src/cashfree_pg/Model/CardOffer.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/CardPaymentMethod.cs b/src/cashfree_pg/Model/CardPaymentMethod.cs
index e882d45..40b148a 100644
--- a/src/cashfree_pg/Model/CardPaymentMethod.cs
+++ b/src/cashfree_pg/Model/CardPaymentMethod.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/CardlessEMI.cs b/src/cashfree_pg/Model/CardlessEMI.cs
index be0e6b9..7637d8b 100644
--- a/src/cashfree_pg/Model/CardlessEMI.cs
+++ b/src/cashfree_pg/Model/CardlessEMI.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/CardlessEMIEntity.cs b/src/cashfree_pg/Model/CardlessEMIEntity.cs
index e340ba8..aebf1e7 100644
--- a/src/cashfree_pg/Model/CardlessEMIEntity.cs
+++ b/src/cashfree_pg/Model/CardlessEMIEntity.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/CardlessEMIPaymentMethod.cs b/src/cashfree_pg/Model/CardlessEMIPaymentMethod.cs
index 506134f..547392e 100644
--- a/src/cashfree_pg/Model/CardlessEMIPaymentMethod.cs
+++ b/src/cashfree_pg/Model/CardlessEMIPaymentMethod.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/CardlessEMIQueries.cs b/src/cashfree_pg/Model/CardlessEMIQueries.cs
index 1c54e83..b5e0ec2 100644
--- a/src/cashfree_pg/Model/CardlessEMIQueries.cs
+++ b/src/cashfree_pg/Model/CardlessEMIQueries.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/CashbackDetails.cs b/src/cashfree_pg/Model/CashbackDetails.cs
index b4f1935..a6bf2dd 100644
--- a/src/cashfree_pg/Model/CashbackDetails.cs
+++ b/src/cashfree_pg/Model/CashbackDetails.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/CreateCustomerRequest.cs b/src/cashfree_pg/Model/CreateCustomerRequest.cs
new file mode 100644
index 0000000..728d35b
--- /dev/null
+++ b/src/cashfree_pg/Model/CreateCustomerRequest.cs
@@ -0,0 +1,193 @@
+/*
+ * Cashfree Payment Gateway APIs
+ *
+ * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
+ *
+ * The version of the OpenAPI document: 2023-08-01
+ * Contact: developers@cashfree.com
+ * Generated by: https://github.com/openapitools/openapi-generator.git
+ */
+
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.IO;
+using System.Runtime.Serialization;
+using System.Text;
+using System.Text.RegularExpressions;
+using Newtonsoft.Json;
+using Newtonsoft.Json.Converters;
+using Newtonsoft.Json.Linq;
+using System.ComponentModel.DataAnnotations;
+using OpenAPIDateConverter = cashfree_pg.Client.OpenAPIDateConverter;
+
+namespace cashfree_pg.Model
+{
+ ///
+ /// Request body to create a customer at cashfree
+ ///
+ [DataContract(Name = "CreateCustomerRequest")]
+ public class CreateCustomerRequest : IEquatable, IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ [JsonConstructorAttribute]
+ protected CreateCustomerRequest() { }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// Customer Phone Number (required).
+ /// Customer Email.
+ /// Customer Name.
+ public CreateCustomerRequest(string customerPhone = default(string), string customerEmail = default(string), string customerName = default(string))
+ {
+ // to ensure "customerPhone" is required (not null)
+ if (customerPhone == null)
+ {
+ throw new ArgumentNullException("customerPhone is a required property for CreateCustomerRequest and cannot be null");
+ }
+ this.customer_phone = customerPhone;
+ this.customer_email = customerEmail;
+ this.customer_name = customerName;
+ }
+
+ ///
+ /// Customer Phone Number
+ ///
+ /// Customer Phone Number
+ /// 9999999999
+ [DataMember(Name = "customer_phone", IsRequired = true, EmitDefaultValue = true)]
+ public string customer_phone { get; set; }
+
+ ///
+ /// Customer Email
+ ///
+ /// Customer Email
+ /// example@test.com
+ [DataMember(Name = "customer_email", EmitDefaultValue = false)]
+ public string customer_email { get; set; }
+
+ ///
+ /// Customer Name
+ ///
+ /// Customer Name
+ /// YourCustomer
+ [DataMember(Name = "customer_name", EmitDefaultValue = false)]
+ public string customer_name { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ StringBuilder sb = new StringBuilder();
+ sb.Append("class CreateCustomerRequest {\n");
+ sb.Append(" customer_phone: ").Append(customer_phone).Append("\n");
+ sb.Append(" customer_email: ").Append(customer_email).Append("\n");
+ sb.Append(" customer_name: ").Append(customer_name).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public virtual string ToJson()
+ {
+ return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return this.Equals(input as CreateCustomerRequest);
+ }
+
+ ///
+ /// Returns true if CreateCustomerRequest instances are equal
+ ///
+ /// Instance of CreateCustomerRequest to be compared
+ /// Boolean
+ public bool Equals(CreateCustomerRequest input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ return
+ (
+ this.customer_phone == input.customer_phone ||
+ (this.customer_phone != null &&
+ this.customer_phone.Equals(input.customer_phone))
+ ) &&
+ (
+ this.customer_email == input.customer_email ||
+ (this.customer_email != null &&
+ this.customer_email.Equals(input.customer_email))
+ ) &&
+ (
+ this.customer_name == input.customer_name ||
+ (this.customer_name != null &&
+ this.customer_name.Equals(input.customer_name))
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (this.customer_phone != null)
+ {
+ hashCode = (hashCode * 59) + this.customer_phone.GetHashCode();
+ }
+ if (this.customer_email != null)
+ {
+ hashCode = (hashCode * 59) + this.customer_email.GetHashCode();
+ }
+ if (this.customer_name != null)
+ {
+ hashCode = (hashCode * 59) + this.customer_name.GetHashCode();
+ }
+ return hashCode;
+ }
+ }
+
+ ///
+ /// To validate all properties of the instance
+ ///
+ /// Validation context
+ /// Validation Result
+ IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
+ {
+ // customer_phone (string) maxLength
+ if (this.customer_phone != null && this.customer_phone.Length > 10)
+ {
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for customer_phone, length must be less than 10.", new [] { "customer_phone" });
+ }
+
+ // customer_phone (string) minLength
+ if (this.customer_phone != null && this.customer_phone.Length < 10)
+ {
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for customer_phone, length must be greater than 10.", new [] { "customer_phone" });
+ }
+
+ yield break;
+ }
+ }
+
+}
diff --git a/src/cashfree_pg/Model/CreateLinkRequest.cs b/src/cashfree_pg/Model/CreateLinkRequest.cs
index 2387a8d..d6de518 100644
--- a/src/cashfree_pg/Model/CreateLinkRequest.cs
+++ b/src/cashfree_pg/Model/CreateLinkRequest.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -52,7 +52,7 @@ protected CreateLinkRequest() { }
/// If \"true\", reminders will be sent to customers for collecting payments..
/// Key-value pair that can be used to store additional information about the entity. Maximum 5 key-value pairs.
/// linkMeta.
- public CreateLinkRequest(string linkId = default(string), double linkAmount = default(double), string linkCurrency = default(string), string linkPurpose = default(string), LinkCustomerDetailsEntity customerDetails = default(LinkCustomerDetailsEntity), bool linkPartialPayments = default(bool), double linkMinimumPartialAmount = default(double), string linkExpiryTime = default(string), LinkNotifyEntity linkNotify = default(LinkNotifyEntity), bool linkAutoReminders = default(bool), Dictionary linkNotes = default(Dictionary), LinkMetaEntity linkMeta = default(LinkMetaEntity))
+ public CreateLinkRequest(string linkId = default(string), double linkAmount = default(double), string linkCurrency = default(string), string linkPurpose = default(string), LinkCustomerDetailsEntity customerDetails = default(LinkCustomerDetailsEntity), bool linkPartialPayments = default(bool), double linkMinimumPartialAmount = default(double), string linkExpiryTime = default(string), LinkNotifyEntity linkNotify = default(LinkNotifyEntity), bool linkAutoReminders = default(bool), Dictionary linkNotes = default(Dictionary), LinkMetaResponseEntity linkMeta = default(LinkMetaResponseEntity))
{
// to ensure "linkId" is required (not null)
if (linkId == null)
@@ -168,7 +168,7 @@ protected CreateLinkRequest() { }
/// Gets or Sets link_meta
///
[DataMember(Name = "link_meta", EmitDefaultValue = false)]
- public LinkMetaEntity link_meta { get; set; }
+ public LinkMetaResponseEntity link_meta { get; set; }
///
/// Returns the string presentation of the object
diff --git a/src/cashfree_pg/Model/CreateOfferRequest.cs b/src/cashfree_pg/Model/CreateOfferRequest.cs
index 51de4aa..bd59c68 100644
--- a/src/cashfree_pg/Model/CreateOfferRequest.cs
+++ b/src/cashfree_pg/Model/CreateOfferRequest.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/CreateOrderRequest.cs b/src/cashfree_pg/Model/CreateOrderRequest.cs
index b4f1ca7..85fc33a 100644
--- a/src/cashfree_pg/Model/CreateOrderRequest.cs
+++ b/src/cashfree_pg/Model/CreateOrderRequest.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/CreateTerminalRequest.cs b/src/cashfree_pg/Model/CreateTerminalRequest.cs
index d0f9457..28cc07d 100644
--- a/src/cashfree_pg/Model/CreateTerminalRequest.cs
+++ b/src/cashfree_pg/Model/CreateTerminalRequest.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/CreateTerminalRequestTerminalMeta.cs b/src/cashfree_pg/Model/CreateTerminalRequestTerminalMeta.cs
index 0148f0a..290ff09 100644
--- a/src/cashfree_pg/Model/CreateTerminalRequestTerminalMeta.cs
+++ b/src/cashfree_pg/Model/CreateTerminalRequestTerminalMeta.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/CreateTerminalTransactionRequest.cs b/src/cashfree_pg/Model/CreateTerminalTransactionRequest.cs
index 5291dd1..aab8444 100644
--- a/src/cashfree_pg/Model/CreateTerminalTransactionRequest.cs
+++ b/src/cashfree_pg/Model/CreateTerminalTransactionRequest.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -44,8 +44,13 @@ protected CreateTerminalTransactionRequest() { }
/// cashfree terminal id. this is a required parameter when you do not provide the terminal phone number..
/// mention the payment method used for the transaction. possible values - QR_CODE, LINK. (required).
/// agent mobile number assigned to the terminal. this is a required parameter when you do not provide the cf_terminal_id..
- public CreateTerminalTransactionRequest(long cfOrderId = default(long), long cfTerminalId = default(long), string paymentMethod = default(string), string terminalPhoneNo = default(string))
+ public CreateTerminalTransactionRequest(string cfOrderId = default(string), string cfTerminalId = default(string), string paymentMethod = default(string), string terminalPhoneNo = default(string))
{
+ // to ensure "cfOrderId" is required (not null)
+ if (cfOrderId == null)
+ {
+ throw new ArgumentNullException("cfOrderId is a required property for CreateTerminalTransactionRequest and cannot be null");
+ }
this.cf_order_id = cfOrderId;
// to ensure "paymentMethod" is required (not null)
if (paymentMethod == null)
@@ -62,14 +67,14 @@ protected CreateTerminalTransactionRequest() { }
///
/// cashfree order ID that was returned while creating an order.
[DataMember(Name = "cf_order_id", IsRequired = true, EmitDefaultValue = true)]
- public long cf_order_id { get; set; }
+ public string cf_order_id { get; set; }
///
/// cashfree terminal id. this is a required parameter when you do not provide the terminal phone number.
///
/// cashfree terminal id. this is a required parameter when you do not provide the terminal phone number.
[DataMember(Name = "cf_terminal_id", EmitDefaultValue = false)]
- public long cf_terminal_id { get; set; }
+ public string cf_terminal_id { get; set; }
///
/// mention the payment method used for the transaction. possible values - QR_CODE, LINK.
@@ -134,11 +139,13 @@ public bool Equals(CreateTerminalTransactionRequest input)
return
(
this.cf_order_id == input.cf_order_id ||
- this.cf_order_id.Equals(input.cf_order_id)
+ (this.cf_order_id != null &&
+ this.cf_order_id.Equals(input.cf_order_id))
) &&
(
this.cf_terminal_id == input.cf_terminal_id ||
- this.cf_terminal_id.Equals(input.cf_terminal_id)
+ (this.cf_terminal_id != null &&
+ this.cf_terminal_id.Equals(input.cf_terminal_id))
) &&
(
this.payment_method == input.payment_method ||
@@ -161,8 +168,14 @@ public override int GetHashCode()
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
- hashCode = (hashCode * 59) + this.cf_order_id.GetHashCode();
- hashCode = (hashCode * 59) + this.cf_terminal_id.GetHashCode();
+ if (this.cf_order_id != null)
+ {
+ hashCode = (hashCode * 59) + this.cf_order_id.GetHashCode();
+ }
+ if (this.cf_terminal_id != null)
+ {
+ hashCode = (hashCode * 59) + this.cf_terminal_id.GetHashCode();
+ }
if (this.payment_method != null)
{
hashCode = (hashCode * 59) + this.payment_method.GetHashCode();
diff --git a/src/cashfree_pg/Model/CryptogramEntity.cs b/src/cashfree_pg/Model/CryptogramEntity.cs
index 6d50ffa..1d8f1d1 100644
--- a/src/cashfree_pg/Model/CryptogramEntity.cs
+++ b/src/cashfree_pg/Model/CryptogramEntity.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/CustomerDetails.cs b/src/cashfree_pg/Model/CustomerDetails.cs
index 793b438..54ddf41 100644
--- a/src/cashfree_pg/Model/CustomerDetails.cs
+++ b/src/cashfree_pg/Model/CustomerDetails.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -47,7 +47,8 @@ protected CustomerDetails() { }
/// Customer bank account. Required if you want to do a bank account check (TPV).
/// Customer bank IFSC. Required if you want to do a bank account check (TPV).
/// Customer bank code. Required for net banking payments, if you want to do a bank account check (TPV).
- public CustomerDetails(string customerId = default(string), string customerEmail = default(string), string customerPhone = default(string), string customerName = default(string), string customerBankAccountNumber = default(string), string customerBankIfsc = default(string), decimal customerBankCode = default(decimal))
+ /// Customer identifier at Cashfree. You will get this when you create/get customer.
+ public CustomerDetails(string customerId = default(string), string customerEmail = default(string), string customerPhone = default(string), string customerName = default(string), string customerBankAccountNumber = default(string), string customerBankIfsc = default(string), decimal customerBankCode = default(decimal), string customerUid = default(string))
{
// to ensure "customerId" is required (not null)
if (customerId == null)
@@ -66,6 +67,7 @@ protected CustomerDetails() { }
this.customer_bank_account_number = customerBankAccountNumber;
this.customer_bank_ifsc = customerBankIfsc;
this.customer_bank_code = customerBankCode;
+ this.customer_uid = customerUid;
}
///
@@ -117,6 +119,13 @@ protected CustomerDetails() { }
[DataMember(Name = "customer_bank_code", EmitDefaultValue = false)]
public decimal customer_bank_code { get; set; }
+ ///
+ /// Customer identifier at Cashfree. You will get this when you create/get customer
+ ///
+ /// Customer identifier at Cashfree. You will get this when you create/get customer
+ [DataMember(Name = "customer_uid", EmitDefaultValue = false)]
+ public string customer_uid { get; set; }
+
///
/// Returns the string presentation of the object
///
@@ -132,6 +141,7 @@ public override string ToString()
sb.Append(" customer_bank_account_number: ").Append(customer_bank_account_number).Append("\n");
sb.Append(" customer_bank_ifsc: ").Append(customer_bank_ifsc).Append("\n");
sb.Append(" customer_bank_code: ").Append(customer_bank_code).Append("\n");
+ sb.Append(" customer_uid: ").Append(customer_uid).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
@@ -200,6 +210,11 @@ public bool Equals(CustomerDetails input)
(
this.customer_bank_code == input.customer_bank_code ||
this.customer_bank_code.Equals(input.customer_bank_code)
+ ) &&
+ (
+ this.customer_uid == input.customer_uid ||
+ (this.customer_uid != null &&
+ this.customer_uid.Equals(input.customer_uid))
);
}
@@ -237,6 +252,10 @@ public override int GetHashCode()
hashCode = (hashCode * 59) + this.customer_bank_ifsc.GetHashCode();
}
hashCode = (hashCode * 59) + this.customer_bank_code.GetHashCode();
+ if (this.customer_uid != null)
+ {
+ hashCode = (hashCode * 59) + this.customer_uid.GetHashCode();
+ }
return hashCode;
}
}
diff --git a/src/cashfree_pg/Model/CustomerDetailsCardlessEMI.cs b/src/cashfree_pg/Model/CustomerDetailsCardlessEMI.cs
index 2b616f1..e4970a2 100644
--- a/src/cashfree_pg/Model/CustomerDetailsCardlessEMI.cs
+++ b/src/cashfree_pg/Model/CustomerDetailsCardlessEMI.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/CustomerEntity.cs b/src/cashfree_pg/Model/CustomerEntity.cs
new file mode 100644
index 0000000..f812ba7
--- /dev/null
+++ b/src/cashfree_pg/Model/CustomerEntity.cs
@@ -0,0 +1,187 @@
+/*
+ * Cashfree Payment Gateway APIs
+ *
+ * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
+ *
+ * The version of the OpenAPI document: 2023-08-01
+ * Contact: developers@cashfree.com
+ * Generated by: https://github.com/openapitools/openapi-generator.git
+ */
+
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.IO;
+using System.Runtime.Serialization;
+using System.Text;
+using System.Text.RegularExpressions;
+using Newtonsoft.Json;
+using Newtonsoft.Json.Converters;
+using Newtonsoft.Json.Linq;
+using System.ComponentModel.DataAnnotations;
+using OpenAPIDateConverter = cashfree_pg.Client.OpenAPIDateConverter;
+
+namespace cashfree_pg.Model
+{
+ ///
+ /// The complete customer entity
+ ///
+ [DataContract(Name = "CustomerEntity")]
+ public class CustomerEntity : IEquatable, IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// unique id generated by cashfree for your customer.
+ /// Customer Phone Number.
+ /// Customer Email.
+ /// Customer Name.
+ public CustomerEntity(string customerUid = default(string), string customerPhone = default(string), string customerEmail = default(string), string customerName = default(string))
+ {
+ this.customer_uid = customerUid;
+ this.customer_phone = customerPhone;
+ this.customer_email = customerEmail;
+ this.customer_name = customerName;
+ }
+
+ ///
+ /// unique id generated by cashfree for your customer
+ ///
+ /// unique id generated by cashfree for your customer
+ [DataMember(Name = "customer_uid", EmitDefaultValue = false)]
+ public string customer_uid { get; set; }
+
+ ///
+ /// Customer Phone Number
+ ///
+ /// Customer Phone Number
+ [DataMember(Name = "customer_phone", EmitDefaultValue = false)]
+ public string customer_phone { get; set; }
+
+ ///
+ /// Customer Email
+ ///
+ /// Customer Email
+ [DataMember(Name = "customer_email", EmitDefaultValue = false)]
+ public string customer_email { get; set; }
+
+ ///
+ /// Customer Name
+ ///
+ /// Customer Name
+ [DataMember(Name = "customer_name", EmitDefaultValue = false)]
+ public string customer_name { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ StringBuilder sb = new StringBuilder();
+ sb.Append("class CustomerEntity {\n");
+ sb.Append(" customer_uid: ").Append(customer_uid).Append("\n");
+ sb.Append(" customer_phone: ").Append(customer_phone).Append("\n");
+ sb.Append(" customer_email: ").Append(customer_email).Append("\n");
+ sb.Append(" customer_name: ").Append(customer_name).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public virtual string ToJson()
+ {
+ return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return this.Equals(input as CustomerEntity);
+ }
+
+ ///
+ /// Returns true if CustomerEntity instances are equal
+ ///
+ /// Instance of CustomerEntity to be compared
+ /// Boolean
+ public bool Equals(CustomerEntity input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ return
+ (
+ this.customer_uid == input.customer_uid ||
+ (this.customer_uid != null &&
+ this.customer_uid.Equals(input.customer_uid))
+ ) &&
+ (
+ this.customer_phone == input.customer_phone ||
+ (this.customer_phone != null &&
+ this.customer_phone.Equals(input.customer_phone))
+ ) &&
+ (
+ this.customer_email == input.customer_email ||
+ (this.customer_email != null &&
+ this.customer_email.Equals(input.customer_email))
+ ) &&
+ (
+ this.customer_name == input.customer_name ||
+ (this.customer_name != null &&
+ this.customer_name.Equals(input.customer_name))
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (this.customer_uid != null)
+ {
+ hashCode = (hashCode * 59) + this.customer_uid.GetHashCode();
+ }
+ if (this.customer_phone != null)
+ {
+ hashCode = (hashCode * 59) + this.customer_phone.GetHashCode();
+ }
+ if (this.customer_email != null)
+ {
+ hashCode = (hashCode * 59) + this.customer_email.GetHashCode();
+ }
+ if (this.customer_name != null)
+ {
+ hashCode = (hashCode * 59) + this.customer_name.GetHashCode();
+ }
+ return hashCode;
+ }
+ }
+
+ ///
+ /// To validate all properties of the instance
+ ///
+ /// Validation context
+ /// Validation Result
+ IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
+ {
+ yield break;
+ }
+ }
+
+}
diff --git a/src/cashfree_pg/Model/DiscountDetails.cs b/src/cashfree_pg/Model/DiscountDetails.cs
index 24c6857..bfdb9ec 100644
--- a/src/cashfree_pg/Model/DiscountDetails.cs
+++ b/src/cashfree_pg/Model/DiscountDetails.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/EMIOffer.cs b/src/cashfree_pg/Model/EMIOffer.cs
index 443c0ac..5fb00ea 100644
--- a/src/cashfree_pg/Model/EMIOffer.cs
+++ b/src/cashfree_pg/Model/EMIOffer.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/EMIPlansArray.cs b/src/cashfree_pg/Model/EMIPlansArray.cs
index 97f23bc..2618e78 100644
--- a/src/cashfree_pg/Model/EMIPlansArray.cs
+++ b/src/cashfree_pg/Model/EMIPlansArray.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/EligibilityCardlessEMIEntity.cs b/src/cashfree_pg/Model/EligibilityCardlessEMIEntity.cs
index 24ed62e..81ae021 100644
--- a/src/cashfree_pg/Model/EligibilityCardlessEMIEntity.cs
+++ b/src/cashfree_pg/Model/EligibilityCardlessEMIEntity.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/EligibilityFetchCardlessEMIRequest.cs b/src/cashfree_pg/Model/EligibilityFetchCardlessEMIRequest.cs
index f817007..cdd3f4b 100644
--- a/src/cashfree_pg/Model/EligibilityFetchCardlessEMIRequest.cs
+++ b/src/cashfree_pg/Model/EligibilityFetchCardlessEMIRequest.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/EligibilityFetchOffersRequest.cs b/src/cashfree_pg/Model/EligibilityFetchOffersRequest.cs
index b434dd2..ad78a6e 100644
--- a/src/cashfree_pg/Model/EligibilityFetchOffersRequest.cs
+++ b/src/cashfree_pg/Model/EligibilityFetchOffersRequest.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/EligibilityFetchPaylaterRequest.cs b/src/cashfree_pg/Model/EligibilityFetchPaylaterRequest.cs
index 0ca5dab..f8e7338 100644
--- a/src/cashfree_pg/Model/EligibilityFetchPaylaterRequest.cs
+++ b/src/cashfree_pg/Model/EligibilityFetchPaylaterRequest.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/EligibilityFetchPaymentMethodsRequest.cs b/src/cashfree_pg/Model/EligibilityFetchPaymentMethodsRequest.cs
index 150f113..f0c556f 100644
--- a/src/cashfree_pg/Model/EligibilityFetchPaymentMethodsRequest.cs
+++ b/src/cashfree_pg/Model/EligibilityFetchPaymentMethodsRequest.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/EligibilityOfferEntity.cs b/src/cashfree_pg/Model/EligibilityOfferEntity.cs
index 9dbc5f6..1f82fae 100644
--- a/src/cashfree_pg/Model/EligibilityOfferEntity.cs
+++ b/src/cashfree_pg/Model/EligibilityOfferEntity.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/EligibilityPaylaterEntity.cs b/src/cashfree_pg/Model/EligibilityPaylaterEntity.cs
index b483fe7..068af82 100644
--- a/src/cashfree_pg/Model/EligibilityPaylaterEntity.cs
+++ b/src/cashfree_pg/Model/EligibilityPaylaterEntity.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/EligibilityPaymentMethodsEntity.cs b/src/cashfree_pg/Model/EligibilityPaymentMethodsEntity.cs
index c9da0bc..ed5c681 100644
--- a/src/cashfree_pg/Model/EligibilityPaymentMethodsEntity.cs
+++ b/src/cashfree_pg/Model/EligibilityPaymentMethodsEntity.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/EligibilityPaymentMethodsEntityEntityDetails.cs b/src/cashfree_pg/Model/EligibilityPaymentMethodsEntityEntityDetails.cs
index f044bca..75cee4b 100644
--- a/src/cashfree_pg/Model/EligibilityPaymentMethodsEntityEntityDetails.cs
+++ b/src/cashfree_pg/Model/EligibilityPaymentMethodsEntityEntityDetails.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/ErrorDetailsInPaymentsEntity.cs b/src/cashfree_pg/Model/ErrorDetailsInPaymentsEntity.cs
index b6d840f..df4bd0d 100644
--- a/src/cashfree_pg/Model/ErrorDetailsInPaymentsEntity.cs
+++ b/src/cashfree_pg/Model/ErrorDetailsInPaymentsEntity.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/FetchReconRequest.cs b/src/cashfree_pg/Model/FetchReconRequest.cs
index 2c9e853..c248d5b 100644
--- a/src/cashfree_pg/Model/FetchReconRequest.cs
+++ b/src/cashfree_pg/Model/FetchReconRequest.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/FetchReconRequestFilters.cs b/src/cashfree_pg/Model/FetchReconRequestFilters.cs
index 322f7e2..8140957 100644
--- a/src/cashfree_pg/Model/FetchReconRequestFilters.cs
+++ b/src/cashfree_pg/Model/FetchReconRequestFilters.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/FetchReconRequestPagination.cs b/src/cashfree_pg/Model/FetchReconRequestPagination.cs
index ccd22a4..560895d 100644
--- a/src/cashfree_pg/Model/FetchReconRequestPagination.cs
+++ b/src/cashfree_pg/Model/FetchReconRequestPagination.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/FetchSettlementsRequest.cs b/src/cashfree_pg/Model/FetchSettlementsRequest.cs
index b68b022..bc342cb 100644
--- a/src/cashfree_pg/Model/FetchSettlementsRequest.cs
+++ b/src/cashfree_pg/Model/FetchSettlementsRequest.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/FetchSettlementsRequestFilters.cs b/src/cashfree_pg/Model/FetchSettlementsRequestFilters.cs
index dce80ab..54c5243 100644
--- a/src/cashfree_pg/Model/FetchSettlementsRequestFilters.cs
+++ b/src/cashfree_pg/Model/FetchSettlementsRequestFilters.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -39,7 +39,7 @@ public class FetchSettlementsRequestFilters : IEquatableList of settlement UTRs for which you want the settlement reconciliation details..
/// Specify the start date from when you want the settlement reconciliation details..
/// Specify the end date till when you want the settlement reconciliation details..
- public FetchSettlementsRequestFilters(List cfSettlementIds = default(List), List settlementUtrs = default(List), string startDate = default(string), string endDate = default(string))
+ public FetchSettlementsRequestFilters(List cfSettlementIds = default(List), List settlementUtrs = default(List), string startDate = default(string), string endDate = default(string))
{
this.cf_settlement_ids = cfSettlementIds;
this.settlement_utrs = settlementUtrs;
@@ -52,7 +52,7 @@ public class FetchSettlementsRequestFilters : IEquatable
/// List of settlement IDs for which you want the settlement reconciliation details.
[DataMember(Name = "cf_settlement_ids", EmitDefaultValue = false)]
- public List cf_settlement_ids { get; set; }
+ public List cf_settlement_ids { get; set; }
///
/// List of settlement UTRs for which you want the settlement reconciliation details.
diff --git a/src/cashfree_pg/Model/FetchSettlementsRequestPagination.cs b/src/cashfree_pg/Model/FetchSettlementsRequestPagination.cs
index a70ce16..a18a7fd 100644
--- a/src/cashfree_pg/Model/FetchSettlementsRequestPagination.cs
+++ b/src/cashfree_pg/Model/FetchSettlementsRequestPagination.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/FetchTerminalQRCodesEntity.cs b/src/cashfree_pg/Model/FetchTerminalQRCodesEntity.cs
index f76cc45..c9dac34 100644
--- a/src/cashfree_pg/Model/FetchTerminalQRCodesEntity.cs
+++ b/src/cashfree_pg/Model/FetchTerminalQRCodesEntity.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/IdempotencyError.cs b/src/cashfree_pg/Model/IdempotencyError.cs
index 7125dfa..74a718f 100644
--- a/src/cashfree_pg/Model/IdempotencyError.cs
+++ b/src/cashfree_pg/Model/IdempotencyError.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/InstrumentEntity.cs b/src/cashfree_pg/Model/InstrumentEntity.cs
index 5310118..ed29761 100644
--- a/src/cashfree_pg/Model/InstrumentEntity.cs
+++ b/src/cashfree_pg/Model/InstrumentEntity.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/InstrumentWebhook.cs b/src/cashfree_pg/Model/InstrumentWebhook.cs
index 6bee652..2a143cd 100644
--- a/src/cashfree_pg/Model/InstrumentWebhook.cs
+++ b/src/cashfree_pg/Model/InstrumentWebhook.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/InstrumentWebhookData.cs b/src/cashfree_pg/Model/InstrumentWebhookData.cs
index 28ae9f3..b5c9721 100644
--- a/src/cashfree_pg/Model/InstrumentWebhookData.cs
+++ b/src/cashfree_pg/Model/InstrumentWebhookData.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/InstrumentWebhookDataEntity.cs b/src/cashfree_pg/Model/InstrumentWebhookDataEntity.cs
index 5bd190d..0e1944c 100644
--- a/src/cashfree_pg/Model/InstrumentWebhookDataEntity.cs
+++ b/src/cashfree_pg/Model/InstrumentWebhookDataEntity.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/LinkCustomerDetailsEntity.cs b/src/cashfree_pg/Model/LinkCustomerDetailsEntity.cs
index efb1252..8db1d74 100644
--- a/src/cashfree_pg/Model/LinkCustomerDetailsEntity.cs
+++ b/src/cashfree_pg/Model/LinkCustomerDetailsEntity.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/LinkEntity.cs b/src/cashfree_pg/Model/LinkEntity.cs
index 453ffb8..b41e014 100644
--- a/src/cashfree_pg/Model/LinkEntity.cs
+++ b/src/cashfree_pg/Model/LinkEntity.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -46,13 +46,13 @@ public class LinkEntity : IEquatable, IValidatableObject
/// linkPurpose.
/// linkCreatedAt.
/// customerDetails.
- /// Payment link meta information object..
+ /// linkMeta.
/// linkUrl.
/// linkExpiryTime.
/// Key-value pair that can be used to store additional information about the entity. Maximum 5 key-value pairs.
/// linkAutoReminders.
/// linkNotify.
- public LinkEntity(long cfLinkId = default(long), string linkId = default(string), string linkStatus = default(string), string linkCurrency = default(string), decimal linkAmount = default(decimal), decimal linkAmountPaid = default(decimal), bool linkPartialPayments = default(bool), decimal linkMinimumPartialAmount = default(decimal), string linkPurpose = default(string), string linkCreatedAt = default(string), LinkCustomerDetailsEntity customerDetails = default(LinkCustomerDetailsEntity), Dictionary linkMeta = default(Dictionary), string linkUrl = default(string), string linkExpiryTime = default(string), Dictionary linkNotes = default(Dictionary), bool linkAutoReminders = default(bool), LinkNotifyEntity linkNotify = default(LinkNotifyEntity))
+ public LinkEntity(string cfLinkId = default(string), string linkId = default(string), string linkStatus = default(string), string linkCurrency = default(string), decimal linkAmount = default(decimal), decimal linkAmountPaid = default(decimal), bool linkPartialPayments = default(bool), decimal linkMinimumPartialAmount = default(decimal), string linkPurpose = default(string), string linkCreatedAt = default(string), LinkCustomerDetailsEntity customerDetails = default(LinkCustomerDetailsEntity), LinkMetaResponseEntity linkMeta = default(LinkMetaResponseEntity), string linkUrl = default(string), string linkExpiryTime = default(string), Dictionary linkNotes = default(Dictionary), bool linkAutoReminders = default(bool), LinkNotifyEntity linkNotify = default(LinkNotifyEntity))
{
this.cf_link_id = cfLinkId;
this.link_id = linkId;
@@ -77,7 +77,7 @@ public class LinkEntity : IEquatable, IValidatableObject
/// Gets or Sets cf_link_id
///
[DataMember(Name = "cf_link_id", EmitDefaultValue = false)]
- public long cf_link_id { get; set; }
+ public string cf_link_id { get; set; }
///
/// Gets or Sets link_id
@@ -140,12 +140,10 @@ public class LinkEntity : IEquatable, IValidatableObject
public LinkCustomerDetailsEntity customer_details { get; set; }
///
- /// Payment link meta information object.
+ /// Gets or Sets link_meta
///
- /// Payment link meta information object.
- /// {"key_1":"value_1","key_2":"value_2"}
[DataMember(Name = "link_meta", EmitDefaultValue = false)]
- public Dictionary link_meta { get; set; }
+ public LinkMetaResponseEntity link_meta { get; set; }
///
/// Gets or Sets link_url
@@ -241,7 +239,8 @@ public bool Equals(LinkEntity input)
return
(
this.cf_link_id == input.cf_link_id ||
- this.cf_link_id.Equals(input.cf_link_id)
+ (this.cf_link_id != null &&
+ this.cf_link_id.Equals(input.cf_link_id))
) &&
(
this.link_id == input.link_id ||
@@ -291,9 +290,8 @@ public bool Equals(LinkEntity input)
) &&
(
this.link_meta == input.link_meta ||
- this.link_meta != null &&
- input.link_meta != null &&
- this.link_meta.SequenceEqual(input.link_meta)
+ (this.link_meta != null &&
+ this.link_meta.Equals(input.link_meta))
) &&
(
this.link_url == input.link_url ||
@@ -331,7 +329,10 @@ public override int GetHashCode()
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
- hashCode = (hashCode * 59) + this.cf_link_id.GetHashCode();
+ if (this.cf_link_id != null)
+ {
+ hashCode = (hashCode * 59) + this.cf_link_id.GetHashCode();
+ }
if (this.link_id != null)
{
hashCode = (hashCode * 59) + this.link_id.GetHashCode();
diff --git a/src/cashfree_pg/Model/LinkMetaResponseEntity.cs b/src/cashfree_pg/Model/LinkMetaResponseEntity.cs
new file mode 100644
index 0000000..7ca950b
--- /dev/null
+++ b/src/cashfree_pg/Model/LinkMetaResponseEntity.cs
@@ -0,0 +1,183 @@
+/*
+ * Cashfree Payment Gateway APIs
+ *
+ * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
+ *
+ * The version of the OpenAPI document: 2023-08-01
+ * Contact: developers@cashfree.com
+ * Generated by: https://github.com/openapitools/openapi-generator.git
+ */
+
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.IO;
+using System.Runtime.Serialization;
+using System.Text;
+using System.Text.RegularExpressions;
+using Newtonsoft.Json;
+using Newtonsoft.Json.Converters;
+using Newtonsoft.Json.Linq;
+using System.ComponentModel.DataAnnotations;
+using OpenAPIDateConverter = cashfree_pg.Client.OpenAPIDateConverter;
+
+namespace cashfree_pg.Model
+{
+ ///
+ /// Payment link meta information object
+ ///
+ [DataContract(Name = "LinkMetaResponseEntity")]
+ public class LinkMetaResponseEntity : IEquatable, IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// Notification URL for server-server communication. It should be an https URL..
+ /// If \"true\", link will directly open UPI Intent flow on mobile, and normal link flow elsewhere.
+ /// The URL to which user will be redirected to after the payment is done on the link. Maximum length: 250..
+ /// Allowed payment modes for this link. Pass comma-separated values among following options - \"cc\", \"dc\", \"ccc\", \"ppc\", \"nb\", \"upi\", \"paypal\", \"app\". Leave it blank to show all available payment methods.
+ public LinkMetaResponseEntity(string notifyUrl = default(string), bool upiIntent = default(bool), string returnUrl = default(string), string paymentMethods = default(string))
+ {
+ this.notify_url = notifyUrl;
+ this.upi_intent = upiIntent;
+ this.return_url = returnUrl;
+ this.payment_methods = paymentMethods;
+ }
+
+ ///
+ /// Notification URL for server-server communication. It should be an https URL.
+ ///
+ /// Notification URL for server-server communication. It should be an https URL.
+ [DataMember(Name = "notify_url", EmitDefaultValue = false)]
+ public string notify_url { get; set; }
+
+ ///
+ /// If \"true\", link will directly open UPI Intent flow on mobile, and normal link flow elsewhere
+ ///
+ /// If \"true\", link will directly open UPI Intent flow on mobile, and normal link flow elsewhere
+ [DataMember(Name = "upi_intent", EmitDefaultValue = true)]
+ public bool upi_intent { get; set; }
+
+ ///
+ /// The URL to which user will be redirected to after the payment is done on the link. Maximum length: 250.
+ ///
+ /// The URL to which user will be redirected to after the payment is done on the link. Maximum length: 250.
+ [DataMember(Name = "return_url", EmitDefaultValue = false)]
+ public string return_url { get; set; }
+
+ ///
+ /// Allowed payment modes for this link. Pass comma-separated values among following options - \"cc\", \"dc\", \"ccc\", \"ppc\", \"nb\", \"upi\", \"paypal\", \"app\". Leave it blank to show all available payment methods
+ ///
+ /// Allowed payment modes for this link. Pass comma-separated values among following options - \"cc\", \"dc\", \"ccc\", \"ppc\", \"nb\", \"upi\", \"paypal\", \"app\". Leave it blank to show all available payment methods
+ [DataMember(Name = "payment_methods", EmitDefaultValue = false)]
+ public string payment_methods { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ StringBuilder sb = new StringBuilder();
+ sb.Append("class LinkMetaResponseEntity {\n");
+ sb.Append(" notify_url: ").Append(notify_url).Append("\n");
+ sb.Append(" upi_intent: ").Append(upi_intent).Append("\n");
+ sb.Append(" return_url: ").Append(return_url).Append("\n");
+ sb.Append(" payment_methods: ").Append(payment_methods).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public virtual string ToJson()
+ {
+ return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return this.Equals(input as LinkMetaResponseEntity);
+ }
+
+ ///
+ /// Returns true if LinkMetaResponseEntity instances are equal
+ ///
+ /// Instance of LinkMetaResponseEntity to be compared
+ /// Boolean
+ public bool Equals(LinkMetaResponseEntity input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ return
+ (
+ this.notify_url == input.notify_url ||
+ (this.notify_url != null &&
+ this.notify_url.Equals(input.notify_url))
+ ) &&
+ (
+ this.upi_intent == input.upi_intent ||
+ this.upi_intent.Equals(input.upi_intent)
+ ) &&
+ (
+ this.return_url == input.return_url ||
+ (this.return_url != null &&
+ this.return_url.Equals(input.return_url))
+ ) &&
+ (
+ this.payment_methods == input.payment_methods ||
+ (this.payment_methods != null &&
+ this.payment_methods.Equals(input.payment_methods))
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (this.notify_url != null)
+ {
+ hashCode = (hashCode * 59) + this.notify_url.GetHashCode();
+ }
+ hashCode = (hashCode * 59) + this.upi_intent.GetHashCode();
+ if (this.return_url != null)
+ {
+ hashCode = (hashCode * 59) + this.return_url.GetHashCode();
+ }
+ if (this.payment_methods != null)
+ {
+ hashCode = (hashCode * 59) + this.payment_methods.GetHashCode();
+ }
+ return hashCode;
+ }
+ }
+
+ ///
+ /// To validate all properties of the instance
+ ///
+ /// Validation context
+ /// Validation Result
+ IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
+ {
+ yield break;
+ }
+ }
+
+}
diff --git a/src/cashfree_pg/Model/LinkNotifyEntity.cs b/src/cashfree_pg/Model/LinkNotifyEntity.cs
index 7b82fdd..8b679a6 100644
--- a/src/cashfree_pg/Model/LinkNotifyEntity.cs
+++ b/src/cashfree_pg/Model/LinkNotifyEntity.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/NetBankingPaymentMethod.cs b/src/cashfree_pg/Model/NetBankingPaymentMethod.cs
index c677241..119ecc1 100644
--- a/src/cashfree_pg/Model/NetBankingPaymentMethod.cs
+++ b/src/cashfree_pg/Model/NetBankingPaymentMethod.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/Netbanking.cs b/src/cashfree_pg/Model/Netbanking.cs
index 5d7d63b..7e935a2 100644
--- a/src/cashfree_pg/Model/Netbanking.cs
+++ b/src/cashfree_pg/Model/Netbanking.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/OfferAll.cs b/src/cashfree_pg/Model/OfferAll.cs
index 2781dee..f3c15a5 100644
--- a/src/cashfree_pg/Model/OfferAll.cs
+++ b/src/cashfree_pg/Model/OfferAll.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/OfferCard.cs b/src/cashfree_pg/Model/OfferCard.cs
index 4bcfb0c..a659f69 100644
--- a/src/cashfree_pg/Model/OfferCard.cs
+++ b/src/cashfree_pg/Model/OfferCard.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/OfferDetails.cs b/src/cashfree_pg/Model/OfferDetails.cs
index f671fc1..b7c5e09 100644
--- a/src/cashfree_pg/Model/OfferDetails.cs
+++ b/src/cashfree_pg/Model/OfferDetails.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/OfferEMI.cs b/src/cashfree_pg/Model/OfferEMI.cs
index f443121..8cad08d 100644
--- a/src/cashfree_pg/Model/OfferEMI.cs
+++ b/src/cashfree_pg/Model/OfferEMI.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/OfferEntity.cs b/src/cashfree_pg/Model/OfferEntity.cs
index a5465b2..3f484aa 100644
--- a/src/cashfree_pg/Model/OfferEntity.cs
+++ b/src/cashfree_pg/Model/OfferEntity.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/OfferFilters.cs b/src/cashfree_pg/Model/OfferFilters.cs
index e829416..dcc37c5 100644
--- a/src/cashfree_pg/Model/OfferFilters.cs
+++ b/src/cashfree_pg/Model/OfferFilters.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/OfferMeta.cs b/src/cashfree_pg/Model/OfferMeta.cs
index 331ebf9..70b742d 100644
--- a/src/cashfree_pg/Model/OfferMeta.cs
+++ b/src/cashfree_pg/Model/OfferMeta.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/OfferNB.cs b/src/cashfree_pg/Model/OfferNB.cs
index 757e8fc..220d958 100644
--- a/src/cashfree_pg/Model/OfferNB.cs
+++ b/src/cashfree_pg/Model/OfferNB.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/OfferNBNetbanking.cs b/src/cashfree_pg/Model/OfferNBNetbanking.cs
index ad3a42e..9028875 100644
--- a/src/cashfree_pg/Model/OfferNBNetbanking.cs
+++ b/src/cashfree_pg/Model/OfferNBNetbanking.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/OfferPaylater.cs b/src/cashfree_pg/Model/OfferPaylater.cs
index 9f46c77..ade2da2 100644
--- a/src/cashfree_pg/Model/OfferPaylater.cs
+++ b/src/cashfree_pg/Model/OfferPaylater.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/OfferQueries.cs b/src/cashfree_pg/Model/OfferQueries.cs
index ea707ae..e6f9c4f 100644
--- a/src/cashfree_pg/Model/OfferQueries.cs
+++ b/src/cashfree_pg/Model/OfferQueries.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/OfferTnc.cs b/src/cashfree_pg/Model/OfferTnc.cs
index cea3579..67cc6b0 100644
--- a/src/cashfree_pg/Model/OfferTnc.cs
+++ b/src/cashfree_pg/Model/OfferTnc.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/OfferType.cs b/src/cashfree_pg/Model/OfferType.cs
index 1630f2c..fa9ca66 100644
--- a/src/cashfree_pg/Model/OfferType.cs
+++ b/src/cashfree_pg/Model/OfferType.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/OfferUPI.cs b/src/cashfree_pg/Model/OfferUPI.cs
index df661e7..68d8aac 100644
--- a/src/cashfree_pg/Model/OfferUPI.cs
+++ b/src/cashfree_pg/Model/OfferUPI.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/OfferValidations.cs b/src/cashfree_pg/Model/OfferValidations.cs
index 5361663..0225724 100644
--- a/src/cashfree_pg/Model/OfferValidations.cs
+++ b/src/cashfree_pg/Model/OfferValidations.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -42,8 +42,7 @@ protected OfferValidations() { }
///
/// Minimum Amount for Offer to be Applicable.
/// paymentMethod (required).
- /// Maximum amount of Offer that can be availed. (required).
- public OfferValidations(decimal minAmount = default(decimal), OfferValidationsPaymentMethod paymentMethod = default(OfferValidationsPaymentMethod), decimal maxAllowed = default(decimal))
+ public OfferValidations(decimal minAmount = default(decimal), OfferValidationsPaymentMethod paymentMethod = default(OfferValidationsPaymentMethod))
{
// to ensure "paymentMethod" is required (not null)
if (paymentMethod == null)
@@ -51,7 +50,6 @@ protected OfferValidations() { }
throw new ArgumentNullException("paymentMethod is a required property for OfferValidations and cannot be null");
}
this.payment_method = paymentMethod;
- this.max_allowed = maxAllowed;
this.min_amount = minAmount;
}
@@ -69,14 +67,6 @@ protected OfferValidations() { }
[DataMember(Name = "payment_method", IsRequired = true, EmitDefaultValue = true)]
public OfferValidationsPaymentMethod payment_method { get; set; }
- ///
- /// Maximum amount of Offer that can be availed.
- ///
- /// Maximum amount of Offer that can be availed.
- /// 10
- [DataMember(Name = "max_allowed", IsRequired = true, EmitDefaultValue = true)]
- public decimal max_allowed { get; set; }
-
///
/// Returns the string presentation of the object
///
@@ -87,7 +77,6 @@ public override string ToString()
sb.Append("class OfferValidations {\n");
sb.Append(" min_amount: ").Append(min_amount).Append("\n");
sb.Append(" payment_method: ").Append(payment_method).Append("\n");
- sb.Append(" max_allowed: ").Append(max_allowed).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
@@ -131,10 +120,6 @@ public bool Equals(OfferValidations input)
this.payment_method == input.payment_method ||
(this.payment_method != null &&
this.payment_method.Equals(input.payment_method))
- ) &&
- (
- this.max_allowed == input.max_allowed ||
- this.max_allowed.Equals(input.max_allowed)
);
}
@@ -152,7 +137,6 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.payment_method.GetHashCode();
}
- hashCode = (hashCode * 59) + this.max_allowed.GetHashCode();
return hashCode;
}
}
@@ -170,12 +154,6 @@ public override int GetHashCode()
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for min_amount, must be a value greater than or equal to 1.", new [] { "min_amount" });
}
- // max_allowed (decimal) minimum
- if (this.max_allowed < (decimal)1)
- {
- yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for max_allowed, must be a value greater than or equal to 1.", new [] { "max_allowed" });
- }
-
yield break;
}
}
diff --git a/src/cashfree_pg/Model/OfferValidationsPaymentMethod.cs b/src/cashfree_pg/Model/OfferValidationsPaymentMethod.cs
index bb853bb..cb0b387 100644
--- a/src/cashfree_pg/Model/OfferValidationsPaymentMethod.cs
+++ b/src/cashfree_pg/Model/OfferValidationsPaymentMethod.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/OfferWallet.cs b/src/cashfree_pg/Model/OfferWallet.cs
index b1d5fa8..9740bbe 100644
--- a/src/cashfree_pg/Model/OfferWallet.cs
+++ b/src/cashfree_pg/Model/OfferWallet.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/OrderAuthenticateEntity.cs b/src/cashfree_pg/Model/OrderAuthenticateEntity.cs
index f9c864b..a9f54df 100644
--- a/src/cashfree_pg/Model/OrderAuthenticateEntity.cs
+++ b/src/cashfree_pg/Model/OrderAuthenticateEntity.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -93,7 +93,7 @@ public enum AuthenticateStatusEnum
/// The action that was invoked for this request..
/// Status of the is action. Will be either failed or successful. If the action is successful, you should still call the authorization status to verify the final payment status..
/// Human readable message which describes the status in more detail.
- public OrderAuthenticateEntity(decimal cfPaymentId = default(decimal), ActionEnum? action = default(ActionEnum?), AuthenticateStatusEnum? authenticateStatus = default(AuthenticateStatusEnum?), string paymentMessage = default(string))
+ public OrderAuthenticateEntity(string cfPaymentId = default(string), ActionEnum? action = default(ActionEnum?), AuthenticateStatusEnum? authenticateStatus = default(AuthenticateStatusEnum?), string paymentMessage = default(string))
{
this.cf_payment_id = cfPaymentId;
this.action = action;
@@ -106,7 +106,7 @@ public enum AuthenticateStatusEnum
///
/// The payment id for which this request was sent
[DataMember(Name = "cf_payment_id", EmitDefaultValue = false)]
- public decimal cf_payment_id { get; set; }
+ public string cf_payment_id { get; set; }
///
/// Human readable message which describes the status in more detail
@@ -164,7 +164,8 @@ public bool Equals(OrderAuthenticateEntity input)
return
(
this.cf_payment_id == input.cf_payment_id ||
- this.cf_payment_id.Equals(input.cf_payment_id)
+ (this.cf_payment_id != null &&
+ this.cf_payment_id.Equals(input.cf_payment_id))
) &&
(
this.action == input.action ||
@@ -190,7 +191,10 @@ public override int GetHashCode()
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
- hashCode = (hashCode * 59) + this.cf_payment_id.GetHashCode();
+ if (this.cf_payment_id != null)
+ {
+ hashCode = (hashCode * 59) + this.cf_payment_id.GetHashCode();
+ }
hashCode = (hashCode * 59) + this.action.GetHashCode();
hashCode = (hashCode * 59) + this.authenticate_status.GetHashCode();
if (this.payment_message != null)
diff --git a/src/cashfree_pg/Model/OrderAuthenticatePaymentRequest.cs b/src/cashfree_pg/Model/OrderAuthenticatePaymentRequest.cs
index 5e6dbbc..1b66e4b 100644
--- a/src/cashfree_pg/Model/OrderAuthenticatePaymentRequest.cs
+++ b/src/cashfree_pg/Model/OrderAuthenticatePaymentRequest.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/OrderCreateRefundRequest.cs b/src/cashfree_pg/Model/OrderCreateRefundRequest.cs
index 4f17f38..2d8bfe3 100644
--- a/src/cashfree_pg/Model/OrderCreateRefundRequest.cs
+++ b/src/cashfree_pg/Model/OrderCreateRefundRequest.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/OrderEntity.cs b/src/cashfree_pg/Model/OrderEntity.cs
index 7d52b90..76905c1 100644
--- a/src/cashfree_pg/Model/OrderEntity.cs
+++ b/src/cashfree_pg/Model/OrderEntity.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -40,7 +40,7 @@ public class OrderEntity : IEquatable, IValidatableObject
/// Type of the entity..
/// Currency of the order. Example INR.
/// orderAmount.
- /// Possible values are - `ACTIVE`: Order does not have a sucessful transaction yet - `PAID`: Order is PAID with one successful transaction - `EXPIRED`: Order was not PAID and not it has expired. No transaction can be initiated for an EXPIRED order. .
+ /// Possible values are - `ACTIVE`: Order does not have a sucessful transaction yet - `PAID`: Order is PAID with one successful transaction - `EXPIRED`: Order was not PAID and not it has expired. No transaction can be initiated for an EXPIRED order. `TERMINATED`: Order terminated `TERMINATION_REQUESTED`: Order termination requested.
/// paymentSessionId.
/// orderExpiryTime.
/// Additional note for order.
@@ -48,11 +48,8 @@ public class OrderEntity : IEquatable, IValidatableObject
/// orderSplits.
/// customerDetails.
/// orderMeta.
- /// payments.
- /// settlements.
- /// refunds.
/// Custom Tags in thr form of {\"key\":\"value\"} which can be passed for an order. A maximum of 10 tags can be added.
- public OrderEntity(long cfOrderId = default(long), string orderId = default(string), string entity = default(string), string orderCurrency = default(string), decimal orderAmount = default(decimal), string orderStatus = default(string), string paymentSessionId = default(string), DateTime orderExpiryTime = default(DateTime), string orderNote = default(string), DateTime createdAt = default(DateTime), List orderSplits = default(List), CustomerDetails customerDetails = default(CustomerDetails), OrderMeta orderMeta = default(OrderMeta), PaymentURLObject payments = default(PaymentURLObject), SettlementURLObject settlements = default(SettlementURLObject), RefundURLObject refunds = default(RefundURLObject), Dictionary orderTags = default(Dictionary))
+ public OrderEntity(string cfOrderId = default(string), string orderId = default(string), string entity = default(string), string orderCurrency = default(string), decimal orderAmount = default(decimal), string orderStatus = default(string), string paymentSessionId = default(string), DateTime orderExpiryTime = default(DateTime), string orderNote = default(string), DateTime createdAt = default(DateTime), List orderSplits = default(List), CustomerDetails customerDetails = default(CustomerDetails), OrderMeta orderMeta = default(OrderMeta), Dictionary orderTags = default(Dictionary))
{
this.cf_order_id = cfOrderId;
this.order_id = orderId;
@@ -67,9 +64,6 @@ public class OrderEntity : IEquatable, IValidatableObject
this.order_splits = orderSplits;
this.customer_details = customerDetails;
this.order_meta = orderMeta;
- this.payments = payments;
- this.settlements = settlements;
- this.refunds = refunds;
this.order_tags = orderTags;
}
@@ -78,7 +72,7 @@ public class OrderEntity : IEquatable, IValidatableObject
///
/// unique id generated by cashfree for your order
[DataMember(Name = "cf_order_id", EmitDefaultValue = false)]
- public long cf_order_id { get; set; }
+ public string cf_order_id { get; set; }
///
/// order_id sent during the api request
@@ -108,9 +102,9 @@ public class OrderEntity : IEquatable, IValidatableObject
public decimal order_amount { get; set; }
///
- /// Possible values are - `ACTIVE`: Order does not have a sucessful transaction yet - `PAID`: Order is PAID with one successful transaction - `EXPIRED`: Order was not PAID and not it has expired. No transaction can be initiated for an EXPIRED order.
+ /// Possible values are - `ACTIVE`: Order does not have a sucessful transaction yet - `PAID`: Order is PAID with one successful transaction - `EXPIRED`: Order was not PAID and not it has expired. No transaction can be initiated for an EXPIRED order. `TERMINATED`: Order terminated `TERMINATION_REQUESTED`: Order termination requested
///
- /// Possible values are - `ACTIVE`: Order does not have a sucessful transaction yet - `PAID`: Order is PAID with one successful transaction - `EXPIRED`: Order was not PAID and not it has expired. No transaction can be initiated for an EXPIRED order.
+ /// Possible values are - `ACTIVE`: Order does not have a sucessful transaction yet - `PAID`: Order is PAID with one successful transaction - `EXPIRED`: Order was not PAID and not it has expired. No transaction can be initiated for an EXPIRED order. `TERMINATED`: Order terminated `TERMINATION_REQUESTED`: Order termination requested
[DataMember(Name = "order_status", EmitDefaultValue = false)]
public string order_status { get; set; }
@@ -159,24 +153,6 @@ public class OrderEntity : IEquatable, IValidatableObject
[DataMember(Name = "order_meta", EmitDefaultValue = false)]
public OrderMeta order_meta { get; set; }
- ///
- /// Gets or Sets payments
- ///
- [DataMember(Name = "payments", EmitDefaultValue = false)]
- public PaymentURLObject payments { get; set; }
-
- ///
- /// Gets or Sets settlements
- ///
- [DataMember(Name = "settlements", EmitDefaultValue = false)]
- public SettlementURLObject settlements { get; set; }
-
- ///
- /// Gets or Sets refunds
- ///
- [DataMember(Name = "refunds", EmitDefaultValue = false)]
- public RefundURLObject refunds { get; set; }
-
///
/// Custom Tags in thr form of {\"key\":\"value\"} which can be passed for an order. A maximum of 10 tags can be added
///
@@ -206,9 +182,6 @@ public override string ToString()
sb.Append(" order_splits: ").Append(order_splits).Append("\n");
sb.Append(" customer_details: ").Append(customer_details).Append("\n");
sb.Append(" order_meta: ").Append(order_meta).Append("\n");
- sb.Append(" payments: ").Append(payments).Append("\n");
- sb.Append(" settlements: ").Append(settlements).Append("\n");
- sb.Append(" refunds: ").Append(refunds).Append("\n");
sb.Append(" order_tags: ").Append(order_tags).Append("\n");
sb.Append("}\n");
return sb.ToString();
@@ -247,7 +220,8 @@ public bool Equals(OrderEntity input)
return
(
this.cf_order_id == input.cf_order_id ||
- this.cf_order_id.Equals(input.cf_order_id)
+ (this.cf_order_id != null &&
+ this.cf_order_id.Equals(input.cf_order_id))
) &&
(
this.order_id == input.order_id ||
@@ -309,21 +283,6 @@ public bool Equals(OrderEntity input)
(this.order_meta != null &&
this.order_meta.Equals(input.order_meta))
) &&
- (
- this.payments == input.payments ||
- (this.payments != null &&
- this.payments.Equals(input.payments))
- ) &&
- (
- this.settlements == input.settlements ||
- (this.settlements != null &&
- this.settlements.Equals(input.settlements))
- ) &&
- (
- this.refunds == input.refunds ||
- (this.refunds != null &&
- this.refunds.Equals(input.refunds))
- ) &&
(
this.order_tags == input.order_tags ||
this.order_tags != null &&
@@ -341,7 +300,10 @@ public override int GetHashCode()
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
- hashCode = (hashCode * 59) + this.cf_order_id.GetHashCode();
+ if (this.cf_order_id != null)
+ {
+ hashCode = (hashCode * 59) + this.cf_order_id.GetHashCode();
+ }
if (this.order_id != null)
{
hashCode = (hashCode * 59) + this.order_id.GetHashCode();
@@ -387,18 +349,6 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.order_meta.GetHashCode();
}
- if (this.payments != null)
- {
- hashCode = (hashCode * 59) + this.payments.GetHashCode();
- }
- if (this.settlements != null)
- {
- hashCode = (hashCode * 59) + this.settlements.GetHashCode();
- }
- if (this.refunds != null)
- {
- hashCode = (hashCode * 59) + this.refunds.GetHashCode();
- }
if (this.order_tags != null)
{
hashCode = (hashCode * 59) + this.order_tags.GetHashCode();
diff --git a/src/cashfree_pg/Model/OrderMeta.cs b/src/cashfree_pg/Model/OrderMeta.cs
index 03a45e9..b6c8466 100644
--- a/src/cashfree_pg/Model/OrderMeta.cs
+++ b/src/cashfree_pg/Model/OrderMeta.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -35,7 +35,7 @@ public class OrderMeta : IEquatable, IValidatableObject
///
/// Initializes a new instance of the class.
///
- /// The URL to which user will be redirected to after the payment on bank OTP page. Maximum length: 250. The return_url must contain placeholder {order_id}. When redirecting the customer back to the return url from the bank’s OTP page, Cashfree will replace this placeholder with the actual value for that order..
+ /// The URL to which user will be redirected to after the payment on bank OTP page. Maximum length: 250. We suggest to keep context of order_id in your return_url so that you can identify the order when customer lands on your page. Example of return_url format could be https://example.com/return?order_id=myOrderId.
/// Notification URL for server-server communication. Useful when user's connection drops while re-directing. NotifyUrl should be an https URL. Maximum length: 250..
/// Allowed payment modes for this order. Pass comma-separated values among following options - \"cc\", \"dc\", \"ccc\", \"ppc\",\"nb\",\"upi\",\"paypal\",\"app\",\"paylater\",\"cardlessemi\",\"dcemi\",\"ccemi\",\"banktransfer\". Leave it blank to show all available payment methods.
public OrderMeta(string returnUrl = default(string), string notifyUrl = default(string), Object paymentMethods = default(Object))
@@ -46,10 +46,10 @@ public class OrderMeta : IEquatable, IValidatableObject
}
///
- /// The URL to which user will be redirected to after the payment on bank OTP page. Maximum length: 250. The return_url must contain placeholder {order_id}. When redirecting the customer back to the return url from the bank’s OTP page, Cashfree will replace this placeholder with the actual value for that order.
+ /// The URL to which user will be redirected to after the payment on bank OTP page. Maximum length: 250. We suggest to keep context of order_id in your return_url so that you can identify the order when customer lands on your page. Example of return_url format could be https://example.com/return?order_id=myOrderId
///
- /// The URL to which user will be redirected to after the payment on bank OTP page. Maximum length: 250. The return_url must contain placeholder {order_id}. When redirecting the customer back to the return url from the bank’s OTP page, Cashfree will replace this placeholder with the actual value for that order.
- /// https://example.com/return?order_id={order_id}
+ /// The URL to which user will be redirected to after the payment on bank OTP page. Maximum length: 250. We suggest to keep context of order_id in your return_url so that you can identify the order when customer lands on your page. Example of return_url format could be https://example.com/return?order_id=myOrderId
+ /// https://example.com/return?order_id=myOrderId
[DataMember(Name = "return_url", EmitDefaultValue = false)]
public string return_url { get; set; }
diff --git a/src/cashfree_pg/Model/OrderPayData.cs b/src/cashfree_pg/Model/OrderPayData.cs
index 70bf898..0930c57 100644
--- a/src/cashfree_pg/Model/OrderPayData.cs
+++ b/src/cashfree_pg/Model/OrderPayData.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/PayOrderEntity.cs b/src/cashfree_pg/Model/PayOrderEntity.cs
index 0806368..39c1dff 100644
--- a/src/cashfree_pg/Model/PayOrderEntity.cs
+++ b/src/cashfree_pg/Model/PayOrderEntity.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -176,7 +176,7 @@ public enum ActionEnum
/// One of [\"link\", \"collect\", \"qrcode\"]. In an older version we used to support different channels like 'gpay', 'phonepe' etc. However, we now support only the following channels - link, collect and qrcode. To process payments using gpay, you will have to provide channel as 'link' and provider as 'gpay'.
/// One of [\"link\", \"custom\", \"form\"].
/// data.
- public PayOrderEntity(decimal paymentAmount = default(decimal), long cfPaymentId = default(long), PaymentMethodEnum? paymentMethod = default(PaymentMethodEnum?), ChannelEnum? channel = default(ChannelEnum?), ActionEnum? action = default(ActionEnum?), OrderPayData data = default(OrderPayData))
+ public PayOrderEntity(decimal paymentAmount = default(decimal), string cfPaymentId = default(string), PaymentMethodEnum? paymentMethod = default(PaymentMethodEnum?), ChannelEnum? channel = default(ChannelEnum?), ActionEnum? action = default(ActionEnum?), OrderPayData data = default(OrderPayData))
{
this.payment_amount = paymentAmount;
this.cf_payment_id = cfPaymentId;
@@ -198,7 +198,7 @@ public enum ActionEnum
///
/// Payment identifier created by Cashfree
[DataMember(Name = "cf_payment_id", EmitDefaultValue = false)]
- public long cf_payment_id { get; set; }
+ public string cf_payment_id { get; set; }
///
/// Gets or Sets data
@@ -261,7 +261,8 @@ public bool Equals(PayOrderEntity input)
) &&
(
this.cf_payment_id == input.cf_payment_id ||
- this.cf_payment_id.Equals(input.cf_payment_id)
+ (this.cf_payment_id != null &&
+ this.cf_payment_id.Equals(input.cf_payment_id))
) &&
(
this.payment_method == input.payment_method ||
@@ -292,7 +293,10 @@ public override int GetHashCode()
{
int hashCode = 41;
hashCode = (hashCode * 59) + this.payment_amount.GetHashCode();
- hashCode = (hashCode * 59) + this.cf_payment_id.GetHashCode();
+ if (this.cf_payment_id != null)
+ {
+ hashCode = (hashCode * 59) + this.cf_payment_id.GetHashCode();
+ }
hashCode = (hashCode * 59) + this.payment_method.GetHashCode();
hashCode = (hashCode * 59) + this.channel.GetHashCode();
hashCode = (hashCode * 59) + this.action.GetHashCode();
diff --git a/src/cashfree_pg/Model/PayOrderRequest.cs b/src/cashfree_pg/Model/PayOrderRequest.cs
index 600b2f2..4cbd081 100644
--- a/src/cashfree_pg/Model/PayOrderRequest.cs
+++ b/src/cashfree_pg/Model/PayOrderRequest.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/PayOrderRequestPaymentMethod.cs b/src/cashfree_pg/Model/PayOrderRequestPaymentMethod.cs
index acfd75c..53c3fc3 100644
--- a/src/cashfree_pg/Model/PayOrderRequestPaymentMethod.cs
+++ b/src/cashfree_pg/Model/PayOrderRequestPaymentMethod.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/Paylater.cs b/src/cashfree_pg/Model/Paylater.cs
index bc2e36f..b9833dc 100644
--- a/src/cashfree_pg/Model/Paylater.cs
+++ b/src/cashfree_pg/Model/Paylater.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/PaylaterEntity.cs b/src/cashfree_pg/Model/PaylaterEntity.cs
index 23ca98a..cdca4b5 100644
--- a/src/cashfree_pg/Model/PaylaterEntity.cs
+++ b/src/cashfree_pg/Model/PaylaterEntity.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/PaylaterOffer.cs b/src/cashfree_pg/Model/PaylaterOffer.cs
index cce6d5e..0f4a3a8 100644
--- a/src/cashfree_pg/Model/PaylaterOffer.cs
+++ b/src/cashfree_pg/Model/PaylaterOffer.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/PaylaterPaymentMethod.cs b/src/cashfree_pg/Model/PaylaterPaymentMethod.cs
index 143dc6c..87989fe 100644
--- a/src/cashfree_pg/Model/PaylaterPaymentMethod.cs
+++ b/src/cashfree_pg/Model/PaylaterPaymentMethod.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/PaymentEntity.cs b/src/cashfree_pg/Model/PaymentEntity.cs
index 12a2f2a..859fc8e 100644
--- a/src/cashfree_pg/Model/PaymentEntity.cs
+++ b/src/cashfree_pg/Model/PaymentEntity.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -109,7 +109,7 @@ public enum PaymentStatusEnum
/// authId.
/// authorization.
/// paymentMethod.
- public PaymentEntity(long cfPaymentId = default(long), string orderId = default(string), string entity = default(string), ErrorDetailsInPaymentsEntity errorDetails = default(ErrorDetailsInPaymentsEntity), bool isCaptured = default(bool), decimal orderAmount = default(decimal), string paymentGroup = default(string), string paymentCurrency = default(string), decimal paymentAmount = default(decimal), string paymentTime = default(string), string paymentCompletionTime = default(string), PaymentStatusEnum? paymentStatus = default(PaymentStatusEnum?), string paymentMessage = default(string), string bankReference = default(string), string authId = default(string), AuthorizationInPaymentsEntity authorization = default(AuthorizationInPaymentsEntity), PaymentMethodInPaymentsEntity paymentMethod = default(PaymentMethodInPaymentsEntity))
+ public PaymentEntity(string cfPaymentId = default(string), string orderId = default(string), string entity = default(string), ErrorDetailsInPaymentsEntity errorDetails = default(ErrorDetailsInPaymentsEntity), bool isCaptured = default(bool), decimal orderAmount = default(decimal), string paymentGroup = default(string), string paymentCurrency = default(string), decimal paymentAmount = default(decimal), string paymentTime = default(string), string paymentCompletionTime = default(string), PaymentStatusEnum? paymentStatus = default(PaymentStatusEnum?), string paymentMessage = default(string), string bankReference = default(string), string authId = default(string), AuthorizationInPaymentsEntity authorization = default(AuthorizationInPaymentsEntity), PaymentMethodInPaymentsEntity paymentMethod = default(PaymentMethodInPaymentsEntity))
{
this.cf_payment_id = cfPaymentId;
this.order_id = orderId;
@@ -134,7 +134,7 @@ public enum PaymentStatusEnum
/// Gets or Sets cf_payment_id
///
[DataMember(Name = "cf_payment_id", EmitDefaultValue = false)]
- public long cf_payment_id { get; set; }
+ public string cf_payment_id { get; set; }
///
/// Gets or Sets order_id
@@ -292,7 +292,8 @@ public bool Equals(PaymentEntity input)
return
(
this.cf_payment_id == input.cf_payment_id ||
- this.cf_payment_id.Equals(input.cf_payment_id)
+ (this.cf_payment_id != null &&
+ this.cf_payment_id.Equals(input.cf_payment_id))
) &&
(
this.order_id == input.order_id ||
@@ -381,7 +382,10 @@ public override int GetHashCode()
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
- hashCode = (hashCode * 59) + this.cf_payment_id.GetHashCode();
+ if (this.cf_payment_id != null)
+ {
+ hashCode = (hashCode * 59) + this.cf_payment_id.GetHashCode();
+ }
if (this.order_id != null)
{
hashCode = (hashCode * 59) + this.order_id.GetHashCode();
diff --git a/src/cashfree_pg/Model/PaymentMethodAppInPaymentsEntity.cs b/src/cashfree_pg/Model/PaymentMethodAppInPaymentsEntity.cs
index 732c18b..3df018f 100644
--- a/src/cashfree_pg/Model/PaymentMethodAppInPaymentsEntity.cs
+++ b/src/cashfree_pg/Model/PaymentMethodAppInPaymentsEntity.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/PaymentMethodCardInPaymentsEntity.cs b/src/cashfree_pg/Model/PaymentMethodCardInPaymentsEntity.cs
index ea679d3..714f1e8 100644
--- a/src/cashfree_pg/Model/PaymentMethodCardInPaymentsEntity.cs
+++ b/src/cashfree_pg/Model/PaymentMethodCardInPaymentsEntity.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/PaymentMethodCardlessEMIInPaymentsEntity.cs b/src/cashfree_pg/Model/PaymentMethodCardlessEMIInPaymentsEntity.cs
index 44b7e47..9bcd44c 100644
--- a/src/cashfree_pg/Model/PaymentMethodCardlessEMIInPaymentsEntity.cs
+++ b/src/cashfree_pg/Model/PaymentMethodCardlessEMIInPaymentsEntity.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/PaymentMethodInPaymentsEntity.cs b/src/cashfree_pg/Model/PaymentMethodInPaymentsEntity.cs
index 7e05bae..c56d864 100644
--- a/src/cashfree_pg/Model/PaymentMethodInPaymentsEntity.cs
+++ b/src/cashfree_pg/Model/PaymentMethodInPaymentsEntity.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/PaymentMethodInPaymentsEntityPaymentMethod.cs b/src/cashfree_pg/Model/PaymentMethodInPaymentsEntityPaymentMethod.cs
index 53e19a4..b5c68d2 100644
--- a/src/cashfree_pg/Model/PaymentMethodInPaymentsEntityPaymentMethod.cs
+++ b/src/cashfree_pg/Model/PaymentMethodInPaymentsEntityPaymentMethod.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/PaymentMethodNetBankingInPaymentsEntity.cs b/src/cashfree_pg/Model/PaymentMethodNetBankingInPaymentsEntity.cs
index af8e1d4..051bf5c 100644
--- a/src/cashfree_pg/Model/PaymentMethodNetBankingInPaymentsEntity.cs
+++ b/src/cashfree_pg/Model/PaymentMethodNetBankingInPaymentsEntity.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/PaymentMethodPaylaterInPaymentsEntity.cs b/src/cashfree_pg/Model/PaymentMethodPaylaterInPaymentsEntity.cs
index a8decbd..332c140 100644
--- a/src/cashfree_pg/Model/PaymentMethodPaylaterInPaymentsEntity.cs
+++ b/src/cashfree_pg/Model/PaymentMethodPaylaterInPaymentsEntity.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/PaymentMethodUPIInPaymentsEntity.cs b/src/cashfree_pg/Model/PaymentMethodUPIInPaymentsEntity.cs
index 78ea9ca..0408681 100644
--- a/src/cashfree_pg/Model/PaymentMethodUPIInPaymentsEntity.cs
+++ b/src/cashfree_pg/Model/PaymentMethodUPIInPaymentsEntity.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/PaymentMethodsFilters.cs b/src/cashfree_pg/Model/PaymentMethodsFilters.cs
index 0cb49b6..10d2d51 100644
--- a/src/cashfree_pg/Model/PaymentMethodsFilters.cs
+++ b/src/cashfree_pg/Model/PaymentMethodsFilters.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -27,7 +27,7 @@
namespace cashfree_pg.Model
{
///
- /// Filter for specific Payment Methods
+ /// Filter for Payment Methods
///
[DataContract(Name = "PaymentMethodsFilters")]
public class PaymentMethodsFilters : IEquatable, IValidatableObject
diff --git a/src/cashfree_pg/Model/PaymentMethodsQueries.cs b/src/cashfree_pg/Model/PaymentMethodsQueries.cs
index a80f82a..01fba3d 100644
--- a/src/cashfree_pg/Model/PaymentMethodsQueries.cs
+++ b/src/cashfree_pg/Model/PaymentMethodsQueries.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/PaymentModeDetails.cs b/src/cashfree_pg/Model/PaymentModeDetails.cs
index 7648dcf..0c33d7b 100644
--- a/src/cashfree_pg/Model/PaymentModeDetails.cs
+++ b/src/cashfree_pg/Model/PaymentModeDetails.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/PaymentWebhook.cs b/src/cashfree_pg/Model/PaymentWebhook.cs
index 39a979c..5ab0a6f 100644
--- a/src/cashfree_pg/Model/PaymentWebhook.cs
+++ b/src/cashfree_pg/Model/PaymentWebhook.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/PaymentWebhookCustomerEntity.cs b/src/cashfree_pg/Model/PaymentWebhookCustomerEntity.cs
index 8769b49..3a461c3 100644
--- a/src/cashfree_pg/Model/PaymentWebhookCustomerEntity.cs
+++ b/src/cashfree_pg/Model/PaymentWebhookCustomerEntity.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/PaymentWebhookDataEntity.cs b/src/cashfree_pg/Model/PaymentWebhookDataEntity.cs
index 9c91f16..0786096 100644
--- a/src/cashfree_pg/Model/PaymentWebhookDataEntity.cs
+++ b/src/cashfree_pg/Model/PaymentWebhookDataEntity.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/PaymentWebhookErrorEntity.cs b/src/cashfree_pg/Model/PaymentWebhookErrorEntity.cs
index b72b4ff..3c38307 100644
--- a/src/cashfree_pg/Model/PaymentWebhookErrorEntity.cs
+++ b/src/cashfree_pg/Model/PaymentWebhookErrorEntity.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/PaymentWebhookGatewayDetailsEntity.cs b/src/cashfree_pg/Model/PaymentWebhookGatewayDetailsEntity.cs
index 39f1add..10c30ca 100644
--- a/src/cashfree_pg/Model/PaymentWebhookGatewayDetailsEntity.cs
+++ b/src/cashfree_pg/Model/PaymentWebhookGatewayDetailsEntity.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/PaymentWebhookOrderEntity.cs b/src/cashfree_pg/Model/PaymentWebhookOrderEntity.cs
index 447ddfe..5889ed5 100644
--- a/src/cashfree_pg/Model/PaymentWebhookOrderEntity.cs
+++ b/src/cashfree_pg/Model/PaymentWebhookOrderEntity.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/RateLimitError.cs b/src/cashfree_pg/Model/RateLimitError.cs
index e280c2c..a4d24ef 100644
--- a/src/cashfree_pg/Model/RateLimitError.cs
+++ b/src/cashfree_pg/Model/RateLimitError.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/ReconEntity.cs b/src/cashfree_pg/Model/ReconEntity.cs
index 831e772..4c1f997 100644
--- a/src/cashfree_pg/Model/ReconEntity.cs
+++ b/src/cashfree_pg/Model/ReconEntity.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/ReconEntityDataInner.cs b/src/cashfree_pg/Model/ReconEntityDataInner.cs
index fef98a3..4425ac4 100644
--- a/src/cashfree_pg/Model/ReconEntityDataInner.cs
+++ b/src/cashfree_pg/Model/ReconEntityDataInner.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -82,7 +82,7 @@ public class ReconEntityDataInner : IEquatable, IValidatab
/// Settlement charges applicable on the settlement..
/// Settlement tax applicable on the settlement..
/// Remarks on the settlement..
- public ReconEntityDataInner(string eventId = default(string), string eventType = default(string), decimal eventSettlementAmount = default(decimal), decimal eventAmount = default(decimal), string saleType = default(string), string eventStatus = default(string), string entity = default(string), string eventTime = default(string), string eventCurrency = default(string), string orderId = default(string), decimal orderAmount = default(decimal), string customerPhone = default(string), string customerEmail = default(string), string customerName = default(string), decimal paymentAmount = default(decimal), string paymentUtr = default(string), string paymentTime = default(string), decimal paymentServiceCharge = default(decimal), decimal paymentServiceTax = default(decimal), long cfPaymentId = default(long), int cfSettlementId = default(int), string settlementDate = default(string), string settlementUtr = default(string), decimal splitServiceCharge = default(decimal), decimal splitServiceTax = default(decimal), decimal vendorCommission = default(decimal), string closedInFavorOf = default(string), string disputeResolvedOn = default(string), string disputeCategory = default(string), string disputeNote = default(string), string refundProcessedAt = default(string), string refundArn = default(string), string refundNote = default(string), string refundId = default(string), string adjustmentRemarks = default(string), decimal adjustment = default(decimal), decimal serviceTax = default(decimal), decimal serviceCharge = default(decimal), decimal amountSettled = default(decimal), string paymentFrom = default(string), string paymentTill = default(string), string reason = default(string), string settlementInitiatedOn = default(string), string settlementType = default(string), decimal settlementCharge = default(decimal), decimal settlementTax = default(decimal), string remarks = default(string))
+ public ReconEntityDataInner(string eventId = default(string), string eventType = default(string), decimal eventSettlementAmount = default(decimal), decimal eventAmount = default(decimal), string saleType = default(string), string eventStatus = default(string), string entity = default(string), string eventTime = default(string), string eventCurrency = default(string), string orderId = default(string), decimal orderAmount = default(decimal), string customerPhone = default(string), string customerEmail = default(string), string customerName = default(string), decimal paymentAmount = default(decimal), string paymentUtr = default(string), string paymentTime = default(string), decimal paymentServiceCharge = default(decimal), decimal paymentServiceTax = default(decimal), string cfPaymentId = default(string), string cfSettlementId = default(string), string settlementDate = default(string), string settlementUtr = default(string), decimal splitServiceCharge = default(decimal), decimal splitServiceTax = default(decimal), decimal vendorCommission = default(decimal), string closedInFavorOf = default(string), string disputeResolvedOn = default(string), string disputeCategory = default(string), string disputeNote = default(string), string refundProcessedAt = default(string), string refundArn = default(string), string refundNote = default(string), string refundId = default(string), string adjustmentRemarks = default(string), decimal adjustment = default(decimal), decimal serviceTax = default(decimal), decimal serviceCharge = default(decimal), decimal amountSettled = default(decimal), string paymentFrom = default(string), string paymentTill = default(string), string reason = default(string), string settlementInitiatedOn = default(string), string settlementType = default(string), decimal settlementCharge = default(decimal), decimal settlementTax = default(decimal), string remarks = default(string))
{
this.event_id = eventId;
this.event_type = eventType;
@@ -271,14 +271,14 @@ public class ReconEntityDataInner : IEquatable, IValidatab
///
/// Cashfree Payments unique ID to identify a payment.
[DataMember(Name = "cf_payment_id", EmitDefaultValue = false)]
- public long cf_payment_id { get; set; }
+ public string cf_payment_id { get; set; }
///
/// Unique ID to identify the settlement.
///
/// Unique ID to identify the settlement.
[DataMember(Name = "cf_settlement_id", EmitDefaultValue = false)]
- public int cf_settlement_id { get; set; }
+ public string cf_settlement_id { get; set; }
///
/// Date and time when the settlement was processed.
@@ -643,11 +643,13 @@ public bool Equals(ReconEntityDataInner input)
) &&
(
this.cf_payment_id == input.cf_payment_id ||
- this.cf_payment_id.Equals(input.cf_payment_id)
+ (this.cf_payment_id != null &&
+ this.cf_payment_id.Equals(input.cf_payment_id))
) &&
(
this.cf_settlement_id == input.cf_settlement_id ||
- this.cf_settlement_id.Equals(input.cf_settlement_id)
+ (this.cf_settlement_id != null &&
+ this.cf_settlement_id.Equals(input.cf_settlement_id))
) &&
(
this.settlement_date == input.settlement_date ||
@@ -839,8 +841,14 @@ public override int GetHashCode()
}
hashCode = (hashCode * 59) + this.payment_service_charge.GetHashCode();
hashCode = (hashCode * 59) + this.payment_service_tax.GetHashCode();
- hashCode = (hashCode * 59) + this.cf_payment_id.GetHashCode();
- hashCode = (hashCode * 59) + this.cf_settlement_id.GetHashCode();
+ if (this.cf_payment_id != null)
+ {
+ hashCode = (hashCode * 59) + this.cf_payment_id.GetHashCode();
+ }
+ if (this.cf_settlement_id != null)
+ {
+ hashCode = (hashCode * 59) + this.cf_settlement_id.GetHashCode();
+ }
if (this.settlement_date != null)
{
hashCode = (hashCode * 59) + this.settlement_date.GetHashCode();
diff --git a/src/cashfree_pg/Model/RefundEntity.cs b/src/cashfree_pg/Model/RefundEntity.cs
index 93c7a8a..eeaf799 100644
--- a/src/cashfree_pg/Model/RefundEntity.cs
+++ b/src/cashfree_pg/Model/RefundEntity.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -174,7 +174,7 @@ public enum RefundModeEnum
/// Time of refund creation.
/// Time when refund was processed successfully.
/// refundSpeed.
- public RefundEntity(long cfPaymentId = default(long), string cfRefundId = default(string), string orderId = default(string), string refundId = default(string), EntityEnum? entity = default(EntityEnum?), decimal refundAmount = default(decimal), string refundCurrency = default(string), string refundNote = default(string), RefundStatusEnum? refundStatus = default(RefundStatusEnum?), string refundArn = default(string), decimal refundCharge = default(decimal), string statusDescription = default(string), Object metadata = default(Object), List refundSplits = default(List), RefundTypeEnum? refundType = default(RefundTypeEnum?), RefundModeEnum? refundMode = default(RefundModeEnum?), string createdAt = default(string), string processedAt = default(string), RefundSpeed refundSpeed = default(RefundSpeed))
+ public RefundEntity(string cfPaymentId = default(string), string cfRefundId = default(string), string orderId = default(string), string refundId = default(string), EntityEnum? entity = default(EntityEnum?), decimal refundAmount = default(decimal), string refundCurrency = default(string), string refundNote = default(string), RefundStatusEnum? refundStatus = default(RefundStatusEnum?), string refundArn = default(string), decimal refundCharge = default(decimal), string statusDescription = default(string), Object metadata = default(Object), List refundSplits = default(List), RefundTypeEnum? refundType = default(RefundTypeEnum?), RefundModeEnum? refundMode = default(RefundModeEnum?), string createdAt = default(string), string processedAt = default(string), RefundSpeed refundSpeed = default(RefundSpeed))
{
this.cf_payment_id = cfPaymentId;
this.cf_refund_id = cfRefundId;
@@ -202,7 +202,7 @@ public enum RefundModeEnum
///
/// Cashfree Payments ID of the payment for which refund is initiated
[DataMember(Name = "cf_payment_id", EmitDefaultValue = false)]
- public long cf_payment_id { get; set; }
+ public string cf_payment_id { get; set; }
///
/// Cashfree Payments ID for a refund
@@ -364,7 +364,8 @@ public bool Equals(RefundEntity input)
return
(
this.cf_payment_id == input.cf_payment_id ||
- this.cf_payment_id.Equals(input.cf_payment_id)
+ (this.cf_payment_id != null &&
+ this.cf_payment_id.Equals(input.cf_payment_id))
) &&
(
this.cf_refund_id == input.cf_refund_id ||
@@ -462,7 +463,10 @@ public override int GetHashCode()
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
- hashCode = (hashCode * 59) + this.cf_payment_id.GetHashCode();
+ if (this.cf_payment_id != null)
+ {
+ hashCode = (hashCode * 59) + this.cf_payment_id.GetHashCode();
+ }
if (this.cf_refund_id != null)
{
hashCode = (hashCode * 59) + this.cf_refund_id.GetHashCode();
diff --git a/src/cashfree_pg/Model/RefundSpeed.cs b/src/cashfree_pg/Model/RefundSpeed.cs
index 92ba986..bc0bd60 100644
--- a/src/cashfree_pg/Model/RefundSpeed.cs
+++ b/src/cashfree_pg/Model/RefundSpeed.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/RefundWebhook.cs b/src/cashfree_pg/Model/RefundWebhook.cs
index 8df78c9..30c07a3 100644
--- a/src/cashfree_pg/Model/RefundWebhook.cs
+++ b/src/cashfree_pg/Model/RefundWebhook.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -61,7 +61,7 @@ public class RefundWebhook : IEquatable, IValidatableObject
///
/// Gets or Sets type
///
- /// PAYMENT_SUCCESS_WEBHOOK
+ /// REFUND_SUCCESS_WEBHOOK
[DataMember(Name = "type", EmitDefaultValue = false)]
public string type { get; set; }
diff --git a/src/cashfree_pg/Model/RefundWebhookDataEntity.cs b/src/cashfree_pg/Model/RefundWebhookDataEntity.cs
index b2795ed..3c217eb 100644
--- a/src/cashfree_pg/Model/RefundWebhookDataEntity.cs
+++ b/src/cashfree_pg/Model/RefundWebhookDataEntity.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/SavedInstrumentMeta.cs b/src/cashfree_pg/Model/SavedInstrumentMeta.cs
index 029e75e..69418e4 100644
--- a/src/cashfree_pg/Model/SavedInstrumentMeta.cs
+++ b/src/cashfree_pg/Model/SavedInstrumentMeta.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/SettlementEntity.cs b/src/cashfree_pg/Model/SettlementEntity.cs
index a9eb246..4ea79cf 100644
--- a/src/cashfree_pg/Model/SettlementEntity.cs
+++ b/src/cashfree_pg/Model/SettlementEntity.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -49,7 +49,7 @@ public class SettlementEntity : IEquatable, IValidatableObject
/// transferId.
/// transferTime.
/// transferUtr.
- public SettlementEntity(long cfPaymentId = default(long), long cfSettlementId = default(long), string settlementCurrency = default(string), string orderId = default(string), string entity = default(string), decimal orderAmount = default(decimal), string paymentTime = default(string), decimal serviceCharge = default(decimal), decimal serviceTax = default(decimal), decimal settlementAmount = default(decimal), int settlementId = default(int), int transferId = default(int), string transferTime = default(string), string transferUtr = default(string))
+ public SettlementEntity(string cfPaymentId = default(string), string cfSettlementId = default(string), string settlementCurrency = default(string), string orderId = default(string), string entity = default(string), decimal orderAmount = default(decimal), string paymentTime = default(string), decimal serviceCharge = default(decimal), decimal serviceTax = default(decimal), decimal settlementAmount = default(decimal), int settlementId = default(int), int transferId = default(int), string transferTime = default(string), string transferUtr = default(string))
{
this.cf_payment_id = cfPaymentId;
this.cf_settlement_id = cfSettlementId;
@@ -71,13 +71,13 @@ public class SettlementEntity : IEquatable, IValidatableObject
/// Gets or Sets cf_payment_id
///
[DataMember(Name = "cf_payment_id", EmitDefaultValue = false)]
- public long cf_payment_id { get; set; }
+ public string cf_payment_id { get; set; }
///
/// Gets or Sets cf_settlement_id
///
[DataMember(Name = "cf_settlement_id", EmitDefaultValue = false)]
- public long cf_settlement_id { get; set; }
+ public string cf_settlement_id { get; set; }
///
/// Gets or Sets settlement_currency
@@ -210,11 +210,13 @@ public bool Equals(SettlementEntity input)
return
(
this.cf_payment_id == input.cf_payment_id ||
- this.cf_payment_id.Equals(input.cf_payment_id)
+ (this.cf_payment_id != null &&
+ this.cf_payment_id.Equals(input.cf_payment_id))
) &&
(
this.cf_settlement_id == input.cf_settlement_id ||
- this.cf_settlement_id.Equals(input.cf_settlement_id)
+ (this.cf_settlement_id != null &&
+ this.cf_settlement_id.Equals(input.cf_settlement_id))
) &&
(
this.settlement_currency == input.settlement_currency ||
@@ -281,8 +283,14 @@ public override int GetHashCode()
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
- hashCode = (hashCode * 59) + this.cf_payment_id.GetHashCode();
- hashCode = (hashCode * 59) + this.cf_settlement_id.GetHashCode();
+ if (this.cf_payment_id != null)
+ {
+ hashCode = (hashCode * 59) + this.cf_payment_id.GetHashCode();
+ }
+ if (this.cf_settlement_id != null)
+ {
+ hashCode = (hashCode * 59) + this.cf_settlement_id.GetHashCode();
+ }
if (this.settlement_currency != null)
{
hashCode = (hashCode * 59) + this.settlement_currency.GetHashCode();
diff --git a/src/cashfree_pg/Model/SettlementFetchReconRequest.cs b/src/cashfree_pg/Model/SettlementFetchReconRequest.cs
index 8cbc369..3b77922 100644
--- a/src/cashfree_pg/Model/SettlementFetchReconRequest.cs
+++ b/src/cashfree_pg/Model/SettlementFetchReconRequest.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -42,7 +42,7 @@ protected SettlementFetchReconRequest() { }
///
/// pagination (required).
/// filters (required).
- public SettlementFetchReconRequest(FetchSettlementsRequestPagination pagination = default(FetchSettlementsRequestPagination), SettlementFetchReconRequestFilters filters = default(SettlementFetchReconRequestFilters))
+ public SettlementFetchReconRequest(FetchSettlementsRequestPagination pagination = default(FetchSettlementsRequestPagination), FetchSettlementsRequestFilters filters = default(FetchSettlementsRequestFilters))
{
// to ensure "pagination" is required (not null)
if (pagination == null)
@@ -68,7 +68,7 @@ protected SettlementFetchReconRequest() { }
/// Gets or Sets filters
///
[DataMember(Name = "filters", IsRequired = true, EmitDefaultValue = true)]
- public SettlementFetchReconRequestFilters filters { get; set; }
+ public FetchSettlementsRequestFilters filters { get; set; }
///
/// Returns the string presentation of the object
diff --git a/src/cashfree_pg/Model/SettlementReconEntity.cs b/src/cashfree_pg/Model/SettlementReconEntity.cs
index f25e15e..6027081 100644
--- a/src/cashfree_pg/Model/SettlementReconEntity.cs
+++ b/src/cashfree_pg/Model/SettlementReconEntity.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/SettlementReconEntityDataInner.cs b/src/cashfree_pg/Model/SettlementReconEntityDataInner.cs
index fde3738..a7b2f7e 100644
--- a/src/cashfree_pg/Model/SettlementReconEntityDataInner.cs
+++ b/src/cashfree_pg/Model/SettlementReconEntityDataInner.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -70,7 +70,7 @@ public class SettlementReconEntityDataInner : IEquatableA refund note for your reference..
/// An unique ID associated with the refund..
/// Other adjustment remarks..
- public SettlementReconEntityDataInner(string eventId = default(string), string eventType = default(string), decimal eventSettlementAmount = default(decimal), decimal eventAmount = default(decimal), string saleType = default(string), string eventStatus = default(string), string entity = default(string), string eventTime = default(string), string eventCurrency = default(string), string orderId = default(string), decimal orderAmount = default(decimal), string customerPhone = default(string), string customerEmail = default(string), string customerName = default(string), decimal paymentAmount = default(decimal), string paymentUtr = default(string), string paymentTime = default(string), decimal paymentServiceCharge = default(decimal), decimal paymentServiceTax = default(decimal), long cfPaymentId = default(long), int cfSettlementId = default(int), string settlementDate = default(string), string settlementUtr = default(string), decimal splitServiceCharge = default(decimal), decimal splitServiceTax = default(decimal), decimal vendorCommission = default(decimal), string closedInFavorOf = default(string), string disputeResolvedOn = default(string), string disputeCategory = default(string), string disputeNote = default(string), string refundProcessedAt = default(string), string refundArn = default(string), string refundNote = default(string), string refundId = default(string), string adjustmentRemarks = default(string))
+ public SettlementReconEntityDataInner(string eventId = default(string), string eventType = default(string), decimal eventSettlementAmount = default(decimal), decimal eventAmount = default(decimal), string saleType = default(string), string eventStatus = default(string), string entity = default(string), string eventTime = default(string), string eventCurrency = default(string), string orderId = default(string), decimal orderAmount = default(decimal), string customerPhone = default(string), string customerEmail = default(string), string customerName = default(string), decimal paymentAmount = default(decimal), string paymentUtr = default(string), string paymentTime = default(string), decimal paymentServiceCharge = default(decimal), decimal paymentServiceTax = default(decimal), string cfPaymentId = default(string), string cfSettlementId = default(string), string settlementDate = default(string), string settlementUtr = default(string), decimal splitServiceCharge = default(decimal), decimal splitServiceTax = default(decimal), decimal vendorCommission = default(decimal), string closedInFavorOf = default(string), string disputeResolvedOn = default(string), string disputeCategory = default(string), string disputeNote = default(string), string refundProcessedAt = default(string), string refundArn = default(string), string refundNote = default(string), string refundId = default(string), string adjustmentRemarks = default(string))
{
this.event_id = eventId;
this.event_type = eventType;
@@ -247,14 +247,14 @@ public class SettlementReconEntityDataInner : IEquatable
/// Cashfree Payments unique ID to identify a payment.
[DataMember(Name = "cf_payment_id", EmitDefaultValue = false)]
- public long cf_payment_id { get; set; }
+ public string cf_payment_id { get; set; }
///
/// Unique ID to identify the settlement.
///
/// Unique ID to identify the settlement.
[DataMember(Name = "cf_settlement_id", EmitDefaultValue = false)]
- public int cf_settlement_id { get; set; }
+ public string cf_settlement_id { get; set; }
///
/// Date and time when the settlement was processed.
@@ -523,11 +523,13 @@ public bool Equals(SettlementReconEntityDataInner input)
) &&
(
this.cf_payment_id == input.cf_payment_id ||
- this.cf_payment_id.Equals(input.cf_payment_id)
+ (this.cf_payment_id != null &&
+ this.cf_payment_id.Equals(input.cf_payment_id))
) &&
(
this.cf_settlement_id == input.cf_settlement_id ||
- this.cf_settlement_id.Equals(input.cf_settlement_id)
+ (this.cf_settlement_id != null &&
+ this.cf_settlement_id.Equals(input.cf_settlement_id))
) &&
(
this.settlement_date == input.settlement_date ||
@@ -665,8 +667,14 @@ public override int GetHashCode()
}
hashCode = (hashCode * 59) + this.payment_service_charge.GetHashCode();
hashCode = (hashCode * 59) + this.payment_service_tax.GetHashCode();
- hashCode = (hashCode * 59) + this.cf_payment_id.GetHashCode();
- hashCode = (hashCode * 59) + this.cf_settlement_id.GetHashCode();
+ if (this.cf_payment_id != null)
+ {
+ hashCode = (hashCode * 59) + this.cf_payment_id.GetHashCode();
+ }
+ if (this.cf_settlement_id != null)
+ {
+ hashCode = (hashCode * 59) + this.cf_settlement_id.GetHashCode();
+ }
if (this.settlement_date != null)
{
hashCode = (hashCode * 59) + this.settlement_date.GetHashCode();
diff --git a/src/cashfree_pg/Model/SettlementWebhook.cs b/src/cashfree_pg/Model/SettlementWebhook.cs
index 388dfbc..0bea94b 100644
--- a/src/cashfree_pg/Model/SettlementWebhook.cs
+++ b/src/cashfree_pg/Model/SettlementWebhook.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/SettlementWebhookDataEntity.cs b/src/cashfree_pg/Model/SettlementWebhookDataEntity.cs
index 0c3d7fd..01e30a1 100644
--- a/src/cashfree_pg/Model/SettlementWebhookDataEntity.cs
+++ b/src/cashfree_pg/Model/SettlementWebhookDataEntity.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/TerminalDetails.cs b/src/cashfree_pg/Model/TerminalDetails.cs
index c4b1e7f..a3f4970 100644
--- a/src/cashfree_pg/Model/TerminalDetails.cs
+++ b/src/cashfree_pg/Model/TerminalDetails.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -50,7 +50,7 @@ protected TerminalDetails() { }
/// mobile num of the terminal/agent/storefront (required).
/// status of terminal active/inactive.
/// To identify the type of terminal product in use, in this case it is SPOS. (required).
- public TerminalDetails(string addedOn = default(string), int cfTerminalId = default(int), string lastUpdatedOn = default(string), string terminalAddress = default(string), string terminalId = default(string), string terminalName = default(string), string terminalNote = default(string), string terminalPhoneNo = default(string), string terminalStatus = default(string), string terminalType = default(string))
+ public TerminalDetails(string addedOn = default(string), string cfTerminalId = default(string), string lastUpdatedOn = default(string), string terminalAddress = default(string), string terminalId = default(string), string terminalName = default(string), string terminalNote = default(string), string terminalPhoneNo = default(string), string terminalStatus = default(string), string terminalType = default(string))
{
// to ensure "terminalId" is required (not null)
if (terminalId == null)
@@ -91,7 +91,7 @@ protected TerminalDetails() { }
///
/// cashfree terminal id
[DataMember(Name = "cf_terminal_id", EmitDefaultValue = false)]
- public int cf_terminal_id { get; set; }
+ public string cf_terminal_id { get; set; }
///
/// last instant when this terminal was updated
@@ -209,7 +209,8 @@ public bool Equals(TerminalDetails input)
) &&
(
this.cf_terminal_id == input.cf_terminal_id ||
- this.cf_terminal_id.Equals(input.cf_terminal_id)
+ (this.cf_terminal_id != null &&
+ this.cf_terminal_id.Equals(input.cf_terminal_id))
) &&
(
this.last_updated_on == input.last_updated_on ||
@@ -266,7 +267,10 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.added_on.GetHashCode();
}
- hashCode = (hashCode * 59) + this.cf_terminal_id.GetHashCode();
+ if (this.cf_terminal_id != null)
+ {
+ hashCode = (hashCode * 59) + this.cf_terminal_id.GetHashCode();
+ }
if (this.last_updated_on != null)
{
hashCode = (hashCode * 59) + this.last_updated_on.GetHashCode();
diff --git a/src/cashfree_pg/Model/TerminalEntity.cs b/src/cashfree_pg/Model/TerminalEntity.cs
index 543f7ff..fcd5439 100644
--- a/src/cashfree_pg/Model/TerminalEntity.cs
+++ b/src/cashfree_pg/Model/TerminalEntity.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/TerminalTransactionEntity.cs b/src/cashfree_pg/Model/TerminalTransactionEntity.cs
index df97f1c..1ac954d 100644
--- a/src/cashfree_pg/Model/TerminalTransactionEntity.cs
+++ b/src/cashfree_pg/Model/TerminalTransactionEntity.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@@ -41,7 +41,7 @@ public class TerminalTransactionEntity : IEquatable,
/// paymentUrl.
/// qrcode.
/// timeout.
- public TerminalTransactionEntity(long cfPaymentId = default(long), int paymentAmount = default(int), string paymentMethod = default(string), string paymentUrl = default(string), string qrcode = default(string), string timeout = default(string))
+ public TerminalTransactionEntity(string cfPaymentId = default(string), int paymentAmount = default(int), string paymentMethod = default(string), string paymentUrl = default(string), string qrcode = default(string), string timeout = default(string))
{
this.cf_payment_id = cfPaymentId;
this.payment_amount = paymentAmount;
@@ -55,7 +55,7 @@ public class TerminalTransactionEntity : IEquatable,
/// Gets or Sets cf_payment_id
///
[DataMember(Name = "cf_payment_id", EmitDefaultValue = false)]
- public long cf_payment_id { get; set; }
+ public string cf_payment_id { get; set; }
///
/// Gets or Sets payment_amount
@@ -138,7 +138,8 @@ public bool Equals(TerminalTransactionEntity input)
return
(
this.cf_payment_id == input.cf_payment_id ||
- this.cf_payment_id.Equals(input.cf_payment_id)
+ (this.cf_payment_id != null &&
+ this.cf_payment_id.Equals(input.cf_payment_id))
) &&
(
this.payment_amount == input.payment_amount ||
@@ -175,7 +176,10 @@ public override int GetHashCode()
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
- hashCode = (hashCode * 59) + this.cf_payment_id.GetHashCode();
+ if (this.cf_payment_id != null)
+ {
+ hashCode = (hashCode * 59) + this.cf_payment_id.GetHashCode();
+ }
hashCode = (hashCode * 59) + this.payment_amount.GetHashCode();
if (this.payment_method != null)
{
diff --git a/src/cashfree_pg/Model/TerminateOrderRequest.cs b/src/cashfree_pg/Model/TerminateOrderRequest.cs
new file mode 100644
index 0000000..bc5015e
--- /dev/null
+++ b/src/cashfree_pg/Model/TerminateOrderRequest.cs
@@ -0,0 +1,140 @@
+/*
+ * Cashfree Payment Gateway APIs
+ *
+ * Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
+ *
+ * The version of the OpenAPI document: 2023-08-01
+ * Contact: developers@cashfree.com
+ * Generated by: https://github.com/openapitools/openapi-generator.git
+ */
+
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.IO;
+using System.Runtime.Serialization;
+using System.Text;
+using System.Text.RegularExpressions;
+using Newtonsoft.Json;
+using Newtonsoft.Json.Converters;
+using Newtonsoft.Json.Linq;
+using System.ComponentModel.DataAnnotations;
+using OpenAPIDateConverter = cashfree_pg.Client.OpenAPIDateConverter;
+
+namespace cashfree_pg.Model
+{
+ ///
+ /// Request to terminate an active order at Cashfree
+ ///
+ [DataContract(Name = "TerminateOrderRequest")]
+ public class TerminateOrderRequest : IEquatable, IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ [JsonConstructorAttribute]
+ protected TerminateOrderRequest() { }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// To terminate an order, pass order_status as \"TERMINATE\". Please note, order might not be terminated - confirm with the order_status in response. \"TERMINATION_REQUESTED\" states that the request is recieved and we are working on it. If the order terminates successfully, status will change to \"TERMINATED\". Incase there's any active transaction which moved to success - order might not get terminated. (required).
+ public TerminateOrderRequest(string orderStatus = default(string))
+ {
+ // to ensure "orderStatus" is required (not null)
+ if (orderStatus == null)
+ {
+ throw new ArgumentNullException("orderStatus is a required property for TerminateOrderRequest and cannot be null");
+ }
+ this.order_status = orderStatus;
+ }
+
+ ///
+ /// To terminate an order, pass order_status as \"TERMINATE\". Please note, order might not be terminated - confirm with the order_status in response. \"TERMINATION_REQUESTED\" states that the request is recieved and we are working on it. If the order terminates successfully, status will change to \"TERMINATED\". Incase there's any active transaction which moved to success - order might not get terminated.
+ ///
+ /// To terminate an order, pass order_status as \"TERMINATE\". Please note, order might not be terminated - confirm with the order_status in response. \"TERMINATION_REQUESTED\" states that the request is recieved and we are working on it. If the order terminates successfully, status will change to \"TERMINATED\". Incase there's any active transaction which moved to success - order might not get terminated.
+ [DataMember(Name = "order_status", IsRequired = true, EmitDefaultValue = true)]
+ public string order_status { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ StringBuilder sb = new StringBuilder();
+ sb.Append("class TerminateOrderRequest {\n");
+ sb.Append(" order_status: ").Append(order_status).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public virtual string ToJson()
+ {
+ return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return this.Equals(input as TerminateOrderRequest);
+ }
+
+ ///
+ /// Returns true if TerminateOrderRequest instances are equal
+ ///
+ /// Instance of TerminateOrderRequest to be compared
+ /// Boolean
+ public bool Equals(TerminateOrderRequest input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ return
+ (
+ this.order_status == input.order_status ||
+ (this.order_status != null &&
+ this.order_status.Equals(input.order_status))
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (this.order_status != null)
+ {
+ hashCode = (hashCode * 59) + this.order_status.GetHashCode();
+ }
+ return hashCode;
+ }
+ }
+
+ ///
+ /// To validate all properties of the instance
+ ///
+ /// Validation context
+ /// Validation Result
+ IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
+ {
+ yield break;
+ }
+ }
+
+}
diff --git a/src/cashfree_pg/Model/UPIAuthorizeDetails.cs b/src/cashfree_pg/Model/UPIAuthorizeDetails.cs
index 9e64d43..bf26b9b 100644
--- a/src/cashfree_pg/Model/UPIAuthorizeDetails.cs
+++ b/src/cashfree_pg/Model/UPIAuthorizeDetails.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/UPIPaymentMethod.cs b/src/cashfree_pg/Model/UPIPaymentMethod.cs
index d531723..7d670e9 100644
--- a/src/cashfree_pg/Model/UPIPaymentMethod.cs
+++ b/src/cashfree_pg/Model/UPIPaymentMethod.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/Upi.cs b/src/cashfree_pg/Model/Upi.cs
index b1f8f0b..0230b94 100644
--- a/src/cashfree_pg/Model/Upi.cs
+++ b/src/cashfree_pg/Model/Upi.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/VendorSplit.cs b/src/cashfree_pg/Model/VendorSplit.cs
index 08b5cc2..2a18267 100644
--- a/src/cashfree_pg/Model/VendorSplit.cs
+++ b/src/cashfree_pg/Model/VendorSplit.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/Model/WalletOffer.cs b/src/cashfree_pg/Model/WalletOffer.cs
index 3fe720d..a30a801 100644
--- a/src/cashfree_pg/Model/WalletOffer.cs
+++ b/src/cashfree_pg/Model/WalletOffer.cs
@@ -3,7 +3,7 @@
*
* Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
*
- * The version of the OpenAPI document: 2022-09-01
+ * The version of the OpenAPI document: 2023-08-01
* Contact: developers@cashfree.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
diff --git a/src/cashfree_pg/cashfree_pg.csproj b/src/cashfree_pg/cashfree_pg.csproj
index 81911d0..c586a45 100644
--- a/src/cashfree_pg/cashfree_pg.csproj
+++ b/src/cashfree_pg/cashfree_pg.csproj
@@ -12,7 +12,7 @@
Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites.
© 2023 Cashfree Payments India Private Limited
com.cashfree
- 3.1.4
+ 4.0.0
LICENSE.md
bin\$(Configuration)\$(TargetFramework)\cashfree_pg.xml
https://github.com/cashfree/cashfree-pg-sdk-dotnet.git