diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES
index 2c9afb6..48295bc 100644
--- a/.openapi-generator/FILES
+++ b/.openapi-generator/FILES
@@ -154,7 +154,13 @@ docs/TerminateOrderRequest.md
docs/TokenVaultApi.md
docs/UPIAuthorizeDetails.md
docs/UPIPaymentMethod.md
+docs/UpdateTerminalEntity.md
+docs/UpdateTerminalRequest.md
+docs/UpdateTerminalRequestTerminalMeta.md
+docs/UpdateTerminalStatusRequest.md
docs/Upi.md
+docs/UploadTerminalDocs.md
+docs/UploadTerminalDocsEntity.md
docs/VendorSplit.md
docs/WalletOffer.md
git_push.sh
@@ -308,7 +314,13 @@ 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/UpdateTerminalEntityTests.cs
+src/cashfree_pg.Test/Model/UpdateTerminalRequestTerminalMetaTests.cs
+src/cashfree_pg.Test/Model/UpdateTerminalRequestTests.cs
+src/cashfree_pg.Test/Model/UpdateTerminalStatusRequestTests.cs
src/cashfree_pg.Test/Model/UpiTests.cs
+src/cashfree_pg.Test/Model/UploadTerminalDocsEntityTests.cs
+src/cashfree_pg.Test/Model/UploadTerminalDocsTests.cs
src/cashfree_pg.Test/Model/VendorSplitTests.cs
src/cashfree_pg.Test/Model/WalletOfferTests.cs
src/cashfree_pg.Test/cashfree_pg.Test.csproj
@@ -479,7 +491,13 @@ 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/UpdateTerminalEntity.cs
+src/cashfree_pg/Model/UpdateTerminalRequest.cs
+src/cashfree_pg/Model/UpdateTerminalRequestTerminalMeta.cs
+src/cashfree_pg/Model/UpdateTerminalStatusRequest.cs
src/cashfree_pg/Model/Upi.cs
+src/cashfree_pg/Model/UploadTerminalDocs.cs
+src/cashfree_pg/Model/UploadTerminalDocsEntity.cs
src/cashfree_pg/Model/VendorSplit.cs
src/cashfree_pg/Model/WalletOffer.cs
src/cashfree_pg/cashfree_pg.csproj
diff --git a/cashfree_pg.sln b/cashfree_pg.sln
index ff28122..c7fd908 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", "{09E13BD8-525B-4CCD-893C-67A33C341167}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "cashfree_pg", "src\cashfree_pg\cashfree_pg.csproj", "{B24356FF-156F-46FA-AEDE-197438B25AA4}"
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
- {09E13BD8-525B-4CCD-893C-67A33C341167}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {09E13BD8-525B-4CCD-893C-67A33C341167}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {09E13BD8-525B-4CCD-893C-67A33C341167}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {09E13BD8-525B-4CCD-893C-67A33C341167}.Release|Any CPU.Build.0 = Release|Any CPU
+ {B24356FF-156F-46FA-AEDE-197438B25AA4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {B24356FF-156F-46FA-AEDE-197438B25AA4}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {B24356FF-156F-46FA-AEDE-197438B25AA4}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {B24356FF-156F-46FA-AEDE-197438B25AA4}.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/PaymentMethodNetBankingInPaymentsEntityNetbanking.md b/docs/PaymentMethodNetBankingInPaymentsEntityNetbanking.md
index 82c8fd7..b11d44a 100644
--- a/docs/PaymentMethodNetBankingInPaymentsEntityNetbanking.md
+++ b/docs/PaymentMethodNetBankingInPaymentsEntityNetbanking.md
@@ -7,6 +7,8 @@ Name | Type | Description | Notes
**channel** | **string** | | [optional]
**netbanking_bank_code** | **int** | | [optional]
**netbanking_bank_name** | **string** | | [optional]
+**netbanking_ifsc** | **string** | | [optional]
+**netbanking_account_number** | **string** | | [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/SoftPOSApi.md b/docs/SoftPOSApi.md
index 05f0840..4853ca4 100644
--- a/docs/SoftPOSApi.md
+++ b/docs/SoftPOSApi.md
@@ -6,8 +6,11 @@ All URIs are relative to *https://sandbox.cashfree.com/pg*
|--------|--------------|-------------|
| [**SposCreateTerminal**](SoftPOSApi.md#sposcreateterminal) | **POST** /terminal | 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 |
+| [**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 |
+| [**SposUpdateTerminal**](SoftPOSApi.md#sposupdateterminal) | **PATCH** /terminal/{cf_terminal_id} | Update Terminal |
+| [**SposUpdateTerminalStatus**](SoftPOSApi.md#sposupdateterminalstatus) | **PATCH** /terminal/{cf_terminal_id}/status | Update Terminal Sttus |
+| [**SposUploadTerminalDocs**](SoftPOSApi.md#sposuploadterminaldocs) | **POST** /terminal/{cf_terminal_id}/docs | Upload Terminal Docs |
# **SposCreateTerminal**
@@ -191,7 +194,7 @@ namespace Example
# **SposFetchTerminal**
> TerminalEntity SposFetchTerminal (string xApiVersion, string terminalPhoneNo, string? xRequestId = null, Guid? xIdempotencyKey = null)
-Get terminal status using phone number
+Get Terminal Status using Phone Number
Use this API to view all details of a terminal.
@@ -224,7 +227,7 @@ namespace Example
try
{
- // Get terminal status using phone number
+ // Get Terminal Status using Phone Number
TerminalEntity result = cashfree.SposFetchTerminal(xApiVersion, terminalPhoneNo, xRequestId, xIdempotencyKey);
Debug.WriteLine(result);
}
@@ -367,3 +370,276 @@ 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)
+
+# **SposUpdateTerminal**
+> List<UpdateTerminalEntity> SposUpdateTerminal (string xApiVersion, string cfTerminalId, UpdateTerminalRequest updateTerminalRequest, string? xRequestId = null, Guid? xIdempotencyKey = null)
+
+Update Terminal
+
+Use this API to update the terminal details. Email, Phone Number, and Terminal Meta are updatable for \"Storefront\". Only account status change is possible in case of \"Agent\".
+
+### Example
+```csharp
+using System.Collections.Generic;
+using System.Diagnostics;
+using cashfree_pg.Client;
+using cashfree_pg.Model;
+
+namespace Example
+{
+ public class SposUpdateTerminalExample
+ {
+ 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 cfTerminalId = 123344; // string | Provide the Cashfree terminal ID for which the details have to be updated.
+ var updateTerminalRequest = new UpdateTerminalRequest(); // UpdateTerminalRequest | Request Body to update 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)
+
+ try
+ {
+ // Update Terminal
+ List result = cashfree.SposUpdateTerminal(xApiVersion, cfTerminalId, updateTerminalRequest, xRequestId, xIdempotencyKey);
+ Debug.WriteLine(result);
+ }
+ catch (ApiException e)
+ {
+ Debug.Print("Exception when calling SoftPOSApi.SposUpdateTerminal: " + 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"] |
+| **cfTerminalId** | **string** | Provide the Cashfree terminal ID for which the details have to be updated. | |
+| **updateTerminalRequest** | [**UpdateTerminalRequest**](UpdateTerminalRequest.md) | Request Body to update 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] |
+
+### Return type
+
+[**List<UpdateTerminalEntity>**](UpdateTerminalEntity.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** | Updated Terminal | * 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)
+
+
+# **SposUpdateTerminalStatus**
+> List<UpdateTerminalEntity> SposUpdateTerminalStatus (string xApiVersion, string cfTerminalId, UpdateTerminalStatusRequest updateTerminalStatusRequest, string? xRequestId = null, Guid? xIdempotencyKey = null)
+
+Update Terminal Sttus
+
+Use this API to update the terminal status.
+
+### Example
+```csharp
+using System.Collections.Generic;
+using System.Diagnostics;
+using cashfree_pg.Client;
+using cashfree_pg.Model;
+
+namespace Example
+{
+ public class SposUpdateTerminalStatusExample
+ {
+ 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 cfTerminalId = 123344; // string | Provide the Cashfree terminal ID for which the details have to be updated.
+ var updateTerminalStatusRequest = new UpdateTerminalStatusRequest(); // UpdateTerminalStatusRequest | Request Body to update terminal status 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)
+
+ try
+ {
+ // Update Terminal Sttus
+ List result = cashfree.SposUpdateTerminalStatus(xApiVersion, cfTerminalId, updateTerminalStatusRequest, xRequestId, xIdempotencyKey);
+ Debug.WriteLine(result);
+ }
+ catch (ApiException e)
+ {
+ Debug.Print("Exception when calling SoftPOSApi.SposUpdateTerminalStatus: " + 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"] |
+| **cfTerminalId** | **string** | Provide the Cashfree terminal ID for which the details have to be updated. | |
+| **updateTerminalStatusRequest** | [**UpdateTerminalStatusRequest**](UpdateTerminalStatusRequest.md) | Request Body to update terminal status 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] |
+
+### Return type
+
+[**List<UpdateTerminalEntity>**](UpdateTerminalEntity.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** | Updated Terminal Status | * 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)
+
+
+# **SposUploadTerminalDocs**
+> List<UploadTerminalDocsEntity> SposUploadTerminalDocs (string xApiVersion, string cfTerminalId, UploadTerminalDocs uploadTerminalDocs, string? xRequestId = null, Guid? xIdempotencyKey = null)
+
+Upload Terminal Docs
+
+Use this API to upload the terminal documents.
+
+### Example
+```csharp
+using System.Collections.Generic;
+using System.Diagnostics;
+using cashfree_pg.Client;
+using cashfree_pg.Model;
+
+namespace Example
+{
+ public class SposUploadTerminalDocsExample
+ {
+ 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 cfTerminalId = 123344; // string | Provide the Cashfree terminal ID for which the details have to be updated.
+ var uploadTerminalDocs = new UploadTerminalDocs(); // UploadTerminalDocs | Request Body to update terminal documents 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)
+
+ try
+ {
+ // Upload Terminal Docs
+ List result = cashfree.SposUploadTerminalDocs(xApiVersion, cfTerminalId, uploadTerminalDocs, xRequestId, xIdempotencyKey);
+ Debug.WriteLine(result);
+ }
+ catch (ApiException e)
+ {
+ Debug.Print("Exception when calling SoftPOSApi.SposUploadTerminalDocs: " + 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"] |
+| **cfTerminalId** | **string** | Provide the Cashfree terminal ID for which the details have to be updated. | |
+| **uploadTerminalDocs** | [**UploadTerminalDocs**](UploadTerminalDocs.md) | Request Body to update terminal documents 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] |
+
+### Return type
+
+[**List<UploadTerminalDocsEntity>**](UploadTerminalDocsEntity.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** | Upload Terminal Docs | * 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/UpdateTerminalEntity.md b/docs/UpdateTerminalEntity.md
new file mode 100644
index 0000000..3fc4b3f
--- /dev/null
+++ b/docs/UpdateTerminalEntity.md
@@ -0,0 +1,22 @@
+# cashfree_pg.Model.UpdateTerminalEntity
+Update terminal response
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**added_on** | **string** | | [optional]
+**cf_terminal_id** | **int** | | [optional]
+**last_updated_on** | **string** | | [optional]
+**terminal_address** | **string** | | [optional]
+**terminal_email** | **string** | | [optional]
+**terminal_type** | **string** | | [optional]
+**teminal_id** | **string** | | [optional]
+**terminal_name** | **string** | | [optional]
+**terminal_note** | **string** | | [optional]
+**terminal_phone_no** | **string** | | [optional]
+**terminal_status** | **string** | | [optional]
+**terminal_meta** | **string** | | [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/UpdateTerminalRequest.md b/docs/UpdateTerminalRequest.md
new file mode 100644
index 0000000..8e631d4
--- /dev/null
+++ b/docs/UpdateTerminalRequest.md
@@ -0,0 +1,14 @@
+# cashfree_pg.Model.UpdateTerminalRequest
+Request body to update terminal details.
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**terminal_email** | **string** | Mention the updated email ID of the terminal. | [optional]
+**terminal_phone_no** | **string** | Terminal phone number to be updated. | [optional]
+**terminal_meta** | [**UpdateTerminalRequestTerminalMeta**](UpdateTerminalRequestTerminalMeta.md) | | [optional]
+**terminal_type** | **string** | Mention the terminal type to be updated. Possible values - AGENT, STOREFRONT. |
+
+[[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/UpdateTerminalRequestTerminalMeta.md b/docs/UpdateTerminalRequestTerminalMeta.md
new file mode 100644
index 0000000..d22cba3
--- /dev/null
+++ b/docs/UpdateTerminalRequestTerminalMeta.md
@@ -0,0 +1,11 @@
+# cashfree_pg.Model.UpdateTerminalRequestTerminalMeta
+Terminal metadata.
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**terminal_operator** | **string** | Name of the operator for the storefront. | [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/UpdateTerminalStatusRequest.md b/docs/UpdateTerminalStatusRequest.md
new file mode 100644
index 0000000..75cea35
--- /dev/null
+++ b/docs/UpdateTerminalStatusRequest.md
@@ -0,0 +1,11 @@
+# cashfree_pg.Model.UpdateTerminalStatusRequest
+Request body to update terminal status.
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**terminal_status** | **string** | Status of the terminal to be updated. possible values - ACTIVE, INACTIVE. |
+
+[[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/UploadTerminalDocs.md b/docs/UploadTerminalDocs.md
new file mode 100644
index 0000000..ee9e226
--- /dev/null
+++ b/docs/UploadTerminalDocs.md
@@ -0,0 +1,13 @@
+# cashfree_pg.Model.UploadTerminalDocs
+Request body to upload terminal documents.
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**doc_type** | **string** | Mention the document type you are uploading. Possible values - ADDRESSPROOF, PHOTOGRAPH. |
+**doc_value** | **string** | Enter the display name of the uploaded file. |
+**file** | **string** | Select the document that should be uploaded or provide the path of that file. You cannot upload a file that is more than 2MB in size. |
+
+[[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/UploadTerminalDocsEntity.md b/docs/UploadTerminalDocsEntity.md
new file mode 100644
index 0000000..d57863a
--- /dev/null
+++ b/docs/UploadTerminalDocsEntity.md
@@ -0,0 +1,14 @@
+# cashfree_pg.Model.UploadTerminalDocsEntity
+Upload the terminal documents.
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**cf_terminal_id** | **int** | | [optional]
+**doc_type** | **string** | | [optional]
+**doc_value** | **string** | | [optional]
+**status** | **string** | | [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/src/cashfree_pg/Client/ApiClient.cs b/src/cashfree_pg/Client/ApiClient.cs
index aa9f8ab..8a36395 100644
--- a/src/cashfree_pg/Client/ApiClient.cs
+++ b/src/cashfree_pg/Client/ApiClient.cs
@@ -157,7 +157,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "4.0.3";
+ o.Release = "4.0.7";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -246,7 +246,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature);
}
- localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.3");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.7");
// make the HTTP request
var localVarResponse = this.Client.Post("/customers", localVarRequestOptions, config);
@@ -294,7 +294,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "4.0.3";
+ o.Release = "4.0.7";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -383,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-4.0.3");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.7");
// make the HTTP request
var localVarResponse = this.Client.Post>("/eligibility/cardlessemi", localVarRequestOptions, config);
@@ -431,7 +431,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "4.0.3";
+ o.Release = "4.0.7";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -520,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-4.0.3");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.7");
// make the HTTP request
var localVarResponse = this.Client.Post>("/eligibility/offers", localVarRequestOptions, config);
@@ -568,7 +568,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "4.0.3";
+ o.Release = "4.0.7";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -657,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-4.0.3");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.7");
// make the HTTP request
var localVarResponse = this.Client.Post>("/eligibility/paylater", localVarRequestOptions, config);
@@ -705,7 +705,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "4.0.3";
+ o.Release = "4.0.7";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -794,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-4.0.3");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.7");
// make the HTTP request
var localVarResponse = this.Client.Post>("/eligibility/payment_methods", localVarRequestOptions, config);
@@ -842,7 +842,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "4.0.3";
+ o.Release = "4.0.7";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -931,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-4.0.3");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.7");
// make the HTTP request
var localVarResponse = this.Client.Post("/offers", localVarRequestOptions, config);
@@ -979,7 +979,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "4.0.3";
+ o.Release = "4.0.7";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -1067,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-4.0.3");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.7");
// make the HTTP request
var localVarResponse = this.Client.Get("/offers/{offer_id}", localVarRequestOptions, config);
@@ -1115,7 +1115,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "4.0.3";
+ o.Release = "4.0.7";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -1204,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-4.0.3");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.7");
// make the HTTP request
var localVarResponse = this.Client.Post("/orders", localVarRequestOptions, config);
@@ -1252,7 +1252,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "4.0.3";
+ o.Release = "4.0.7";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -1340,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-4.0.3");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.7");
// make the HTTP request
var localVarResponse = this.Client.Get("/orders/{order_id}", localVarRequestOptions, config);
@@ -1389,7 +1389,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "4.0.3";
+ o.Release = "4.0.7";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -1483,7 +1483,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature);
}
- localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.3");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.7");
// make the HTTP request
var localVarResponse = this.Client.Patch("/orders/{order_id}", localVarRequestOptions, config);
@@ -1533,7 +1533,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "4.0.3";
+ o.Release = "4.0.7";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -1630,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-4.0.3");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.7");
// make the HTTP request
var localVarResponse = this.Client.Post("/recon", localVarRequestOptions, config);
@@ -1678,7 +1678,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "4.0.3";
+ o.Release = "4.0.7";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -1766,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-4.0.3");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.7");
// make the HTTP request
var localVarResponse = this.Client.Post("/links/{link_id}/cancel", localVarRequestOptions, config);
@@ -1814,7 +1814,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "4.0.3";
+ o.Release = "4.0.7";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -1903,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-4.0.3");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.7");
// make the HTTP request
var localVarResponse = this.Client.Post("/links", localVarRequestOptions, config);
@@ -1951,7 +1951,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "4.0.3";
+ o.Release = "4.0.7";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -2039,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-4.0.3");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.7");
// make the HTTP request
var localVarResponse = this.Client.Get("/links/{link_id}", localVarRequestOptions, config);
@@ -2087,7 +2087,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "4.0.3";
+ o.Release = "4.0.7";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -2175,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-4.0.3");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.7");
// make the HTTP request
var localVarResponse = this.Client.Get>("/links/{link_id}/orders", localVarRequestOptions, config);
@@ -2224,7 +2224,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "4.0.3";
+ o.Release = "4.0.7";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -2318,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-4.0.3");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.7");
// make the HTTP request
var localVarResponse = this.Client.Post("/orders/{order_id}/authorization", localVarRequestOptions, config);
@@ -2367,7 +2367,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "4.0.3";
+ o.Release = "4.0.7";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -2446,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-4.0.3");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.7");
// make the HTTP request
var localVarResponse = this.Client.Post("/orders/pay/authenticate/{cf_payment_id}", localVarRequestOptions, config);
@@ -2495,7 +2495,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "4.0.3";
+ o.Release = "4.0.7";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -2588,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-4.0.3");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.7");
// make the HTTP request
var localVarResponse = this.Client.Get("/orders/{order_id}/payments/{cf_payment_id}", localVarRequestOptions, config);
@@ -2636,7 +2636,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "4.0.3";
+ o.Release = "4.0.7";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -2724,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-4.0.3");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.7");
// make the HTTP request
var localVarResponse = this.Client.Get>("/orders/{order_id}/payments", localVarRequestOptions, config);
@@ -2772,7 +2772,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "4.0.3";
+ o.Release = "4.0.7";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -2846,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-4.0.3");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.7");
// make the HTTP request
var localVarResponse = this.Client.Post("/orders/sessions", localVarRequestOptions, config);
@@ -2895,7 +2895,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "4.0.3";
+ o.Release = "4.0.7";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -2989,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-4.0.3");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.7");
// make the HTTP request
var localVarResponse = this.Client.Post("/orders/{order_id}/refunds", localVarRequestOptions, config);
@@ -3038,7 +3038,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "4.0.3";
+ o.Release = "4.0.7";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -3131,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-4.0.3");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.7");
// make the HTTP request
var localVarResponse = this.Client.Get("/orders/{order_id}/refunds/{refund_id}", localVarRequestOptions, config);
@@ -3179,7 +3179,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "4.0.3";
+ o.Release = "4.0.7";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -3267,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-4.0.3");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.7");
// make the HTTP request
var localVarResponse = this.Client.Get>("/orders/{order_id}/refunds", localVarRequestOptions, config);
@@ -3317,7 +3317,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "4.0.3";
+ o.Release = "4.0.7";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -3414,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-4.0.3");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.7");
// make the HTTP request
var localVarResponse = this.Client.Post("/settlements", localVarRequestOptions, config);
@@ -3464,7 +3464,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "4.0.3";
+ o.Release = "4.0.7";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -3561,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-4.0.3");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.7");
// make the HTTP request
var localVarResponse = this.Client.Post("/settlement/recon", localVarRequestOptions, config);
@@ -3609,7 +3609,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "4.0.3";
+ o.Release = "4.0.7";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -3697,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-4.0.3");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.7");
// make the HTTP request
var localVarResponse = this.Client.Get("/orders/{order_id}/settlements", localVarRequestOptions, config);
@@ -3745,7 +3745,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "4.0.3";
+ o.Release = "4.0.7";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -3834,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-4.0.3");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.7");
// make the HTTP request
var localVarResponse = this.Client.Post("/terminal", localVarRequestOptions, config);
@@ -3882,7 +3882,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "4.0.3";
+ o.Release = "4.0.7";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -3971,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-4.0.3");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.7");
// make the HTTP request
var localVarResponse = this.Client.Post("/terminal/transactions", localVarRequestOptions, config);
@@ -3991,7 +3991,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
return localVarResponse;
}
///
- /// Get terminal status using phone number Use this API to view all details of a terminal.
+ /// Get Terminal Status using Phone Number Use this API to view all details of a terminal.
///
/// Thrown when fails to make API call
/// API version to be used. Format is in YYYY-MM-DD
@@ -4019,7 +4019,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "4.0.3";
+ o.Release = "4.0.7";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -4107,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-4.0.3");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.7");
// make the HTTP request
var localVarResponse = this.Client.Get("/terminal/{terminal_phone_no}", localVarRequestOptions, config);
@@ -4156,7 +4156,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "4.0.3";
+ o.Release = "4.0.7";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -4249,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-4.0.3");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.7");
// make the HTTP request
var localVarResponse = this.Client.Get>("/terminal/qrcodes", localVarRequestOptions, config);
@@ -4269,6 +4269,435 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
return localVarResponse;
}
///
+ /// Update Terminal Use this API to update the terminal details. Email, Phone Number, and Terminal Meta are updatable for \"Storefront\". Only account status change is possible in case of \"Agent\".
+ ///
+ /// Thrown when fails to make API call
+ /// API version to be used. Format is in YYYY-MM-DD
+ /// Provide the Cashfree terminal ID for which the details have to be updated.
+ /// Request Body to update 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)
+ /// ApiResponse of List<UpdateTerminalEntity>
+ public cashfree_pg.Client.ApiResponse> SposUpdateTerminal(string xApiVersion, string cfTerminalId, UpdateTerminalRequest updateTerminalRequest, 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.7";
+ 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 SoftPOSApi->SposUpdateTerminal");
+
+ // verify the required parameter 'cfTerminalId' is set
+ if (cfTerminalId == null)
+ throw new cashfree_pg.Client.ApiException(400, "Missing required parameter 'cfTerminalId' when calling SoftPOSApi->SposUpdateTerminal");
+
+ // verify the required parameter 'updateTerminalRequest' is set
+ if (updateTerminalRequest == null)
+ throw new cashfree_pg.Client.ApiException(400, "Missing required parameter 'updateTerminalRequest' when calling SoftPOSApi->SposUpdateTerminal");
+
+ 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("cf_terminal_id", cashfree_pg.Client.ClientUtils.ParameterToString(cfTerminalId)); // 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 = updateTerminalRequest;
+
+ // 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.7");
+
+ // make the HTTP request
+ var localVarResponse = this.Client.Patch>("/terminal/{cf_terminal_id}", localVarRequestOptions, config);
+
+ if (this.ExceptionFactory != null)
+ {
+ Exception _exception = this.ExceptionFactory("SposUpdateTerminal", localVarResponse);
+ if (_exception != null) {
+ if(Cashfree.XEnableErrorAnalytics) {
+ var sentryEvent = new SentryEvent(_exception);
+ SentrySdk.CaptureEvent(sentryEvent);
+ }
+ throw _exception;
+ }
+ }
+
+ return localVarResponse;
+ }
+ ///
+ /// Update Terminal Sttus Use this API to update the terminal status.
+ ///
+ /// Thrown when fails to make API call
+ /// API version to be used. Format is in YYYY-MM-DD
+ /// Provide the Cashfree terminal ID for which the details have to be updated.
+ /// Request Body to update terminal status 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)
+ /// ApiResponse of List<UpdateTerminalEntity>
+ public cashfree_pg.Client.ApiResponse> SposUpdateTerminalStatus(string xApiVersion, string cfTerminalId, UpdateTerminalStatusRequest updateTerminalStatusRequest, 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.7";
+ 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 SoftPOSApi->SposUpdateTerminalStatus");
+
+ // verify the required parameter 'cfTerminalId' is set
+ if (cfTerminalId == null)
+ throw new cashfree_pg.Client.ApiException(400, "Missing required parameter 'cfTerminalId' when calling SoftPOSApi->SposUpdateTerminalStatus");
+
+ // verify the required parameter 'updateTerminalStatusRequest' is set
+ if (updateTerminalStatusRequest == null)
+ throw new cashfree_pg.Client.ApiException(400, "Missing required parameter 'updateTerminalStatusRequest' when calling SoftPOSApi->SposUpdateTerminalStatus");
+
+ 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("cf_terminal_id", cashfree_pg.Client.ClientUtils.ParameterToString(cfTerminalId)); // 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 = updateTerminalStatusRequest;
+
+ // 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.7");
+
+ // make the HTTP request
+ var localVarResponse = this.Client.Patch>("/terminal/{cf_terminal_id}/status", localVarRequestOptions, config);
+
+ if (this.ExceptionFactory != null)
+ {
+ Exception _exception = this.ExceptionFactory("SposUpdateTerminalStatus", localVarResponse);
+ if (_exception != null) {
+ if(Cashfree.XEnableErrorAnalytics) {
+ var sentryEvent = new SentryEvent(_exception);
+ SentrySdk.CaptureEvent(sentryEvent);
+ }
+ throw _exception;
+ }
+ }
+
+ return localVarResponse;
+ }
+ ///
+ /// Upload Terminal Docs Use this API to upload the terminal documents.
+ ///
+ /// Thrown when fails to make API call
+ /// API version to be used. Format is in YYYY-MM-DD
+ /// Provide the Cashfree terminal ID for which the details have to be updated.
+ /// Request Body to update terminal documents 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)
+ /// ApiResponse of List<UploadTerminalDocsEntity>
+ public cashfree_pg.Client.ApiResponse> SposUploadTerminalDocs(string xApiVersion, string cfTerminalId, UploadTerminalDocs uploadTerminalDocs, 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.7";
+ 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 SoftPOSApi->SposUploadTerminalDocs");
+
+ // verify the required parameter 'cfTerminalId' is set
+ if (cfTerminalId == null)
+ throw new cashfree_pg.Client.ApiException(400, "Missing required parameter 'cfTerminalId' when calling SoftPOSApi->SposUploadTerminalDocs");
+
+ // verify the required parameter 'uploadTerminalDocs' is set
+ if (uploadTerminalDocs == null)
+ throw new cashfree_pg.Client.ApiException(400, "Missing required parameter 'uploadTerminalDocs' when calling SoftPOSApi->SposUploadTerminalDocs");
+
+ 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("cf_terminal_id", cashfree_pg.Client.ClientUtils.ParameterToString(cfTerminalId)); // 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 = uploadTerminalDocs;
+
+ // 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.7");
+
+ // make the HTTP request
+ var localVarResponse = this.Client.Post>("/terminal/{cf_terminal_id}/docs", localVarRequestOptions, config);
+
+ if (this.ExceptionFactory != null)
+ {
+ Exception _exception = this.ExceptionFactory("SposUploadTerminalDocs", localVarResponse);
+ if (_exception != null) {
+ if(Cashfree.XEnableErrorAnalytics) {
+ var sentryEvent = new SentryEvent(_exception);
+ SentrySdk.CaptureEvent(sentryEvent);
+ }
+ throw _exception;
+ }
+ }
+
+ return localVarResponse;
+ }
+ ///
/// Delete Saved Card Instrument Use this API to delete a saved card instrument for a customer_id and instrument_id
///
/// Thrown when fails to make API call
@@ -4298,7 +4727,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "4.0.3";
+ o.Release = "4.0.7";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -4391,7 +4820,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature);
}
- localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.3");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.7");
// make the HTTP request
var localVarResponse = this.Client.Delete("/customers/{customer_id}/instruments/{instrument_id}", localVarRequestOptions, config);
@@ -4440,7 +4869,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "4.0.3";
+ o.Release = "4.0.7";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -4533,7 +4962,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature);
}
- localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.3");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.7");
// make the HTTP request
var localVarResponse = this.Client.Get("/customers/{customer_id}/instruments/{instrument_id}", localVarRequestOptions, config);
@@ -4582,7 +5011,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "4.0.3";
+ o.Release = "4.0.7";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -4675,7 +5104,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature);
}
- localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.3");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.7");
// make the HTTP request
var localVarResponse = this.Client.Get>("/customers/{customer_id}/instruments", localVarRequestOptions, config);
@@ -4724,7 +5153,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
o.EnableTracing = true;
o.AttachStacktrace = true;
o.Environment = env;
- o.Release = "4.0.3";
+ o.Release = "4.0.7";
o.AddEventProcessor(new CashfreeEventProcessor());
}));
}
@@ -4817,7 +5246,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody,
localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature);
}
- localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.3");
+ localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.0.7");
// 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/Configuration.cs b/src/cashfree_pg/Client/Configuration.cs
index 35903d1..5e194df 100644
--- a/src/cashfree_pg/Client/Configuration.cs
+++ b/src/cashfree_pg/Client/Configuration.cs
@@ -34,7 +34,7 @@ public class Configuration : IReadableConfiguration
/// Version of the package.
///
/// Version of the package.
- public const string Version = "4.0.3";
+ public const string Version = "4.0.7";
///
/// Identifier for ISO 8601 DateTime Format
@@ -113,7 +113,7 @@ public class Configuration : IReadableConfiguration
public Configuration()
{
Proxy = null;
- UserAgent = WebUtility.UrlEncode("OpenAPI-Generator/4.0.3/csharp");
+ UserAgent = WebUtility.UrlEncode("OpenAPI-Generator/4.0.7/csharp");
BasePath = "https://sandbox.cashfree.com/pg";
DefaultHeaders = new ConcurrentDictionary();
ApiKey = new ConcurrentDictionary();
@@ -542,7 +542,7 @@ public static string ToDebugReport()
report += " OS: " + System.Environment.OSVersion + "\n";
report += " .NET Framework Version: " + System.Environment.Version + "\n";
report += " Version of the API: 2023-08-01\n";
- report += " SDK Package Version: 4.0.3\n";
+ report += " SDK Package Version: 4.0.7\n";
return report;
}
diff --git a/src/cashfree_pg/Model/OfferValidationsPaymentMethod.cs b/src/cashfree_pg/Model/OfferValidationsPaymentMethod.cs
index 3274f6c..29374aa 100644
--- a/src/cashfree_pg/Model/OfferValidationsPaymentMethod.cs
+++ b/src/cashfree_pg/Model/OfferValidationsPaymentMethod.cs
@@ -280,14 +280,16 @@ public static OfferValidationsPaymentMethod FromJson(string jsonString)
if (typeof(OfferAll).GetProperty("AdditionalProperties") == null)
{
if(OfferAll.checkPresenceOfKey(jsonString)) {
- newOfferValidationsPaymentMethod = new OfferValidationsPaymentMethod(JsonConvert.DeserializeObject(jsonString, OfferValidationsPaymentMethod.SerializerSettings));
+ dynamic data = JsonConvert.DeserializeObject(jsonString, OfferValidationsPaymentMethod.AdditionalPropertiesSerializerSettings);
+ newOfferValidationsPaymentMethod = new OfferValidationsPaymentMethod(data);
return newOfferValidationsPaymentMethod;
}
}
else
{
if(OfferAll.checkPresenceOfKey(jsonString)) {
- newOfferValidationsPaymentMethod = new OfferValidationsPaymentMethod(JsonConvert.DeserializeObject(jsonString, OfferValidationsPaymentMethod.AdditionalPropertiesSerializerSettings));
+ dynamic data = JsonConvert.DeserializeObject(jsonString, OfferValidationsPaymentMethod.AdditionalPropertiesSerializerSettings);
+ newOfferValidationsPaymentMethod = new OfferValidationsPaymentMethod(data);
return newOfferValidationsPaymentMethod;
}
}
@@ -305,14 +307,16 @@ public static OfferValidationsPaymentMethod FromJson(string jsonString)
if (typeof(OfferCard).GetProperty("AdditionalProperties") == null)
{
if(OfferCard.checkPresenceOfKey(jsonString)) {
- newOfferValidationsPaymentMethod = new OfferValidationsPaymentMethod(JsonConvert.DeserializeObject(jsonString, OfferValidationsPaymentMethod.SerializerSettings));
+ dynamic data = JsonConvert.DeserializeObject(jsonString, OfferValidationsPaymentMethod.AdditionalPropertiesSerializerSettings);
+ newOfferValidationsPaymentMethod = new OfferValidationsPaymentMethod(data);
return newOfferValidationsPaymentMethod;
}
}
else
{
if(OfferCard.checkPresenceOfKey(jsonString)) {
- newOfferValidationsPaymentMethod = new OfferValidationsPaymentMethod(JsonConvert.DeserializeObject(jsonString, OfferValidationsPaymentMethod.AdditionalPropertiesSerializerSettings));
+ dynamic data = JsonConvert.DeserializeObject(jsonString, OfferValidationsPaymentMethod.AdditionalPropertiesSerializerSettings);
+ newOfferValidationsPaymentMethod = new OfferValidationsPaymentMethod(data);
return newOfferValidationsPaymentMethod;
}
}
@@ -330,14 +334,16 @@ public static OfferValidationsPaymentMethod FromJson(string jsonString)
if (typeof(OfferEMI).GetProperty("AdditionalProperties") == null)
{
if(OfferEMI.checkPresenceOfKey(jsonString)) {
- newOfferValidationsPaymentMethod = new OfferValidationsPaymentMethod(JsonConvert.DeserializeObject(jsonString, OfferValidationsPaymentMethod.SerializerSettings));
+ dynamic data = JsonConvert.DeserializeObject(jsonString, OfferValidationsPaymentMethod.AdditionalPropertiesSerializerSettings);
+ newOfferValidationsPaymentMethod = new OfferValidationsPaymentMethod(data);
return newOfferValidationsPaymentMethod;
}
}
else
{
if(OfferEMI.checkPresenceOfKey(jsonString)) {
- newOfferValidationsPaymentMethod = new OfferValidationsPaymentMethod(JsonConvert.DeserializeObject(jsonString, OfferValidationsPaymentMethod.AdditionalPropertiesSerializerSettings));
+ dynamic data = JsonConvert.DeserializeObject(jsonString, OfferValidationsPaymentMethod.AdditionalPropertiesSerializerSettings);
+ newOfferValidationsPaymentMethod = new OfferValidationsPaymentMethod(data);
return newOfferValidationsPaymentMethod;
}
}
@@ -355,14 +361,16 @@ public static OfferValidationsPaymentMethod FromJson(string jsonString)
if (typeof(OfferNB).GetProperty("AdditionalProperties") == null)
{
if(OfferNB.checkPresenceOfKey(jsonString)) {
- newOfferValidationsPaymentMethod = new OfferValidationsPaymentMethod(JsonConvert.DeserializeObject(jsonString, OfferValidationsPaymentMethod.SerializerSettings));
+ dynamic data = JsonConvert.DeserializeObject(jsonString, OfferValidationsPaymentMethod.AdditionalPropertiesSerializerSettings);
+ newOfferValidationsPaymentMethod = new OfferValidationsPaymentMethod(data);
return newOfferValidationsPaymentMethod;
}
}
else
{
if(OfferNB.checkPresenceOfKey(jsonString)) {
- newOfferValidationsPaymentMethod = new OfferValidationsPaymentMethod(JsonConvert.DeserializeObject(jsonString, OfferValidationsPaymentMethod.AdditionalPropertiesSerializerSettings));
+ dynamic data = JsonConvert.DeserializeObject(jsonString, OfferValidationsPaymentMethod.AdditionalPropertiesSerializerSettings);
+ newOfferValidationsPaymentMethod = new OfferValidationsPaymentMethod(data);
return newOfferValidationsPaymentMethod;
}
}
@@ -380,14 +388,16 @@ public static OfferValidationsPaymentMethod FromJson(string jsonString)
if (typeof(OfferPaylater).GetProperty("AdditionalProperties") == null)
{
if(OfferPaylater.checkPresenceOfKey(jsonString)) {
- newOfferValidationsPaymentMethod = new OfferValidationsPaymentMethod(JsonConvert.DeserializeObject(jsonString, OfferValidationsPaymentMethod.SerializerSettings));
+ dynamic data = JsonConvert.DeserializeObject(jsonString, OfferValidationsPaymentMethod.AdditionalPropertiesSerializerSettings);
+ newOfferValidationsPaymentMethod = new OfferValidationsPaymentMethod(data);
return newOfferValidationsPaymentMethod;
}
}
else
{
if(OfferPaylater.checkPresenceOfKey(jsonString)) {
- newOfferValidationsPaymentMethod = new OfferValidationsPaymentMethod(JsonConvert.DeserializeObject(jsonString, OfferValidationsPaymentMethod.AdditionalPropertiesSerializerSettings));
+ dynamic data = JsonConvert.DeserializeObject(jsonString, OfferValidationsPaymentMethod.AdditionalPropertiesSerializerSettings);
+ newOfferValidationsPaymentMethod = new OfferValidationsPaymentMethod(data);
return newOfferValidationsPaymentMethod;
}
}
@@ -405,14 +415,16 @@ public static OfferValidationsPaymentMethod FromJson(string jsonString)
if (typeof(OfferUPI).GetProperty("AdditionalProperties") == null)
{
if(OfferUPI.checkPresenceOfKey(jsonString)) {
- newOfferValidationsPaymentMethod = new OfferValidationsPaymentMethod(JsonConvert.DeserializeObject(jsonString, OfferValidationsPaymentMethod.SerializerSettings));
+ dynamic data = JsonConvert.DeserializeObject(jsonString, OfferValidationsPaymentMethod.AdditionalPropertiesSerializerSettings);
+ newOfferValidationsPaymentMethod = new OfferValidationsPaymentMethod(data);
return newOfferValidationsPaymentMethod;
}
}
else
{
if(OfferUPI.checkPresenceOfKey(jsonString)) {
- newOfferValidationsPaymentMethod = new OfferValidationsPaymentMethod(JsonConvert.DeserializeObject(jsonString, OfferValidationsPaymentMethod.AdditionalPropertiesSerializerSettings));
+ dynamic data = JsonConvert.DeserializeObject(jsonString, OfferValidationsPaymentMethod.AdditionalPropertiesSerializerSettings);
+ newOfferValidationsPaymentMethod = new OfferValidationsPaymentMethod(data);
return newOfferValidationsPaymentMethod;
}
}
@@ -430,14 +442,16 @@ public static OfferValidationsPaymentMethod FromJson(string jsonString)
if (typeof(OfferWallet).GetProperty("AdditionalProperties") == null)
{
if(OfferWallet.checkPresenceOfKey(jsonString)) {
- newOfferValidationsPaymentMethod = new OfferValidationsPaymentMethod(JsonConvert.DeserializeObject(jsonString, OfferValidationsPaymentMethod.SerializerSettings));
+ dynamic data = JsonConvert.DeserializeObject(jsonString, OfferValidationsPaymentMethod.AdditionalPropertiesSerializerSettings);
+ newOfferValidationsPaymentMethod = new OfferValidationsPaymentMethod(data);
return newOfferValidationsPaymentMethod;
}
}
else
{
if(OfferWallet.checkPresenceOfKey(jsonString)) {
- newOfferValidationsPaymentMethod = new OfferValidationsPaymentMethod(JsonConvert.DeserializeObject(jsonString, OfferValidationsPaymentMethod.AdditionalPropertiesSerializerSettings));
+ dynamic data = JsonConvert.DeserializeObject(jsonString, OfferValidationsPaymentMethod.AdditionalPropertiesSerializerSettings);
+ newOfferValidationsPaymentMethod = new OfferValidationsPaymentMethod(data);
return newOfferValidationsPaymentMethod;
}
}
diff --git a/src/cashfree_pg/Model/PayOrderRequestPaymentMethod.cs b/src/cashfree_pg/Model/PayOrderRequestPaymentMethod.cs
index 3bc1e1b..7ce6581 100644
--- a/src/cashfree_pg/Model/PayOrderRequestPaymentMethod.cs
+++ b/src/cashfree_pg/Model/PayOrderRequestPaymentMethod.cs
@@ -280,14 +280,16 @@ public static PayOrderRequestPaymentMethod FromJson(string jsonString)
if (typeof(AppPaymentMethod).GetProperty("AdditionalProperties") == null)
{
if(AppPaymentMethod.checkPresenceOfKey(jsonString)) {
- newPayOrderRequestPaymentMethod = new PayOrderRequestPaymentMethod(JsonConvert.DeserializeObject(jsonString, PayOrderRequestPaymentMethod.SerializerSettings));
+ dynamic data = JsonConvert.DeserializeObject(jsonString, PayOrderRequestPaymentMethod.AdditionalPropertiesSerializerSettings);
+ newPayOrderRequestPaymentMethod = new PayOrderRequestPaymentMethod(data);
return newPayOrderRequestPaymentMethod;
}
}
else
{
if(AppPaymentMethod.checkPresenceOfKey(jsonString)) {
- newPayOrderRequestPaymentMethod = new PayOrderRequestPaymentMethod(JsonConvert.DeserializeObject(jsonString, PayOrderRequestPaymentMethod.AdditionalPropertiesSerializerSettings));
+ dynamic data = JsonConvert.DeserializeObject(jsonString, PayOrderRequestPaymentMethod.AdditionalPropertiesSerializerSettings);
+ newPayOrderRequestPaymentMethod = new PayOrderRequestPaymentMethod(data);
return newPayOrderRequestPaymentMethod;
}
}
@@ -305,14 +307,16 @@ public static PayOrderRequestPaymentMethod FromJson(string jsonString)
if (typeof(CardEMIPaymentMethod).GetProperty("AdditionalProperties") == null)
{
if(CardEMIPaymentMethod.checkPresenceOfKey(jsonString)) {
- newPayOrderRequestPaymentMethod = new PayOrderRequestPaymentMethod(JsonConvert.DeserializeObject(jsonString, PayOrderRequestPaymentMethod.SerializerSettings));
+ dynamic data = JsonConvert.DeserializeObject(jsonString, PayOrderRequestPaymentMethod.AdditionalPropertiesSerializerSettings);
+ newPayOrderRequestPaymentMethod = new PayOrderRequestPaymentMethod(data);
return newPayOrderRequestPaymentMethod;
}
}
else
{
if(CardEMIPaymentMethod.checkPresenceOfKey(jsonString)) {
- newPayOrderRequestPaymentMethod = new PayOrderRequestPaymentMethod(JsonConvert.DeserializeObject(jsonString, PayOrderRequestPaymentMethod.AdditionalPropertiesSerializerSettings));
+ dynamic data = JsonConvert.DeserializeObject(jsonString, PayOrderRequestPaymentMethod.AdditionalPropertiesSerializerSettings);
+ newPayOrderRequestPaymentMethod = new PayOrderRequestPaymentMethod(data);
return newPayOrderRequestPaymentMethod;
}
}
@@ -330,14 +334,16 @@ public static PayOrderRequestPaymentMethod FromJson(string jsonString)
if (typeof(CardPaymentMethod).GetProperty("AdditionalProperties") == null)
{
if(CardPaymentMethod.checkPresenceOfKey(jsonString)) {
- newPayOrderRequestPaymentMethod = new PayOrderRequestPaymentMethod(JsonConvert.DeserializeObject(jsonString, PayOrderRequestPaymentMethod.SerializerSettings));
+ dynamic data = JsonConvert.DeserializeObject(jsonString, PayOrderRequestPaymentMethod.AdditionalPropertiesSerializerSettings);
+ newPayOrderRequestPaymentMethod = new PayOrderRequestPaymentMethod(data);
return newPayOrderRequestPaymentMethod;
}
}
else
{
if(CardPaymentMethod.checkPresenceOfKey(jsonString)) {
- newPayOrderRequestPaymentMethod = new PayOrderRequestPaymentMethod(JsonConvert.DeserializeObject(jsonString, PayOrderRequestPaymentMethod.AdditionalPropertiesSerializerSettings));
+ dynamic data = JsonConvert.DeserializeObject(jsonString, PayOrderRequestPaymentMethod.AdditionalPropertiesSerializerSettings);
+ newPayOrderRequestPaymentMethod = new PayOrderRequestPaymentMethod(data);
return newPayOrderRequestPaymentMethod;
}
}
@@ -355,14 +361,16 @@ public static PayOrderRequestPaymentMethod FromJson(string jsonString)
if (typeof(CardlessEMIPaymentMethod).GetProperty("AdditionalProperties") == null)
{
if(CardlessEMIPaymentMethod.checkPresenceOfKey(jsonString)) {
- newPayOrderRequestPaymentMethod = new PayOrderRequestPaymentMethod(JsonConvert.DeserializeObject(jsonString, PayOrderRequestPaymentMethod.SerializerSettings));
+ dynamic data = JsonConvert.DeserializeObject(jsonString, PayOrderRequestPaymentMethod.AdditionalPropertiesSerializerSettings);
+ newPayOrderRequestPaymentMethod = new PayOrderRequestPaymentMethod(data);
return newPayOrderRequestPaymentMethod;
}
}
else
{
if(CardlessEMIPaymentMethod.checkPresenceOfKey(jsonString)) {
- newPayOrderRequestPaymentMethod = new PayOrderRequestPaymentMethod(JsonConvert.DeserializeObject(jsonString, PayOrderRequestPaymentMethod.AdditionalPropertiesSerializerSettings));
+ dynamic data = JsonConvert.DeserializeObject(jsonString, PayOrderRequestPaymentMethod.AdditionalPropertiesSerializerSettings);
+ newPayOrderRequestPaymentMethod = new PayOrderRequestPaymentMethod(data);
return newPayOrderRequestPaymentMethod;
}
}
@@ -380,14 +388,16 @@ public static PayOrderRequestPaymentMethod FromJson(string jsonString)
if (typeof(NetBankingPaymentMethod).GetProperty("AdditionalProperties") == null)
{
if(NetBankingPaymentMethod.checkPresenceOfKey(jsonString)) {
- newPayOrderRequestPaymentMethod = new PayOrderRequestPaymentMethod(JsonConvert.DeserializeObject(jsonString, PayOrderRequestPaymentMethod.SerializerSettings));
+ dynamic data = JsonConvert.DeserializeObject(jsonString, PayOrderRequestPaymentMethod.AdditionalPropertiesSerializerSettings);
+ newPayOrderRequestPaymentMethod = new PayOrderRequestPaymentMethod(data);
return newPayOrderRequestPaymentMethod;
}
}
else
{
if(NetBankingPaymentMethod.checkPresenceOfKey(jsonString)) {
- newPayOrderRequestPaymentMethod = new PayOrderRequestPaymentMethod(JsonConvert.DeserializeObject(jsonString, PayOrderRequestPaymentMethod.AdditionalPropertiesSerializerSettings));
+ dynamic data = JsonConvert.DeserializeObject(jsonString, PayOrderRequestPaymentMethod.AdditionalPropertiesSerializerSettings);
+ newPayOrderRequestPaymentMethod = new PayOrderRequestPaymentMethod(data);
return newPayOrderRequestPaymentMethod;
}
}
@@ -405,14 +415,16 @@ public static PayOrderRequestPaymentMethod FromJson(string jsonString)
if (typeof(PaylaterPaymentMethod).GetProperty("AdditionalProperties") == null)
{
if(PaylaterPaymentMethod.checkPresenceOfKey(jsonString)) {
- newPayOrderRequestPaymentMethod = new PayOrderRequestPaymentMethod(JsonConvert.DeserializeObject(jsonString, PayOrderRequestPaymentMethod.SerializerSettings));
+ dynamic data = JsonConvert.DeserializeObject(jsonString, PayOrderRequestPaymentMethod.AdditionalPropertiesSerializerSettings);
+ newPayOrderRequestPaymentMethod = new PayOrderRequestPaymentMethod(data);
return newPayOrderRequestPaymentMethod;
}
}
else
{
if(PaylaterPaymentMethod.checkPresenceOfKey(jsonString)) {
- newPayOrderRequestPaymentMethod = new PayOrderRequestPaymentMethod(JsonConvert.DeserializeObject(jsonString, PayOrderRequestPaymentMethod.AdditionalPropertiesSerializerSettings));
+ dynamic data = JsonConvert.DeserializeObject(jsonString, PayOrderRequestPaymentMethod.AdditionalPropertiesSerializerSettings);
+ newPayOrderRequestPaymentMethod = new PayOrderRequestPaymentMethod(data);
return newPayOrderRequestPaymentMethod;
}
}
@@ -430,14 +442,16 @@ public static PayOrderRequestPaymentMethod FromJson(string jsonString)
if (typeof(UPIPaymentMethod).GetProperty("AdditionalProperties") == null)
{
if(UPIPaymentMethod.checkPresenceOfKey(jsonString)) {
- newPayOrderRequestPaymentMethod = new PayOrderRequestPaymentMethod(JsonConvert.DeserializeObject(jsonString, PayOrderRequestPaymentMethod.SerializerSettings));
+ dynamic data = JsonConvert.DeserializeObject(jsonString, PayOrderRequestPaymentMethod.AdditionalPropertiesSerializerSettings);
+ newPayOrderRequestPaymentMethod = new PayOrderRequestPaymentMethod(data);
return newPayOrderRequestPaymentMethod;
}
}
else
{
if(UPIPaymentMethod.checkPresenceOfKey(jsonString)) {
- newPayOrderRequestPaymentMethod = new PayOrderRequestPaymentMethod(JsonConvert.DeserializeObject(jsonString, PayOrderRequestPaymentMethod.AdditionalPropertiesSerializerSettings));
+ dynamic data = JsonConvert.DeserializeObject(jsonString, PayOrderRequestPaymentMethod.AdditionalPropertiesSerializerSettings);
+ newPayOrderRequestPaymentMethod = new PayOrderRequestPaymentMethod(data);
return newPayOrderRequestPaymentMethod;
}
}
diff --git a/src/cashfree_pg/Model/PaymentEntityPaymentMethod.cs b/src/cashfree_pg/Model/PaymentEntityPaymentMethod.cs
index 18ee920..5a38018 100644
--- a/src/cashfree_pg/Model/PaymentEntityPaymentMethod.cs
+++ b/src/cashfree_pg/Model/PaymentEntityPaymentMethod.cs
@@ -280,14 +280,16 @@ public static PaymentEntityPaymentMethod FromJson(string jsonString)
if (typeof(PaymentMethodAppInPaymentsEntity).GetProperty("AdditionalProperties") == null)
{
if(PaymentMethodAppInPaymentsEntity.checkPresenceOfKey(jsonString)) {
- newPaymentEntityPaymentMethod = new PaymentEntityPaymentMethod(JsonConvert.DeserializeObject(jsonString, PaymentEntityPaymentMethod.SerializerSettings));
+ dynamic data = JsonConvert.DeserializeObject(jsonString, PaymentEntityPaymentMethod.AdditionalPropertiesSerializerSettings);
+ newPaymentEntityPaymentMethod = new PaymentEntityPaymentMethod(data);
return newPaymentEntityPaymentMethod;
}
}
else
{
if(PaymentMethodAppInPaymentsEntity.checkPresenceOfKey(jsonString)) {
- newPaymentEntityPaymentMethod = new PaymentEntityPaymentMethod(JsonConvert.DeserializeObject(jsonString, PaymentEntityPaymentMethod.AdditionalPropertiesSerializerSettings));
+ dynamic data = JsonConvert.DeserializeObject(jsonString, PaymentEntityPaymentMethod.AdditionalPropertiesSerializerSettings);
+ newPaymentEntityPaymentMethod = new PaymentEntityPaymentMethod(data);
return newPaymentEntityPaymentMethod;
}
}
@@ -305,14 +307,16 @@ public static PaymentEntityPaymentMethod FromJson(string jsonString)
if (typeof(PaymentMethodCardEMIInPaymentsEntity).GetProperty("AdditionalProperties") == null)
{
if(PaymentMethodCardEMIInPaymentsEntity.checkPresenceOfKey(jsonString)) {
- newPaymentEntityPaymentMethod = new PaymentEntityPaymentMethod(JsonConvert.DeserializeObject(jsonString, PaymentEntityPaymentMethod.SerializerSettings));
+ dynamic data = JsonConvert.DeserializeObject(jsonString, PaymentEntityPaymentMethod.AdditionalPropertiesSerializerSettings);
+ newPaymentEntityPaymentMethod = new PaymentEntityPaymentMethod(data);
return newPaymentEntityPaymentMethod;
}
}
else
{
if(PaymentMethodCardEMIInPaymentsEntity.checkPresenceOfKey(jsonString)) {
- newPaymentEntityPaymentMethod = new PaymentEntityPaymentMethod(JsonConvert.DeserializeObject(jsonString, PaymentEntityPaymentMethod.AdditionalPropertiesSerializerSettings));
+ dynamic data = JsonConvert.DeserializeObject(jsonString, PaymentEntityPaymentMethod.AdditionalPropertiesSerializerSettings);
+ newPaymentEntityPaymentMethod = new PaymentEntityPaymentMethod(data);
return newPaymentEntityPaymentMethod;
}
}
@@ -330,14 +334,16 @@ public static PaymentEntityPaymentMethod FromJson(string jsonString)
if (typeof(PaymentMethodCardInPaymentsEntity).GetProperty("AdditionalProperties") == null)
{
if(PaymentMethodCardInPaymentsEntity.checkPresenceOfKey(jsonString)) {
- newPaymentEntityPaymentMethod = new PaymentEntityPaymentMethod(JsonConvert.DeserializeObject(jsonString, PaymentEntityPaymentMethod.SerializerSettings));
+ dynamic data = JsonConvert.DeserializeObject(jsonString, PaymentEntityPaymentMethod.AdditionalPropertiesSerializerSettings);
+ newPaymentEntityPaymentMethod = new PaymentEntityPaymentMethod(data);
return newPaymentEntityPaymentMethod;
}
}
else
{
if(PaymentMethodCardInPaymentsEntity.checkPresenceOfKey(jsonString)) {
- newPaymentEntityPaymentMethod = new PaymentEntityPaymentMethod(JsonConvert.DeserializeObject(jsonString, PaymentEntityPaymentMethod.AdditionalPropertiesSerializerSettings));
+ dynamic data = JsonConvert.DeserializeObject(jsonString, PaymentEntityPaymentMethod.AdditionalPropertiesSerializerSettings);
+ newPaymentEntityPaymentMethod = new PaymentEntityPaymentMethod(data);
return newPaymentEntityPaymentMethod;
}
}
@@ -355,14 +361,16 @@ public static PaymentEntityPaymentMethod FromJson(string jsonString)
if (typeof(PaymentMethodCardlessEMIInPaymentsEntity).GetProperty("AdditionalProperties") == null)
{
if(PaymentMethodCardlessEMIInPaymentsEntity.checkPresenceOfKey(jsonString)) {
- newPaymentEntityPaymentMethod = new PaymentEntityPaymentMethod(JsonConvert.DeserializeObject(jsonString, PaymentEntityPaymentMethod.SerializerSettings));
+ dynamic data = JsonConvert.DeserializeObject(jsonString, PaymentEntityPaymentMethod.AdditionalPropertiesSerializerSettings);
+ newPaymentEntityPaymentMethod = new PaymentEntityPaymentMethod(data);
return newPaymentEntityPaymentMethod;
}
}
else
{
if(PaymentMethodCardlessEMIInPaymentsEntity.checkPresenceOfKey(jsonString)) {
- newPaymentEntityPaymentMethod = new PaymentEntityPaymentMethod(JsonConvert.DeserializeObject(jsonString, PaymentEntityPaymentMethod.AdditionalPropertiesSerializerSettings));
+ dynamic data = JsonConvert.DeserializeObject(jsonString, PaymentEntityPaymentMethod.AdditionalPropertiesSerializerSettings);
+ newPaymentEntityPaymentMethod = new PaymentEntityPaymentMethod(data);
return newPaymentEntityPaymentMethod;
}
}
@@ -380,14 +388,16 @@ public static PaymentEntityPaymentMethod FromJson(string jsonString)
if (typeof(PaymentMethodNetBankingInPaymentsEntity).GetProperty("AdditionalProperties") == null)
{
if(PaymentMethodNetBankingInPaymentsEntity.checkPresenceOfKey(jsonString)) {
- newPaymentEntityPaymentMethod = new PaymentEntityPaymentMethod(JsonConvert.DeserializeObject(jsonString, PaymentEntityPaymentMethod.SerializerSettings));
+ dynamic data = JsonConvert.DeserializeObject(jsonString, PaymentEntityPaymentMethod.AdditionalPropertiesSerializerSettings);
+ newPaymentEntityPaymentMethod = new PaymentEntityPaymentMethod(data);
return newPaymentEntityPaymentMethod;
}
}
else
{
if(PaymentMethodNetBankingInPaymentsEntity.checkPresenceOfKey(jsonString)) {
- newPaymentEntityPaymentMethod = new PaymentEntityPaymentMethod(JsonConvert.DeserializeObject(jsonString, PaymentEntityPaymentMethod.AdditionalPropertiesSerializerSettings));
+ dynamic data = JsonConvert.DeserializeObject(jsonString, PaymentEntityPaymentMethod.AdditionalPropertiesSerializerSettings);
+ newPaymentEntityPaymentMethod = new PaymentEntityPaymentMethod(data);
return newPaymentEntityPaymentMethod;
}
}
@@ -405,14 +415,16 @@ public static PaymentEntityPaymentMethod FromJson(string jsonString)
if (typeof(PaymentMethodPaylaterInPaymentsEntity).GetProperty("AdditionalProperties") == null)
{
if(PaymentMethodPaylaterInPaymentsEntity.checkPresenceOfKey(jsonString)) {
- newPaymentEntityPaymentMethod = new PaymentEntityPaymentMethod(JsonConvert.DeserializeObject(jsonString, PaymentEntityPaymentMethod.SerializerSettings));
+ dynamic data = JsonConvert.DeserializeObject(jsonString, PaymentEntityPaymentMethod.AdditionalPropertiesSerializerSettings);
+ newPaymentEntityPaymentMethod = new PaymentEntityPaymentMethod(data);
return newPaymentEntityPaymentMethod;
}
}
else
{
if(PaymentMethodPaylaterInPaymentsEntity.checkPresenceOfKey(jsonString)) {
- newPaymentEntityPaymentMethod = new PaymentEntityPaymentMethod(JsonConvert.DeserializeObject(jsonString, PaymentEntityPaymentMethod.AdditionalPropertiesSerializerSettings));
+ dynamic data = JsonConvert.DeserializeObject(jsonString, PaymentEntityPaymentMethod.AdditionalPropertiesSerializerSettings);
+ newPaymentEntityPaymentMethod = new PaymentEntityPaymentMethod(data);
return newPaymentEntityPaymentMethod;
}
}
@@ -430,14 +442,16 @@ public static PaymentEntityPaymentMethod FromJson(string jsonString)
if (typeof(PaymentMethodUPIInPaymentsEntity).GetProperty("AdditionalProperties") == null)
{
if(PaymentMethodUPIInPaymentsEntity.checkPresenceOfKey(jsonString)) {
- newPaymentEntityPaymentMethod = new PaymentEntityPaymentMethod(JsonConvert.DeserializeObject(jsonString, PaymentEntityPaymentMethod.SerializerSettings));
+ dynamic data = JsonConvert.DeserializeObject(jsonString, PaymentEntityPaymentMethod.AdditionalPropertiesSerializerSettings);
+ newPaymentEntityPaymentMethod = new PaymentEntityPaymentMethod(data);
return newPaymentEntityPaymentMethod;
}
}
else
{
if(PaymentMethodUPIInPaymentsEntity.checkPresenceOfKey(jsonString)) {
- newPaymentEntityPaymentMethod = new PaymentEntityPaymentMethod(JsonConvert.DeserializeObject(jsonString, PaymentEntityPaymentMethod.AdditionalPropertiesSerializerSettings));
+ dynamic data = JsonConvert.DeserializeObject(jsonString, PaymentEntityPaymentMethod.AdditionalPropertiesSerializerSettings);
+ newPaymentEntityPaymentMethod = new PaymentEntityPaymentMethod(data);
return newPaymentEntityPaymentMethod;
}
}
diff --git a/src/cashfree_pg/Model/PaymentMethodNetBankingInPaymentsEntityNetbanking.cs b/src/cashfree_pg/Model/PaymentMethodNetBankingInPaymentsEntityNetbanking.cs
index 702f75d..8c17dbd 100644
--- a/src/cashfree_pg/Model/PaymentMethodNetBankingInPaymentsEntityNetbanking.cs
+++ b/src/cashfree_pg/Model/PaymentMethodNetBankingInPaymentsEntityNetbanking.cs
@@ -38,11 +38,15 @@ public class PaymentMethodNetBankingInPaymentsEntityNetbanking : IEquatablechannel.
/// netbankingBankCode.
/// netbankingBankName.
- public PaymentMethodNetBankingInPaymentsEntityNetbanking(string channel = default(string), int netbankingBankCode = default(int), string netbankingBankName = default(string))
+ /// netbankingIfsc.
+ /// netbankingAccountNumber.
+ public PaymentMethodNetBankingInPaymentsEntityNetbanking(string channel = default(string), int netbankingBankCode = default(int), string netbankingBankName = default(string), string netbankingIfsc = default(string), string netbankingAccountNumber = default(string))
{
this.channel = channel;
this.netbanking_bank_code = netbankingBankCode;
this.netbanking_bank_name = netbankingBankName;
+ this.netbanking_ifsc = netbankingIfsc;
+ this.netbanking_account_number = netbankingAccountNumber;
}
///
@@ -63,6 +67,18 @@ public class PaymentMethodNetBankingInPaymentsEntityNetbanking : IEquatable
+ /// Gets or Sets netbanking_ifsc
+ ///
+ [DataMember(Name = "netbanking_ifsc", EmitDefaultValue = false)]
+ public string netbanking_ifsc { get; set; }
+
+ ///
+ /// Gets or Sets netbanking_account_number
+ ///
+ [DataMember(Name = "netbanking_account_number", EmitDefaultValue = false)]
+ public string netbanking_account_number { get; set; }
+
///
/// Returns the string presentation of the object
///
@@ -74,6 +90,8 @@ public override string ToString()
sb.Append(" channel: ").Append(channel).Append("\n");
sb.Append(" netbanking_bank_code: ").Append(netbanking_bank_code).Append("\n");
sb.Append(" netbanking_bank_name: ").Append(netbanking_bank_name).Append("\n");
+ sb.Append(" netbanking_ifsc: ").Append(netbanking_ifsc).Append("\n");
+ sb.Append(" netbanking_account_number: ").Append(netbanking_account_number).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
@@ -122,6 +140,16 @@ public bool Equals(PaymentMethodNetBankingInPaymentsEntityNetbanking input)
this.netbanking_bank_name == input.netbanking_bank_name ||
(this.netbanking_bank_name != null &&
this.netbanking_bank_name.Equals(input.netbanking_bank_name))
+ ) &&
+ (
+ this.netbanking_ifsc == input.netbanking_ifsc ||
+ (this.netbanking_ifsc != null &&
+ this.netbanking_ifsc.Equals(input.netbanking_ifsc))
+ ) &&
+ (
+ this.netbanking_account_number == input.netbanking_account_number ||
+ (this.netbanking_account_number != null &&
+ this.netbanking_account_number.Equals(input.netbanking_account_number))
);
}
@@ -151,6 +179,14 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.netbanking_bank_name.GetHashCode();
}
+ if (this.netbanking_ifsc != null)
+ {
+ hashCode = (hashCode * 59) + this.netbanking_ifsc.GetHashCode();
+ }
+ if (this.netbanking_account_number != null)
+ {
+ hashCode = (hashCode * 59) + this.netbanking_account_number.GetHashCode();
+ }
return hashCode;
}
}
diff --git a/src/cashfree_pg/Model/UpdateTerminalEntity.cs b/src/cashfree_pg/Model/UpdateTerminalEntity.cs
new file mode 100644
index 0000000..b142b55
--- /dev/null
+++ b/src/cashfree_pg/Model/UpdateTerminalEntity.cs
@@ -0,0 +1,331 @@
+/*
+ * 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
+{
+ ///
+ /// Update terminal response
+ ///
+ [DataContract(Name = "UpdateTerminalEntity")]
+ public class UpdateTerminalEntity : IEquatable, IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// addedOn.
+ /// cfTerminalId.
+ /// lastUpdatedOn.
+ /// terminalAddress.
+ /// terminalEmail.
+ /// terminalType.
+ /// teminalId.
+ /// terminalName.
+ /// terminalNote.
+ /// terminalPhoneNo.
+ /// terminalStatus.
+ /// terminalMeta.
+ public UpdateTerminalEntity(string addedOn = default(string), int cfTerminalId = default(int), string lastUpdatedOn = default(string), string terminalAddress = default(string), string terminalEmail = default(string), string terminalType = default(string), string teminalId = default(string), string terminalName = default(string), string terminalNote = default(string), string terminalPhoneNo = default(string), string terminalStatus = default(string), string terminalMeta = default(string))
+ {
+ this.added_on = addedOn;
+ this.cf_terminal_id = cfTerminalId;
+ this.last_updated_on = lastUpdatedOn;
+ this.terminal_address = terminalAddress;
+ this.terminal_email = terminalEmail;
+ this.terminal_type = terminalType;
+ this.teminal_id = teminalId;
+ this.terminal_name = terminalName;
+ this.terminal_note = terminalNote;
+ this.terminal_phone_no = terminalPhoneNo;
+ this.terminal_status = terminalStatus;
+ this.terminal_meta = terminalMeta;
+ }
+
+ ///
+ /// Gets or Sets added_on
+ ///
+ [DataMember(Name = "added_on", EmitDefaultValue = false)]
+ public string added_on { get; set; }
+
+ ///
+ /// Gets or Sets cf_terminal_id
+ ///
+ [DataMember(Name = "cf_terminal_id", EmitDefaultValue = false)]
+ public int cf_terminal_id { get; set; }
+
+ ///
+ /// Gets or Sets last_updated_on
+ ///
+ [DataMember(Name = "last_updated_on", EmitDefaultValue = false)]
+ public string last_updated_on { get; set; }
+
+ ///
+ /// Gets or Sets terminal_address
+ ///
+ [DataMember(Name = "terminal_address", EmitDefaultValue = false)]
+ public string terminal_address { get; set; }
+
+ ///
+ /// Gets or Sets terminal_email
+ ///
+ [DataMember(Name = "terminal_email", EmitDefaultValue = false)]
+ public string terminal_email { get; set; }
+
+ ///
+ /// Gets or Sets terminal_type
+ ///
+ [DataMember(Name = "terminal_type", EmitDefaultValue = false)]
+ public string terminal_type { get; set; }
+
+ ///
+ /// Gets or Sets teminal_id
+ ///
+ [DataMember(Name = "teminal_id", EmitDefaultValue = false)]
+ public string teminal_id { get; set; }
+
+ ///
+ /// Gets or Sets terminal_name
+ ///
+ [DataMember(Name = "terminal_name", EmitDefaultValue = false)]
+ public string terminal_name { get; set; }
+
+ ///
+ /// Gets or Sets terminal_note
+ ///
+ [DataMember(Name = "terminal_note", EmitDefaultValue = false)]
+ public string terminal_note { get; set; }
+
+ ///
+ /// Gets or Sets terminal_phone_no
+ ///
+ [DataMember(Name = "terminal_phone_no", EmitDefaultValue = false)]
+ public string terminal_phone_no { get; set; }
+
+ ///
+ /// Gets or Sets terminal_status
+ ///
+ [DataMember(Name = "terminal_status", EmitDefaultValue = false)]
+ public string terminal_status { get; set; }
+
+ ///
+ /// Gets or Sets terminal_meta
+ ///
+ [DataMember(Name = "terminal_meta", EmitDefaultValue = false)]
+ public string terminal_meta { 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 UpdateTerminalEntity {\n");
+ sb.Append(" added_on: ").Append(added_on).Append("\n");
+ sb.Append(" cf_terminal_id: ").Append(cf_terminal_id).Append("\n");
+ sb.Append(" last_updated_on: ").Append(last_updated_on).Append("\n");
+ sb.Append(" terminal_address: ").Append(terminal_address).Append("\n");
+ sb.Append(" terminal_email: ").Append(terminal_email).Append("\n");
+ sb.Append(" terminal_type: ").Append(terminal_type).Append("\n");
+ sb.Append(" teminal_id: ").Append(teminal_id).Append("\n");
+ sb.Append(" terminal_name: ").Append(terminal_name).Append("\n");
+ sb.Append(" terminal_note: ").Append(terminal_note).Append("\n");
+ sb.Append(" terminal_phone_no: ").Append(terminal_phone_no).Append("\n");
+ sb.Append(" terminal_status: ").Append(terminal_status).Append("\n");
+ sb.Append(" terminal_meta: ").Append(terminal_meta).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 UpdateTerminalEntity);
+ }
+
+ ///
+ /// Returns true if UpdateTerminalEntity instances are equal
+ ///
+ /// Instance of UpdateTerminalEntity to be compared
+ /// Boolean
+ public bool Equals(UpdateTerminalEntity input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ return
+ (
+ this.added_on == input.added_on ||
+ (this.added_on != null &&
+ this.added_on.Equals(input.added_on))
+ ) &&
+ (
+ this.cf_terminal_id == input.cf_terminal_id ||
+ this.cf_terminal_id.Equals(input.cf_terminal_id)
+ ) &&
+ (
+ this.last_updated_on == input.last_updated_on ||
+ (this.last_updated_on != null &&
+ this.last_updated_on.Equals(input.last_updated_on))
+ ) &&
+ (
+ this.terminal_address == input.terminal_address ||
+ (this.terminal_address != null &&
+ this.terminal_address.Equals(input.terminal_address))
+ ) &&
+ (
+ this.terminal_email == input.terminal_email ||
+ (this.terminal_email != null &&
+ this.terminal_email.Equals(input.terminal_email))
+ ) &&
+ (
+ this.terminal_type == input.terminal_type ||
+ (this.terminal_type != null &&
+ this.terminal_type.Equals(input.terminal_type))
+ ) &&
+ (
+ this.teminal_id == input.teminal_id ||
+ (this.teminal_id != null &&
+ this.teminal_id.Equals(input.teminal_id))
+ ) &&
+ (
+ this.terminal_name == input.terminal_name ||
+ (this.terminal_name != null &&
+ this.terminal_name.Equals(input.terminal_name))
+ ) &&
+ (
+ this.terminal_note == input.terminal_note ||
+ (this.terminal_note != null &&
+ this.terminal_note.Equals(input.terminal_note))
+ ) &&
+ (
+ this.terminal_phone_no == input.terminal_phone_no ||
+ (this.terminal_phone_no != null &&
+ this.terminal_phone_no.Equals(input.terminal_phone_no))
+ ) &&
+ (
+ this.terminal_status == input.terminal_status ||
+ (this.terminal_status != null &&
+ this.terminal_status.Equals(input.terminal_status))
+ ) &&
+ (
+ this.terminal_meta == input.terminal_meta ||
+ (this.terminal_meta != null &&
+ this.terminal_meta.Equals(input.terminal_meta))
+ );
+ }
+
+ public static Boolean checkPresenceOfKey(string jsonStringadded_on) {
+ dynamic deserializedJsonString = JsonConvert.DeserializeObject(jsonStringadded_on);
+ if (deserializedJsonString.ContainsKey("added_on")) {
+ return true;
+ }
+ return false;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (this.added_on != null)
+ {
+ hashCode = (hashCode * 59) + this.added_on.GetHashCode();
+ }
+ hashCode = (hashCode * 59) + this.cf_terminal_id.GetHashCode();
+ if (this.last_updated_on != null)
+ {
+ hashCode = (hashCode * 59) + this.last_updated_on.GetHashCode();
+ }
+ if (this.terminal_address != null)
+ {
+ hashCode = (hashCode * 59) + this.terminal_address.GetHashCode();
+ }
+ if (this.terminal_email != null)
+ {
+ hashCode = (hashCode * 59) + this.terminal_email.GetHashCode();
+ }
+ if (this.terminal_type != null)
+ {
+ hashCode = (hashCode * 59) + this.terminal_type.GetHashCode();
+ }
+ if (this.teminal_id != null)
+ {
+ hashCode = (hashCode * 59) + this.teminal_id.GetHashCode();
+ }
+ if (this.terminal_name != null)
+ {
+ hashCode = (hashCode * 59) + this.terminal_name.GetHashCode();
+ }
+ if (this.terminal_note != null)
+ {
+ hashCode = (hashCode * 59) + this.terminal_note.GetHashCode();
+ }
+ if (this.terminal_phone_no != null)
+ {
+ hashCode = (hashCode * 59) + this.terminal_phone_no.GetHashCode();
+ }
+ if (this.terminal_status != null)
+ {
+ hashCode = (hashCode * 59) + this.terminal_status.GetHashCode();
+ }
+ if (this.terminal_meta != null)
+ {
+ hashCode = (hashCode * 59) + this.terminal_meta.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/UpdateTerminalRequest.cs b/src/cashfree_pg/Model/UpdateTerminalRequest.cs
new file mode 100644
index 0000000..835c4e4
--- /dev/null
+++ b/src/cashfree_pg/Model/UpdateTerminalRequest.cs
@@ -0,0 +1,216 @@
+/*
+ * 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 update terminal details.
+ ///
+ [DataContract(Name = "UpdateTerminalRequest")]
+ public class UpdateTerminalRequest : IEquatable, IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ [JsonConstructorAttribute]
+ protected UpdateTerminalRequest() { }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// Mention the updated email ID of the terminal..
+ /// Terminal phone number to be updated..
+ /// terminalMeta.
+ /// Mention the terminal type to be updated. Possible values - AGENT, STOREFRONT. (required).
+ public UpdateTerminalRequest(string terminalEmail = default(string), string terminalPhoneNo = default(string), UpdateTerminalRequestTerminalMeta terminalMeta = default(UpdateTerminalRequestTerminalMeta), string terminalType = default(string))
+ {
+ // to ensure "terminalType" is required (not null)
+ if (terminalType == null)
+ {
+ throw new ArgumentNullException("terminalType is a required property for UpdateTerminalRequest and cannot be null");
+ }
+ this.terminal_type = terminalType;
+ this.terminal_email = terminalEmail;
+ this.terminal_phone_no = terminalPhoneNo;
+ this.terminal_meta = terminalMeta;
+ }
+
+ ///
+ /// Mention the updated email ID of the terminal.
+ ///
+ /// Mention the updated email ID of the terminal.
+ [DataMember(Name = "terminal_email", EmitDefaultValue = false)]
+ public string terminal_email { get; set; }
+
+ ///
+ /// Terminal phone number to be updated.
+ ///
+ /// Terminal phone number to be updated.
+ [DataMember(Name = "terminal_phone_no", EmitDefaultValue = false)]
+ public string terminal_phone_no { get; set; }
+
+ ///
+ /// Gets or Sets terminal_meta
+ ///
+ [DataMember(Name = "terminal_meta", EmitDefaultValue = false)]
+ public UpdateTerminalRequestTerminalMeta terminal_meta { get; set; }
+
+ ///
+ /// Mention the terminal type to be updated. Possible values - AGENT, STOREFRONT.
+ ///
+ /// Mention the terminal type to be updated. Possible values - AGENT, STOREFRONT.
+ [DataMember(Name = "terminal_type", IsRequired = true, EmitDefaultValue = true)]
+ public string terminal_type { 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 UpdateTerminalRequest {\n");
+ sb.Append(" terminal_email: ").Append(terminal_email).Append("\n");
+ sb.Append(" terminal_phone_no: ").Append(terminal_phone_no).Append("\n");
+ sb.Append(" terminal_meta: ").Append(terminal_meta).Append("\n");
+ sb.Append(" terminal_type: ").Append(terminal_type).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 UpdateTerminalRequest);
+ }
+
+ ///
+ /// Returns true if UpdateTerminalRequest instances are equal
+ ///
+ /// Instance of UpdateTerminalRequest to be compared
+ /// Boolean
+ public bool Equals(UpdateTerminalRequest input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ return
+ (
+ this.terminal_email == input.terminal_email ||
+ (this.terminal_email != null &&
+ this.terminal_email.Equals(input.terminal_email))
+ ) &&
+ (
+ this.terminal_phone_no == input.terminal_phone_no ||
+ (this.terminal_phone_no != null &&
+ this.terminal_phone_no.Equals(input.terminal_phone_no))
+ ) &&
+ (
+ this.terminal_meta == input.terminal_meta ||
+ (this.terminal_meta != null &&
+ this.terminal_meta.Equals(input.terminal_meta))
+ ) &&
+ (
+ this.terminal_type == input.terminal_type ||
+ (this.terminal_type != null &&
+ this.terminal_type.Equals(input.terminal_type))
+ );
+ }
+
+ public static Boolean checkPresenceOfKey(string jsonStringterminal_email) {
+ dynamic deserializedJsonString = JsonConvert.DeserializeObject(jsonStringterminal_email);
+ if (deserializedJsonString.ContainsKey("terminal_email")) {
+ return true;
+ }
+ return false;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (this.terminal_email != null)
+ {
+ hashCode = (hashCode * 59) + this.terminal_email.GetHashCode();
+ }
+ if (this.terminal_phone_no != null)
+ {
+ hashCode = (hashCode * 59) + this.terminal_phone_no.GetHashCode();
+ }
+ if (this.terminal_meta != null)
+ {
+ hashCode = (hashCode * 59) + this.terminal_meta.GetHashCode();
+ }
+ if (this.terminal_type != null)
+ {
+ hashCode = (hashCode * 59) + this.terminal_type.GetHashCode();
+ }
+ return hashCode;
+ }
+ }
+
+ ///
+ /// To validate all properties of the instance
+ ///
+ /// Validation context
+ /// Validation Result
+ IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
+ {
+ // terminal_phone_no (string) maxLength
+ if (this.terminal_phone_no != null && this.terminal_phone_no.Length > 10)
+ {
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for terminal_phone_no, length must be less than 10.", new [] { "terminal_phone_no" });
+ }
+
+ // terminal_phone_no (string) minLength
+ if (this.terminal_phone_no != null && this.terminal_phone_no.Length < 10)
+ {
+ yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for terminal_phone_no, length must be greater than 10.", new [] { "terminal_phone_no" });
+ }
+
+ yield break;
+ }
+ }
+
+}
diff --git a/src/cashfree_pg/Model/UpdateTerminalRequestTerminalMeta.cs b/src/cashfree_pg/Model/UpdateTerminalRequestTerminalMeta.cs
new file mode 100644
index 0000000..6dc5381
--- /dev/null
+++ b/src/cashfree_pg/Model/UpdateTerminalRequestTerminalMeta.cs
@@ -0,0 +1,138 @@
+/*
+ * 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
+{
+ ///
+ /// Terminal metadata.
+ ///
+ [DataContract(Name = "UpdateTerminalRequest_terminal_meta")]
+ public class UpdateTerminalRequestTerminalMeta : IEquatable, IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// Name of the operator for the storefront..
+ public UpdateTerminalRequestTerminalMeta(string terminalOperator = default(string))
+ {
+ this.terminal_operator = terminalOperator;
+ }
+
+ ///
+ /// Name of the operator for the storefront.
+ ///
+ /// Name of the operator for the storefront.
+ [DataMember(Name = "terminal_operator", EmitDefaultValue = false)]
+ public string terminal_operator { 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 UpdateTerminalRequestTerminalMeta {\n");
+ sb.Append(" terminal_operator: ").Append(terminal_operator).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 UpdateTerminalRequestTerminalMeta);
+ }
+
+ ///
+ /// Returns true if UpdateTerminalRequestTerminalMeta instances are equal
+ ///
+ /// Instance of UpdateTerminalRequestTerminalMeta to be compared
+ /// Boolean
+ public bool Equals(UpdateTerminalRequestTerminalMeta input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ return
+ (
+ this.terminal_operator == input.terminal_operator ||
+ (this.terminal_operator != null &&
+ this.terminal_operator.Equals(input.terminal_operator))
+ );
+ }
+
+ public static Boolean checkPresenceOfKey(string jsonStringterminal_operator) {
+ dynamic deserializedJsonString = JsonConvert.DeserializeObject(jsonStringterminal_operator);
+ if (deserializedJsonString.ContainsKey("terminal_operator")) {
+ return true;
+ }
+ return false;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (this.terminal_operator != null)
+ {
+ hashCode = (hashCode * 59) + this.terminal_operator.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/UpdateTerminalStatusRequest.cs b/src/cashfree_pg/Model/UpdateTerminalStatusRequest.cs
new file mode 100644
index 0000000..34b40df
--- /dev/null
+++ b/src/cashfree_pg/Model/UpdateTerminalStatusRequest.cs
@@ -0,0 +1,148 @@
+/*
+ * 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 update terminal status.
+ ///
+ [DataContract(Name = "UpdateTerminalStatusRequest")]
+ public class UpdateTerminalStatusRequest : IEquatable, IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ [JsonConstructorAttribute]
+ protected UpdateTerminalStatusRequest() { }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// Status of the terminal to be updated. possible values - ACTIVE, INACTIVE. (required).
+ public UpdateTerminalStatusRequest(string terminalStatus = default(string))
+ {
+ // to ensure "terminalStatus" is required (not null)
+ if (terminalStatus == null)
+ {
+ throw new ArgumentNullException("terminalStatus is a required property for UpdateTerminalStatusRequest and cannot be null");
+ }
+ this.terminal_status = terminalStatus;
+ }
+
+ ///
+ /// Status of the terminal to be updated. possible values - ACTIVE, INACTIVE.
+ ///
+ /// Status of the terminal to be updated. possible values - ACTIVE, INACTIVE.
+ [DataMember(Name = "terminal_status", IsRequired = true, EmitDefaultValue = true)]
+ public string terminal_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 UpdateTerminalStatusRequest {\n");
+ sb.Append(" terminal_status: ").Append(terminal_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 UpdateTerminalStatusRequest);
+ }
+
+ ///
+ /// Returns true if UpdateTerminalStatusRequest instances are equal
+ ///
+ /// Instance of UpdateTerminalStatusRequest to be compared
+ /// Boolean
+ public bool Equals(UpdateTerminalStatusRequest input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ return
+ (
+ this.terminal_status == input.terminal_status ||
+ (this.terminal_status != null &&
+ this.terminal_status.Equals(input.terminal_status))
+ );
+ }
+
+ public static Boolean checkPresenceOfKey(string jsonStringterminal_status) {
+ dynamic deserializedJsonString = JsonConvert.DeserializeObject(jsonStringterminal_status);
+ if (deserializedJsonString.ContainsKey("terminal_status")) {
+ return true;
+ }
+ return false;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (this.terminal_status != null)
+ {
+ hashCode = (hashCode * 59) + this.terminal_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/UploadTerminalDocs.cs b/src/cashfree_pg/Model/UploadTerminalDocs.cs
new file mode 100644
index 0000000..c5e3aee
--- /dev/null
+++ b/src/cashfree_pg/Model/UploadTerminalDocs.cs
@@ -0,0 +1,196 @@
+/*
+ * 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 upload terminal documents.
+ ///
+ [DataContract(Name = "UploadTerminalDocs")]
+ public class UploadTerminalDocs : IEquatable, IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ [JsonConstructorAttribute]
+ protected UploadTerminalDocs() { }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// Mention the document type you are uploading. Possible values - ADDRESSPROOF, PHOTOGRAPH. (required).
+ /// Enter the display name of the uploaded file. (required).
+ /// Select the document that should be uploaded or provide the path of that file. You cannot upload a file that is more than 2MB in size. (required).
+ public UploadTerminalDocs(string docType = default(string), string docValue = default(string), string file = default(string))
+ {
+ // to ensure "docType" is required (not null)
+ if (docType == null)
+ {
+ throw new ArgumentNullException("docType is a required property for UploadTerminalDocs and cannot be null");
+ }
+ this.doc_type = docType;
+ // to ensure "docValue" is required (not null)
+ if (docValue == null)
+ {
+ throw new ArgumentNullException("docValue is a required property for UploadTerminalDocs and cannot be null");
+ }
+ this.doc_value = docValue;
+ // to ensure "file" is required (not null)
+ if (file == null)
+ {
+ throw new ArgumentNullException("file is a required property for UploadTerminalDocs and cannot be null");
+ }
+ this.file = file;
+ }
+
+ ///
+ /// Mention the document type you are uploading. Possible values - ADDRESSPROOF, PHOTOGRAPH.
+ ///
+ /// Mention the document type you are uploading. Possible values - ADDRESSPROOF, PHOTOGRAPH.
+ [DataMember(Name = "doc_type", IsRequired = true, EmitDefaultValue = true)]
+ public string doc_type { get; set; }
+
+ ///
+ /// Enter the display name of the uploaded file.
+ ///
+ /// Enter the display name of the uploaded file.
+ [DataMember(Name = "doc_value", IsRequired = true, EmitDefaultValue = true)]
+ public string doc_value { get; set; }
+
+ ///
+ /// Select the document that should be uploaded or provide the path of that file. You cannot upload a file that is more than 2MB in size.
+ ///
+ /// Select the document that should be uploaded or provide the path of that file. You cannot upload a file that is more than 2MB in size.
+ [DataMember(Name = "file", IsRequired = true, EmitDefaultValue = true)]
+ public string file { 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 UploadTerminalDocs {\n");
+ sb.Append(" doc_type: ").Append(doc_type).Append("\n");
+ sb.Append(" doc_value: ").Append(doc_value).Append("\n");
+ sb.Append(" file: ").Append(file).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 UploadTerminalDocs);
+ }
+
+ ///
+ /// Returns true if UploadTerminalDocs instances are equal
+ ///
+ /// Instance of UploadTerminalDocs to be compared
+ /// Boolean
+ public bool Equals(UploadTerminalDocs input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ return
+ (
+ this.doc_type == input.doc_type ||
+ (this.doc_type != null &&
+ this.doc_type.Equals(input.doc_type))
+ ) &&
+ (
+ this.doc_value == input.doc_value ||
+ (this.doc_value != null &&
+ this.doc_value.Equals(input.doc_value))
+ ) &&
+ (
+ this.file == input.file ||
+ (this.file != null &&
+ this.file.Equals(input.file))
+ );
+ }
+
+ public static Boolean checkPresenceOfKey(string jsonStringdoc_type) {
+ dynamic deserializedJsonString = JsonConvert.DeserializeObject(jsonStringdoc_type);
+ if (deserializedJsonString.ContainsKey("doc_type")) {
+ return true;
+ }
+ return false;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (this.doc_type != null)
+ {
+ hashCode = (hashCode * 59) + this.doc_type.GetHashCode();
+ }
+ if (this.doc_value != null)
+ {
+ hashCode = (hashCode * 59) + this.doc_value.GetHashCode();
+ }
+ if (this.file != null)
+ {
+ hashCode = (hashCode * 59) + this.file.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/UploadTerminalDocsEntity.cs b/src/cashfree_pg/Model/UploadTerminalDocsEntity.cs
new file mode 100644
index 0000000..efab965
--- /dev/null
+++ b/src/cashfree_pg/Model/UploadTerminalDocsEntity.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
+{
+ ///
+ /// Upload the terminal documents.
+ ///
+ [DataContract(Name = "UploadTerminalDocsEntity")]
+ public class UploadTerminalDocsEntity : IEquatable, IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// cfTerminalId.
+ /// docType.
+ /// docValue.
+ /// status.
+ public UploadTerminalDocsEntity(int cfTerminalId = default(int), string docType = default(string), string docValue = default(string), string status = default(string))
+ {
+ this.cf_terminal_id = cfTerminalId;
+ this.doc_type = docType;
+ this.doc_value = docValue;
+ this.status = status;
+ }
+
+ ///
+ /// Gets or Sets cf_terminal_id
+ ///
+ [DataMember(Name = "cf_terminal_id", EmitDefaultValue = false)]
+ public int cf_terminal_id { get; set; }
+
+ ///
+ /// Gets or Sets doc_type
+ ///
+ [DataMember(Name = "doc_type", EmitDefaultValue = false)]
+ public string doc_type { get; set; }
+
+ ///
+ /// Gets or Sets doc_value
+ ///
+ [DataMember(Name = "doc_value", EmitDefaultValue = false)]
+ public string doc_value { get; set; }
+
+ ///
+ /// Gets or Sets status
+ ///
+ [DataMember(Name = "status", EmitDefaultValue = false)]
+ public string 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 UploadTerminalDocsEntity {\n");
+ sb.Append(" cf_terminal_id: ").Append(cf_terminal_id).Append("\n");
+ sb.Append(" doc_type: ").Append(doc_type).Append("\n");
+ sb.Append(" doc_value: ").Append(doc_value).Append("\n");
+ sb.Append(" status: ").Append(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 UploadTerminalDocsEntity);
+ }
+
+ ///
+ /// Returns true if UploadTerminalDocsEntity instances are equal
+ ///
+ /// Instance of UploadTerminalDocsEntity to be compared
+ /// Boolean
+ public bool Equals(UploadTerminalDocsEntity input)
+ {
+ if (input == null)
+ {
+ return false;
+ }
+ return
+ (
+ this.cf_terminal_id == input.cf_terminal_id ||
+ this.cf_terminal_id.Equals(input.cf_terminal_id)
+ ) &&
+ (
+ this.doc_type == input.doc_type ||
+ (this.doc_type != null &&
+ this.doc_type.Equals(input.doc_type))
+ ) &&
+ (
+ this.doc_value == input.doc_value ||
+ (this.doc_value != null &&
+ this.doc_value.Equals(input.doc_value))
+ ) &&
+ (
+ this.status == input.status ||
+ (this.status != null &&
+ this.status.Equals(input.status))
+ );
+ }
+
+ public static Boolean checkPresenceOfKey(string jsonStringcf_terminal_id) {
+ dynamic deserializedJsonString = JsonConvert.DeserializeObject(jsonStringcf_terminal_id);
+ if (deserializedJsonString.ContainsKey("cf_terminal_id")) {
+ return true;
+ }
+ return false;
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ hashCode = (hashCode * 59) + this.cf_terminal_id.GetHashCode();
+ if (this.doc_type != null)
+ {
+ hashCode = (hashCode * 59) + this.doc_type.GetHashCode();
+ }
+ if (this.doc_value != null)
+ {
+ hashCode = (hashCode * 59) + this.doc_value.GetHashCode();
+ }
+ if (this.status != null)
+ {
+ hashCode = (hashCode * 59) + this.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/cashfree_pg.csproj b/src/cashfree_pg/cashfree_pg.csproj
index b857ffc..239b230 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
- 4.0.3
+ 4.0.7
LICENSE.md
bin\$(Configuration)\$(TargetFramework)\cashfree_pg.xml
https://github.com/cashfree/cashfree-pg-sdk-dotnet.git