InfiniTrak.Common 0.6.13

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

InfiniTrak.Common

InfiniTrak.Common is a Portable Class Library and service client for the InfiniTrak API. An InfiniTrak account is required.

Release Notes

--- New in 0.6.13 --- -Added ProductLotExpiresWithin12Months to ValidationErrorType enumeration -Removed MediaType parameter from ServiceClient constructors (always JSON) -Added support for billing address information and company prefixes to company location and trading partner location -Updated package dependencies to most recent versions as on 11/05/2025

--- New in 0.6.12 --- -Added ability to add EPCIS files to processing queue -Fixed issue with adding EDI files to processing queue

--- New in 0.6.11 --- -Added ability to filter trading partners by GLN -Changed GLN in CompanyLocation from comma-delimited string to a list of strings -Show GLN list in TradingPartnerCompanyLocation

--- New in 0.6.10 --- -Added support for updating the status of a transaction without having to modify the entire transaction -Added support for updating the status of a product without having to modify the entire product

--- New in 0.6.9 --- -Added support for retrieving FDA Form 3911 for product -Added support for retrieving a quarentine label for product

--- New in 0.6.8 --- -Added support for service health

--- New in 0.6.7 --- -Added ability to manage notes for transactions and transaction products -Fixed the following function mispellings: --RetieveTransactionDocumentVersionFileAsync --> RetrieveTransactionDocumentVersionFileAsync --RetieveTransactionProductDocumentVersionFileAsync --> RetrieveTransactionProductDocumentVersionFileAsync

--- New in 0.6.6 --- -Added ability to download the source file (EDI,EPCIS) of the transaction

--- New in 0.6.5 --- -Added support for containers

--- New in 0.6.4 --- -Added GTIN to TransactionProduct -Added support for search Transaction and TransactionProduct by GTIN

--- New in 0.6.3 --- -Added support for API Key Authorization -Added support for GLN to be added to a company location -Added validation errors to transaction and transaction product types

--- New in 0.6.x --- -Added ability to filter transaction product list by transaction type and transaction status type -Added ability to send transactions -Added support for suspect product wizard

Usage

using InfiniTrak.Common.ApiClient;
using InfiniTrak.Common.Model.Enumerations;
using InfiniTrak.Common.Model.Filters;
using InfiniTrak.Common.Model.Requests;
using InfiniTrak.Common.Model.Sorts;
using System;
using System.Linq;
using System.Threading.Tasks;

namespace Test_InfiniTrak_NuGet_Client
{
    class Program
    {
        static async Task Main(string[] args)
        {
            var token = await GetAuthorizationToken();

            using(var client = new ServiceClient(token))
            {
                var locations = await client.CompanyLocationClient.RetrieveCompanyLocationListAsync(new ListRequest<CompanyLocationFilter, ListSort<CompanyLocationSortField>>
                {
                    PageNumber = 1,
                    PageSize = 100,
                    Filter = new CompanyLocationFilter(),
                    Sort = new ListSort<CompanyLocationSortField>
                    {
                        Direction = SortDirection.ASC,
                        Field = CompanyLocationSortField.Name
                    }
                });

                foreach (var location in locations.List)
                    Console.WriteLine($"{location.Name} - {location.FullAddress}");
            }
        }

        static async Task<string> GetAuthorizationToken(int? companyId = null)
        {
            using (var client = new ServiceClient())
            {
                var result = await client.AuthorizationClient.AuthorizeAsync(new AuthorizationKeyRequest
                {
                    Key = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
                    HoursTokenValid = 1,
                    CompanyId = companyId
                });
                if (result.AuthorizedCompanies != null)
                    return await GetAuthorizationToken(result.AuthorizedCompanies.First().Id);
                return result.Token;
            }
        }
    }
}

Contributing

This package is intended for internal, customer, or partner use only and does not accept external contributions or pull requests.

If you encounter an issue or have a feature request, please contact the InfiniTrak support team.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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 was computed.  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 was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos 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.6.13 420 11/5/2025
0.6.12 252 11/25/2024
0.6.11 211 10/29/2024
0.6.10 3,111 2/27/2024
0.6.9 280 1/8/2024
0.6.8 323 11/9/2023
0.6.7 283 9/14/2023
0.6.6 204 8/31/2023
0.6.5 281 8/10/2023
0.6.4 259 6/30/2023
0.6.3 424 4/19/2023
0.6.2 516 6/16/2021
0.6.1 472 4/27/2021
0.6.0 465 4/15/2021
0.5.9 463 4/13/2021
0.5.8 445 4/12/2021
0.5.7 479 4/8/2021
0.5.6 592 9/18/2020
0.5.5 674 4/3/2020
0.5.4 645 1/20/2020
Loading failed

Version 0.6.13: Modified model, and ServiceClient constructor parameters. Updated packages. See README.md for full history.