MixSystems.VneCashRecycler
1.0.0
dotnet add package MixSystems.VneCashRecycler --version 1.0.0
NuGet\Install-Package MixSystems.VneCashRecycler -Version 1.0.0
<PackageReference Include="MixSystems.VneCashRecycler" Version="1.0.0" />
<PackageVersion Include="MixSystems.VneCashRecycler" Version="1.0.0" />
<PackageReference Include="MixSystems.VneCashRecycler" />
paket add MixSystems.VneCashRecycler --version 1.0.0
#r "nuget: MixSystems.VneCashRecycler, 1.0.0"
#:package MixSystems.VneCashRecycler@1.0.0
#addin nuget:?package=MixSystems.VneCashRecycler&version=1.0.0
#tool nuget:?package=MixSystems.VneCashRecycler&version=1.0.0
MixSystems.VneCashRecycler
By MIX Systems. Previously published as SYT.VneCashRecycler; to switch, change the package reference and the SYT.VneCashRecycler namespace to MixSystems.VneCashRecycler.
MixSystems.VneCashRecycler is a production-oriented .NET SDK for VNE cash recycler
integrations.
It provides strongly typed clients, protocol contracts, value objects, and resilient HTTP execution for:
- payment lifecycle commands
- cancellation and pending-payment flows
- withdrawals, refill, and emptying operations
- machine status and reporting queries
- configuration and maintenance commands
Maintainer
<table> <tr> <td width="112"> <img src="docs/images/anatoliy-yermakov.jpeg" alt="Anatoliy Yermakov" width="96" /> </td> <td> <strong>Anatoliy Yermakov</strong><br /> Founder of MIX Systems, maintainer and original author of <code>MixSystems.VneCashRecycler</code>.<br /> The SDK is published as a standalone product and no longer depends on the Vectis repository layout. </td> </tr> </table>
Package
- Package ID:
MixSystems.VneCashRecycler - Current channel:
1.0.0-rc.1(initial standalone release candidate) - Target framework:
net10.0 - License:
MIT - Repository:
https://github.com/mix-systems/MixSystems.VneCashRecycler
Installation
dotnet add package MixSystems.VneCashRecycler --prerelease
Registration
Register the reusable SDK services once:
using MixSystems.VneCashRecycler.Extensions;
builder.Services.AddVneCashRecycler();
Then create per-recycler clients through the factory:
using MixSystems.VneCashRecycler.Clients;
using MixSystems.VneCashRecycler.Configuration;
IVneCashRecyclerClientFactory factory = app.Services.GetRequiredService<IVneCashRecyclerClientFactory>();
IVneCashRecyclerClient client = factory.Create(new VneCashRecyclerClientOptions
{
Endpoint = new Uri("https://192.168.1.6/selfcashapi/")
});
Quick Start
using MixSystems.VneCashRecycler.Clients;
using MixSystems.VneCashRecycler.Models;
using MixSystems.VneCashRecycler.ValueObjects;
PaymentRequestResult request = await client.SendPaymentAsync(
MoneyCents.FromDecimal(12.50m),
new OperatorName("cashier-01"),
ct);
PaymentProgress progress = await client.GetPaymentStatusAsync(
request.PaymentId,
new OperatorName("cashier-01"),
ct);
Console.WriteLine($"Payment {progress.PaymentId}: {progress.LifecycleStatus}");
Core Features
Payments and cancellations
SendPaymentAsyncGetPaymentStatusAsyncCancelPaymentAsyncListPendingPaymentsAsync
Withdrawals
StartWithdrawalAsyncGetWithdrawalStatusAsyncEndWithdrawalAsync
Refill and emptying
StartRefillAsyncEndRefillAsyncManualRefillAsyncPollRefillAsyncStartHopperEmptyingAsyncStartRecyclerEmptyingAsyncResetStackerAsyncPollEmptyingAsyncStartCoinDispenserEmptyingAsync
Machine control and reporting
GetMachineStatusAsyncLoginOperatorAsyncLogoutOperatorAsyncOpenDoorAsyncGetCashClosingAsyncGetWithdrawalsAsyncGetPaymentsAsyncGetOpeningsAsyncGetCashClosingHistoryAsyncGetSoftwareVersionAsync
Configuration
AccessConfigurationMenuAsyncRebootOrShutdownAsyncConfigurePeripheralsAsyncConfigureSoftwareAsyncSetPettyCashAsyncSignalEndPettyCashRestoreAsync
Configuration Model
Each created client is configured through VneCashRecyclerClientOptions:
new VneCashRecyclerClientOptions
{
Endpoint = new Uri("https://192.168.1.6/selfcashapi/"),
DefaultOperatorName = new OperatorName("cashier-01"),
Certificate = new VneCertificateOptions
{
SkipCertificateValidation = true
},
Resilience = new VneResilienceOptions
{
AttemptTimeout = TimeSpan.FromSeconds(10),
RetryCount = 2
}
};
Error Handling
The SDK raises typed exceptions so application code can map them to domain-level failures:
VneExceptionVneTransportExceptionVneApiException
VneApiException includes Appendix-I error descriptions for known machine error
codes and preserves optional operation/user metadata when VNE reports an ongoing
operation conflict.
Testing Strategy
UnitTestsvalidate value objects, serialization, DI registration, and error mapping without talking to a real recycler.IntegrationTestsrun against an embedded in-process simulator by default, so the suite is self-contained and does not require physical hardware.IntegrationTestscan still target a real recycler or compatible external simulator by settingUseEmbeddedSimulator=falseand providingEndpointinappsettings.test.json.
Product Boundaries
MixSystems.VneCashRecyclerfocuses on transport, protocol contracts, typed value objects, and reusable client orchestration for VNE cash recyclers.- Application-specific abstractions, POS workflows, and domain mapping should stay in the consuming application.
- Hardware-specific operational checks are intentionally outside the NuGet package and belong in integration or manual smoke environments.
Release Notes
See CHANGELOG.md for the current release history.
Additional Documentation
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.2)
- Microsoft.Extensions.Http (>= 10.0.2)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.2)
- Microsoft.Extensions.Options (>= 10.0.2)
- Polly (>= 8.6.5)
- Polly.Extensions.Http (>= 3.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0 | 76 | 11/9/2026 |
First release under the MIX Systems name. Same code as SYT.VneCashRecycler 1.0.0-rc.1; the namespace is now MixSystems.VneCashRecycler.