JibitSharp 0.2.0

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

JibitSharp

Unofficial C# SDK for Jibit's APIs: Cobank (accounts), payment gateway (PPG), biometric authentication (Alpha), SMS (Pulse), inquiry services (IDE), digital contract/signature (MzaHub), and direct debit.

Install

dotnet add package JibitSharp

Usage

var client = new JibitClient(new JibitClientOptions
{
    Cobank = new JibitCredentials(apiKey, secretKey),
    // only configure the modules you actually use — Alpha needs none
});

var result = await client.Cobank.V1.Orders.Settlement.PostAsync(new SettlementRequestDTO
{
    // ...
});

Credentials are per module (Cobank, Ppg, Ide, Directdebit, Pulse, Mzahub) — each is an independent apiKey/secretKey pair with its own token lifecycle, which JibitClient manages automatically (generation, caching, and refresh on expiry or a 401). Alpha has no token flow and needs no credentials.

Every one of the 147 generated operations is reachable through client.{Alpha,Cobank,Directdebit,Ide,Mzahub,Ppg,Pulse} following the same URL-shaped navigation Kiota generates, e.g. client.Ppg.V3.Purchases.PostAsync(...).

Dependency injection

services.AddJibitSharp(options =>
{
    options.Cobank = new JibitCredentials(apiKey, secretKey);
});

Registers a singleton JibitClient backed by a pooled, resilient HttpClient (Microsoft.Extensions.Http.Resilience's standard handler: retry, timeout, circuit breaker).

Errors

Every operation throws JibitApiException (an alias for the generated Error model) on a non-2xx response, exposing Code, Message, and ResponseStatusCode — one exception type regardless of which product raised it.

Known spec limitations

The vendored OpenAPI document (openapi/document.json) has a few confirmed defects, worked around by JibitSharp.SpecNormalizer at build time (see docs/superpowers/specs/2026-08-22-jibitsharp-sdk-design.md for the full detail):

  • POST /ide/v1/services/ocr/national-card's response (OcrNationalCardResponse) is a provisional best-guess shape (firstName, lastName, nationalCode, confidence, plus AdditionalData for anything else Jibit actually returns) since the real schema is missing from the spec.

  • /mzahub/v1/merchant/contract-sign/* operations require an X-REAL-IP header per the spec. Kiota does not generate a typed convenience parameter for it, but you can set it via the generic requestConfiguration.Headers mechanism:

    await client.Mzahub.V1.Merchant.ContractSign.VoiceCaptcha.PostAsync(
        body,
        rc => rc.Headers.Add("X-REAL-IP", ip));
    

    Custom headers are automatically preserved across token-refresh retries.

Regenerating the client

After openapi/document.json changes:

./scripts/generate.sh

Requires the Microsoft.OpenApi.Kiota global tool (installed automatically by the script if missing, pinned to 1.34.1).

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  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

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.2.0 72 8/22/2026