SYT.VneCashRecycler 1.0.0-rc.1

This is a prerelease version of SYT.VneCashRecycler.
dotnet add package SYT.VneCashRecycler --version 1.0.0-rc.1
                    
NuGet\Install-Package SYT.VneCashRecycler -Version 1.0.0-rc.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SYT.VneCashRecycler" Version="1.0.0-rc.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SYT.VneCashRecycler" Version="1.0.0-rc.1" />
                    
Directory.Packages.props
<PackageReference Include="SYT.VneCashRecycler" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SYT.VneCashRecycler --version 1.0.0-rc.1
                    
#r "nuget: SYT.VneCashRecycler, 1.0.0-rc.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package SYT.VneCashRecycler@1.0.0-rc.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SYT.VneCashRecycler&version=1.0.0-rc.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=SYT.VneCashRecycler&version=1.0.0-rc.1&prerelease
                    
Install as a Cake Tool

SYT.VneCashRecycler

SYT.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 /> Maintainer and original author of <code>SYT.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: SYT.VneCashRecycler
  • Current channel: 1.0.0-rc.1 (initial standalone release candidate)
  • Target framework: net10.0
  • License: MIT
  • Repository: https://github.com/i7aket/SYT.VneCashRecycler

Installation

dotnet add package SYT.VneCashRecycler --prerelease

Registration

Register the reusable SDK services once:

using SYT.VneCashRecycler.Extensions;

builder.Services.AddVneCashRecycler();

Then create per-recycler clients through the factory:

using SYT.VneCashRecycler.Clients;
using SYT.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 SYT.VneCashRecycler.Clients;
using SYT.VneCashRecycler.Models;
using SYT.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

  • SendPaymentAsync
  • GetPaymentStatusAsync
  • CancelPaymentAsync
  • ListPendingPaymentsAsync

Withdrawals

  • StartWithdrawalAsync
  • GetWithdrawalStatusAsync
  • EndWithdrawalAsync

Refill and emptying

  • StartRefillAsync
  • EndRefillAsync
  • ManualRefillAsync
  • PollRefillAsync
  • StartHopperEmptyingAsync
  • StartRecyclerEmptyingAsync
  • ResetStackerAsync
  • PollEmptyingAsync
  • StartCoinDispenserEmptyingAsync

Machine control and reporting

  • GetMachineStatusAsync
  • LoginOperatorAsync
  • LogoutOperatorAsync
  • OpenDoorAsync
  • GetCashClosingAsync
  • GetWithdrawalsAsync
  • GetPaymentsAsync
  • GetOpeningsAsync
  • GetCashClosingHistoryAsync
  • GetSoftwareVersionAsync

Configuration

  • AccessConfigurationMenuAsync
  • RebootOrShutdownAsync
  • ConfigurePeripheralsAsync
  • ConfigureSoftwareAsync
  • SetPettyCashAsync
  • SignalEndPettyCashRestoreAsync

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:

  • VneException
  • VneTransportException
  • VneApiException

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

  • UnitTests validate value objects, serialization, DI registration, and error mapping without talking to a real recycler.
  • IntegrationTests run against an embedded in-process simulator by default, so the suite is self-contained and does not require physical hardware.
  • IntegrationTests can still target a real recycler or compatible external simulator by setting UseEmbeddedSimulator=false and providing Endpoint in appsettings.test.json.

Product Boundaries

  • SYT.VneCashRecycler focuses 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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-rc.1 373 3/10/2026

Initial standalone product release candidate for the VNE cash recycler SDK.

Highlights:
- rebranded namespaces and package identity to SYT.VneCashRecycler
- extracted VNE protocol client, resilience, value objects, and serialization
- prepared standalone packaging, documentation, and publish workflow
- aligned SDK shape with SYT.Fiskaly conventions