Anis.Partners
2.2.0
dotnet add package Anis.Partners --version 2.2.0
NuGet\Install-Package Anis.Partners -Version 2.2.0
<PackageReference Include="Anis.Partners" Version="2.2.0" />
<PackageVersion Include="Anis.Partners" Version="2.2.0" />
<PackageReference Include="Anis.Partners" />
paket add Anis.Partners --version 2.2.0
#r "nuget: Anis.Partners, 2.2.0"
#:package Anis.Partners@2.2.0
#addin nuget:?package=Anis.Partners&version=2.2.0
#tool nuget:?package=Anis.Partners&version=2.2.0
Anis.Partners
Version 2.2.0. 1.x is deprecated — upgrade.
The .NET client for the Anis Partner API, for .NET 8 and .NET 10.
Every request is signed (RFC 9421 over P-256), every answer Anis signs — orders, card reveals, access stops, enrolment and the signature self-check — is verified before you see it, and the operations are typed. Ordering, idempotent retry, one-time card codes and recovery after a timeout are shaped so they cannot go wrong quietly.
Version 2.2 adds electricity meter charges, direct recharges, webhook endpoint management and a standalone verifier for the notifications Anis sends to you.
dotnet add package Anis.Partners --version 2.2.0
builder.Services
.AddAnisPartners(builder.Configuration.GetSection("AnisPartners"))
.WithSigner(EcdsaP256Signer.FromPemFile("/secure/partner-key.pem", keyId));
{
"AnisPartners": {
"Authority": "https://<the address Anis gave you>",
"SignatureLifetime": "00:01:00",
"AcceptLanguage": "English"
}
}
Then inject IAnisPartnersClient and call it:
var profile = await client.Profile.GetAsync(cancellationToken);
var card = await client.Catalogue.GetCardAsync(walletId, cardId, cancellationToken);
Documentation
- Getting started, enrolment and your first call
- Orders and recovery — read this before you take money
- Errors
- Webhooks — verify notifications before reading them
- Security and key custody
- Observability
- A working sample for every route
- Changelog
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. 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 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.Configuration.Abstractions (>= 8.0.0)
- Microsoft.Extensions.Configuration.Binder (>= 8.0.2)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.2)
- Microsoft.Extensions.Http (>= 8.0.1)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.2)
- Microsoft.Extensions.Options (>= 8.0.2)
-
net8.0
- Microsoft.Extensions.Configuration.Abstractions (>= 8.0.0)
- Microsoft.Extensions.Configuration.Binder (>= 8.0.2)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.2)
- Microsoft.Extensions.Http (>= 8.0.1)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.2)
- Microsoft.Extensions.Options (>= 8.0.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.