Coder Social home page Coder Social logo

nfe-api-client's Introduction

nfe-api-client

It is nfe.io’s nfs-e API implementation example

Getting Started

  • access https://app.nfe.io/login.
  • Click in sign up and create you account to test API.
  • After login, click in ACCOUNT, then click in ACCESS KEY and copy you API KEY.
  • Can you test invoice issuer, but before is necessary create a company. For create a company you can run integration test about Company, the test class is CompanyClientIntegrationTests. It is necessary set your api key on there. In the path nfe-api-client\UnitTests\FileToTest have json's example to create a company or invoice.
  • After create a company running the integration test, do you should to take the companyId to use on invoice issuer.
  • Now, set your companyId and ApiKey at IntegrationTest’s solution InvoiceClientIntegrationTests class, this class have function to issuer an invoice of test.

Prerequisites

  • It is necessary visual studio or visual studio code and .NET core SDK 2.1

Running the tests

  • First of all, you should to create an appsettings.development.json to configure environment variables. This file should be equal the appsettings.json, use it as example. Set your companyId, ApiKey etc there.
  • Open Test Explorer on IDE. It is recommended Group by Tests using Traits option.
  • Run all unit Tests to check if all logical tests there are passing.
  • Run All Integration tests to verify “acceptance” API test, it is recommended run one by one and debug to understand flow. This tests issuer, cancel or get an invoice etc.

Built With

Authors

nfe-api-client's People

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.