Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/net9.0/Voucherify.deps.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v9.0": {
"Voucherify/9.0.0": {
"Voucherify/9.0.1": {
"dependencies": {
"JsonSubTypes": "2.0.1",
"Microsoft.Extensions.DependencyInjection": "9.0.10",
Expand Down Expand Up @@ -478,7 +478,7 @@
}
},
"libraries": {
"Voucherify/9.0.0": {
"Voucherify/9.0.1": {
"type": "project",
"serviceable": false,
"sha512": ""
Expand Down
Binary file modified lib/net9.0/Voucherify.dll
Binary file not shown.
34 changes: 34 additions & 0 deletions lib/net9.0/Voucherify.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26260,6 +26260,24 @@
<returns>RestSharp's HttpMethod instance.</returns>
<exception cref="T:System.ArgumentOutOfRangeException"></exception>
</member>
<member name="M:Voucherify.Client.ApiClient.StartTiming(System.Boolean)">
<summary>
Starts a stopwatch when debug timing is enabled.
</summary>
<param name="debugModeEnabled">Whether debug timing is enabled for the current request.</param>
<returns>A started <see cref="T:System.Diagnostics.Stopwatch"/> when enabled; otherwise <c>null</c>.</returns>
</member>
<member name="M:Voucherify.Client.ApiClient.StopTiming(System.Boolean,System.Diagnostics.Stopwatch,System.String,System.String,System.String,RestSharp.RestResponse)">
<summary>
Stops timing and writes a debug log entry for a request stage.
</summary>
<param name="debugModeEnabled">Whether debug timing is enabled for the current request.</param>
<param name="stopwatch">The stopwatch instance started for the stage.</param>
<param name="stage">The request stage label (for example: construction or execution).</param>
<param name="method">HTTP method name.</param>
<param name="resource">Request resource path.</param>
<param name="response">Optional response used to enrich debug metadata.</param>
</member>
<member name="M:Voucherify.Client.ApiClient.NewRequest(Voucherify.Client.HttpMethod,System.String,Voucherify.Client.RequestOptions,Voucherify.Client.IReadableConfiguration)">
<summary>
Provides all logic for constructing a new RestSharp <see cref="T:RestSharp.RestRequest"/>.
Expand Down Expand Up @@ -26844,6 +26862,11 @@
Determine whether or not the "default credentials" (e.g. the user account under which the current process is running) will be sent along to the server. The default is false.
</summary>
</member>
<member name="P:Voucherify.Client.Configuration.DebugModeEnabled">
<summary>
Determines whether request timing diagnostics are enabled.
</summary>
</member>
<member name="P:Voucherify.Client.Configuration.DefaultHeader">
<summary>
Gets or sets the default header.
Expand Down Expand Up @@ -27053,6 +27076,12 @@
<param name="key">Api Key name.</param>
<param name="value">Api Key value.</param>
</member>
<member name="M:Voucherify.Client.Configuration.IsDebugModeEnabledInEnvironment">
<summary>
Checks whether debug mode is enabled via the DEBUG environment variable.
</summary>
<returns><c>true</c> when DEBUG equals "true" (case-insensitive); otherwise, <c>false</c>.</returns>
</member>
<member name="M:Voucherify.Client.Configuration.MergeConfigurations(Voucherify.Client.IReadableConfiguration,Voucherify.Client.IReadableConfiguration)">
<summary>
Merge configurations.
Expand Down Expand Up @@ -27341,6 +27370,11 @@
Determine whether or not the "default credentials" (e.g. the user account under which the current process is running) will be sent along to the server. The default is false.
</summary>
</member>
<member name="P:Voucherify.Client.IReadableConfiguration.DebugModeEnabled">
<summary>
Determines whether request timing diagnostics are enabled.
</summary>
</member>
<member name="P:Voucherify.Client.IReadableConfiguration.OperationServers">
<summary>
Get the servers associated with the operation.
Expand Down
25 changes: 2 additions & 23 deletions lib/netstandard2.0/Voucherify.deps.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@
"targets": {
".NETStandard,Version=v2.0": {},
".NETStandard,Version=v2.0/": {
"Voucherify/9.0.0": {
"Voucherify/9.0.1": {
"dependencies": {
"JsonSubTypes": "2.0.1",
"NETStandard.Library": "2.0.3",
"Newtonsoft.Json": "13.0.3",
"Polly": "8.1.0",
"RestSharp": "112.0.0",
Expand Down Expand Up @@ -42,12 +41,6 @@
}
}
},
"Microsoft.NETCore.Platforms/1.1.0": {},
"NETStandard.Library/2.0.3": {
"dependencies": {
"Microsoft.NETCore.Platforms": "1.1.0"
}
},
"Newtonsoft.Json/13.0.3": {
"runtime": {
"lib/netstandard2.0/Newtonsoft.Json.dll": {
Expand Down Expand Up @@ -179,7 +172,7 @@
}
},
"libraries": {
"Voucherify/9.0.0": {
"Voucherify/9.0.1": {
"type": "project",
"serviceable": false,
"sha512": ""
Expand All @@ -198,20 +191,6 @@
"path": "microsoft.bcl.asyncinterfaces/8.0.0",
"hashPath": "microsoft.bcl.asyncinterfaces.8.0.0.nupkg.sha512"
},
"Microsoft.NETCore.Platforms/1.1.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-kz0PEW2lhqygehI/d6XsPCQzD7ff7gUJaVGPVETX611eadGsA3A877GdSlU0LRVMCTH/+P3o2iDTak+S08V2+A==",
"path": "microsoft.netcore.platforms/1.1.0",
"hashPath": "microsoft.netcore.platforms.1.1.0.nupkg.sha512"
},
"NETStandard.Library/2.0.3": {
"type": "package",
"serviceable": true,
"sha512": "sha512-st47PosZSHrjECdjeIzZQbzivYBJFv6P2nv4cj2ypdI204DO+vZ7l5raGMiX4eXMJ53RfOIg+/s4DHVZ54Nu2A==",
"path": "netstandard.library/2.0.3",
"hashPath": "netstandard.library.2.0.3.nupkg.sha512"
},
"Newtonsoft.Json/13.0.3": {
"type": "package",
"serviceable": true,
Expand Down
Binary file modified lib/netstandard2.0/Voucherify.dll
Binary file not shown.
34 changes: 34 additions & 0 deletions lib/netstandard2.0/Voucherify.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26260,6 +26260,24 @@
<returns>RestSharp's HttpMethod instance.</returns>
<exception cref="T:System.ArgumentOutOfRangeException"></exception>
</member>
<member name="M:Voucherify.Client.ApiClient.StartTiming(System.Boolean)">
<summary>
Starts a stopwatch when debug timing is enabled.
</summary>
<param name="debugModeEnabled">Whether debug timing is enabled for the current request.</param>
<returns>A started <see cref="T:System.Diagnostics.Stopwatch"/> when enabled; otherwise <c>null</c>.</returns>
</member>
<member name="M:Voucherify.Client.ApiClient.StopTiming(System.Boolean,System.Diagnostics.Stopwatch,System.String,System.String,System.String,RestSharp.RestResponse)">
<summary>
Stops timing and writes a debug log entry for a request stage.
</summary>
<param name="debugModeEnabled">Whether debug timing is enabled for the current request.</param>
<param name="stopwatch">The stopwatch instance started for the stage.</param>
<param name="stage">The request stage label (for example: construction or execution).</param>
<param name="method">HTTP method name.</param>
<param name="resource">Request resource path.</param>
<param name="response">Optional response used to enrich debug metadata.</param>
</member>
<member name="M:Voucherify.Client.ApiClient.NewRequest(Voucherify.Client.HttpMethod,System.String,Voucherify.Client.RequestOptions,Voucherify.Client.IReadableConfiguration)">
<summary>
Provides all logic for constructing a new RestSharp <see cref="T:RestSharp.RestRequest"/>.
Expand Down Expand Up @@ -26844,6 +26862,11 @@
Determine whether or not the "default credentials" (e.g. the user account under which the current process is running) will be sent along to the server. The default is false.
</summary>
</member>
<member name="P:Voucherify.Client.Configuration.DebugModeEnabled">
<summary>
Determines whether request timing diagnostics are enabled.
</summary>
</member>
<member name="P:Voucherify.Client.Configuration.DefaultHeader">
<summary>
Gets or sets the default header.
Expand Down Expand Up @@ -27053,6 +27076,12 @@
<param name="key">Api Key name.</param>
<param name="value">Api Key value.</param>
</member>
<member name="M:Voucherify.Client.Configuration.IsDebugModeEnabledInEnvironment">
<summary>
Checks whether debug mode is enabled via the DEBUG environment variable.
</summary>
<returns><c>true</c> when DEBUG equals "true" (case-insensitive); otherwise, <c>false</c>.</returns>
</member>
<member name="M:Voucherify.Client.Configuration.MergeConfigurations(Voucherify.Client.IReadableConfiguration,Voucherify.Client.IReadableConfiguration)">
<summary>
Merge configurations.
Expand Down Expand Up @@ -27341,6 +27370,11 @@
Determine whether or not the "default credentials" (e.g. the user account under which the current process is running) will be sent along to the server. The default is false.
</summary>
</member>
<member name="P:Voucherify.Client.IReadableConfiguration.DebugModeEnabled">
<summary>
Determines whether request timing diagnostics are enabled.
</summary>
</member>
<member name="P:Voucherify.Client.IReadableConfiguration.OperationServers">
<summary>
Get the servers associated with the operation.
Expand Down
4 changes: 2 additions & 2 deletions lib/netstandard2.1/Voucherify.deps.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"targets": {
".NETStandard,Version=v2.1": {},
".NETStandard,Version=v2.1/": {
"Voucherify/9.0.0": {
"Voucherify/9.0.1": {
"dependencies": {
"JsonSubTypes": "2.0.1",
"Newtonsoft.Json": "13.0.3",
Expand Down Expand Up @@ -169,7 +169,7 @@
}
},
"libraries": {
"Voucherify/9.0.0": {
"Voucherify/9.0.1": {
"type": "project",
"serviceable": false,
"sha512": ""
Expand Down
Binary file modified lib/netstandard2.1/Voucherify.dll
Binary file not shown.
34 changes: 34 additions & 0 deletions lib/netstandard2.1/Voucherify.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26260,6 +26260,24 @@
<returns>RestSharp's HttpMethod instance.</returns>
<exception cref="T:System.ArgumentOutOfRangeException"></exception>
</member>
<member name="M:Voucherify.Client.ApiClient.StartTiming(System.Boolean)">
<summary>
Starts a stopwatch when debug timing is enabled.
</summary>
<param name="debugModeEnabled">Whether debug timing is enabled for the current request.</param>
<returns>A started <see cref="T:System.Diagnostics.Stopwatch"/> when enabled; otherwise <c>null</c>.</returns>
</member>
<member name="M:Voucherify.Client.ApiClient.StopTiming(System.Boolean,System.Diagnostics.Stopwatch,System.String,System.String,System.String,RestSharp.RestResponse)">
<summary>
Stops timing and writes a debug log entry for a request stage.
</summary>
<param name="debugModeEnabled">Whether debug timing is enabled for the current request.</param>
<param name="stopwatch">The stopwatch instance started for the stage.</param>
<param name="stage">The request stage label (for example: construction or execution).</param>
<param name="method">HTTP method name.</param>
<param name="resource">Request resource path.</param>
<param name="response">Optional response used to enrich debug metadata.</param>
</member>
<member name="M:Voucherify.Client.ApiClient.NewRequest(Voucherify.Client.HttpMethod,System.String,Voucherify.Client.RequestOptions,Voucherify.Client.IReadableConfiguration)">
<summary>
Provides all logic for constructing a new RestSharp <see cref="T:RestSharp.RestRequest"/>.
Expand Down Expand Up @@ -26844,6 +26862,11 @@
Determine whether or not the "default credentials" (e.g. the user account under which the current process is running) will be sent along to the server. The default is false.
</summary>
</member>
<member name="P:Voucherify.Client.Configuration.DebugModeEnabled">
<summary>
Determines whether request timing diagnostics are enabled.
</summary>
</member>
<member name="P:Voucherify.Client.Configuration.DefaultHeader">
<summary>
Gets or sets the default header.
Expand Down Expand Up @@ -27053,6 +27076,12 @@
<param name="key">Api Key name.</param>
<param name="value">Api Key value.</param>
</member>
<member name="M:Voucherify.Client.Configuration.IsDebugModeEnabledInEnvironment">
<summary>
Checks whether debug mode is enabled via the DEBUG environment variable.
</summary>
<returns><c>true</c> when DEBUG equals "true" (case-insensitive); otherwise, <c>false</c>.</returns>
</member>
<member name="M:Voucherify.Client.Configuration.MergeConfigurations(Voucherify.Client.IReadableConfiguration,Voucherify.Client.IReadableConfiguration)">
<summary>
Merge configurations.
Expand Down Expand Up @@ -27341,6 +27370,11 @@
Determine whether or not the "default credentials" (e.g. the user account under which the current process is running) will be sent along to the server. The default is false.
</summary>
</member>
<member name="P:Voucherify.Client.IReadableConfiguration.DebugModeEnabled">
<summary>
Determines whether request timing diagnostics are enabled.
</summary>
</member>
<member name="P:Voucherify.Client.IReadableConfiguration.OperationServers">
<summary>
Get the servers associated with the operation.
Expand Down
14 changes: 12 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,15 @@ webProxy.Credentials = System.Net.CredentialCache.DefaultCredentials;
c.Proxy = webProxy;
```

### 🧪 Request build timing (DEBUG)

You can enable debug mode:

- set `DEBUG=true` in environment variables (`.env`), or
- set it directly in code with `config.DebugModeEnabled = true`.

When enabled, the SDK prints request duration in milliseconds to console.

## 🚀 Run code

Once installed, run:
Expand Down Expand Up @@ -163,7 +172,7 @@ This SDK is auto-generated (except for tests), so changes made here will be over

## 🏷️ Link tags

[OpenAPI generated from tag](https://github.com/voucherifyio/voucherify-openapi/releases/tag/sdk-dotnet-9.0.0).
[OpenAPI generated from tag](https://github.com/voucherifyio/voucherify-openapi/releases/tag/sdk-dotnet-9.0.1).

## 🔐 Authorization

Expand Down Expand Up @@ -255,7 +264,8 @@ Authorization schemes defined for the API.
- `templates`: Gives access to all endpoints and methods starting with &#x60;/v1/templates&#x60;.

## 📅 Changelog

- **2026-02-27** - `9.0.1`
- Added debug mode to measure request timings
- **2025-12-14** - `9.0.0`
- All POST requests now require a payload. As a result, the order of parameters in API method calls may have changed. If you encounter a build error, please check the documentation for the method you are calling.
- `OrdersImportCreateRequestBodyItem` no longer has `CreatedAt` property.
Expand Down
1 change: 1 addition & 0 deletions src/Voucherify.Test/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ X_APP_TOKEN=
X_MANAGEMENT_ID=
X_MANAGEMENT_TOKEN=
PROJECT_ID=
DEBUG=true
Loading
Loading