diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 5702515..e824841 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -123,6 +123,7 @@ docs/RefundsApi.md docs/SavedInstrumentMeta.md docs/SettlementEntity.md docs/SettlementFetchReconRequest.md +docs/SettlementFetchReconRequestFilters.md docs/SettlementReconEntity.md docs/SettlementReconEntityDataInner.md docs/SettlementReconciliationApi.md @@ -264,6 +265,7 @@ src/cashfree_pg.Test/Model/RefundSpeedTests.cs src/cashfree_pg.Test/Model/RefundURLObjectTests.cs src/cashfree_pg.Test/Model/SavedInstrumentMetaTests.cs src/cashfree_pg.Test/Model/SettlementEntityTests.cs +src/cashfree_pg.Test/Model/SettlementFetchReconRequestFiltersTests.cs src/cashfree_pg.Test/Model/SettlementFetchReconRequestTests.cs src/cashfree_pg.Test/Model/SettlementReconEntityDataInnerTests.cs src/cashfree_pg.Test/Model/SettlementReconEntityTests.cs @@ -420,6 +422,7 @@ src/cashfree_pg/Model/RefundURLObject.cs src/cashfree_pg/Model/SavedInstrumentMeta.cs src/cashfree_pg/Model/SettlementEntity.cs src/cashfree_pg/Model/SettlementFetchReconRequest.cs +src/cashfree_pg/Model/SettlementFetchReconRequestFilters.cs src/cashfree_pg/Model/SettlementReconEntity.cs src/cashfree_pg/Model/SettlementReconEntityDataInner.cs src/cashfree_pg/Model/SettlementURLObject.cs diff --git a/cashfree_pg.sln b/cashfree_pg.sln index f916380..1a4fdf4 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", "{40219099-AC87-4119-B2C1-4336D5A49746}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "cashfree_pg", "src\cashfree_pg\cashfree_pg.csproj", "{EAF418AF-E282-4B6C-A627-0E1CD7A95184}" 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 - {40219099-AC87-4119-B2C1-4336D5A49746}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {40219099-AC87-4119-B2C1-4336D5A49746}.Debug|Any CPU.Build.0 = Debug|Any CPU - {40219099-AC87-4119-B2C1-4336D5A49746}.Release|Any CPU.ActiveCfg = Release|Any CPU - {40219099-AC87-4119-B2C1-4336D5A49746}.Release|Any CPU.Build.0 = Release|Any CPU + {EAF418AF-E282-4B6C-A627-0E1CD7A95184}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {EAF418AF-E282-4B6C-A627-0E1CD7A95184}.Debug|Any CPU.Build.0 = Debug|Any CPU + {EAF418AF-E282-4B6C-A627-0E1CD7A95184}.Release|Any CPU.ActiveCfg = Release|Any CPU + {EAF418AF-E282-4B6C-A627-0E1CD7A95184}.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/CreateTerminalTransactionRequest.md b/docs/CreateTerminalTransactionRequest.md index a750608..b564003 100644 --- a/docs/CreateTerminalTransactionRequest.md +++ b/docs/CreateTerminalTransactionRequest.md @@ -5,8 +5,8 @@ Request body to create a terminal transaction Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**cf_order_id** | **int** | cashfree order ID that was returned while creating an order. | -**cf_terminal_id** | **int** | cashfree terminal id. this is a required parameter when you do not provide the terminal phone number. | [optional] +**cf_order_id** | **long** | cashfree order ID that was returned while creating an order. | +**cf_terminal_id** | **long** | cashfree terminal id. this is a required parameter when you do not provide the terminal phone number. | [optional] **payment_method** | **string** | mention the payment method used for the transaction. possible values - QR_CODE, LINK. | **terminal_phone_no** | **string** | agent mobile number assigned to the terminal. this is a required parameter when you do not provide the cf_terminal_id. | [optional] diff --git a/docs/EligibilityApi.md b/docs/EligibilityApi.md index 21cc45b..c3d24e7 100644 --- a/docs/EligibilityApi.md +++ b/docs/EligibilityApi.md @@ -4,16 +4,16 @@ All URIs are relative to *https://sandbox.cashfree.com/pg* | Method | HTTP request | Description | |--------|--------------|-------------| -| [**PGEligibilityFetchCardlessEMI**](EligibilityApi.md#pgeligibilityfetchcardlessemi) | **POST** /eligibility/cardlessemi | Get Eligible Cardless EMI Payment Methods for a customer on an order | -| [**PGEligibilityFetchOffers**](EligibilityApi.md#pgeligibilityfetchoffers) | **POST** /eligibility/offers | Get Eligible Offers for an Order | -| [**PGEligibilityFetchPaylater**](EligibilityApi.md#pgeligibilityfetchpaylater) | **POST** /eligibility/paylater | Get Eligible Paylater for a customer on an order | -| [**PGEligibilityFetchPaymentMethods**](EligibilityApi.md#pgeligibilityfetchpaymentmethods) | **POST** /eligibility/payment_methods | Get eligible Payment Methods | +| [**PGEligibilityFetchCardlessEMI**](EligibilityApi.md#pgeligibilityfetchcardlessemi) | **POST** /eligibility/cardlessemi | Get Eligible Cardless EMI | +| [**PGEligibilityFetchOffers**](EligibilityApi.md#pgeligibilityfetchoffers) | **POST** /eligibility/offers | Get Eligible Offers | +| [**PGEligibilityFetchPaylater**](EligibilityApi.md#pgeligibilityfetchpaylater) | **POST** /eligibility/paylater | Get Eligible Paylater | +| [**PGEligibilityFetchPaymentMethods**](EligibilityApi.md#pgeligibilityfetchpaymentmethods) | **POST** /eligibility/payment_methods | Get Eligible Payment Methods | # **PGEligibilityFetchCardlessEMI** > List<EligibilityCardlessEMIEntity> PGEligibilityFetchCardlessEMI (string xApiVersion, EligibilityFetchCardlessEMIRequest eligibilityFetchCardlessEMIRequest, string? xRequestId = null, Guid? xIdempotencyKey = null) -Get Eligible Cardless EMI Payment Methods for a customer on an order +Get Eligible Cardless EMI Use this API to get eligible Cardless EMI Payment Methods available for a customer on an order basis their phone number. @@ -46,7 +46,7 @@ namespace Example try { - // Get Eligible Cardless EMI Payment Methods for a customer on an order + // Get Eligible Cardless EMI List result = cashfree.PGEligibilityFetchCardlessEMI(xApiVersion, eligibilityFetchCardlessEMIRequest, xRequestId, xIdempotencyKey); Debug.WriteLine(result); } @@ -103,7 +103,7 @@ namespace Example # **PGEligibilityFetchOffers** > List<EligibilityOfferEntity> PGEligibilityFetchOffers (string xApiVersion, EligibilityFetchOffersRequest eligibilityFetchOffersRequest, string? xRequestId = null, Guid? xIdempotencyKey = null) -Get Eligible Offers for an Order +Get Eligible Offers Use this API to get eligible offers for an order_id or order amount. @@ -136,7 +136,7 @@ namespace Example try { - // Get Eligible Offers for an Order + // Get Eligible Offers List result = cashfree.PGEligibilityFetchOffers(xApiVersion, eligibilityFetchOffersRequest, xRequestId, xIdempotencyKey); Debug.WriteLine(result); } @@ -192,7 +192,7 @@ namespace Example # **PGEligibilityFetchPaylater** > List<EligibilityPaylaterEntity> PGEligibilityFetchPaylater (string xApiVersion, EligibilityFetchPaylaterRequest eligibilityFetchPaylaterRequest, string? xRequestId = null, Guid? xIdempotencyKey = null) -Get Eligible Paylater for a customer on an order +Get Eligible Paylater Use this API to get eligible Paylater Payment Methods for a customer on an order. @@ -225,7 +225,7 @@ namespace Example try { - // Get Eligible Paylater for a customer on an order + // Get Eligible Paylater List result = cashfree.PGEligibilityFetchPaylater(xApiVersion, eligibilityFetchPaylaterRequest, xRequestId, xIdempotencyKey); Debug.WriteLine(result); } @@ -282,7 +282,7 @@ namespace Example # **PGEligibilityFetchPaymentMethods** > List<EligibilityPaymentMethodsEntity> PGEligibilityFetchPaymentMethods (string xApiVersion, EligibilityFetchPaymentMethodsRequest eligibilityFetchPaymentMethodsRequest, string? xRequestId = null, Guid? xIdempotencyKey = null) -Get eligible Payment Methods +Get Eligible Payment Methods Use this API to get eligible Payment Methods @@ -315,7 +315,7 @@ namespace Example try { - // Get eligible Payment Methods + // Get Eligible Payment Methods List result = cashfree.PGEligibilityFetchPaymentMethods(xApiVersion, eligibilityFetchPaymentMethodsRequest, xRequestId, xIdempotencyKey); Debug.WriteLine(result); } diff --git a/docs/FetchSettlementsRequestFilters.md b/docs/FetchSettlementsRequestFilters.md index 37181b0..162ec1f 100644 --- a/docs/FetchSettlementsRequestFilters.md +++ b/docs/FetchSettlementsRequestFilters.md @@ -5,7 +5,7 @@ Specify either the Settlement ID, Settlement UTR, or start date and end date to Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**cf_settlement_ids** | **List<int>** | List of settlement IDs for which you want the settlement reconciliation details. | [optional] +**cf_settlement_ids** | **List<long>** | List of settlement IDs for which you want the settlement reconciliation details. | [optional] **settlement_utrs** | **List<string>** | List of settlement UTRs for which you want the settlement reconciliation details. | [optional] **start_date** | **string** | Specify the start date from when you want the settlement reconciliation details. | [optional] **end_date** | **string** | Specify the end date till when you want the settlement reconciliation details. | [optional] diff --git a/docs/LinkEntity.md b/docs/LinkEntity.md index 6258434..3036203 100644 --- a/docs/LinkEntity.md +++ b/docs/LinkEntity.md @@ -5,7 +5,7 @@ Payment link success creation response object Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**cf_link_id** | **int** | | [optional] +**cf_link_id** | **long** | | [optional] **link_id** | **string** | | [optional] **link_status** | **string** | | [optional] **link_currency** | **string** | | [optional] diff --git a/docs/PaymentMethodsFilters.md b/docs/PaymentMethodsFilters.md index b155bbf..ad77739 100644 --- a/docs/PaymentMethodsFilters.md +++ b/docs/PaymentMethodsFilters.md @@ -1,11 +1,11 @@ # cashfree_pg.Model.PaymentMethodsFilters -Filter for Payment Methods +Filter for specific Payment Methods ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**payment_methods** | **List<string>** | Array of payment methods to be filtered. | [optional] +**payment_methods** | **List<string>** | Array of payment methods to be filtered. This is optional, by default all payment methods will be returned. Possible values in [ 'debit_card', 'credit_card', 'prepaid_card', 'corporate_credit_card', 'upi', 'wallet', 'netbanking', 'banktransfer', 'paylater', 'paypal', 'debit_card_emi', 'credit_card_emi', 'upi_credit_card', 'upi_ppi', 'cardless_emi', 'account_based_payment' ] | [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/PaymentMethodsQueries.md b/docs/PaymentMethodsQueries.md index d2d0b7d..0741f35 100644 --- a/docs/PaymentMethodsQueries.md +++ b/docs/PaymentMethodsQueries.md @@ -6,6 +6,7 @@ Payment Method Query Object Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **amount** | **decimal** | Amount of the order. | [optional] +**order_id** | **string** | OrderId of the order. Either of `order_id` or `order_amount` is mandatory. | [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/SettlementFetchReconRequest.md b/docs/SettlementFetchReconRequest.md index 856fc57..490635b 100644 --- a/docs/SettlementFetchReconRequest.md +++ b/docs/SettlementFetchReconRequest.md @@ -6,7 +6,7 @@ Recon Request Object Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **pagination** | [**FetchSettlementsRequestPagination**](FetchSettlementsRequestPagination.md) | | -**filters** | [**FetchSettlementsRequestFilters**](FetchSettlementsRequestFilters.md) | | +**filters** | [**SettlementFetchReconRequestFilters**](SettlementFetchReconRequestFilters.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/SettlementFetchReconRequestFilters.md b/docs/SettlementFetchReconRequestFilters.md new file mode 100644 index 0000000..4b822f8 --- /dev/null +++ b/docs/SettlementFetchReconRequestFilters.md @@ -0,0 +1,14 @@ +# cashfree_pg.Model.SettlementFetchReconRequestFilters +Specify either the Settlement ID, Settlement UTR, or start date and end date to fetch the settlement details. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cf_settlement_ids** | **List<int>** | List of settlement IDs for which you want the settlement reconciliation details. | [optional] +**settlement_utrs** | **List<string>** | List of settlement UTRs for which you want the settlement reconciliation details. | [optional] +**start_date** | **string** | Specify the start date from when you want the settlement reconciliation details. | [optional] +**end_date** | **string** | Specify the end date till when you want the settlement reconciliation details. | [optional] + +[[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 961ec05..1516baf 100644 --- a/src/cashfree_pg/Client/ApiClient.cs +++ b/src/cashfree_pg/Client/ApiClient.cs @@ -60,7 +60,7 @@ public class Cashfree { private cashfree_pg.Client.ExceptionFactory ExceptionFactory = (name, response) => null; /// - /// Get Eligible Cardless EMI Payment Methods for a customer on an order Use this API to get eligible Cardless EMI Payment Methods available for a customer on an order basis their phone number. + /// Get Eligible Cardless EMI Use this API to get eligible Cardless EMI Payment Methods available for a customer on an order basis their phone number. /// /// Thrown when fails to make API call /// API version to be used. Format is in YYYY-MM-DD @@ -87,7 +87,7 @@ public class Cashfree { o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "3.0.2"; + o.Release = "3.0.5"; })); var config = new Configuration(); if(configuration != null) { @@ -174,7 +174,7 @@ public class Cashfree { localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.0.2"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.0.5"); // make the HTTP request var localVarResponse = this.Client.Post>("/eligibility/cardlessemi", localVarRequestOptions, config); @@ -192,7 +192,7 @@ public class Cashfree { return localVarResponse; } /// - /// Get Eligible Offers for an Order Use this API to get eligible offers for an order_id or order amount. + /// Get Eligible Offers Use this API to get eligible offers for an order_id or order amount. /// /// Thrown when fails to make API call /// API version to be used. Format is in YYYY-MM-DD @@ -219,7 +219,7 @@ public class Cashfree { o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "3.0.2"; + o.Release = "3.0.5"; })); var config = new Configuration(); if(configuration != null) { @@ -306,7 +306,7 @@ public class Cashfree { localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.0.2"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.0.5"); // make the HTTP request var localVarResponse = this.Client.Post>("/eligibility/offers", localVarRequestOptions, config); @@ -324,7 +324,7 @@ public class Cashfree { return localVarResponse; } /// - /// Get Eligible Paylater for a customer on an order Use this API to get eligible Paylater Payment Methods for a customer on an order. + /// Get Eligible Paylater Use this API to get eligible Paylater Payment Methods for a customer on an order. /// /// Thrown when fails to make API call /// API version to be used. Format is in YYYY-MM-DD @@ -351,7 +351,7 @@ public class Cashfree { o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "3.0.2"; + o.Release = "3.0.5"; })); var config = new Configuration(); if(configuration != null) { @@ -438,7 +438,7 @@ public class Cashfree { localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.0.2"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.0.5"); // make the HTTP request var localVarResponse = this.Client.Post>("/eligibility/paylater", localVarRequestOptions, config); @@ -456,7 +456,7 @@ public class Cashfree { return localVarResponse; } /// - /// Get eligible Payment Methods Use this API to get eligible Payment Methods + /// Get Eligible Payment Methods Use this API to get eligible Payment Methods /// /// Thrown when fails to make API call /// API version to be used. Format is in YYYY-MM-DD @@ -483,7 +483,7 @@ public class Cashfree { o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "3.0.2"; + o.Release = "3.0.5"; })); var config = new Configuration(); if(configuration != null) { @@ -570,7 +570,7 @@ public class Cashfree { localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.0.2"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.0.5"); // make the HTTP request var localVarResponse = this.Client.Post>("/eligibility/payment_methods", localVarRequestOptions, config); @@ -615,7 +615,7 @@ public class Cashfree { o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "3.0.2"; + o.Release = "3.0.5"; })); var config = new Configuration(); if(configuration != null) { @@ -702,7 +702,7 @@ public class Cashfree { localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.0.2"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.0.5"); // make the HTTP request var localVarResponse = this.Client.Post("/offers", localVarRequestOptions, config); @@ -747,7 +747,7 @@ public class Cashfree { o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "3.0.2"; + o.Release = "3.0.5"; })); var config = new Configuration(); if(configuration != null) { @@ -833,7 +833,7 @@ public class Cashfree { localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.0.2"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.0.5"); // make the HTTP request var localVarResponse = this.Client.Get("/offers/{offer_id}", localVarRequestOptions, config); @@ -878,7 +878,7 @@ public class Cashfree { o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "3.0.2"; + o.Release = "3.0.5"; })); var config = new Configuration(); if(configuration != null) { @@ -965,7 +965,7 @@ public class Cashfree { localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.0.2"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.0.5"); // make the HTTP request var localVarResponse = this.Client.Post("/orders", localVarRequestOptions, config); @@ -1010,7 +1010,7 @@ public class Cashfree { o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "3.0.2"; + o.Release = "3.0.5"; })); var config = new Configuration(); if(configuration != null) { @@ -1096,7 +1096,7 @@ public class Cashfree { localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.0.2"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.0.5"); // make the HTTP request var localVarResponse = this.Client.Get("/orders/{order_id}", localVarRequestOptions, config); @@ -1143,7 +1143,7 @@ public class Cashfree { o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "3.0.2"; + o.Release = "3.0.5"; })); var config = new Configuration(); if(configuration != null) { @@ -1238,7 +1238,7 @@ public class Cashfree { localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.0.2"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.0.5"); // make the HTTP request var localVarResponse = this.Client.Post("/recon", localVarRequestOptions, config); @@ -1283,7 +1283,7 @@ public class Cashfree { o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "3.0.2"; + o.Release = "3.0.5"; })); var config = new Configuration(); if(configuration != null) { @@ -1369,7 +1369,7 @@ public class Cashfree { localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.0.2"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.0.5"); // make the HTTP request var localVarResponse = this.Client.Post("/links/{link_id}/cancel", localVarRequestOptions, config); @@ -1414,7 +1414,7 @@ public class Cashfree { o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "3.0.2"; + o.Release = "3.0.5"; })); var config = new Configuration(); if(configuration != null) { @@ -1501,7 +1501,7 @@ public class Cashfree { localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.0.2"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.0.5"); // make the HTTP request var localVarResponse = this.Client.Post("/links", localVarRequestOptions, config); @@ -1546,7 +1546,7 @@ public class Cashfree { o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "3.0.2"; + o.Release = "3.0.5"; })); var config = new Configuration(); if(configuration != null) { @@ -1632,7 +1632,7 @@ public class Cashfree { localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.0.2"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.0.5"); // make the HTTP request var localVarResponse = this.Client.Get("/links/{link_id}", localVarRequestOptions, config); @@ -1677,7 +1677,7 @@ public class Cashfree { o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "3.0.2"; + o.Release = "3.0.5"; })); var config = new Configuration(); if(configuration != null) { @@ -1763,7 +1763,7 @@ public class Cashfree { localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.0.2"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.0.5"); // make the HTTP request var localVarResponse = this.Client.Get>("/links/{link_id}/orders", localVarRequestOptions, config); @@ -1809,7 +1809,7 @@ public class Cashfree { o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "3.0.2"; + o.Release = "3.0.5"; })); var config = new Configuration(); if(configuration != null) { @@ -1901,7 +1901,7 @@ public class Cashfree { localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.0.2"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.0.5"); // make the HTTP request var localVarResponse = this.Client.Post("/orders/{order_id}/authorization", localVarRequestOptions, config); @@ -1947,7 +1947,7 @@ public class Cashfree { o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "3.0.2"; + o.Release = "3.0.5"; })); var config = new Configuration(); if(configuration != null) { @@ -2024,7 +2024,7 @@ public class Cashfree { localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.0.2"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.0.5"); // make the HTTP request var localVarResponse = this.Client.Post("/orders/pay/authenticate/{cf_payment_id}", localVarRequestOptions, config); @@ -2070,7 +2070,7 @@ public class Cashfree { o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "3.0.2"; + o.Release = "3.0.5"; })); var config = new Configuration(); if(configuration != null) { @@ -2161,7 +2161,7 @@ public class Cashfree { localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.0.2"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.0.5"); // make the HTTP request var localVarResponse = this.Client.Get("/orders/{order_id}/payments/{cf_payment_id}", localVarRequestOptions, config); @@ -2206,7 +2206,7 @@ public class Cashfree { o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "3.0.2"; + o.Release = "3.0.5"; })); var config = new Configuration(); if(configuration != null) { @@ -2292,7 +2292,7 @@ public class Cashfree { localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.0.2"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.0.5"); // make the HTTP request var localVarResponse = this.Client.Get>("/orders/{order_id}/payments", localVarRequestOptions, config); @@ -2337,7 +2337,7 @@ public class Cashfree { o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "3.0.2"; + o.Release = "3.0.5"; })); var config = new Configuration(); if(configuration != null) { @@ -2409,7 +2409,7 @@ public class Cashfree { localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.0.2"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.0.5"); // make the HTTP request var localVarResponse = this.Client.Post("/orders/sessions", localVarRequestOptions, config); @@ -2455,7 +2455,7 @@ public class Cashfree { o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "3.0.2"; + o.Release = "3.0.5"; })); var config = new Configuration(); if(configuration != null) { @@ -2547,7 +2547,7 @@ public class Cashfree { localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.0.2"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.0.5"); // make the HTTP request var localVarResponse = this.Client.Post("/orders/{order_id}/refunds", localVarRequestOptions, config); @@ -2593,7 +2593,7 @@ public class Cashfree { o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "3.0.2"; + o.Release = "3.0.5"; })); var config = new Configuration(); if(configuration != null) { @@ -2684,7 +2684,7 @@ public class Cashfree { localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.0.2"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.0.5"); // make the HTTP request var localVarResponse = this.Client.Get("/orders/{order_id}/refunds/{refund_id}", localVarRequestOptions, config); @@ -2729,7 +2729,7 @@ public class Cashfree { o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "3.0.2"; + o.Release = "3.0.5"; })); var config = new Configuration(); if(configuration != null) { @@ -2815,7 +2815,7 @@ public class Cashfree { localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.0.2"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.0.5"); // make the HTTP request var localVarResponse = this.Client.Get>("/orders/{order_id}/refunds", localVarRequestOptions, config); @@ -2862,7 +2862,7 @@ public class Cashfree { o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "3.0.2"; + o.Release = "3.0.5"; })); var config = new Configuration(); if(configuration != null) { @@ -2957,7 +2957,7 @@ public class Cashfree { localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.0.2"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.0.5"); // make the HTTP request var localVarResponse = this.Client.Post("/settlements", localVarRequestOptions, config); @@ -3004,7 +3004,7 @@ public class Cashfree { o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "3.0.2"; + o.Release = "3.0.5"; })); var config = new Configuration(); if(configuration != null) { @@ -3099,7 +3099,7 @@ public class Cashfree { localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.0.2"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.0.5"); // make the HTTP request var localVarResponse = this.Client.Post("/settlement/recon", localVarRequestOptions, config); @@ -3144,7 +3144,7 @@ public class Cashfree { o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "3.0.2"; + o.Release = "3.0.5"; })); var config = new Configuration(); if(configuration != null) { @@ -3230,7 +3230,7 @@ public class Cashfree { localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.0.2"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.0.5"); // make the HTTP request var localVarResponse = this.Client.Get("/orders/{order_id}/settlements", localVarRequestOptions, config); @@ -3275,7 +3275,7 @@ public class Cashfree { o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "3.0.2"; + o.Release = "3.0.5"; })); var config = new Configuration(); if(configuration != null) { @@ -3362,7 +3362,7 @@ public class Cashfree { localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.0.2"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.0.5"); // make the HTTP request var localVarResponse = this.Client.Post("/terminal", localVarRequestOptions, config); @@ -3407,7 +3407,7 @@ public class Cashfree { o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "3.0.2"; + o.Release = "3.0.5"; })); var config = new Configuration(); if(configuration != null) { @@ -3494,7 +3494,7 @@ public class Cashfree { localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.0.2"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.0.5"); // make the HTTP request var localVarResponse = this.Client.Post("/terminal/transactions", localVarRequestOptions, config); @@ -3539,7 +3539,7 @@ public class Cashfree { o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "3.0.2"; + o.Release = "3.0.5"; })); var config = new Configuration(); if(configuration != null) { @@ -3625,7 +3625,7 @@ public class Cashfree { localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.0.2"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.0.5"); // make the HTTP request var localVarResponse = this.Client.Get("/terminal/{terminal_phone_no}", localVarRequestOptions, config); @@ -3671,7 +3671,7 @@ public class Cashfree { o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "3.0.2"; + o.Release = "3.0.5"; })); var config = new Configuration(); if(configuration != null) { @@ -3762,7 +3762,7 @@ public class Cashfree { localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.0.2"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.0.5"); // make the HTTP request var localVarResponse = this.Client.Get>("/terminal/qrcodes", localVarRequestOptions, config); @@ -3808,7 +3808,7 @@ public class Cashfree { o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "3.0.2"; + o.Release = "3.0.5"; })); var config = new Configuration(); if(configuration != null) { @@ -3899,7 +3899,7 @@ public class Cashfree { localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.0.2"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.0.5"); // make the HTTP request var localVarResponse = this.Client.Delete("/customers/{customer_id}/instruments/{instrument_id}", localVarRequestOptions, config); @@ -3945,7 +3945,7 @@ public class Cashfree { o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "3.0.2"; + o.Release = "3.0.5"; })); var config = new Configuration(); if(configuration != null) { @@ -4036,7 +4036,7 @@ public class Cashfree { localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.0.2"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.0.5"); // make the HTTP request var localVarResponse = this.Client.Get("/customers/{customer_id}/instruments/{instrument_id}", localVarRequestOptions, config); @@ -4082,7 +4082,7 @@ public class Cashfree { o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "3.0.2"; + o.Release = "3.0.5"; })); var config = new Configuration(); if(configuration != null) { @@ -4173,7 +4173,7 @@ public class Cashfree { localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.0.2"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.0.5"); // make the HTTP request var localVarResponse = this.Client.Get>("/customers/{customer_id}/instruments", localVarRequestOptions, config); @@ -4219,7 +4219,7 @@ public class Cashfree { o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "3.0.2"; + o.Release = "3.0.5"; })); var config = new Configuration(); if(configuration != null) { @@ -4310,7 +4310,7 @@ public class Cashfree { localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.0.2"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.0.5"); // 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 4c3d718..e3222cc 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 = "3.0.2"; + public const string Version = "3.0.5"; /// /// Identifier for ISO 8601 DateTime Format @@ -113,7 +113,7 @@ public class Configuration : IReadableConfiguration public Configuration() { Proxy = null; - UserAgent = WebUtility.UrlEncode("OpenAPI-Generator/3.0.2/csharp"); + UserAgent = WebUtility.UrlEncode("OpenAPI-Generator/3.0.5/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: 2022-09-01\n"; - report += " SDK Package Version: 3.0.2\n"; + report += " SDK Package Version: 3.0.5\n"; return report; } diff --git a/src/cashfree_pg/Model/CreateTerminalTransactionRequest.cs b/src/cashfree_pg/Model/CreateTerminalTransactionRequest.cs index cfe6291..5291dd1 100644 --- a/src/cashfree_pg/Model/CreateTerminalTransactionRequest.cs +++ b/src/cashfree_pg/Model/CreateTerminalTransactionRequest.cs @@ -44,7 +44,7 @@ protected CreateTerminalTransactionRequest() { } /// cashfree terminal id. this is a required parameter when you do not provide the terminal phone number.. /// mention the payment method used for the transaction. possible values - QR_CODE, LINK. (required). /// agent mobile number assigned to the terminal. this is a required parameter when you do not provide the cf_terminal_id.. - public CreateTerminalTransactionRequest(int cfOrderId = default(int), int cfTerminalId = default(int), string paymentMethod = default(string), string terminalPhoneNo = default(string)) + public CreateTerminalTransactionRequest(long cfOrderId = default(long), long cfTerminalId = default(long), string paymentMethod = default(string), string terminalPhoneNo = default(string)) { this.cf_order_id = cfOrderId; // to ensure "paymentMethod" is required (not null) @@ -62,14 +62,14 @@ protected CreateTerminalTransactionRequest() { } /// /// cashfree order ID that was returned while creating an order. [DataMember(Name = "cf_order_id", IsRequired = true, EmitDefaultValue = true)] - public int cf_order_id { get; set; } + public long cf_order_id { get; set; } /// /// cashfree terminal id. this is a required parameter when you do not provide the terminal phone number. /// /// cashfree terminal id. this is a required parameter when you do not provide the terminal phone number. [DataMember(Name = "cf_terminal_id", EmitDefaultValue = false)] - public int cf_terminal_id { get; set; } + public long cf_terminal_id { get; set; } /// /// mention the payment method used for the transaction. possible values - QR_CODE, LINK. diff --git a/src/cashfree_pg/Model/FetchSettlementsRequestFilters.cs b/src/cashfree_pg/Model/FetchSettlementsRequestFilters.cs index ea3603d..dce80ab 100644 --- a/src/cashfree_pg/Model/FetchSettlementsRequestFilters.cs +++ b/src/cashfree_pg/Model/FetchSettlementsRequestFilters.cs @@ -39,7 +39,7 @@ public class FetchSettlementsRequestFilters : IEquatableList of settlement UTRs for which you want the settlement reconciliation details.. /// Specify the start date from when you want the settlement reconciliation details.. /// Specify the end date till when you want the settlement reconciliation details.. - public FetchSettlementsRequestFilters(List cfSettlementIds = default(List), List settlementUtrs = default(List), string startDate = default(string), string endDate = default(string)) + public FetchSettlementsRequestFilters(List cfSettlementIds = default(List), List settlementUtrs = default(List), string startDate = default(string), string endDate = default(string)) { this.cf_settlement_ids = cfSettlementIds; this.settlement_utrs = settlementUtrs; @@ -52,7 +52,7 @@ public class FetchSettlementsRequestFilters : IEquatable /// List of settlement IDs for which you want the settlement reconciliation details. [DataMember(Name = "cf_settlement_ids", EmitDefaultValue = false)] - public List cf_settlement_ids { get; set; } + public List cf_settlement_ids { get; set; } /// /// List of settlement UTRs for which you want the settlement reconciliation details. diff --git a/src/cashfree_pg/Model/LinkEntity.cs b/src/cashfree_pg/Model/LinkEntity.cs index 86dc103..8e75d32 100644 --- a/src/cashfree_pg/Model/LinkEntity.cs +++ b/src/cashfree_pg/Model/LinkEntity.cs @@ -52,7 +52,7 @@ public class LinkEntity : IEquatable, IValidatableObject /// Key-value pair that can be used to store additional information about the entity. Maximum 5 key-value pairs. /// linkAutoReminders. /// linkNotify. - public LinkEntity(int cfLinkId = default(int), string linkId = default(string), string linkStatus = default(string), string linkCurrency = default(string), decimal linkAmount = default(decimal), decimal linkAmountPaid = default(decimal), bool linkPartialPayments = default(bool), decimal linkMinimumPartialAmount = default(decimal), string linkPurpose = default(string), string linkCreatedAt = default(string), LinkCustomerDetailsEntity customerDetails = default(LinkCustomerDetailsEntity), LinkMetaEntity linkMeta = default(LinkMetaEntity), string linkUrl = default(string), string linkExpiryTime = default(string), Dictionary linkNotes = default(Dictionary), bool linkAutoReminders = default(bool), LinkNotifyEntity linkNotify = default(LinkNotifyEntity)) + public LinkEntity(long cfLinkId = default(long), string linkId = default(string), string linkStatus = default(string), string linkCurrency = default(string), decimal linkAmount = default(decimal), decimal linkAmountPaid = default(decimal), bool linkPartialPayments = default(bool), decimal linkMinimumPartialAmount = default(decimal), string linkPurpose = default(string), string linkCreatedAt = default(string), LinkCustomerDetailsEntity customerDetails = default(LinkCustomerDetailsEntity), LinkMetaEntity linkMeta = default(LinkMetaEntity), string linkUrl = default(string), string linkExpiryTime = default(string), Dictionary linkNotes = default(Dictionary), bool linkAutoReminders = default(bool), LinkNotifyEntity linkNotify = default(LinkNotifyEntity)) { this.cf_link_id = cfLinkId; this.link_id = linkId; @@ -77,7 +77,7 @@ public class LinkEntity : IEquatable, IValidatableObject /// Gets or Sets cf_link_id /// [DataMember(Name = "cf_link_id", EmitDefaultValue = false)] - public int cf_link_id { get; set; } + public long cf_link_id { get; set; } /// /// Gets or Sets link_id diff --git a/src/cashfree_pg/Model/PaymentMethodsFilters.cs b/src/cashfree_pg/Model/PaymentMethodsFilters.cs index 30f7377..0cb49b6 100644 --- a/src/cashfree_pg/Model/PaymentMethodsFilters.cs +++ b/src/cashfree_pg/Model/PaymentMethodsFilters.cs @@ -27,7 +27,7 @@ namespace cashfree_pg.Model { /// - /// Filter for Payment Methods + /// Filter for specific Payment Methods /// [DataContract(Name = "PaymentMethodsFilters")] public class PaymentMethodsFilters : IEquatable, IValidatableObject @@ -35,16 +35,16 @@ public class PaymentMethodsFilters : IEquatable, IValidat /// /// Initializes a new instance of the class. /// - /// Array of payment methods to be filtered.. + /// Array of payment methods to be filtered. This is optional, by default all payment methods will be returned. Possible values in [ 'debit_card', 'credit_card', 'prepaid_card', 'corporate_credit_card', 'upi', 'wallet', 'netbanking', 'banktransfer', 'paylater', 'paypal', 'debit_card_emi', 'credit_card_emi', 'upi_credit_card', 'upi_ppi', 'cardless_emi', 'account_based_payment' ] . public PaymentMethodsFilters(List paymentMethods = default(List)) { this.payment_methods = paymentMethods; } /// - /// Array of payment methods to be filtered. + /// Array of payment methods to be filtered. This is optional, by default all payment methods will be returned. Possible values in [ 'debit_card', 'credit_card', 'prepaid_card', 'corporate_credit_card', 'upi', 'wallet', 'netbanking', 'banktransfer', 'paylater', 'paypal', 'debit_card_emi', 'credit_card_emi', 'upi_credit_card', 'upi_ppi', 'cardless_emi', 'account_based_payment' ] /// - /// Array of payment methods to be filtered. + /// Array of payment methods to be filtered. This is optional, by default all payment methods will be returned. Possible values in [ 'debit_card', 'credit_card', 'prepaid_card', 'corporate_credit_card', 'upi', 'wallet', 'netbanking', 'banktransfer', 'paylater', 'paypal', 'debit_card_emi', 'credit_card_emi', 'upi_credit_card', 'upi_ppi', 'cardless_emi', 'account_based_payment' ] [DataMember(Name = "payment_methods", EmitDefaultValue = false)] public List payment_methods { get; set; } diff --git a/src/cashfree_pg/Model/PaymentMethodsQueries.cs b/src/cashfree_pg/Model/PaymentMethodsQueries.cs index 5c9572f..a80f82a 100644 --- a/src/cashfree_pg/Model/PaymentMethodsQueries.cs +++ b/src/cashfree_pg/Model/PaymentMethodsQueries.cs @@ -36,9 +36,11 @@ public class PaymentMethodsQueries : IEquatable, IValidat /// Initializes a new instance of the class. /// /// Amount of the order.. - public PaymentMethodsQueries(decimal amount = default(decimal)) + /// OrderId of the order. Either of `order_id` or `order_amount` is mandatory.. + public PaymentMethodsQueries(decimal amount = default(decimal), string orderId = default(string)) { this.amount = amount; + this.order_id = orderId; } /// @@ -49,6 +51,14 @@ public class PaymentMethodsQueries : IEquatable, IValidat [DataMember(Name = "amount", EmitDefaultValue = false)] public decimal amount { get; set; } + /// + /// OrderId of the order. Either of `order_id` or `order_amount` is mandatory. + /// + /// OrderId of the order. Either of `order_id` or `order_amount` is mandatory. + /// order_413462PK1RI1IwYB1X69LgzUQWiSxYDF + [DataMember(Name = "order_id", EmitDefaultValue = false)] + public string order_id { get; set; } + /// /// Returns the string presentation of the object /// @@ -58,6 +68,7 @@ public override string ToString() StringBuilder sb = new StringBuilder(); sb.Append("class PaymentMethodsQueries {\n"); sb.Append(" amount: ").Append(amount).Append("\n"); + sb.Append(" order_id: ").Append(order_id).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -96,6 +107,11 @@ public bool Equals(PaymentMethodsQueries input) ( this.amount == input.amount || this.amount.Equals(input.amount) + ) && + ( + this.order_id == input.order_id || + (this.order_id != null && + this.order_id.Equals(input.order_id)) ); } @@ -109,6 +125,10 @@ public override int GetHashCode() { int hashCode = 41; hashCode = (hashCode * 59) + this.amount.GetHashCode(); + if (this.order_id != null) + { + hashCode = (hashCode * 59) + this.order_id.GetHashCode(); + } return hashCode; } } @@ -126,6 +146,18 @@ public override int GetHashCode() yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for amount, must be a value greater than or equal to 1.", new [] { "amount" }); } + // order_id (string) maxLength + if (this.order_id != null && this.order_id.Length > 50) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for order_id, length must be less than 50.", new [] { "order_id" }); + } + + // order_id (string) minLength + if (this.order_id != null && this.order_id.Length < 3) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for order_id, length must be greater than 3.", new [] { "order_id" }); + } + yield break; } } diff --git a/src/cashfree_pg/Model/SettlementFetchReconRequest.cs b/src/cashfree_pg/Model/SettlementFetchReconRequest.cs index 70d3bcd..8cbc369 100644 --- a/src/cashfree_pg/Model/SettlementFetchReconRequest.cs +++ b/src/cashfree_pg/Model/SettlementFetchReconRequest.cs @@ -42,7 +42,7 @@ protected SettlementFetchReconRequest() { } /// /// pagination (required). /// filters (required). - public SettlementFetchReconRequest(FetchSettlementsRequestPagination pagination = default(FetchSettlementsRequestPagination), FetchSettlementsRequestFilters filters = default(FetchSettlementsRequestFilters)) + public SettlementFetchReconRequest(FetchSettlementsRequestPagination pagination = default(FetchSettlementsRequestPagination), SettlementFetchReconRequestFilters filters = default(SettlementFetchReconRequestFilters)) { // to ensure "pagination" is required (not null) if (pagination == null) @@ -68,7 +68,7 @@ protected SettlementFetchReconRequest() { } /// Gets or Sets filters /// [DataMember(Name = "filters", IsRequired = true, EmitDefaultValue = true)] - public FetchSettlementsRequestFilters filters { get; set; } + public SettlementFetchReconRequestFilters filters { get; set; } /// /// Returns the string presentation of the object diff --git a/src/cashfree_pg/Model/SettlementFetchReconRequestFilters.cs b/src/cashfree_pg/Model/SettlementFetchReconRequestFilters.cs new file mode 100644 index 0000000..409e31f --- /dev/null +++ b/src/cashfree_pg/Model/SettlementFetchReconRequestFilters.cs @@ -0,0 +1,189 @@ +/* + * 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: 2022-09-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 +{ + /// + /// Specify either the Settlement ID, Settlement UTR, or start date and end date to fetch the settlement details. + /// + [DataContract(Name = "SettlementFetchReconRequest_filters")] + public class SettlementFetchReconRequestFilters : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// List of settlement IDs for which you want the settlement reconciliation details.. + /// List of settlement UTRs for which you want the settlement reconciliation details.. + /// Specify the start date from when you want the settlement reconciliation details.. + /// Specify the end date till when you want the settlement reconciliation details.. + public SettlementFetchReconRequestFilters(List cfSettlementIds = default(List), List settlementUtrs = default(List), string startDate = default(string), string endDate = default(string)) + { + this.cf_settlement_ids = cfSettlementIds; + this.settlement_utrs = settlementUtrs; + this.start_date = startDate; + this.end_date = endDate; + } + + /// + /// List of settlement IDs for which you want the settlement reconciliation details. + /// + /// List of settlement IDs for which you want the settlement reconciliation details. + [DataMember(Name = "cf_settlement_ids", EmitDefaultValue = false)] + public List cf_settlement_ids { get; set; } + + /// + /// List of settlement UTRs for which you want the settlement reconciliation details. + /// + /// List of settlement UTRs for which you want the settlement reconciliation details. + [DataMember(Name = "settlement_utrs", EmitDefaultValue = false)] + public List settlement_utrs { get; set; } + + /// + /// Specify the start date from when you want the settlement reconciliation details. + /// + /// Specify the start date from when you want the settlement reconciliation details. + [DataMember(Name = "start_date", EmitDefaultValue = false)] + public string start_date { get; set; } + + /// + /// Specify the end date till when you want the settlement reconciliation details. + /// + /// Specify the end date till when you want the settlement reconciliation details. + [DataMember(Name = "end_date", EmitDefaultValue = false)] + public string end_date { 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 SettlementFetchReconRequestFilters {\n"); + sb.Append(" cf_settlement_ids: ").Append(cf_settlement_ids).Append("\n"); + sb.Append(" settlement_utrs: ").Append(settlement_utrs).Append("\n"); + sb.Append(" start_date: ").Append(start_date).Append("\n"); + sb.Append(" end_date: ").Append(end_date).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 SettlementFetchReconRequestFilters); + } + + /// + /// Returns true if SettlementFetchReconRequestFilters instances are equal + /// + /// Instance of SettlementFetchReconRequestFilters to be compared + /// Boolean + public bool Equals(SettlementFetchReconRequestFilters input) + { + if (input == null) + { + return false; + } + return + ( + this.cf_settlement_ids == input.cf_settlement_ids || + this.cf_settlement_ids != null && + input.cf_settlement_ids != null && + this.cf_settlement_ids.SequenceEqual(input.cf_settlement_ids) + ) && + ( + this.settlement_utrs == input.settlement_utrs || + this.settlement_utrs != null && + input.settlement_utrs != null && + this.settlement_utrs.SequenceEqual(input.settlement_utrs) + ) && + ( + this.start_date == input.start_date || + (this.start_date != null && + this.start_date.Equals(input.start_date)) + ) && + ( + this.end_date == input.end_date || + (this.end_date != null && + this.end_date.Equals(input.end_date)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.cf_settlement_ids != null) + { + hashCode = (hashCode * 59) + this.cf_settlement_ids.GetHashCode(); + } + if (this.settlement_utrs != null) + { + hashCode = (hashCode * 59) + this.settlement_utrs.GetHashCode(); + } + if (this.start_date != null) + { + hashCode = (hashCode * 59) + this.start_date.GetHashCode(); + } + if (this.end_date != null) + { + hashCode = (hashCode * 59) + this.end_date.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 eb958b0..94c68d2 100644 --- a/src/cashfree_pg/cashfree_pg.csproj +++ b/src/cashfree_pg/cashfree_pg.csproj @@ -12,7 +12,7 @@ Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. © 2023 Cashfree Payments India Private Limited com.cashfree - 3.0.2 + 3.0.5 LICENSE.md bin\$(Configuration)\$(TargetFramework)\cashfree_pg.xml https://github.com/cashfree/cashfree-pg-sdk-dotnet.git