diff --git a/cashfree_pg.sln b/cashfree_pg.sln index e0151d3..c3feb14 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", "{8D1D63AE-C14F-439B-A8D2-8F334F0F6F75}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "cashfree_pg", "src\cashfree_pg\cashfree_pg.csproj", "{55100CDD-A01C-4226-ADF4-11450E9EAC74}" 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 - {8D1D63AE-C14F-439B-A8D2-8F334F0F6F75}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {8D1D63AE-C14F-439B-A8D2-8F334F0F6F75}.Debug|Any CPU.Build.0 = Debug|Any CPU - {8D1D63AE-C14F-439B-A8D2-8F334F0F6F75}.Release|Any CPU.ActiveCfg = Release|Any CPU - {8D1D63AE-C14F-439B-A8D2-8F334F0F6F75}.Release|Any CPU.Build.0 = Release|Any CPU + {55100CDD-A01C-4226-ADF4-11450E9EAC74}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {55100CDD-A01C-4226-ADF4-11450E9EAC74}.Debug|Any CPU.Build.0 = Debug|Any CPU + {55100CDD-A01C-4226-ADF4-11450E9EAC74}.Release|Any CPU.ActiveCfg = Release|Any CPU + {55100CDD-A01C-4226-ADF4-11450E9EAC74}.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/LinkMetaResponseEntity.md b/docs/LinkMetaResponseEntity.md index e81b137..22245b7 100644 --- a/docs/LinkMetaResponseEntity.md +++ b/docs/LinkMetaResponseEntity.md @@ -6,7 +6,7 @@ Payment link meta information object Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **notify_url** | **string** | Notification URL for server-server communication. It should be an https URL. | [optional] -**upi_intent** | **bool** | If \"true\", link will directly open UPI Intent flow on mobile, and normal link flow elsewhere | [optional] +**upi_intent** | **string** | If \"true\", link will directly open UPI Intent flow on mobile, and normal link flow elsewhere | [optional] **return_url** | **string** | The URL to which user will be redirected to after the payment is done on the link. Maximum length: 250. | [optional] **payment_methods** | **string** | Allowed payment modes for this link. Pass comma-separated values among following options - \"cc\", \"dc\", \"ccc\", \"ppc\", \"nb\", \"upi\", \"paypal\", \"app\". Leave it blank to show all available payment methods | [optional] diff --git a/docs/TerminalEntity.md b/docs/TerminalEntity.md index 82de001..fc86d2f 100644 --- a/docs/TerminalEntity.md +++ b/docs/TerminalEntity.md @@ -16,7 +16,7 @@ Name | Type | Description | Notes **terminal_note** | **string** | | [optional] **terminal_phone_no** | **string** | | [optional] **terminal_status** | **string** | | [optional] -**terminal_meta** | **string** | | [optional] +**terminal_meta** | [**CreateTerminalRequestTerminalMeta**](CreateTerminalRequestTerminalMeta.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/UpdateTerminalEntity.md b/docs/UpdateTerminalEntity.md index 3fc4b3f..d5e74b9 100644 --- a/docs/UpdateTerminalEntity.md +++ b/docs/UpdateTerminalEntity.md @@ -16,7 +16,7 @@ Name | Type | Description | Notes **terminal_note** | **string** | | [optional] **terminal_phone_no** | **string** | | [optional] **terminal_status** | **string** | | [optional] -**terminal_meta** | **string** | | [optional] +**terminal_meta** | [**CreateTerminalRequestTerminalMeta**](CreateTerminalRequestTerminalMeta.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 4085797..f498f43 100644 --- a/src/cashfree_pg/Client/ApiClient.cs +++ b/src/cashfree_pg/Client/ApiClient.cs @@ -24,6 +24,7 @@ using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Security.Cryptography; +using Sentry; using Newtonsoft.Json; using Newtonsoft.Json.Serialization; using RestSharp; @@ -32,7 +33,12 @@ using Polly; using cashfree_pg.Model; +using Sentry.Extensibility; using System.Collections.Generic; +using Sentry.Integrations; +using Sentry.Internal; +using Sentry.Internal.Extensions; +using Sentry.Protocol; using System.Linq; namespace cashfree_pg.Client @@ -57,6 +63,24 @@ public PGWebhookEvent(String type, String rawBody, dynamic obj) } } + class CashfreeEventProcessor : ISentryEventProcessor + { + public SentryEvent? Process(SentryEvent @event) + { + // Add anything to the event here + // returning `null` will drop the event + List exceptionList = @event.SentryExceptions.ToList(); + if (exceptionList.Count > 0 && exceptionList[0].Stacktrace.Frames.Count > 0 && exceptionList[0].Stacktrace.Frames[0].FileName.Contains("cashfree")) + { + if(Cashfree.XEnableErrorAnalytics) { + return @event; + } + return null; + } + return null; + } + } + public class Cashfree { public static string XClientId = ""; @@ -119,7 +143,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -205,7 +246,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Post("/customers", localVarRequestOptions, config); @@ -214,7 +255,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("PGCreateCustomer", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } @@ -237,7 +281,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -324,7 +385,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Post("/easy-split/vendors/{vendor_id}/transfer", localVarRequestOptions, config); @@ -333,7 +394,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("PGESCreateOnDemandTransfer", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } @@ -355,7 +419,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -437,7 +518,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Post("/easy-split/vendors", localVarRequestOptions, config); @@ -446,7 +527,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("PGESCreateVendors", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } @@ -469,7 +553,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -559,7 +660,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Get("/easy-split/vendor-docs/{vendor_id}/download/{doc_type}", localVarRequestOptions, config); @@ -568,7 +669,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("PGESDownloadVendorsDocs", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } @@ -590,7 +694,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -675,7 +796,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Get("/easy-split/vendors/{vendor_id}", localVarRequestOptions, config); @@ -684,7 +805,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("PGESFetchVendors", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } @@ -706,7 +830,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -791,7 +932,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Get("/easy-split/vendors/{vendor_id}/balances", localVarRequestOptions, config); @@ -800,7 +941,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("PGESGetVendorBalance", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } @@ -823,7 +967,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -909,7 +1070,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Get("/easy-split/amount/{amount}/charges", localVarRequestOptions, config); @@ -918,7 +1079,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("PGESGetVendorBalanceTransferCharges", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } @@ -940,7 +1104,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -1025,7 +1206,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Get("/easy-split/vendor-docs/{vendor_id}", localVarRequestOptions, config); @@ -1034,7 +1215,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("PGESGetVendorsDocs", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } @@ -1056,7 +1240,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -1138,7 +1339,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Post("/split/order/vendor/recon", localVarRequestOptions, config); @@ -1147,7 +1348,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("PGESOrderRecon", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } @@ -1170,7 +1374,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -1257,7 +1478,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Patch("/easy-split/vendors/{vendor_id}", localVarRequestOptions, config); @@ -1266,7 +1487,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("PGESUpdateVendors", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } @@ -1291,7 +1515,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -1389,7 +1630,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Post("/easy-split/vendor-docs/{vendor_id}", localVarRequestOptions, config); @@ -1398,7 +1639,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("PGESUploadVendorsDocs", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } @@ -1421,7 +1665,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -1508,7 +1769,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Post("/easy-split/orders/{order_id}/split", localVarRequestOptions, config); @@ -1517,7 +1778,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("PGOrderSplitAfterPayment", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } @@ -1539,7 +1803,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -1621,7 +1902,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Post("/easy-split/static-split", localVarRequestOptions, config); @@ -1630,7 +1911,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("PGOrderStaticSplit", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } @@ -1652,7 +1936,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -1738,7 +2039,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Post>("/eligibility/cardlessemi", localVarRequestOptions, config); @@ -1747,7 +2048,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("PGEligibilityFetchCardlessEMI", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } @@ -1769,7 +2073,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -1855,7 +2176,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Post>("/eligibility/offers", localVarRequestOptions, config); @@ -1864,7 +2185,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("PGEligibilityFetchOffers", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } @@ -1886,7 +2210,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -1972,7 +2313,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Post>("/eligibility/paylater", localVarRequestOptions, config); @@ -1981,7 +2322,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("PGEligibilityFetchPaylater", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } @@ -2003,7 +2347,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -2089,7 +2450,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Post>("/eligibility/payment_methods", localVarRequestOptions, config); @@ -2098,7 +2459,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("PGEligibilityFetchPaymentMethods", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } @@ -2120,7 +2484,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -2206,7 +2587,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Post("/offers", localVarRequestOptions, config); @@ -2215,7 +2596,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("PGCreateOffer", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } @@ -2237,7 +2621,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -2322,7 +2723,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Get("/offers/{offer_id}", localVarRequestOptions, config); @@ -2331,7 +2732,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("PGFetchOffer", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } @@ -2353,7 +2757,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -2439,7 +2860,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Post("/orders", localVarRequestOptions, config); @@ -2448,7 +2869,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("PGCreateOrder", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } @@ -2470,7 +2894,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -2555,7 +2996,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Get("/orders/{order_id}", localVarRequestOptions, config); @@ -2564,7 +3005,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("PGFetchOrder", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } @@ -2587,7 +3031,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -2678,7 +3139,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Patch("/orders/{order_id}", localVarRequestOptions, config); @@ -2687,7 +3148,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("PGTerminateOrder", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } @@ -2711,7 +3175,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -2805,7 +3286,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Post("/recon", localVarRequestOptions, config); @@ -2814,7 +3295,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("PGFetchRecon", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } @@ -2836,7 +3320,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -2921,7 +3422,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Post("/links/{link_id}/cancel", localVarRequestOptions, config); @@ -2930,7 +3431,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("PGCancelLink", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } @@ -2952,7 +3456,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -3038,7 +3559,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Post("/links", localVarRequestOptions, config); @@ -3047,7 +3568,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("PGCreateLink", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } @@ -3069,7 +3593,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -3154,7 +3695,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Get("/links/{link_id}", localVarRequestOptions, config); @@ -3163,7 +3704,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("PGFetchLink", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } @@ -3186,7 +3730,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -3275,7 +3836,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Get>("/links/{link_id}/orders", localVarRequestOptions, config); @@ -3284,7 +3845,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("PGLinkFetchOrders", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } @@ -3307,7 +3871,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -3398,7 +3979,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Post("/orders/{order_id}/authorization", localVarRequestOptions, config); @@ -3407,7 +3988,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("PGAuthorizeOrder", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } @@ -3430,7 +4014,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -3506,7 +4107,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Post("/orders/pay/authenticate/{cf_payment_id}", localVarRequestOptions, config); @@ -3515,7 +4116,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("PGOrderAuthenticatePayment", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } @@ -3538,7 +4142,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -3628,7 +4249,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Get("/orders/{order_id}/payments/{cf_payment_id}", localVarRequestOptions, config); @@ -3637,7 +4258,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("PGOrderFetchPayment", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } @@ -3659,7 +4283,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -3744,7 +4385,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Get>("/orders/{order_id}/payments", localVarRequestOptions, config); @@ -3753,7 +4394,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("PGOrderFetchPayments", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } @@ -3775,7 +4419,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -3846,7 +4507,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Post("/orders/sessions", localVarRequestOptions, config); @@ -3855,7 +4516,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("PGPayOrder", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } @@ -3878,7 +4542,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -3969,7 +4650,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Post("/orders/{order_id}/refunds", localVarRequestOptions, config); @@ -3978,7 +4659,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("PGOrderCreateRefund", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } @@ -4001,7 +4685,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -4091,7 +4792,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Get("/orders/{order_id}/refunds/{refund_id}", localVarRequestOptions, config); @@ -4100,7 +4801,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("PGOrderFetchRefund", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } @@ -4122,7 +4826,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -4207,7 +4928,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Get>("/orders/{order_id}/refunds", localVarRequestOptions, config); @@ -4216,7 +4937,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("PGOrderFetchRefunds", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } @@ -4240,7 +4964,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -4334,7 +5075,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Post("/settlements", localVarRequestOptions, config); @@ -4343,7 +5084,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("PGFetchSettlements", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } @@ -4367,7 +5111,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -4461,7 +5222,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Post("/settlement/recon", localVarRequestOptions, config); @@ -4470,7 +5231,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("PGSettlementFetchRecon", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } @@ -4492,7 +5256,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -4574,7 +5355,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Post("/orders/settlements", localVarRequestOptions, config); @@ -4583,7 +5364,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("MarkForSettlement", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } @@ -4605,7 +5389,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -4690,7 +5491,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Get("/orders/{order_id}/settlements", localVarRequestOptions, config); @@ -4699,7 +5500,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("PGOrderFetchSettlement", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } @@ -4721,7 +5525,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -4806,7 +5627,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Get("/simulate/{simulation_id}", localVarRequestOptions, config); @@ -4815,7 +5636,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("PGFetchSimulation", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } @@ -4837,7 +5661,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -4923,7 +5764,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Post("/simulate", localVarRequestOptions, config); @@ -4932,7 +5773,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("PGSimulatePayment", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } @@ -4954,7 +5798,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -5040,7 +5901,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Post("/terminal", localVarRequestOptions, config); @@ -5049,7 +5910,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("SposCreateTerminal", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } @@ -5071,7 +5935,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -5157,7 +6038,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Post("/terminal/transactions", localVarRequestOptions, config); @@ -5166,7 +6047,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("SposCreateTerminalTransaction", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } @@ -5188,7 +6072,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -5273,7 +6174,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Get("/terminal/{terminal_phone_no}", localVarRequestOptions, config); @@ -5282,7 +6183,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("SposFetchTerminal", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } @@ -5305,7 +6209,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -5395,7 +6316,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Get>("/terminal/qrcodes", localVarRequestOptions, config); @@ -5404,7 +6325,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("SposFetchTerminalQRCodes", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } @@ -5427,7 +6351,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -5517,7 +6458,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Get("/terminal/{cf_terminal_id}/payments", localVarRequestOptions, config); @@ -5526,7 +6467,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("SposFetchTerminalTransaction", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } @@ -5549,7 +6493,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -5640,7 +6601,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Patch>("/terminal/{cf_terminal_id}", localVarRequestOptions, config); @@ -5649,7 +6610,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("SposUpdateTerminal", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } @@ -5672,7 +6636,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -5763,7 +6744,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Patch>("/terminal/{cf_terminal_id}/status", localVarRequestOptions, config); @@ -5772,7 +6753,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("SposUpdateTerminalStatus", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } @@ -5795,7 +6779,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -5886,7 +6887,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Post>("/terminal/{cf_terminal_id}/docs", localVarRequestOptions, config); @@ -5895,7 +6896,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("SposUploadTerminalDocs", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } @@ -5917,7 +6921,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -6003,7 +7024,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Post("/subscriptions/pay", localVarRequestOptions, config); @@ -6012,7 +7033,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("SubsCreatePayment", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } @@ -6034,7 +7058,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -6120,7 +7161,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Post("/plans", localVarRequestOptions, config); @@ -6129,7 +7170,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("SubsCreatePlan", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } @@ -6152,7 +7196,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -6243,7 +7304,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Post("/subscriptions/{subscription_id}/refunds", localVarRequestOptions, config); @@ -6252,7 +7313,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("SubsCreateRefund", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } @@ -6274,7 +7338,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -6360,7 +7441,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Post("/subscriptions", localVarRequestOptions, config); @@ -6369,7 +7450,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("SubsCreateSubscription", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } @@ -6391,7 +7475,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -6476,7 +7577,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Get("/plans/{plan_id}", localVarRequestOptions, config); @@ -6485,7 +7586,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("SubsFetchPlan", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } @@ -6507,7 +7611,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -6592,7 +7713,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Get("/subscriptions/{subscription_id}", localVarRequestOptions, config); @@ -6601,7 +7722,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("SubsFetchSubscription", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } @@ -6624,7 +7748,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -6714,7 +7855,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Get("/subscriptions/{subscription_id}/payments/{payment_id}", localVarRequestOptions, config); @@ -6723,7 +7864,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("SubsFetchSubscriptionPayment", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } @@ -6745,7 +7889,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -6830,7 +7991,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Get>("/subscriptions/{subscription_id}/payments", localVarRequestOptions, config); @@ -6839,7 +8000,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("SubsFetchSubscriptionPayments", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } @@ -6862,7 +8026,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -6952,7 +8133,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Get("/subscriptions/{subscription_id}/refunds/{refund_id}", localVarRequestOptions, config); @@ -6961,7 +8142,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("SubsFetchSubscriptionRefund", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } @@ -6984,7 +8168,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -7075,7 +8276,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Post("/subscriptions/{subscription_id}/manage", localVarRequestOptions, config); @@ -7084,7 +8285,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("SubsManageSubscription", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } @@ -7108,7 +8312,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -7204,7 +8425,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Post("/subscriptions/{subscription_id}/payments/{payment_id}/manage", localVarRequestOptions, config); @@ -7213,7 +8434,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("SubsManageSubscriptionPayment", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } @@ -7238,7 +8462,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -7339,7 +8580,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Post("/subscriptions/pay/documents/{payment_id}", localVarRequestOptions, config); @@ -7348,7 +8589,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("SubscriptionDocumentUpload", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } @@ -7370,7 +8614,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -7456,7 +8717,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Post("/subscriptions/eligibility/payment_methods", localVarRequestOptions, config); @@ -7465,7 +8726,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("SubscriptionEligibility", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } @@ -7488,7 +8752,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -7578,7 +8859,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Delete("/customers/{customer_id}/instruments/{instrument_id}", localVarRequestOptions, config); @@ -7587,7 +8868,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("PGCustomerDeleteInstrument", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } @@ -7610,7 +8894,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -7700,7 +9001,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Get("/customers/{customer_id}/instruments/{instrument_id}", localVarRequestOptions, config); @@ -7709,7 +9010,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("PGCustomerFetchInstrument", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } @@ -7732,7 +9036,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -7822,7 +9143,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Get>("/customers/{customer_id}/instruments", localVarRequestOptions, config); @@ -7831,7 +9152,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("PGCustomerFetchInstruments", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } @@ -7854,7 +9178,24 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, if(Cashfree.XEnvironment == CFEnvironment.PRODUCTION) { env = "production"; } - + if(Cashfree.XEnableErrorAnalytics) { + using (SentrySdk.Init(o => + { + o.Dsn = "https://7674ee5291124b76894cb90a9ac6a33b@o330525.ingest.sentry.io/4505164135464960"; + // When configuring for the first time, to see what the SDK is doing: + o.Debug = true; + // Set traces_sample_rate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + o.TracesSampleRate = 1.0; + // Enable Global Mode if running in a client app + o.IsGlobalModeEnabled = false; + o.EnableTracing = true; + o.AttachStacktrace = true; + o.Environment = env; + o.Release = "4.3.3"; + o.AddEventProcessor(new CashfreeEventProcessor()); + })); + } var config = new Configuration(); if(configuration != null) { config = configuration; @@ -7944,7 +9285,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.5"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.3.3"); // make the HTTP request var localVarResponse = this.Client.Get("/customers/{customer_id}/instruments/{instrument_id}/cryptogram", localVarRequestOptions, config); @@ -7953,7 +9294,10 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, { Exception _exception = this.ExceptionFactory("PGCustomerInstrumentsFetchCryptogram", localVarResponse); if (_exception != null) { - + if(Cashfree.XEnableErrorAnalytics) { + var sentryEvent = new SentryEvent(_exception); + SentrySdk.CaptureEvent(sentryEvent); + } throw _exception; } } diff --git a/src/cashfree_pg/Client/Configuration.cs b/src/cashfree_pg/Client/Configuration.cs index 32049ca..5d22ae5 100644 --- a/src/cashfree_pg/Client/Configuration.cs +++ b/src/cashfree_pg/Client/Configuration.cs @@ -34,7 +34,7 @@ public class Configuration : IReadableConfiguration /// Version of the package. /// /// Version of the package. - public const string Version = "4.2.5"; + public const string Version = "4.3.3"; /// /// Identifier for ISO 8601 DateTime Format @@ -113,7 +113,7 @@ public class Configuration : IReadableConfiguration public Configuration() { Proxy = null; - UserAgent = WebUtility.UrlEncode("OpenAPI-Generator/4.2.5/csharp"); + UserAgent = WebUtility.UrlEncode("OpenAPI-Generator/4.3.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: 2023-08-01\n"; - report += " SDK Package Version: 4.2.5\n"; + report += " SDK Package Version: 4.3.3\n"; return report; } diff --git a/src/cashfree_pg/Model/LinkMetaResponseEntity.cs b/src/cashfree_pg/Model/LinkMetaResponseEntity.cs index f8d4eca..e57d948 100644 --- a/src/cashfree_pg/Model/LinkMetaResponseEntity.cs +++ b/src/cashfree_pg/Model/LinkMetaResponseEntity.cs @@ -39,7 +39,7 @@ public class LinkMetaResponseEntity : IEquatable, IValid /// If \"true\", link will directly open UPI Intent flow on mobile, and normal link flow elsewhere. /// The URL to which user will be redirected to after the payment is done on the link. Maximum length: 250.. /// Allowed payment modes for this link. Pass comma-separated values among following options - \"cc\", \"dc\", \"ccc\", \"ppc\", \"nb\", \"upi\", \"paypal\", \"app\". Leave it blank to show all available payment methods. - public LinkMetaResponseEntity(string? notifyUrl = default(string?), bool? upiIntent = default(bool?), string? returnUrl = default(string?), string? paymentMethods = default(string?)) + public LinkMetaResponseEntity(string? notifyUrl = default(string?), string? upiIntent = default(string?), string? returnUrl = default(string?), string? paymentMethods = default(string?)) { this.notify_url = notifyUrl; this.upi_intent = upiIntent; @@ -58,8 +58,8 @@ public class LinkMetaResponseEntity : IEquatable, IValid /// If \"true\", link will directly open UPI Intent flow on mobile, and normal link flow elsewhere /// /// If \"true\", link will directly open UPI Intent flow on mobile, and normal link flow elsewhere - [DataMember(Name = "upi_intent", EmitDefaultValue = true)] - public bool? upi_intent { get; set; } + [DataMember(Name = "upi_intent", EmitDefaultValue = false)] + public string? upi_intent { get; set; } /// /// The URL to which user will be redirected to after the payment is done on the link. Maximum length: 250. @@ -129,7 +129,8 @@ public bool Equals(LinkMetaResponseEntity input) ) && ( this.upi_intent == input.upi_intent || - this.upi_intent.Equals(input.upi_intent) + (this.upi_intent != null && + this.upi_intent.Equals(input.upi_intent)) ) && ( this.return_url == input.return_url || @@ -164,7 +165,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.notify_url.GetHashCode(); } - hashCode = (hashCode * 59) + this.upi_intent.GetHashCode(); + if (this.upi_intent != null) + { + hashCode = (hashCode * 59) + this.upi_intent.GetHashCode(); + } if (this.return_url != null) { hashCode = (hashCode * 59) + this.return_url.GetHashCode(); diff --git a/src/cashfree_pg/Model/RefundEntity.cs b/src/cashfree_pg/Model/RefundEntity.cs index db741d7..fccbda6 100644 --- a/src/cashfree_pg/Model/RefundEntity.cs +++ b/src/cashfree_pg/Model/RefundEntity.cs @@ -126,33 +126,6 @@ public enum RefundTypeEnum [DataMember(Name = "refund_type", EmitDefaultValue = false)] public RefundTypeEnum? refund_type { get; set; } /// - /// Method or speed of processing refund - /// - /// Method or speed of processing refund - [JsonConverter(typeof(StringEnumConverter))] - public enum RefundModeEnum - { - /// - /// Enum STANDARD for value: STANDARD - /// - [EnumMember(Value = "STANDARD")] - STANDARD = 1, - - /// - /// Enum INSTANT for value: INSTANT - /// - [EnumMember(Value = "INSTANT")] - INSTANT = 2 - } - - - /// - /// Method or speed of processing refund - /// - /// Method or speed of processing refund - [DataMember(Name = "refund_mode", EmitDefaultValue = false)] - public RefundModeEnum? refund_mode { get; set; } - /// /// Initializes a new instance of the class. /// /// Cashfree Payments ID of the payment for which refund is initiated. @@ -174,7 +147,7 @@ public enum RefundModeEnum /// Time of refund creation. /// Time when refund was processed successfully. /// refundSpeed. - public RefundEntity(string? cfPaymentId = default(string?), string? cfRefundId = default(string?), string? orderId = default(string?), string? refundId = default(string?), EntityEnum? entity = default(EntityEnum?), decimal? refundAmount = default(decimal?), string? refundCurrency = default(string?), string? refundNote = default(string?), RefundStatusEnum? refundStatus = default(RefundStatusEnum?), string? refundArn = default(string?), decimal? refundCharge = default(decimal?), string? statusDescription = default(string?), Object? metadata = default(Object?), List? refundSplits = default(List?), RefundTypeEnum? refundType = default(RefundTypeEnum?), RefundModeEnum? refundMode = default(RefundModeEnum?), string? createdAt = default(string?), string? processedAt = default(string?), RefundSpeed? refundSpeed = default(RefundSpeed?)) + public RefundEntity(string? cfPaymentId = default(string?), string? cfRefundId = default(string?), string? orderId = default(string?), string? refundId = default(string?), EntityEnum? entity = default(EntityEnum?), decimal? refundAmount = default(decimal?), string? refundCurrency = default(string?), string? refundNote = default(string?), RefundStatusEnum? refundStatus = default(RefundStatusEnum?), string? refundArn = default(string?), decimal? refundCharge = default(decimal?), string? statusDescription = default(string?), Object? metadata = default(Object?), List? refundSplits = default(List?), RefundTypeEnum? refundType = default(RefundTypeEnum?), string? refundMode = default(string?), string? createdAt = default(string?), string? processedAt = default(string?), RefundSpeed? refundSpeed = default(RefundSpeed?)) { this.cf_payment_id = cfPaymentId; this.cf_refund_id = cfRefundId; @@ -280,6 +253,13 @@ public enum RefundModeEnum [DataMember(Name = "refund_splits", EmitDefaultValue = false)] public List? refund_splits { get; set; } + /// + /// Method or speed of processing refund + /// + /// Method or speed of processing refund + [DataMember(Name = "refund_mode", EmitDefaultValue = false)] + public string? refund_mode { get; set; } + /// /// Time of refund creation /// @@ -435,7 +415,8 @@ public bool Equals(RefundEntity input) ) && ( this.refund_mode == input.refund_mode || - this.refund_mode.Equals(input.refund_mode) + (this.refund_mode != null && + this.refund_mode.Equals(input.refund_mode)) ) && ( this.created_at == input.created_at || @@ -516,7 +497,10 @@ public override int GetHashCode() hashCode = (hashCode * 59) + this.refund_splits.GetHashCode(); } hashCode = (hashCode * 59) + this.refund_type.GetHashCode(); - hashCode = (hashCode * 59) + this.refund_mode.GetHashCode(); + if (this.refund_mode != null) + { + hashCode = (hashCode * 59) + this.refund_mode.GetHashCode(); + } if (this.created_at != null) { hashCode = (hashCode * 59) + this.created_at.GetHashCode(); diff --git a/src/cashfree_pg/Model/TerminalEntity.cs b/src/cashfree_pg/Model/TerminalEntity.cs index 2d31ae7..0675f10 100644 --- a/src/cashfree_pg/Model/TerminalEntity.cs +++ b/src/cashfree_pg/Model/TerminalEntity.cs @@ -47,7 +47,7 @@ public class TerminalEntity : IEquatable, IValidatableObject /// terminalPhoneNo. /// terminalStatus. /// terminalMeta. - public TerminalEntity(string? addedOn = default(string?), int? cfTerminalId = default(int?), string? lastUpdatedOn = default(string?), string? terminalAddress = default(string?), string? terminalEmail = default(string?), string? terminalType = default(string?), string? teminalId = default(string?), string? terminalName = default(string?), string? terminalNote = default(string?), string? terminalPhoneNo = default(string?), string? terminalStatus = default(string?), string? terminalMeta = default(string?)) + public TerminalEntity(string? addedOn = default(string?), int? cfTerminalId = default(int?), string? lastUpdatedOn = default(string?), string? terminalAddress = default(string?), string? terminalEmail = default(string?), string? terminalType = default(string?), string? teminalId = default(string?), string? terminalName = default(string?), string? terminalNote = default(string?), string? terminalPhoneNo = default(string?), string? terminalStatus = default(string?), CreateTerminalRequestTerminalMeta? terminalMeta = default(CreateTerminalRequestTerminalMeta?)) { this.added_on = addedOn; this.cf_terminal_id = cfTerminalId; @@ -133,7 +133,7 @@ public class TerminalEntity : IEquatable, IValidatableObject /// Gets or Sets terminal_meta /// [DataMember(Name = "terminal_meta", EmitDefaultValue = false)] - public string? terminal_meta { get; set; } + public CreateTerminalRequestTerminalMeta? terminal_meta { get; set; } /// /// Returns the string presentation of the object diff --git a/src/cashfree_pg/Model/UpdateTerminalEntity.cs b/src/cashfree_pg/Model/UpdateTerminalEntity.cs index 0f6a143..c191218 100644 --- a/src/cashfree_pg/Model/UpdateTerminalEntity.cs +++ b/src/cashfree_pg/Model/UpdateTerminalEntity.cs @@ -47,7 +47,7 @@ public class UpdateTerminalEntity : IEquatable, IValidatab /// terminalPhoneNo. /// terminalStatus. /// terminalMeta. - public UpdateTerminalEntity(string? addedOn = default(string?), int? cfTerminalId = default(int?), string? lastUpdatedOn = default(string?), string? terminalAddress = default(string?), string? terminalEmail = default(string?), string? terminalType = default(string?), string? teminalId = default(string?), string? terminalName = default(string?), string? terminalNote = default(string?), string? terminalPhoneNo = default(string?), string? terminalStatus = default(string?), string? terminalMeta = default(string?)) + public UpdateTerminalEntity(string? addedOn = default(string?), int? cfTerminalId = default(int?), string? lastUpdatedOn = default(string?), string? terminalAddress = default(string?), string? terminalEmail = default(string?), string? terminalType = default(string?), string? teminalId = default(string?), string? terminalName = default(string?), string? terminalNote = default(string?), string? terminalPhoneNo = default(string?), string? terminalStatus = default(string?), CreateTerminalRequestTerminalMeta? terminalMeta = default(CreateTerminalRequestTerminalMeta?)) { this.added_on = addedOn; this.cf_terminal_id = cfTerminalId; @@ -133,7 +133,7 @@ public class UpdateTerminalEntity : IEquatable, IValidatab /// Gets or Sets terminal_meta /// [DataMember(Name = "terminal_meta", EmitDefaultValue = false)] - public string? terminal_meta { get; set; } + public CreateTerminalRequestTerminalMeta? terminal_meta { get; set; } /// /// Returns the string presentation of the object diff --git a/src/cashfree_pg/cashfree_pg.csproj b/src/cashfree_pg/cashfree_pg.csproj index 3ad8a48..2f9a936 100644 --- a/src/cashfree_pg/cashfree_pg.csproj +++ b/src/cashfree_pg/cashfree_pg.csproj @@ -12,7 +12,7 @@ Cashfree's Payment Gateway APIs provide developers with a streamlined pathway to integrate advanced payment processing capabilities into their applications, platforms and websites. © 2023 Cashfree Payments India Private Limited com.cashfree - 4.2.5 + 4.3.3 LICENSE.md bin\$(Configuration)\$(TargetFramework)\cashfree_pg.xml https://github.com/cashfree/cashfree-pg-sdk-dotnet.git @@ -26,6 +26,7 @@ +