From 9907c58ec25d29a1105b9edc5e7f8b1c1c10ca66 Mon Sep 17 00:00:00 2001 From: bitbucket-pipelines Date: Wed, 10 Jan 2024 12:29:50 +0000 Subject: [PATCH] Generating .Net SDK. --- .openapi-generator/FILES | 6 +- cashfree_pg.sln | 10 +- docs/RefundWebhook.md | 2 +- docs/RefundWebhookDataEntity.md | 11 ++ src/cashfree_pg/Client/ApiClient.cs | 128 ++++++++--------- src/cashfree_pg/Client/Configuration.cs | 6 +- src/cashfree_pg/Model/RefundWebhook.cs | 4 +- .../Model/RefundWebhookDataEntity.cs | 129 ++++++++++++++++++ src/cashfree_pg/cashfree_pg.csproj | 4 +- 9 files changed, 220 insertions(+), 80 deletions(-) create mode 100644 docs/RefundWebhookDataEntity.md create mode 100644 src/cashfree_pg/Model/RefundWebhookDataEntity.cs diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 6cd831a..e52f909 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -115,7 +115,6 @@ docs/PaymentURLObject.md docs/PaymentWebhook.md docs/PaymentWebhookCustomerEntity.md docs/PaymentWebhookDataEntity.md -docs/PaymentWebhookDataEntity1.md docs/PaymentWebhookErrorEntity.md docs/PaymentWebhookGatewayDetailsEntity.md docs/PaymentWebhookOrderEntity.md @@ -127,6 +126,7 @@ docs/RefundEntity.md docs/RefundSpeed.md docs/RefundURLObject.md docs/RefundWebhook.md +docs/RefundWebhookDataEntity.md docs/RefundsApi.md docs/SavedInstrumentMeta.md docs/SettlementEntity.md @@ -265,7 +265,6 @@ src/cashfree_pg.Test/Model/PaymentMethodsQueriesTests.cs src/cashfree_pg.Test/Model/PaymentModeDetailsTests.cs src/cashfree_pg.Test/Model/PaymentURLObjectTests.cs src/cashfree_pg.Test/Model/PaymentWebhookCustomerEntityTests.cs -src/cashfree_pg.Test/Model/PaymentWebhookDataEntity1Tests.cs src/cashfree_pg.Test/Model/PaymentWebhookDataEntityTests.cs src/cashfree_pg.Test/Model/PaymentWebhookErrorEntityTests.cs src/cashfree_pg.Test/Model/PaymentWebhookGatewayDetailsEntityTests.cs @@ -277,6 +276,7 @@ src/cashfree_pg.Test/Model/ReconEntityTests.cs src/cashfree_pg.Test/Model/RefundEntityTests.cs src/cashfree_pg.Test/Model/RefundSpeedTests.cs src/cashfree_pg.Test/Model/RefundURLObjectTests.cs +src/cashfree_pg.Test/Model/RefundWebhookDataEntityTests.cs src/cashfree_pg.Test/Model/RefundWebhookTests.cs src/cashfree_pg.Test/Model/SavedInstrumentMetaTests.cs src/cashfree_pg.Test/Model/SettlementEntityTests.cs @@ -430,7 +430,6 @@ src/cashfree_pg/Model/PaymentURLObject.cs src/cashfree_pg/Model/PaymentWebhook.cs src/cashfree_pg/Model/PaymentWebhookCustomerEntity.cs src/cashfree_pg/Model/PaymentWebhookDataEntity.cs -src/cashfree_pg/Model/PaymentWebhookDataEntity1.cs src/cashfree_pg/Model/PaymentWebhookErrorEntity.cs src/cashfree_pg/Model/PaymentWebhookGatewayDetailsEntity.cs src/cashfree_pg/Model/PaymentWebhookOrderEntity.cs @@ -441,6 +440,7 @@ src/cashfree_pg/Model/RefundEntity.cs src/cashfree_pg/Model/RefundSpeed.cs src/cashfree_pg/Model/RefundURLObject.cs src/cashfree_pg/Model/RefundWebhook.cs +src/cashfree_pg/Model/RefundWebhookDataEntity.cs src/cashfree_pg/Model/SavedInstrumentMeta.cs src/cashfree_pg/Model/SettlementEntity.cs src/cashfree_pg/Model/SettlementFetchReconRequest.cs diff --git a/cashfree_pg.sln b/cashfree_pg.sln index 38cd2f7..71359dd 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", "{5DA77EF1-6894-4A47-A8C6-6D636BFD600A}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "cashfree_pg", "src\cashfree_pg\cashfree_pg.csproj", "{FCA6AA72-CADD-4448-BFEF-F24B852C98AF}" 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 - {5DA77EF1-6894-4A47-A8C6-6D636BFD600A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {5DA77EF1-6894-4A47-A8C6-6D636BFD600A}.Debug|Any CPU.Build.0 = Debug|Any CPU - {5DA77EF1-6894-4A47-A8C6-6D636BFD600A}.Release|Any CPU.ActiveCfg = Release|Any CPU - {5DA77EF1-6894-4A47-A8C6-6D636BFD600A}.Release|Any CPU.Build.0 = Release|Any CPU + {FCA6AA72-CADD-4448-BFEF-F24B852C98AF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {FCA6AA72-CADD-4448-BFEF-F24B852C98AF}.Debug|Any CPU.Build.0 = Debug|Any CPU + {FCA6AA72-CADD-4448-BFEF-F24B852C98AF}.Release|Any CPU.ActiveCfg = Release|Any CPU + {FCA6AA72-CADD-4448-BFEF-F24B852C98AF}.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/RefundWebhook.md b/docs/RefundWebhook.md index 283e91a..9a45bfd 100644 --- a/docs/RefundWebhook.md +++ b/docs/RefundWebhook.md @@ -5,7 +5,7 @@ refund webhook object Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**data** | [**PaymentWebhookDataEntity1**](PaymentWebhookDataEntity1.md) | | [optional] +**data** | [**RefundWebhookDataEntity**](RefundWebhookDataEntity.md) | | [optional] **event_time** | **string** | | [optional] **type** | **string** | | [optional] diff --git a/docs/RefundWebhookDataEntity.md b/docs/RefundWebhookDataEntity.md new file mode 100644 index 0000000..9e100c9 --- /dev/null +++ b/docs/RefundWebhookDataEntity.md @@ -0,0 +1,11 @@ +# cashfree_pg.Model.RefundWebhookDataEntity +data entity in webhook + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**refund** | [**RefundEntity**](RefundEntity.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/cashfree_pg/Client/ApiClient.cs b/src/cashfree_pg/Client/ApiClient.cs index 03a7fb5..ea54cef 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 = "3.1.1"; + o.Release = "3.1.3"; 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-3.1.1"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.3"); // make the HTTP request var localVarResponse = this.Client.Post>("/eligibility/cardlessemi", localVarRequestOptions, config); @@ -294,7 +294,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "3.1.1"; + o.Release = "3.1.3"; 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-3.1.1"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.3"); // make the HTTP request var localVarResponse = this.Client.Post>("/eligibility/offers", localVarRequestOptions, config); @@ -431,7 +431,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "3.1.1"; + o.Release = "3.1.3"; 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-3.1.1"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.3"); // make the HTTP request var localVarResponse = this.Client.Post>("/eligibility/paylater", localVarRequestOptions, config); @@ -568,7 +568,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "3.1.1"; + o.Release = "3.1.3"; 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-3.1.1"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.3"); // make the HTTP request var localVarResponse = this.Client.Post>("/eligibility/payment_methods", localVarRequestOptions, config); @@ -705,7 +705,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "3.1.1"; + o.Release = "3.1.3"; 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-3.1.1"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.3"); // make the HTTP request var localVarResponse = this.Client.Post("/offers", localVarRequestOptions, config); @@ -842,7 +842,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "3.1.1"; + o.Release = "3.1.3"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -930,7 +930,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.1"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.3"); // make the HTTP request var localVarResponse = this.Client.Get("/offers/{offer_id}", localVarRequestOptions, config); @@ -978,7 +978,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "3.1.1"; + o.Release = "3.1.3"; 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-3.1.1"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.3"); // make the HTTP request var localVarResponse = this.Client.Post("/orders", localVarRequestOptions, config); @@ -1115,7 +1115,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "3.1.1"; + o.Release = "3.1.3"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -1203,7 +1203,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.1"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.3"); // make the HTTP request var localVarResponse = this.Client.Get("/orders/{order_id}", localVarRequestOptions, config); @@ -1253,7 +1253,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "3.1.1"; + o.Release = "3.1.3"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -1350,7 +1350,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.1"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.3"); // make the HTTP request var localVarResponse = this.Client.Post("/recon", localVarRequestOptions, config); @@ -1398,7 +1398,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "3.1.1"; + o.Release = "3.1.3"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -1486,7 +1486,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.1"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.3"); // make the HTTP request var localVarResponse = this.Client.Post("/links/{link_id}/cancel", localVarRequestOptions, config); @@ -1534,7 +1534,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "3.1.1"; + o.Release = "3.1.3"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -1623,7 +1623,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.1"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.3"); // make the HTTP request var localVarResponse = this.Client.Post("/links", localVarRequestOptions, config); @@ -1671,7 +1671,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "3.1.1"; + o.Release = "3.1.3"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -1759,7 +1759,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.1"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.3"); // make the HTTP request var localVarResponse = this.Client.Get("/links/{link_id}", localVarRequestOptions, config); @@ -1807,7 +1807,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "3.1.1"; + o.Release = "3.1.3"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -1895,7 +1895,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.1"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.3"); // make the HTTP request var localVarResponse = this.Client.Get>("/links/{link_id}/orders", localVarRequestOptions, config); @@ -1944,7 +1944,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "3.1.1"; + o.Release = "3.1.3"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -2038,7 +2038,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.1"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.3"); // make the HTTP request var localVarResponse = this.Client.Post("/orders/{order_id}/authorization", localVarRequestOptions, config); @@ -2087,7 +2087,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "3.1.1"; + o.Release = "3.1.3"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -2166,7 +2166,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.1"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.3"); // make the HTTP request var localVarResponse = this.Client.Post("/orders/pay/authenticate/{cf_payment_id}", localVarRequestOptions, config); @@ -2215,7 +2215,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "3.1.1"; + o.Release = "3.1.3"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -2308,7 +2308,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.1"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.3"); // make the HTTP request var localVarResponse = this.Client.Get("/orders/{order_id}/payments/{cf_payment_id}", localVarRequestOptions, config); @@ -2356,7 +2356,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "3.1.1"; + o.Release = "3.1.3"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -2444,7 +2444,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.1"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.3"); // make the HTTP request var localVarResponse = this.Client.Get>("/orders/{order_id}/payments", localVarRequestOptions, config); @@ -2492,7 +2492,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "3.1.1"; + o.Release = "3.1.3"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -2566,7 +2566,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.1"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.3"); // make the HTTP request var localVarResponse = this.Client.Post("/orders/sessions", localVarRequestOptions, config); @@ -2615,7 +2615,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "3.1.1"; + o.Release = "3.1.3"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -2709,7 +2709,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.1"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.3"); // make the HTTP request var localVarResponse = this.Client.Post("/orders/{order_id}/refunds", localVarRequestOptions, config); @@ -2758,7 +2758,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "3.1.1"; + o.Release = "3.1.3"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -2851,7 +2851,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.1"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.3"); // make the HTTP request var localVarResponse = this.Client.Get("/orders/{order_id}/refunds/{refund_id}", localVarRequestOptions, config); @@ -2899,7 +2899,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "3.1.1"; + o.Release = "3.1.3"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -2987,7 +2987,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.1"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.3"); // make the HTTP request var localVarResponse = this.Client.Get>("/orders/{order_id}/refunds", localVarRequestOptions, config); @@ -3037,7 +3037,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "3.1.1"; + o.Release = "3.1.3"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -3134,7 +3134,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.1"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.3"); // make the HTTP request var localVarResponse = this.Client.Post("/settlements", localVarRequestOptions, config); @@ -3184,7 +3184,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "3.1.1"; + o.Release = "3.1.3"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -3281,7 +3281,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.1"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.3"); // make the HTTP request var localVarResponse = this.Client.Post("/settlement/recon", localVarRequestOptions, config); @@ -3329,7 +3329,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "3.1.1"; + o.Release = "3.1.3"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -3417,7 +3417,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.1"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.3"); // make the HTTP request var localVarResponse = this.Client.Get("/orders/{order_id}/settlements", localVarRequestOptions, config); @@ -3465,7 +3465,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "3.1.1"; + o.Release = "3.1.3"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -3554,7 +3554,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.1"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.3"); // make the HTTP request var localVarResponse = this.Client.Post("/terminal", localVarRequestOptions, config); @@ -3602,7 +3602,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "3.1.1"; + o.Release = "3.1.3"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -3691,7 +3691,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.1"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.3"); // make the HTTP request var localVarResponse = this.Client.Post("/terminal/transactions", localVarRequestOptions, config); @@ -3739,7 +3739,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "3.1.1"; + o.Release = "3.1.3"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -3827,7 +3827,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.1"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.3"); // make the HTTP request var localVarResponse = this.Client.Get("/terminal/{terminal_phone_no}", localVarRequestOptions, config); @@ -3876,7 +3876,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "3.1.1"; + o.Release = "3.1.3"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -3969,7 +3969,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.1"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.3"); // make the HTTP request var localVarResponse = this.Client.Get>("/terminal/qrcodes", localVarRequestOptions, config); @@ -4018,7 +4018,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "3.1.1"; + o.Release = "3.1.3"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -4111,7 +4111,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.1"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.3"); // make the HTTP request var localVarResponse = this.Client.Delete("/customers/{customer_id}/instruments/{instrument_id}", localVarRequestOptions, config); @@ -4160,7 +4160,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "3.1.1"; + o.Release = "3.1.3"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -4253,7 +4253,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.1"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.3"); // make the HTTP request var localVarResponse = this.Client.Get("/customers/{customer_id}/instruments/{instrument_id}", localVarRequestOptions, config); @@ -4302,7 +4302,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "3.1.1"; + o.Release = "3.1.3"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -4395,7 +4395,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.1"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.3"); // make the HTTP request var localVarResponse = this.Client.Get>("/customers/{customer_id}/instruments", localVarRequestOptions, config); @@ -4444,7 +4444,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, o.EnableTracing = true; o.AttachStacktrace = true; o.Environment = env; - o.Release = "3.1.1"; + o.Release = "3.1.3"; o.AddEventProcessor(new CashfreeEventProcessor()); })); } @@ -4537,7 +4537,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.1"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-3.1.3"); // 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 4713b00..02c47fe 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.1.1"; + public const string Version = "3.1.3"; /// /// Identifier for ISO 8601 DateTime Format @@ -113,7 +113,7 @@ public class Configuration : IReadableConfiguration public Configuration() { Proxy = null; - UserAgent = WebUtility.UrlEncode("OpenAPI-Generator/3.1.1/csharp"); + UserAgent = WebUtility.UrlEncode("OpenAPI-Generator/3.1.3/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.1.1\n"; + report += " SDK Package Version: 3.1.3\n"; return report; } diff --git a/src/cashfree_pg/Model/RefundWebhook.cs b/src/cashfree_pg/Model/RefundWebhook.cs index b435edf..8df78c9 100644 --- a/src/cashfree_pg/Model/RefundWebhook.cs +++ b/src/cashfree_pg/Model/RefundWebhook.cs @@ -38,7 +38,7 @@ public class RefundWebhook : IEquatable, IValidatableObject /// data. /// eventTime. /// type. - public RefundWebhook(PaymentWebhookDataEntity1 data = default(PaymentWebhookDataEntity1), string eventTime = default(string), string type = default(string)) + public RefundWebhook(RefundWebhookDataEntity data = default(RefundWebhookDataEntity), string eventTime = default(string), string type = default(string)) { this.data = data; this.event_time = eventTime; @@ -49,7 +49,7 @@ public class RefundWebhook : IEquatable, IValidatableObject /// Gets or Sets data /// [DataMember(Name = "data", EmitDefaultValue = false)] - public PaymentWebhookDataEntity1 data { get; set; } + public RefundWebhookDataEntity data { get; set; } /// /// Gets or Sets event_time diff --git a/src/cashfree_pg/Model/RefundWebhookDataEntity.cs b/src/cashfree_pg/Model/RefundWebhookDataEntity.cs new file mode 100644 index 0000000..b2795ed --- /dev/null +++ b/src/cashfree_pg/Model/RefundWebhookDataEntity.cs @@ -0,0 +1,129 @@ +/* + * 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 +{ + /// + /// data entity in webhook + /// + [DataContract(Name = "RefundWebhookDataEntity")] + public class RefundWebhookDataEntity : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// refund. + public RefundWebhookDataEntity(RefundEntity refund = default(RefundEntity)) + { + this.refund = refund; + } + + /// + /// Gets or Sets refund + /// + [DataMember(Name = "refund", EmitDefaultValue = false)] + public RefundEntity refund { 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 RefundWebhookDataEntity {\n"); + sb.Append(" refund: ").Append(refund).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 RefundWebhookDataEntity); + } + + /// + /// Returns true if RefundWebhookDataEntity instances are equal + /// + /// Instance of RefundWebhookDataEntity to be compared + /// Boolean + public bool Equals(RefundWebhookDataEntity input) + { + if (input == null) + { + return false; + } + return + ( + this.refund == input.refund || + (this.refund != null && + this.refund.Equals(input.refund)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.refund != null) + { + hashCode = (hashCode * 59) + this.refund.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 cebb695..80fe6a1 100644 --- a/src/cashfree_pg/cashfree_pg.csproj +++ b/src/cashfree_pg/cashfree_pg.csproj @@ -12,7 +12,7 @@ Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. © 2023 Cashfree Payments India Private Limited com.cashfree - 3.1.1 + 3.1.3 LICENSE.md bin\$(Configuration)\$(TargetFramework)\cashfree_pg.xml https://github.com/cashfree/cashfree-pg-sdk-dotnet.git @@ -27,11 +27,11 @@ + -