eConnect.PosSdk
2.0.0.5
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package eConnect.PosSdk --version 2.0.0.5
NuGet\Install-Package eConnect.PosSdk -Version 2.0.0.5
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="eConnect.PosSdk" Version="2.0.0.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="eConnect.PosSdk" Version="2.0.0.5" />
<PackageReference Include="eConnect.PosSdk" />
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 eConnect.PosSdk --version 2.0.0.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: eConnect.PosSdk, 2.0.0.5"
#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 eConnect.PosSdk@2.0.0.5
#: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=eConnect.PosSdk&version=2.0.0.5
#tool nuget:?package=eConnect.PosSdk&version=2.0.0.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
eConnect PosSdk
.NET client for eConnect POS JsonApi.
Technologies
Project supports
- .NET 6 and above
Code Example
// sample authentication parameters
// production parameters provided by eConnect
const string pluginId = "b510fb1f-124f-46dc-a7f3-cc9813755fa6";
var authId = Guid.NewGuid().ToString();
const string host = "devcenter.econnect.tv";
const int port = 6500;
var options = new PosClientOptions(pluginId, authId, host, port)
{
EnableAutomaticRecovery = true, // optional, defaults to true
ConnectionRetryDelay = TimeSpan.FromMinutes(10) // optional, defaults to 3 minutes
};
await using var client = new SecurePosClient(options);
await client.ConnectAsync();
// when using EnableAutomaticRecovery true, use this EventHandler to catch errors during Reconnect attempts
client.ReconnectError += (sender, exception) =>
{
// do some logging in here
};
var signIn = new SignInEvent
{
RevenueCenterNumber = 1,
TerminalNumber = 123,
EmployeeNumber = 456
};
string response = await client.SendAsync(signIn);
// response == "Valid signIn event object received."
var newCheck = new NewCheckEvent
{
RevenueCenterNumber = 248,
TerminalNumber = 1132,
EmployeeNumber = 634277,
CheckNumber = 237712
};
response = await Client.SendAsync(newCheck);
// response == "Valid newcheck event object received"
var itemAdd = new ItemAddEvent
{
RevenueCenterNumber = 248,
TerminalNumber = 1132,
EmployeeNumber = 634277,
CheckNumber = 237712,
ItemId = "049000608779",
ItemName = "Apple (Golden Delicious)",
Quantity = 1,
Amount = 0.99M
};
response = await Client.SendAsync(itemAdd);
// response == "Valid itemadd event object received"
var totalDue = new TotalDueEvent
{
RevenueCenterNumber = 248,
TerminalNumber = 1132,
EmployeeNumber = 634277,
CheckNumber = 237712,
Amount = -.99M
};
response = await Client.SendAsync(totalDue);
// response == "Valid totaldue event object received"
var tenderApply = new TenderApplyEvent
{
RevenueCenterNumber = 248,
TerminalNumber = 1132,
EmployeeNumber = 634277,
CheckNumber = 237712,
TenderTypeNumber = 5,
TenderTypeName = "Cash",
Amount = 1M
};
response = await Client.SendAsync(tenderApply);
// response == "Valid tenderapply event object received"
var changeDue = new ChangeDueEvent
{
RevenueCenterNumber = 248,
TerminalNumber = 1132,
EmployeeNumber = 634277,
CheckNumber = 237712,
Amount = .01M
};
response = await Client.SendAsync(changeDue);
// response == "Valid changedue event object received"
var closeCheck = new CloseCheckEvent
{
RevenueCenterNumber = 11291,
TerminalNumber = 88332,
EmployeeNumber = 634277,
CheckNumber = 237712
};
response = await Client.SendAsync(closeCheck);
// response == "Valid closecheck event object received"
Testing
eConnect provides a TCP JSON API Test Service, showing sample credentials that work in combination with an online Testing Console.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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.
-
net6.0
- eConnect.WcfClientSdk (>= 11.8.6)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.0)
- Newtonsoft.Json.Schema (>= 3.0.15)
- System.IO.Pipelines (>= 8.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 | |
---|---|---|---|
3.0.6 | 149 | 9/3/2025 | |
3.0.5 | 138 | 9/3/2025 | |
3.0.4 | 139 | 9/3/2025 | |
3.0.3 | 136 | 9/2/2025 | |
3.0.2 | 134 | 9/2/2025 | |
3.0.1 | 129 | 9/2/2025 | |
3.0.0 | 130 | 9/2/2025 | |
2.1.5 | 188 | 10/29/2024 | |
2.1.1 | 171 | 10/25/2024 | |
2.0.1.2 | 143 | 10/24/2024 | |
2.0.1.1 | 156 | 10/24/2024 | |
2.0.1 | 148 | 10/24/2024 | |
2.0.0.5 | 382 | 11/30/2023 | |
2.0.0.4 | 282 | 11/17/2023 | |
2.0.0.3 | 247 | 11/7/2023 | |
2.0.0.2 | 287 | 11/7/2023 | |
2.0.0.1 | 277 | 11/2/2023 | |
1.0.2.15 | 826 | 10/11/2022 | |
1.0.2.14 | 736 | 10/5/2022 | |
1.0.2.13 | 722 | 10/5/2022 | |
1.0.2.12 | 678 | 10/5/2022 | |
1.0.2.11 | 730 | 10/5/2022 | |
1.0.2.10 | 681 | 10/5/2022 | |
1.0.2.9 | 772 | 9/14/2022 | |
1.0.2.8 | 743 | 8/18/2022 | |
1.0.2.7 | 779 | 8/18/2022 | |
1.0.2.6 | 721 | 8/17/2022 | |
1.0.2.5 | 748 | 7/28/2022 | |
1.0.1.13 | 887 | 4/26/2022 | |
1.0.1.12 | 827 | 3/17/2022 | |
1.0.1.11 | 751 | 3/16/2022 | |
1.0.1.10 | 779 | 3/16/2022 | |
1.0.1.9 | 784 | 3/15/2022 | |
1.0.1.8 | 654 | 1/4/2022 | |
1.0.1.7 | 679 | 1/4/2022 | |
1.0.1.6 | 674 | 12/14/2021 | |
1.0.1.5 | 720 | 12/14/2021 | |
1.0.1.4 | 686 | 12/2/2021 | |
1.0.1.3 | 618 | 12/2/2021 | |
1.0.1.2 | 652 | 11/9/2021 | |
1.0.1.1 | 688 | 10/19/2021 | |
1.0.1 | 764 | 10/19/2021 |