diff --git a/src/cashfree_pg/Client/ApiClient.cs b/src/cashfree_pg/Client/ApiClient.cs index 18c8315..1e287a1 100644 --- a/src/cashfree_pg/Client/ApiClient.cs +++ b/src/cashfree_pg/Client/ApiClient.cs @@ -24,7 +24,6 @@ using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Security.Cryptography; -using Sentry; using Newtonsoft.Json; using Newtonsoft.Json.Serialization; using RestSharp; @@ -33,12 +32,7 @@ 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 @@ -63,24 +57,6 @@ 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 = ""; @@ -143,24 +119,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -246,7 +205,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.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Post("/customers", localVarRequestOptions, config); @@ -255,10 +214,7 @@ 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; } } @@ -281,24 +237,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -385,7 +324,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.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Post("/easy-split/vendors/{vendor_id}/transfer", localVarRequestOptions, config); @@ -394,10 +333,7 @@ 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; } } @@ -419,24 +355,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -518,7 +437,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.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Post("/easy-split/vendors", localVarRequestOptions, config); @@ -527,10 +446,7 @@ 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; } } @@ -553,24 +469,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -660,7 +559,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.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Get("/easy-split/vendor-docs/{vendor_id}/download/{doc_type}", localVarRequestOptions, config); @@ -669,10 +568,7 @@ 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; } } @@ -694,24 +590,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -796,7 +675,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.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Get("/easy-split/vendors/{vendor_id}", localVarRequestOptions, config); @@ -805,10 +684,7 @@ 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; } } @@ -830,24 +706,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -932,7 +791,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.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Get("/easy-split/vendors/{vendor_id}/balances", localVarRequestOptions, config); @@ -941,10 +800,7 @@ 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; } } @@ -967,24 +823,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -1070,7 +909,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.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Get("/easy-split/amount/{amount}/charges", localVarRequestOptions, config); @@ -1079,10 +918,7 @@ 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; } } @@ -1104,24 +940,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -1206,7 +1025,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.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Get("/easy-split/vendor-docs/{vendor_id}", localVarRequestOptions, config); @@ -1215,10 +1034,7 @@ 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; } } @@ -1240,24 +1056,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -1339,7 +1138,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.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Post("/split/order/vendor/recon", localVarRequestOptions, config); @@ -1348,10 +1147,7 @@ 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; } } @@ -1374,24 +1170,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -1478,7 +1257,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.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Patch("/easy-split/vendors/{vendor_id}", localVarRequestOptions, config); @@ -1487,10 +1266,7 @@ 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; } } @@ -1515,24 +1291,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -1630,7 +1389,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.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Post("/easy-split/vendor-docs/{vendor_id}", localVarRequestOptions, config); @@ -1639,10 +1398,7 @@ 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; } } @@ -1665,24 +1421,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -1769,7 +1508,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.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Post("/easy-split/orders/{order_id}/split", localVarRequestOptions, config); @@ -1778,10 +1517,7 @@ 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; } } @@ -1803,24 +1539,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -1902,7 +1621,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.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Post("/easy-split/static-split", localVarRequestOptions, config); @@ -1911,10 +1630,7 @@ 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; } } @@ -1936,24 +1652,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -2039,7 +1738,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.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Post>("/eligibility/cardlessemi", localVarRequestOptions, config); @@ -2048,10 +1747,7 @@ 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; } } @@ -2073,24 +1769,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -2176,7 +1855,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.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Post>("/eligibility/offers", localVarRequestOptions, config); @@ -2185,10 +1864,7 @@ 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; } } @@ -2210,24 +1886,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -2313,7 +1972,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.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Post>("/eligibility/paylater", localVarRequestOptions, config); @@ -2322,10 +1981,7 @@ 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; } } @@ -2347,24 +2003,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -2450,7 +2089,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.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Post>("/eligibility/payment_methods", localVarRequestOptions, config); @@ -2459,10 +2098,7 @@ 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; } } @@ -2484,24 +2120,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -2587,7 +2206,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.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Post("/offers", localVarRequestOptions, config); @@ -2596,10 +2215,7 @@ 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; } } @@ -2621,24 +2237,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -2723,7 +2322,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.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Get("/offers/{offer_id}", localVarRequestOptions, config); @@ -2732,10 +2331,7 @@ 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; } } @@ -2757,24 +2353,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -2860,7 +2439,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.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Post("/orders", localVarRequestOptions, config); @@ -2869,10 +2448,7 @@ 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; } } @@ -2894,24 +2470,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -2996,7 +2555,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.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Get("/orders/{order_id}", localVarRequestOptions, config); @@ -3005,10 +2564,7 @@ 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; } } @@ -3031,24 +2587,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -3139,7 +2678,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.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Patch("/orders/{order_id}", localVarRequestOptions, config); @@ -3148,10 +2687,7 @@ 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; } } @@ -3175,24 +2711,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -3286,7 +2805,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.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Post("/recon", localVarRequestOptions, config); @@ -3295,10 +2814,7 @@ 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; } } @@ -3320,24 +2836,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -3422,7 +2921,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.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Post("/links/{link_id}/cancel", localVarRequestOptions, config); @@ -3431,10 +2930,7 @@ 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; } } @@ -3456,24 +2952,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -3559,7 +3038,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.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Post("/links", localVarRequestOptions, config); @@ -3568,10 +3047,7 @@ 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; } } @@ -3593,24 +3069,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -3695,7 +3154,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.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Get("/links/{link_id}", localVarRequestOptions, config); @@ -3704,10 +3163,7 @@ 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; } } @@ -3730,24 +3186,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -3836,7 +3275,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.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Get>("/links/{link_id}/orders", localVarRequestOptions, config); @@ -3845,10 +3284,7 @@ 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; } } @@ -3871,24 +3307,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -3979,7 +3398,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.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Post("/orders/{order_id}/authorization", localVarRequestOptions, config); @@ -3988,10 +3407,7 @@ 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; } } @@ -4014,24 +3430,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -4107,7 +3506,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.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Post("/orders/pay/authenticate/{cf_payment_id}", localVarRequestOptions, config); @@ -4116,10 +3515,7 @@ 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; } } @@ -4142,24 +3538,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -4249,7 +3628,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.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Get("/orders/{order_id}/payments/{cf_payment_id}", localVarRequestOptions, config); @@ -4258,10 +3637,7 @@ 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; } } @@ -4283,24 +3659,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -4385,7 +3744,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.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Get>("/orders/{order_id}/payments", localVarRequestOptions, config); @@ -4394,10 +3753,7 @@ 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; } } @@ -4419,24 +3775,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -4507,7 +3846,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.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Post("/orders/sessions", localVarRequestOptions, config); @@ -4516,10 +3855,7 @@ 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; } } @@ -4542,24 +3878,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -4650,7 +3969,7 @@ public PGWebhookEvent PGVerifyWebhookSignature(string signature, string rawBody, localVarRequestOptions.HeaderParameters.Add("x-client-signature", Cashfree.XClientSignature); } - localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Post("/orders/{order_id}/refunds", localVarRequestOptions, config); @@ -4659,10 +3978,7 @@ 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; } } @@ -4685,24 +4001,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -4792,7 +4091,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.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Get("/orders/{order_id}/refunds/{refund_id}", localVarRequestOptions, config); @@ -4801,10 +4100,7 @@ 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; } } @@ -4826,24 +4122,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -4928,7 +4207,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.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Get>("/orders/{order_id}/refunds", localVarRequestOptions, config); @@ -4937,10 +4216,7 @@ 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; } } @@ -4964,24 +4240,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -5075,7 +4334,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.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Post("/settlements", localVarRequestOptions, config); @@ -5084,10 +4343,7 @@ 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; } } @@ -5111,24 +4367,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -5222,7 +4461,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.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Post("/settlement/recon", localVarRequestOptions, config); @@ -5231,10 +4470,7 @@ 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; } } @@ -5256,24 +4492,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -5355,7 +4574,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.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Post("/orders/settlements", localVarRequestOptions, config); @@ -5364,10 +4583,7 @@ 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; } } @@ -5389,24 +4605,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -5491,7 +4690,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.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Get("/orders/{order_id}/settlements", localVarRequestOptions, config); @@ -5500,10 +4699,7 @@ 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; } } @@ -5525,24 +4721,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -5627,7 +4806,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.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Get("/simulate/{simulation_id}", localVarRequestOptions, config); @@ -5636,10 +4815,7 @@ 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; } } @@ -5661,24 +4837,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -5764,7 +4923,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.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Post("/simulate", localVarRequestOptions, config); @@ -5773,10 +4932,7 @@ 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; } } @@ -5798,24 +4954,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -5901,7 +5040,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.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Post("/terminal", localVarRequestOptions, config); @@ -5910,10 +5049,7 @@ 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; } } @@ -5935,24 +5071,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -6038,7 +5157,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.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Post("/terminal/transactions", localVarRequestOptions, config); @@ -6047,10 +5166,7 @@ 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; } } @@ -6072,24 +5188,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -6174,7 +5273,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.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Get("/terminal/{terminal_phone_no}", localVarRequestOptions, config); @@ -6183,10 +5282,7 @@ 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; } } @@ -6209,24 +5305,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -6316,7 +5395,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.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Get>("/terminal/qrcodes", localVarRequestOptions, config); @@ -6325,10 +5404,7 @@ 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; } } @@ -6351,24 +5427,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -6458,7 +5517,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.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Get("/terminal/{cf_terminal_id}/payments", localVarRequestOptions, config); @@ -6467,10 +5526,7 @@ 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; } } @@ -6493,24 +5549,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -6601,7 +5640,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.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Patch>("/terminal/{cf_terminal_id}", localVarRequestOptions, config); @@ -6610,10 +5649,7 @@ 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; } } @@ -6636,24 +5672,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -6744,7 +5763,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.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Patch>("/terminal/{cf_terminal_id}/status", localVarRequestOptions, config); @@ -6753,10 +5772,7 @@ 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; } } @@ -6779,24 +5795,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -6887,7 +5886,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.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Post>("/terminal/{cf_terminal_id}/docs", localVarRequestOptions, config); @@ -6896,10 +5895,7 @@ 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; } } @@ -6921,24 +5917,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -7024,7 +6003,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.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Post("/subscriptions/pay", localVarRequestOptions, config); @@ -7033,10 +6012,7 @@ 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; } } @@ -7058,24 +6034,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -7161,7 +6120,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.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Post("/plans", localVarRequestOptions, config); @@ -7170,10 +6129,7 @@ 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; } } @@ -7196,24 +6152,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -7304,7 +6243,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.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Post("/subscriptions/{subscription_id}/refunds", localVarRequestOptions, config); @@ -7313,10 +6252,7 @@ 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; } } @@ -7338,24 +6274,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -7441,7 +6360,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.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Post("/subscriptions", localVarRequestOptions, config); @@ -7450,10 +6369,7 @@ 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; } } @@ -7475,24 +6391,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -7577,7 +6476,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.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Get("/plans/{plan_id}", localVarRequestOptions, config); @@ -7586,10 +6485,7 @@ 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; } } @@ -7611,24 +6507,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -7713,7 +6592,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.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Get("/subscriptions/{subscription_id}", localVarRequestOptions, config); @@ -7722,10 +6601,7 @@ 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; } } @@ -7748,24 +6624,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -7855,7 +6714,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.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Get("/subscriptions/{subscription_id}/payments/{payment_id}", localVarRequestOptions, config); @@ -7864,10 +6723,7 @@ 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; } } @@ -7889,24 +6745,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -7991,7 +6830,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.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Get>("/subscriptions/{subscription_id}/payments", localVarRequestOptions, config); @@ -8000,10 +6839,7 @@ 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; } } @@ -8026,24 +6862,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -8133,7 +6952,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.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Get("/subscriptions/{subscription_id}/refunds/{refund_id}", localVarRequestOptions, config); @@ -8142,10 +6961,7 @@ 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; } } @@ -8168,24 +6984,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -8276,7 +7075,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.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Post("/subscriptions/{subscription_id}/manage", localVarRequestOptions, config); @@ -8285,10 +7084,7 @@ 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; } } @@ -8312,24 +7108,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -8425,7 +7204,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.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Post("/subscriptions/{subscription_id}/payments/{payment_id}/manage", localVarRequestOptions, config); @@ -8434,10 +7213,7 @@ 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; } } @@ -8462,24 +7238,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -8580,7 +7339,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.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Post("/subscriptions/pay/documents/{payment_id}", localVarRequestOptions, config); @@ -8589,10 +7348,7 @@ 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; } } @@ -8614,24 +7370,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -8717,7 +7456,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.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Post("/subscriptions/eligibility/payment_methods", localVarRequestOptions, config); @@ -8726,10 +7465,7 @@ 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; } } @@ -8752,24 +7488,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -8859,7 +7578,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.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Delete("/customers/{customer_id}/instruments/{instrument_id}", localVarRequestOptions, config); @@ -8868,10 +7587,7 @@ 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; } } @@ -8894,24 +7610,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -9001,7 +7700,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.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Get("/customers/{customer_id}/instruments/{instrument_id}", localVarRequestOptions, config); @@ -9010,10 +7709,7 @@ 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; } } @@ -9036,24 +7732,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -9143,7 +7822,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.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Get>("/customers/{customer_id}/instruments", localVarRequestOptions, config); @@ -9152,10 +7831,7 @@ 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; } } @@ -9178,24 +7854,7 @@ 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.2.3"; - o.AddEventProcessor(new CashfreeEventProcessor()); - })); - } + var config = new Configuration(); if(configuration != null) { config = configuration; @@ -9285,7 +7944,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.3"); + localVarRequestOptions.HeaderParameters.Add("x-sdk-platform", "dotnetsdk-4.2.4"); // make the HTTP request var localVarResponse = this.Client.Get("/customers/{customer_id}/instruments/{instrument_id}/cryptogram", localVarRequestOptions, config); @@ -9294,10 +7953,7 @@ 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 b38d7ea..97a7115 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.3"; + public const string Version = "4.2.4"; /// /// 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.3/csharp"); + UserAgent = WebUtility.UrlEncode("OpenAPI-Generator/4.2.4/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.3\n"; + report += " SDK Package Version: 4.2.4\n"; return report; } diff --git a/src/cashfree_pg/cashfree_pg.csproj b/src/cashfree_pg/cashfree_pg.csproj index 6664ccc..03cee89 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.3 + 4.2.4 LICENSE.md bin\$(Configuration)\$(TargetFramework)\cashfree_pg.xml https://github.com/cashfree/cashfree-pg-sdk-dotnet.git @@ -26,7 +26,6 @@ -