Soenneker.Enums.CurrencyCodes
11.0.128
Prefix Reserved
dotnet add package Soenneker.Enums.CurrencyCodes --version 11.0.128
NuGet\Install-Package Soenneker.Enums.CurrencyCodes -Version 11.0.128
<PackageReference Include="Soenneker.Enums.CurrencyCodes" Version="11.0.128" />
<PackageVersion Include="Soenneker.Enums.CurrencyCodes" Version="11.0.128" />
<PackageReference Include="Soenneker.Enums.CurrencyCodes" />
paket add Soenneker.Enums.CurrencyCodes --version 11.0.128
#r "nuget: Soenneker.Enums.CurrencyCodes, 11.0.128"
#:package Soenneker.Enums.CurrencyCodes@11.0.128
#addin nuget:?package=Soenneker.Enums.CurrencyCodes&version=11.0.128
#tool nuget:?package=Soenneker.Enums.CurrencyCodes&version=11.0.128
Soenneker.Enums.CurrencyCodes
A string-backed currency-code type for payment and financial API contracts. Values use lowercase, three-letter wire strings such as usd, eur, and gbp.
Install
dotnet add package Soenneker.Enums.CurrencyCodes
Usage
using Soenneker.Enums.CurrencyCodes;
CurrencyCode currency = CurrencyCode.Usd;
string wireValue = currency.Value; // "usd"
if (CurrencyCode.TryFromValue(input, out CurrencyCode? parsed))
{
// Use parsed in a typed request model
}
System.Text.Json serializes the type as its lowercase string value and restores recognized values to the corresponding static instance. FromValue throws for an unknown value; use TryFromValue at external-input boundaries. FromName and TryFromName are also generated for C# member-name lookup, such as "Usd".
Important boundaries
The constants are a compatibility list for API contracts, not a live currency registry or a guarantee that a payment processor accepts a currency. The set includes legacy identifiers such as mro, std, and sll; verify processor support and settlement rules when accepting a user-selected currency.
The type represents only the currency identifier. It does not provide symbols, localized names, exchange rates, decimal precision, minor-unit conversion, or amount validation. Keep monetary amounts in an appropriate decimal or minor-unit representation and apply the target processor's rules separately.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Soenneker.Attributes.PublicOpenApiObject (>= 11.0.69)
- Soenneker.Gen.EnumValues (>= 11.0.68)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Soenneker.Enums.CurrencyCodes:
| Package | Downloads |
|---|---|
|
Soenneker.Stripe.PaymentIntents
Create, retrieve, update, confirm, cancel, capture, and list Stripe payment intents. |
|
|
Soenneker.Blazor.Stripe.Elements
A modular, strongly-typed Blazor library for Stripe Elements |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.128 | 281 | 11/19/2026 |
| 11.0.127 | 84 | 11/18/2026 |
| 11.0.126 | 676 | 11/14/2026 |
| 11.0.125 | 478 | 11/11/2026 |
| 11.0.124 | 130 | 11/11/2026 |
| 11.0.123 | 124 | 11/11/2026 |
| 11.0.122 | 1,611 | 10/26/2026 |
| 11.0.121 | 268 | 10/26/2026 |
| 11.0.120 | 94 | 10/26/2026 |
| 11.0.119 | 158 | 10/26/2026 |
| 4.0.118 | 1,222 | 10/15/2026 |
| 4.0.117 | 153 | 10/14/2026 |
| 4.0.116 | 197 | 10/14/2026 |
| 4.0.114 | 138 | 10/14/2026 |
| 4.0.113 | 106 | 10/14/2026 |
| 4.0.106 | 200 | 10/13/2026 |
| 4.0.105 | 166 | 10/12/2026 |
| 4.0.103 | 179 | 10/12/2026 |
| 4.0.102 | 375 | 10/11/2026 |
| 4.0.101 | 131 | 10/11/2026 |
Updated Multiple NuGet packages