Giter Site home page Giter Site logo

iso.resolvers's Introduction

ISO resolvers

ISO-4217 (currency codes) resolver

NuGet version (ISO.4217.CurrencyCodes)

Resolver for ISO-4217 codes.

Data matrix

Number Code Name Country
980 UAH Hryvnia Ukraine
978 EUR Euro Germany
840 USD US Dollar United States of America
... ... ... ...

How to use

Next code:

public void Demo()
{
    var code = CurrencyCodesResolver.GetCodeByNumber("978");

    Console.WriteLine(code);
}

Outputs: EUR

ISO-18245 (merchant category codes) resolver

NuGet version (ISO.18245.MerchantCategoryCodes)

Resolver for ISO-18245 codes.

Data matrix

Code Description
4121 Taxicabs and Limousines
5995 Pet Shops, Pet Foods, and Supplies Stores
... ...

How to use

Next code:

public void Demo()
{
    var mcc = MerchantCategoryCodesResolver.GetByCode("4121");

    Console.WriteLine(mcc.Description);
}

Outputs: Taxicabs and Limousines

ISO-3166 (country codes) resolver

NuGet version (ISO.3166.CountryCodes)

Resolver for ISO-3166 codes.

Data matrix

Code Name
UA Ukraine
NO Norway
... ...

How to use

Next code:

public void Demo()
{
    var cc = CountryCodesResolver.GetByCode("UA");

    Console.WriteLine(cc.Name);
}

Outputs: Ukraine

iso.resolvers's People

Contributors

dmitriybobrovskiy avatar maisak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

iso.resolvers's Issues

Remove outdated Nuget package

Hi,
I think it would be better to remove outdated Nuget package because right now it's confusing which one I should use and I have to jump to both repositories to find out proper one.
But when I jump to both of them I realize that basically it's the same repo and one of them is just outdated.

ISO-18245 codes.json is missing in NuGet Package

Hi maisak

First of all, thanks a lot for this lib.
That's exactly what I have been looking for!

Unfortunately, there is an error when using your lib via NuGet:
FileNotFoundException: Could not find file '.........\bin\Debug\netcoreapp2.2\codes.json'.

Could you please have a look if the file gets added to the lib on NuGet?

Question on data sources for MCCs

Hi,
I'm wondering where you are sourcing this file from. ISO 18245:2003 only has the description and MCC (and ranges), so I was wondering more specifically how the irs* and usda fields are matched.

Missing info about minor currency units (the "exponent")

Hi this seems to be great library but it would be even better if it had exponent info.

Description taken from wikipedia:

Treatment of minor currency units (the "exponent")
The ISO 4217 standard includes a crude mechanism for expressing the relationship between a major currency unit and its corresponding minor currency unit. This mechanism is called the currency "exponent" and assumes a base of 10. For example, USD (the United States dollar) is equal to 100 of its minor currency unit the "cent". So the USD has exponent 2 (10 to the power 2 is 100, which is the number of cents in a dollar). The code JPY (Japanese yen) is given the exponent 0, because its minor unit, the sen, although nominally valued at 1/100 of a yen, is of such negligible value that it is no longer used. ...

What is your opinion on adding this?

Do you have a scripted process for updating code for ISO 3166?

I see that for ISO 3166 (and also currency) you moved from parsing a .json file to baking the data into the code.

What was the reason for this change? (I assume performance, but I do not know if there are other reasons)
Do you have a scripted process for updating / generating the code from a .json file?

Thank you for creating this repo.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.