Soenneker.Enums.CurrencyCodes
4.0.88
Prefix Reserved
See the version list below for details.
dotnet add package Soenneker.Enums.CurrencyCodes --version 4.0.88
NuGet\Install-Package Soenneker.Enums.CurrencyCodes -Version 4.0.88
<PackageReference Include="Soenneker.Enums.CurrencyCodes" Version="4.0.88" />
<PackageVersion Include="Soenneker.Enums.CurrencyCodes" Version="4.0.88" />
<PackageReference Include="Soenneker.Enums.CurrencyCodes" />
paket add Soenneker.Enums.CurrencyCodes --version 4.0.88
#r "nuget: Soenneker.Enums.CurrencyCodes, 4.0.88"
#:package Soenneker.Enums.CurrencyCodes@4.0.88
#addin nuget:?package=Soenneker.Enums.CurrencyCodes&version=4.0.88
#tool nuget:?package=Soenneker.Enums.CurrencyCodes&version=4.0.88
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 | 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
- Soenneker.Attributes.PublicOpenApiObject (>= 4.0.52)
- Soenneker.Gen.EnumValues (>= 4.0.47)
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 |
|---|---|---|
| 4.0.102 | 0 | 10/11/2026 |
| 4.0.101 | 0 | 10/11/2026 |
| 4.0.100 | 37 | 10/11/2026 |
| 4.0.99 | 776 | 9/30/2026 |
| 4.0.98 | 651 | 9/25/2026 |
| 4.0.97 | 94 | 9/24/2026 |
| 4.0.96 | 115 | 9/24/2026 |
| 4.0.95 | 831 | 9/15/2026 |
| 4.0.94 | 130 | 9/15/2026 |
| 4.0.92 | 740 | 9/12/2026 |
| 4.0.91 | 112 | 9/12/2026 |
| 4.0.90 | 112 | 9/12/2026 |
| 4.0.89 | 973 | 9/7/2026 |
| 4.0.88 | 512 | 9/4/2026 |
| 4.0.87 | 1,048 | 8/30/2026 |
| 4.0.86 | 342 | 8/30/2026 |
| 4.0.85 | 133 | 8/30/2026 |
| 4.0.84 | 238 | 8/29/2026 |
| 4.0.82 | 1,105 | 8/21/2026 |
| 4.0.81 | 537 | 8/18/2026 |
Updated Soenneker.Gen.EnumValues to 4.0.47