Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

aade-mydata-client

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aade-mydata-client

Node.js Client for AADE myDATA (my Digital Accounting and Tax Application) REST API

  • 1.2.3
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

aade-mydata-client

Node.js Client for AADE myDATA (my Digital Accounting and Tax Application) REST API

Features

✅   HTTP requests to AADE myDATA REST API through axios
✅   XML to JSON conversion (currently myData API only supports response data in XML. The client parses these data in JSON format.)
✅   JSON to XML conversion (The client parses your JSON data to XML for the request body.)
✅   Javascript/Typescript support
✅   Compatible with myDATA REST API v1.0.2
📝   TODO: Methods requestTransmittedDocs(), sendIncomeClassification(), sendExpensesClassification() are not yet ready

Installation

npm install -S aade-mydata-client

Usage

TypeScript
import { AADEmyDataClient } from 'aade-mydata-client';

class YourClass {

 public myDataClient: AADEmyDataClient;

 constructor() {

     this.myDataClient = new AADEmyDataClient({
         userId: 'YOUR_USER_ID',
         subscriptionKey: 'YOUR_SUBSCRIPTION_KEY',
         livemode: false // true for production API requests
     });

 }

 // Example call for RequestDocs
 async main(): Promise<void> {

     const invoices = await this.myDataClient.requestDocs({ mark: 0 });
     // this method returns Invoice[] for credentials you defined in the client above

 }

}
CommonJS
const AADEmyDataClient = require('aade-mydata-client').AADEmyDataClient;

const myDataClient = new AADEmyDataClient({
    userId: 'YOUR_USER_ID',
    subscriptionKey: 'YOUR_SUBSCRIPTION_KEY',
    livemode: false // true for production API requests
});

const main = async () => {

    try {

        const invoices = await myDataClient.requestDocs({ mark: 0 });
        console.log(invoices);

    } catch (error) {

    }

}

main();

Methods

sendInvoices()

Submits one or more invoices, including corrected/amending

requestDocs()

Returns all documents submitted for the corresponding AADE account.

requestTransmittedDocs()

Request transmitted documents

sendIncomeClassification()

Submits invoice for income

sendExpensesClassification()

Submit invoice for expenses

cancelInvoice()

Method for cancelling a invoice

Author

John Makridis
John Makridis

Contributors

If you want to contribute to this repository send me a message.

Keywords

FAQs

Package last updated on 01 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc