Egov.Fod.ServiceModels 10.0.2

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

Egov.Fod.ServiceModels

NuGet Version License: MIT

Enterprise-ready service models and interfaces for the Fod platform. This library provides a clean, decoupled set of DTOs (Data Transfer Objects) and service interfaces to ensure consistency across different components of the Fod ecosystem, designed for modern cloud-native and microservices architectures.


Table of Contents


Features

  • Service Models: Well-defined models for Apostillation, Appointments, Delivery, and Payments.
  • Service Interfaces: Abstract interfaces for core service operations to allow for various implementations.
  • Localization Support: Includes resource files for enum translations and multi-language support.
  • Consistency: Uses established naming conventions and structures across the entire Fod platform.
  • Modern .NET: Built for .NET 10+ leveraging the latest C# 14 runtime improvements and best practices.

Prerequisites

  • .NET 10.0 or later

Installation

Install the package via NuGet:

dotnet add package Egov.Fod.ServiceModels

Configuration

The library includes configuration classes and models that can be easily integrated with standard .NET dependency injection.

Dependency Injection Setup

using Fod.ServiceModels.Configuration;

public void ConfigureServices(IServiceCollection services, IConfiguration configuration)
{
    // Configure Fod API settings
    services.Configure<FodApiConfiguration>(configuration.GetSection("FodApi"));
}

Usage

Working with Service Interfaces

Use the provided interfaces to implement or consume Fod services consistently:

using Fod.ServiceModels.Services;
using Fod.ServiceModels.Apostillation;

public class MyApostillationService(IApostillationService apostillationService)
{
    public async Task CheckAvailabilityAsync(Guid serviceRequestId)
    {
        var result = await apostillationService.ValidateAvailabilityDetailedAsync(new ApostillationAvailabilityRequest
        {
            ServiceRequestId = serviceRequestId,
            DocumentTypeCode = ApostillationSupportedDocuments.BirthCertificate
        });

        if (result.IsAvailable)
        {
            Console.WriteLine("Apostillation is available!");
        }
    }
}

Using Models

The library provides a rich set of models for various Fod domains:

using Fod.ServiceModels.Apostillation;

var request = new ApostillationAvailabilityRequest
{
    ServiceRequestId = Guid.NewGuid(),
    DocumentTypeCode = "BIRTH_CERT",
    ServiceTypeCode = "STANDARD"
};

Testing

The solution includes a comprehensive test suite using xUnit and FluentAssertions.

Running the tests

dotnet test

Contributing

Contributions are welcome! Please read CONTRIBUTING.md for guidelines on how to get started.


Code of Conduct

This project adheres to the Contributor Covenant Code of Conduct. By participating, you are expected to uphold this code.


AI Assistance

This repository contains an AGENTS.md file with instructions and context for AI coding agents to assist in development, ensuring consistency in code style and project structure.


License

This project is licensed under the MIT License.

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.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Egov.Fod.ServiceModels:

Package Downloads
Egov.Fod.BackComponents

Standard backend components for FOD integrations including MDocs, MNotify, MSign, and MPower.

Egov.Fod.ServiceComponents

Blazor component library for FOD public service request workflows. Provides reusable wizard orchestration, requestor/beneficiary data collection, apostillation, delivery, payment, and document attachment components.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
10.0.2 169 4/14/2026