JibitSharp 0.2.0
dotnet add package JibitSharp --version 0.2.0
NuGet\Install-Package JibitSharp -Version 0.2.0
<PackageReference Include="JibitSharp" Version="0.2.0" />
<PackageVersion Include="JibitSharp" Version="0.2.0" />
<PackageReference Include="JibitSharp" />
paket add JibitSharp --version 0.2.0
#r "nuget: JibitSharp, 0.2.0"
#:package JibitSharp@0.2.0
#addin nuget:?package=JibitSharp&version=0.2.0
#tool nuget:?package=JibitSharp&version=0.2.0
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, plusAdditionalDatafor anything else Jibit actually returns) since the real schema is missing from the spec./mzahub/v1/merchant/contract-sign/*operations require anX-REAL-IPheader per the spec. Kiota does not generate a typed convenience parameter for it, but you can set it via the genericrequestConfiguration.Headersmechanism: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 | Versions 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. |
-
net10.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.11)
- Microsoft.Extensions.Http.Resilience (>= 10.9.0)
- Microsoft.Kiota.Bundle (>= 2.0.0)
-
net8.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.11)
- Microsoft.Extensions.Http.Resilience (>= 10.9.0)
- Microsoft.Kiota.Bundle (>= 2.0.0)
-
net9.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.11)
- Microsoft.Extensions.Http.Resilience (>= 10.9.0)
- Microsoft.Kiota.Bundle (>= 2.0.0)
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 |