![]() |
VOOZH | about |
dotnet add package ETA.eReceipt.IntegrationToolkit --version 3.1.0
NuGet\Install-Package ETA.eReceipt.IntegrationToolkit -Version 3.1.0
<PackageReference Include="ETA.eReceipt.IntegrationToolkit" Version="3.1.0" />
<PackageVersion Include="ETA.eReceipt.IntegrationToolkit" Version="3.1.0" />Directory.Packages.props
<PackageReference Include="ETA.eReceipt.IntegrationToolkit" />Project file
paket add ETA.eReceipt.IntegrationToolkit --version 3.1.0
#r "nuget: ETA.eReceipt.IntegrationToolkit, 3.1.0"
#:package ETA.eReceipt.IntegrationToolkit@3.1.0
#addin nuget:?package=ETA.eReceipt.IntegrationToolkit&version=3.1.0Install as a Cake Addin
#tool nuget:?package=ETA.eReceipt.IntegrationToolkit&version=3.1.0Install as a Cake Tool
ETA.eReceipt.IntegrationToolkit is a .Net6 NuGet exposed as a set APIs to the taxpayers’ POS/ERP systems and developers as well. It’s optional for the taxpayer to integrate their systems with the toolkit.
The nuget is intended to support different scenarios that can be performed in offline mode. The different set of functionalities/APIs that will be supported in offline mode will be as follows:
• Issue Receipt • Generate Receipt QR code • Assign globally unique receipt UUID • Export issued receipts • Validate documents locally while issuing and generation of UUID and QR codes
Other than working offline, the toolkit will have to be used in online mode for specific scenarios that require connection to the eReceipt solution. It will also use external APIs exposed by the eReceipt solution’s server-side to perform the following: • Help authenticate POS • Synchronize receipts • Update codes and business rules in local cache
Nuget is implemented to store receipts in SQLlite database, So developer need to configure how to connect to it while initialization of application services.
To integrate toolkit into your application follow the next steps
1- Add configuration section to apsettings.json "ToolkitConfig": { // connection string of sqllit database "LocalConnectionsString": "Data Source=C:\Users\Administrator\AppData\Local\LocalReceipts.db;", //Egypt tax authority configuration section "EtaConfig": {
// identity service url to acquire access token to invoicing APIs
"IdentityServiceUrl": "https://id.preprod.eta.gov.eg/connect/token",
// invoicing portal base url, will be used while generation of QR codes
"InvoicingServiceBaseUrl": "https://api.preprod.invoicing.eta.gov.eg",
// invoicing service base url, will be used while submission and syncing receipts
"InvoicingPortalBaseUrl": "https://preprod.invoicing.eta.gov.eg/",
// version of invoicing service
"InvoicingServiceVersion": "1",
// The involved POS while integration with invoicing through nuget
"PosSerial": "",
"SubTypeAttributeKey": "AmountType",
"SubTypeAttributeValue": "amount"
}
}
2- Add it to service collection using extension method // By calling this service u can inject IToolkitHandler service // and use any of its exposed functionality like issue, submit, sync ... and son services.AddToolkit(configuration);
Usage Notes 1- You can combine the previous two steps in one step by calling the following line of code where you pass configuration object apart from your configuration file: services.AddToolkit(configuration, ToolkitConfig);
2- You can delegate the creation of SQLite database to nuget by adding the following line of code in application startup: app.MigrateToolkitLocalStorage();
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 net6.0 is compatible. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 was computed. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.1.3-rc | 507 | 7/10/2023 |
| 3.1.2-rc | 290 | 7/6/2023 |
| 3.1.1-rc | 274 | 6/22/2023 |
| 3.1.0 | 2,380 | 8/1/2023 |
| 3.0.5 | 518 | 5/5/2023 |
| 3.0.5-rc | 321 | 4/16/2023 |
| 3.0.4-rc | 292 | 4/16/2023 |
| 1.0.169-preview | 257 | 7/6/2023 |
| 1.0.168-preview | 283 | 6/5/2023 |
| 1.0.167-preview | 318 | 5/31/2023 |
| 1.0.166-preview | 334 | 5/28/2023 |
| 1.0.165-preview | 338 | 5/23/2023 |
| 1.0.164-preview | 289 | 5/23/2023 |
| 1.0.161-preview | 291 | 5/23/2023 |
| 1.0.159-preview | 282 | 5/23/2023 |
| 1.0.158-preview | 317 | 5/17/2023 |
| 1.0.157-preview | 293 | 4/16/2023 |
| 1.0.156-preview | 280 | 4/16/2023 |
| 0.0.1 | 351 | 7/31/2023 |