Cosmos.Types 1.2.0

dotnet add package Cosmos.Types --version 1.2.0
                    
NuGet\Install-Package Cosmos.Types -Version 1.2.0
                    
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="Cosmos.Types" Version="1.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Cosmos.Types" Version="1.2.0" />
                    
Directory.Packages.props
<PackageReference Include="Cosmos.Types" />
                    
Project file
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 Cosmos.Types --version 1.2.0
                    
#r "nuget: Cosmos.Types, 1.2.0"
                    
#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 Cosmos.Types@1.2.0
                    
#: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=Cosmos.Types&version=1.2.0
                    
Install as a Cake Addin
#tool nuget:?package=Cosmos.Types&version=1.2.0
                    
Install as a Cake Tool

Cosmos.Types

NuGet

Tipos base del ERP Cosmos: Dinero (monto + moneda con aritmética segura), el enum Moneda y McpComponentResponse<T>. Superficie estable y preexistente.

Instalación

dotnet add package Cosmos.Types

Uso

using Cosmos.Types;

var precio = Dinero.Crear(19990m, Moneda.COP);
var total  = precio + Dinero.Crear(5000m, Moneda.COP);   // misma moneda
var enUsd  = total.ConvertTo(Moneda.USD, tasaDeCambio: 0.00025m);

// Operar montos de monedas distintas lanza InvalidOperationException.

Dinero es un record (igualdad por valor) e implementa IComparable<Dinero>; comparar o sumar montos de monedas distintas es un error explícito. Moneda cubre COP, USD, EUR, AUD.

McpComponentResponse<T> es el sobre de respuesta de componentes MCP (Version, Data, Modulo, Componente).

Requiere net10.0.

Documentación

Licencia

Uso interno del ERP Cosmos.

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages (11)

Showing the top 5 NuGet packages that depend on Cosmos.Types:

Package Downloads
Cosmos.Impuestos.Contratos

Eventos públicos de integración de Cosmos Impuestos (IPublicEvent) para consumidores en otros bounded contexts.

ObligacionesPorPagar.Entradas.Contratos

Contratos de reconocimiento expuestos a terceros.

Cosmos.Contabilidad.Contratos

Package Description

ObligacionesPorPagar.Reconocimiento.Contratos

Contratos de reconocimiento expuestos a terceros.

Cosmos.EstructuraOrganizacional.Contratos

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.2.0 142 8/10/2026
1.1.0 2,000 6/5/2026
1.0.3 165 6/5/2026
1.0.2 385 5/27/2026
1.0.1 4,251 11/25/2025
0.0.2 1,229 11/25/2025
0.0.2-RC.1 219 9/24/2025
0.0.1 238 9/24/2025