Soenneker.Enums.CurrencyCodes
4.0.118
Prefix Reserved
dotnet add package Soenneker.Enums.CurrencyCodes --version 4.0.118
NuGet\Install-Package Soenneker.Enums.CurrencyCodes -Version 4.0.118
<PackageReference Include="Soenneker.Enums.CurrencyCodes" Version="4.0.118" />
<PackageVersion Include="Soenneker.Enums.CurrencyCodes" Version="4.0.118" />
<PackageReference Include="Soenneker.Enums.CurrencyCodes" />
paket add Soenneker.Enums.CurrencyCodes --version 4.0.118
#r "nuget: Soenneker.Enums.CurrencyCodes, 4.0.118"
#:package Soenneker.Enums.CurrencyCodes@4.0.118
#addin nuget:?package=Soenneker.Enums.CurrencyCodes&version=4.0.118
#tool nuget:?package=Soenneker.Enums.CurrencyCodes&version=4.0.118
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.64)
- Soenneker.Gen.EnumValues (>= 4.0.64)
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.118 | 313 | 10/15/2026 |
| 4.0.117 | 81 | 10/14/2026 |
| 4.0.116 | 120 | 10/14/2026 |
| 4.0.114 | 74 | 10/14/2026 |
| 4.0.113 | 37 | 10/14/2026 |
| 4.0.106 | 167 | 10/13/2026 |
| 4.0.105 | 123 | 10/12/2026 |
| 4.0.103 | 156 | 10/12/2026 |
| 4.0.102 | 341 | 10/11/2026 |
| 4.0.101 | 105 | 10/11/2026 |
| 4.0.100 | 150 | 10/11/2026 |
| 4.0.99 | 879 | 9/30/2026 |
| 4.0.98 | 654 | 9/25/2026 |
| 4.0.97 | 97 | 9/24/2026 |
| 4.0.96 | 118 | 9/24/2026 |
| 4.0.95 | 833 | 9/15/2026 |
| 4.0.94 | 133 | 9/15/2026 |
| 4.0.92 | 740 | 9/12/2026 |
| 4.0.91 | 114 | 9/12/2026 |
| 4.0.90 | 112 | 9/12/2026 |
Updated Soenneker.Gen.EnumValues to 4.0.64